AP Calculus AB and BC
Derivative of x cos x: Answer, Product Rule, Mistakes
The derivative of x cos x with respect to x is cos x minus x sin x. This needs the product rule, because the expression is a product of two functions that each depend on x. The derivative of a product is never the product of the derivatives, so the answer is cos x - x sin x, not -sin x.
How to differentiate x cos x
The product rule differentiates one factor at a time, holding the other fixed, and adds the two results.
Take and , so and .
Where the minus sign comes from
The subtraction is not part of the product rule itself, which only adds. It appears because carries its own minus sign from differentiating cosine.
Why the product rule is necessary
If the derivative of a product were the product of the derivatives, the answer would be . Test it at : the real derivative is , while . They disagree, so the shortcut is false.
The same expression appears in Unit 6, where needs integration by parts, the product rule run in reverse.
Where the derivative of x cos x shows up on the AP exam
The product rule is Topic 2.8, on both AB and BC. A polynomial times a trigonometric function is a standard example, because one factor differentiates to and the structure of the rule stays visible.
Common mistakes with the derivative of x cos x
- Answering , multiplying the two derivatives instead of using the product rule.
- Answering , forgetting that differentiates to and losing the minus sign.
- Answering , dropping the that multiplies in the second term.
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 cos x?
. The product rule gives , and the second term inherits the minus sign from the derivative of cosine.
Why isn't the answer just -sin x?
Because the derivative of a product is not the product of the derivatives. You must keep each factor once undifferentiated: , which checks out at , where it equals .
How do you integrate x cos x?
Use integration by parts, the reverse of the product rule: . Differentiating that result returns .