Product Rule Calculator

Type a product of two functions of x, such as x^2 sin(x).

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

Try

Result

You enteredddx[x2 sin⁡x]\frac{d}{dx}\left[x^{2}\,\sin x\right]

f′(x)=2x sin⁡x+x2 cos⁡x\displaystyle f'(x) = 2x\,\sin x + x^{2}\,\cos x
Show the work
  1. The two factors

    Write f(x)=u vf(x) = u\,v with u=x2u = x^{2} and v=sin⁡xv = \sin x.

    u=x2v=sin⁡x\begin{gathered} u = x^{2} \\ v = \sin x \end{gathered}
  2. Product rule

    x2 sin⁡xx^{2}\,\sin x is a product. Take u=x2u = x^{2} and v=sin⁡xv = \sin x; then u′=2xu' = 2x and v′=cos⁡xv' = \cos x, so (uv)′=u′v+uv′\left(uv\right)' = u'v + uv'.

    ddx[x2 sin⁡x]=2x sin⁡x+x2 cos⁡x\frac{d}{dx}\left[x^{2}\,\sin x\right] = 2x\,\sin x + x^{2}\,\cos x
  3. Power rule

    xx is raised to the constant power n=2n = 2, so the exponent comes down in front and drops by one.

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

    ddx[x2]=2x\frac{d}{dx}\left[x^{2}\right] = 2x
  4. Derivative of sine

    This is a standard derivative: sin⁡x\sin x differentiates to cos⁡x\cos x.

    Using ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x

    ddx[sin⁡x]=cos⁡x\frac{d}{dx}\left[\sin x\right] = \cos x
  5. Result

    The derivative is 2x sin⁡x+x2 cos⁡x2x\,\sin x + x^{2}\,\cos x.

    ddx[x2 sin⁡x]=2x sin⁡x+x2 cos⁡x\frac{d}{dx}\left[x^{2}\,\sin x\right] = 2x\,\sin x + x^{2}\,\cos x
Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = x^2 sin(x)

Points on the graph

  • y = x^2 sin(x): zero (0, 0)
  • y = x^2 sin(x): maximum (2.28893, 3.945302)
  • y = x^2 sin(x): minimum (-2.28893, -3.945302)

Worked examples