Derivative Calculator

Type a function of x to find its derivative, step by step.

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

Leave empty for the first derivative; 2 for the second, up to 10.

Try

Result

You enteredddx[sin⁡xx]\frac{d}{dx}\left[\frac{\sin x}{x}\right]

f′(x)=x cos⁡x−sin⁡xx2\displaystyle f'(x) = \frac{x\,\cos x - \sin x}{x^{2}}
Show the work
  1. Quotient rule

    sin⁡xx\frac{\sin x}{x} is a quotient. Take u=sin⁡xu = \sin x on top and v=xv = x below; then u′=cos⁡xu' = \cos x and v′=1v' = 1, so the derivative is u′v−uv′v2\frac{u'v - uv'}{v^2}.

    Using (uv)′=u′v−uv′v2\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}

    ddx[sin⁡xx]=cos⁡x x−sin⁡xx2\frac{d}{dx}\left[\frac{\sin x}{x}\right] = \frac{\cos x\,x - \sin x}{x^{2}}
  2. 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
  3. Simplify the result

    Collect like terms and tidy the expression, without changing its value.

    cos⁡x x−sin⁡xx2=x cos⁡x−sin⁡xx2\frac{\cos x\,x - \sin x}{x^{2}} = \frac{x\,\cos x - \sin x}{x^{2}}
  4. Result

    The derivative is x cos⁡x−sin⁡xx2\frac{x\,\cos x - \sin x}{x^{2}}.

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

Worked examples