AP Calculus AB and BC
Derivative of x^2 cos x: Product Rule
The derivative of x squared times cos x is 2x cos x minus x squared sin x. The product rule differentiates each factor in turn, and the minus sign comes from differentiating cosine in the second term.
The product rule
The rule itself adds the two pieces; the minus sign appears because the derivative of cosine is negative sine, not because of the rule.
The integral needs parts twice
Reversing this is the standard repeated integration by parts problem, since the algebraic factor drops by one degree on each pass.
Common mistakes
- Multiplying the derivatives to get .
- Writing a plus sign in front of by forgetting where the minus came from.
- Applying the chain rule instead. This is a product, not a composition.
Check yourself, not just the answer
Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.
Frequently asked questions
What is the derivative of x^2 cos x?
It is .
Where does the minus sign come from?
From differentiating to in the second product-rule term.
What is the integral?
, by integration by parts twice.