Derivative Rules Step-by-Step

Pick any function from the library and watch the full differentiation unfold step by step. Every rule is labeled, every transition explained, with formulas rendered in LaTeX.

Rule Category

Select a Function

DifferentiatingPower Rule
1Identify the power rule patternPower Rule

The function has the form x^n where n is a constant.

2Apply the power rule: bring down the exponent, reduce by 1Power Rule
3Simplify the exponentPower Rule

Final Answer

Rule Reference: Power Rule

Multiply by the exponent, then reduce the exponent by 1. Works for any real number n.

Reference Guide

The Six Core Differentiation Rules

Power rule
ddxxn=nxn1\dfrac{d}{dx} x^n = n x^{n-1}
Constant rule
ddxc=0\dfrac{d}{dx} c = 0
Sum / Difference rule
ddx[f±g]=f±g\dfrac{d}{dx}[f \pm g] = f' \pm g'
Product rule
ddx[uv]=uv+uv\dfrac{d}{dx}[uv] = u'v + uv'
Quotient rule
ddx[uv]=uvuvv2\dfrac{d}{dx}\left[\frac{u}{v}\right] = \frac{u'v - uv'}{v^2}
Chain rule
ddx[f(g(x))]=f(g(x))g(x)\dfrac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)

Chain Rule Strategy

The chain rule applies whenever you differentiate a composition f(g(x))f(g(x)).

  1. Identify the outer and inner functions. For sin(x2)\sin(x^2), the outer is sin(u)\sin(u) and the inner is u=x2u = x^2.
  2. Differentiate the outer function, leaving the inner function unchanged inside.
  3. Multiply by the derivative of the inner function.
Example
ddx[sin(x2)]=cos(x2)2x=2xcos(x2)\dfrac{d}{dx}[\sin(x^2)] = \cos(x^2) \cdot 2x = 2x\cos(x^2)

For nested compositions, apply the chain rule repeatedly, working from the outermost layer inward.

Product vs Quotient Rule

Both rules handle functions made by combining two differentiable pieces.

Product rule for f(x)=u(x)v(x)f(x) = u(x) \cdot v(x)
f=uv+uvf' = u'v + uv'

Mnemonic: derivative of the first times the second, plus the first times derivative of the second.

Quotient rule for f(x)=u(x)/v(x)f(x) = u(x)/v(x)
f=uvuvv2f' = \dfrac{u'v - uv'}{v^2}

Mnemonic: low d-high minus high d-low, all over low squared. The denominator is always v2v^2, never vv alone.

Avoid the quotient rule when possible: rewriting 1/xn1/x^n as xnx^{-n} lets you use the simpler power rule instead.

Trig and Exponential Quick Reference

f(x) f'(x)
sinx\sin x cosx\cos x
cosx\cos x sinx-\sin x
tanx\tan x sec2x\sec^2 x
exe^x exe^x
lnx\ln x 1/x1/x
axa^x axlnaa^x \ln a

These standard derivatives are derived from first principles and should be memorized. Combined with the chain rule, they handle all compositions of these forms.