Derivative Rules

Every rule you need to differentiate almost anything, in one place, plus a picture that shows why the product rule is what it is.

The core rules

RuleFormulaNote
Constantddx[c]=0\frac{d}{dx}[c] = 0A flat line has slope 0.
Powerddx[xn]=nxn−1\frac{d}{dx}[x^n] = n x^{n-1}Works for any real n.
Constant multipleddx[c f]=c f′\frac{d}{dx}[c\,f] = c\,f'Stretching a graph stretches its slopes.
Sum / difference(f±g)′=f′±g′(f \pm g)' = f' \pm g'Differentiate term by term.
Product(uv)′=u′v+uv′(uv)' = u'v + uv'Not u′v′. See the explainer below.
Quotient(uv)′=u′v−uv′v2\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}Order matters in the numerator.
Chainddxf(g(x))=f′(g(x)) g′(x)\frac{d}{dx} f(g(x)) = f'(g(x))\,g'(x)Outer derivative times inner derivative.

Why the product rule has two terms

Think of u⋅vu \cdot v as the area of a rectangle with sides uu and vv. If both sides grow a little, the area grows by two strips and a tiny corner:

u · vv·duu·dv

New area − old area = v·du 1.6 + u·dv 1.8 + du·dv 0.48

Shrink both sliders: the grey corner du·dv vanishes far faster than the two strips. What survives is d(uv)=u dv+v dud(uv) = u\,dv + v\,du, the product rule.

The corner is a small change times a small change, so it vanishes compared with the strips as the changes shrink. Dividing the rest by dxdx gives (uv)′=u′v+uv′(uv)' = u'v + uv'. The quotient rule follows by applying the product and chain rules to u⋅v−1u \cdot v^{-1}.

Derivatives of common functions

f(x)f(x)f′(x)f'(x)
exe^xexe^x
axa^xaxln⁡aa^x \ln a
ln⁡x\ln x1x\frac{1}{x}
log⁡ax\log_a x1xln⁡a\frac{1}{x \ln a}
sin⁡x\sin xcos⁡x\cos x
cos⁡x\cos x−sin⁡x-\sin x
tan⁡x\tan xsec⁡2x\sec^2 x
sec⁡x\sec xsec⁡xtan⁡x\sec x \tan x
csc⁡x\csc x−csc⁡xcot⁡x-\csc x \cot x
cot⁡x\cot x−csc⁡2x-\csc^2 x
arcsin⁡x\arcsin x11−x2\frac{1}{\sqrt{1-x^2}}
arccos⁡x\arccos x−11−x2-\frac{1}{\sqrt{1-x^2}}
arctan⁡x\arctan x11+x2\frac{1}{1+x^2}
sinh⁡x\sinh xcosh⁡x\cosh x
cosh⁡x\cosh xsinh⁡x\sinh x

Each of these has its own page with the derivation and graph: e.g. ln x, sin x, tan x, or browse all of them.

Putting the rules together

Differentiate x2e3xx^2 e^{3x}: it is a product, and the second factor needs the chain rule. (x2)′e3x+x2(e3x)′=2xe3x+3x2e3x(x^2)' e^{3x} + x^2 (e^{3x})' = 2x e^{3x} + 3x^2 e^{3x}. The derivative calculator shows this kind of breakdown for any function you type.

Still stuck? Ask the tutor

An AI tutor reads the problem and steps above and explains them in plain words. It can make mistakes, so check it against the worked steps.

Questions students ask

What are the basic derivative rules?

Constant rule (c′=0c' = 0), power rule ((xn)′=nxn−1(x^n)' = nx^{n-1}), constant multiple rule, sum and difference rule, product rule, quotient rule and chain rule, plus the derivatives of exe^x, ln⁡x\ln x and the trig functions.

How do I remember the quotient rule?

“Low d-high minus high d-low, over the square of what’s below”: (uv)′=v u′−u v′v2\left(\frac{u}{v}\right)' = \frac{v\,u' - u\,v'}{v^2}. The order in the numerator matters because of the minus sign.

When do I use the chain rule?

Whenever one function is plugged into another, like sin⁡(3x)\sin(3x), (x2+1)5(x^2+1)^5 or e−x2e^{-x^2}. Differentiate the outer function, keep the inside, then multiply by the derivative of the inside.

Is the product rule just multiplying the derivatives?

No, and this is the most common mistake. (uv)′≠u′v′(uv)' \neq u'v'. The explainer on this page shows why the correct formula is u′v+uv′u'v + uv'.