Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
MediumDerivativesCalculus

Find the derivative of x2sin⁡xx^2 \sin x.

A product of two functions needs the product rule.

Try it first: work the problem on paper, then open the solution below and compare each step.
Show the step-by-step solution

Final answer

f′(x)=2xsin⁡(x)+x2cos⁡(x)f'(x) = 2x \sin\left( x\right)+{x}^{2} \cos\left( x\right)

How we read your problem

Find the derivative of x²·sin(x) with respect to x.

ddx[x2sin⁡(x)]\frac{d}{dx}\left[{x}^{2} \sin\left( x\right)\right]

Step-by-step solution

  1. Product rule: (uv)′ = u′v + uv′

    ddx[x2sin⁡(x)]=2xsin⁡(x)+x2cos⁡(x)\frac{d}{dx}\left[{x}^{2} \sin\left( x\right)\right] = 2x \sin\left( x\right)+{x}^{2} \cos\left( x\right)
  2. d/dx[sin x] = cos x

    ddx[sin⁡(x)]=cos⁡(x)\frac{d}{dx}\left[\sin\left( x\right)\right] = \cos\left( x\right)
  3. Power rule: d/dx[xⁿ] = n·xⁿ⁻¹

    ddx[x2]=2x\frac{d}{dx}\left[{x}^{2}\right] = 2x
  4. Combine and simplify

    f′(x)=2xsin⁡(x)+x2cos⁡(x)f'(x) = 2x \sin\left( x\right)+{x}^{2} \cos\left( x\right)

Formulas used

  • Power rule

    ddxxn=nxn−1\frac{d}{dx}x^n = n x^{n-1}
  • Product rule

    (uv)′=u′v+uv′(uv)' = u'v + uv'

The derivative is built from the outside in: sums split into terms, constants factor out, products and quotients use their rules, and every composite function multiplies by the derivative of its inside (chain rule).

Verification

  • Cross-checked numerically against an independent symbolic differentiator at 8 sample points ✓

About derivatives

Power, product, quotient and chain rules.

Power rule

Bring the exponent down and reduce it by one.

ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1}
Chain rule

Differentiate the outer function, then multiply by the derivative of the inner.

ddxf(g(x))=f′(g(x)) g′(x)\frac{d}{dx}f(g(x)) = f'(g(x))\,g'(x)

Check your own work