calculus · worked example

Solve x · cos(x)

Method: product rule. Verified step-by-step solution with our free AI math solver.
Problem

ddx(xcosx)\frac{d}{dx}(x \cos x)

Step-by-step solution

  1. Apply (fg)=fg+fg(fg)' = f'g + fg' with f=xf = x, g=cosxg = \cos x.

  2. f=1f' = 1, g=sinxg' = -\sin x.

  3. Result: cosxxsinx\cos x - x\sin x.

Answer

cos(x)xsin(x)\cos(x) - x\sin(x)

Want to solve a different problem? Open the derivative solver →

Related worked examples

  • /solve/calculus/derivative-of-cos-x