Throw a ball straight up at 20 metres per second. Ignoring air resistance, its height after tt seconds is h(t)=20t−4.9t2h(t) = 20t - 4.9t^2 metres. How fast is it rising after one second, and when does it stop rising? Using two derivative rules — the power rule and the sum rule — the velocity is h′(t)=20−9.8th'(t) = 20 - 9.8t. At t=1t = 1 that is 10.210.2 metres per second. The ball peaks when the velocity is zero, at t=20/9.8≈2.04t = 20/9.8 \approx 2.04 seconds, at a height of about 20.420.4 metres. You can check the last number: h(100/49)=400/19.6≈20.41h(100/49) = 400/19.6 \approx 20.41.

That is the whole job of the derivative rules: they replace the limit computation in the definition with a handful of mechanical patterns, so that a derivative takes one line instead of half a page. A derivative measures instantaneous rate of change, the limit of the slope of secant lines; that idea is developed in What Is a Derivative?. This article is the toolkit: every rule you need, why each one holds, and how to apply them without the usual mistakes.

What are the basic derivative rules?

Here is the cheat sheet. Throughout, cc and nn are constants, a>0a > 0 is a constant base, and ff, gg are differentiable functions of xx.

Rule or function Derivative
Constant cc 00
Power xnx^n nxn−1n x^{n-1}
Constant multiple c f(x)c\,f(x) c f′(x)c\,f'(x)
Sum f+gf + g f′+g′f' + g'
Product fgf g f′g+fg′f' g + f g'
Quotient f/gf/g f′g−fg′g2\dfrac{f' g - f g'}{g^2}
Chain f(g(x))f(g(x)) f′(g(x)) g′(x)f'(g(x))\,g'(x)
exe^x exe^x
axa^x axln⁡aa^x \ln a
ln⁡x\ln x 1/x1/x
ln⁡∣x∣\ln \lvert x \rvert 1/x1/x
sin⁡x\sin x cos⁡x\cos x
cos⁡x\cos x −sin⁡x-\sin x
tan⁡x\tan x sec⁡2x\sec^2 x
arcsin⁡x\arcsin x 1/1−x21/\sqrt{1-x^2}
arctan⁡x\arctan x 1/(1+x2)1/(1+x^2)

Every entry below the first four is derived later in the article from the ones above it, so nothing here needs to be taken on trust.

The constant, constant multiple and sum rules

These three are the scaffolding that lets you differentiate a polynomial term by term.

Constant rule. If f(x)=cf(x) = c, every difference quotient is (c−c)/h=0(c - c)/h = 0, so f′(x)=0f'(x) = 0. A horizontal line has slope zero everywhere.

Constant multiple rule. Scaling a function scales every secant slope by the same factor, so (cf)′=cf′(c f)' = c f'. Stretching a graph vertically by 3 makes it three times as steep at every point.

Sum rule. The difference quotient of f+gf + g splits into the difference quotient of ff plus that of gg, and limits of sums are sums of limits, so (f+g)′=f′+g′(f+g)' = f' + g'. The same holds for differences.

Together they say differentiation is linear: you can split a sum apart, pull constants out, and differentiate each piece on its own. That is what we did with the ball: h(t)=20t−4.9t2h(t) = 20t - 4.9t^2 became 20⋅1−4.9⋅2t20 \cdot 1 - 4.9 \cdot 2t.

What is the power rule?

The power rule says

ddx xn=n xn−1.\frac{d}{dx}\,x^n = n\,x^{n-1}.

Bring the exponent down in front and lower it by one. For a positive integer nn the proof is a single binomial expansion:

(x+h)n=xn+nxn−1h+(n2)xn−2h2+⋯+hn.(x+h)^n = x^n + n x^{n-1} h + \binom{n}{2} x^{n-2} h^2 + \cdots + h^n.

Subtract xnx^n and divide by hh:

(x+h)n−xnh=nxn−1+(n2)xn−2h+⋯+hn−1.\frac{(x+h)^n - x^n}{h} = n x^{n-1} + \binom{n}{2} x^{n-2} h + \cdots + h^{n-1}.

Every term after the first still contains a factor of hh, so as h→0h \to 0 only nxn−1n x^{n-1} survives. That is the whole proof.

The rule holds for every real exponent, not only positive integers. The general case needs the exponential and logarithm (we prove it in the section on exe^x below), but the practical point is that you should rewrite roots and reciprocals as powers first. The exponent rules do the conversion:

ddx 1x2=ddx x−2=−2x−3=−2x3,\frac{d}{dx}\,\frac{1}{x^2} = \frac{d}{dx}\,x^{-2} = -2x^{-3} = -\frac{2}{x^3},

ddx x=ddx x1/2=12x−1/2=12x,\frac{d}{dx}\,\sqrt{x} = \frac{d}{dx}\,x^{1/2} = \tfrac{1}{2}x^{-1/2} = \frac{1}{2\sqrt{x}},

ddx x3/2=32x1/2=32x,ddx 1x3=ddx x−1/3=−13x−4/3.\frac{d}{dx}\,x^{3/2} = \tfrac{3}{2}x^{1/2} = \tfrac{3}{2}\sqrt{x}, \qquad \frac{d}{dx}\,\frac{1}{\sqrt[3]{x}} = \frac{d}{dx}\,x^{-1/3} = -\tfrac{1}{3}x^{-4/3}.

A common slip with negative exponents is lowering the exponent the wrong way: −2−1=−3-2 - 1 = -3, not −1-1. With fractions, write the subtraction out: 32−1=12\tfrac{3}{2} - 1 = \tfrac{1}{2}.

How do you use the product rule?

For a product of two functions,

(fg)′=f′g+fg′.(fg)' = f'g + fg'.

The cleanest way to see why is to picture f(x) g(x)f(x)\,g(x) as the area of a rectangle with sides ff and gg. Nudge xx by a small amount Δx\Delta x. The sides grow to f+Δff + \Delta f and g+Δgg + \Delta g, and the area grows by three pieces.

The product rule as the area of a growing rectanglef · gg · Δff · ΔgΔf · ΔgfΔfgΔgnegligibleas Δ → 0new area − old area = f · Δg + g · Δf + Δf · Δgdivide by Δx and let Δx → 0: (fg)′ = f g′ + g f′

The product rule as area. When x changes, the rectangle with sides f and g gains two thin strips, f·Δg and g·Δf, plus a corner Δf·Δg. The strips are first-order small; the corner is a product of two small quantities and vanishes faster than either.

Writing it out,

Δ(fg)=(f+Δf)(g+Δg)−fg=f Δg+g Δf+Δf Δg.\Delta(fg) = (f + \Delta f)(g + \Delta g) - fg = f\,\Delta g + g\,\Delta f + \Delta f\,\Delta g.

Divide by Δx\Delta x:

Δ(fg)Δx=f ΔgΔx+g ΔfΔx+Δf⋅ΔgΔx.\frac{\Delta(fg)}{\Delta x} = f\,\frac{\Delta g}{\Delta x} + g\,\frac{\Delta f}{\Delta x} + \Delta f\cdot\frac{\Delta g}{\Delta x}.

As Δx→0\Delta x \to 0 the first two terms become fg′fg' and gf′gf'. In the last term, Δg/Δx→g′\Delta g/\Delta x \to g' while Δf→0\Delta f \to 0 (a differentiable function is continuous), so the corner contributes nothing. That is the product rule.

Worked example. Differentiate y=x2sin⁡xy = x^2 \sin x. Take f=x2f = x^2 and g=sin⁡xg = \sin x, so f′=2xf' = 2x and g′=cos⁡xg' = \cos x:

y′=2xsin⁡x+x2cos⁡x.y' = 2x\sin x + x^2\cos x.

The classic mistake is to differentiate each factor and multiply: (fg)′=f′g′(fg)' = f'g'. It is wrong, and one number shows it. Take f(x)=g(x)=xf(x) = g(x) = x. Then fg=x2fg = x^2, whose derivative at x=3x = 3 is 66. But f′g′=1⋅1=1f'g' = 1 \cdot 1 = 1. The picture shows what the false rule throws away: it keeps only the red corner, the one piece that does not matter, and discards both blue strips.

For three factors, apply the rule twice: (fgh)′=f′gh+fg′h+fgh′(fgh)' = f'gh + fg'h + fgh'. Each term differentiates one factor and leaves the others alone.

What is the quotient rule?

For a quotient,

(fg)′=f′g−fg′g2,g≠0.\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}, \qquad g \neq 0.

The mnemonic is “low d-high minus high d-low, over low squared”: the denominator (“low”) times the derivative of the numerator (“d-high”), minus the numerator times the derivative of the denominator, all over the denominator squared. Unlike the product rule, the order matters because of the minus sign.

The quotient rule is not a new fact. Write f/g=f⋅g−1f/g = f \cdot g^{-1}. By the chain rule (next section), (g−1)′=−g−2g′(g^{-1})' = -g^{-2}g'. Then the product rule gives

(fg−1)′=f′g−1+f⋅(−g−2g′)=f′g−fg′g2=f′g−fg′g2.\left(f g^{-1}\right)' = f' g^{-1} + f \cdot \left(-g^{-2} g'\right) = \frac{f'}{g} - \frac{f g'}{g^2} = \frac{f'g - fg'}{g^2}.

Worked example. Differentiate y=x2+1x−1y = \dfrac{x^2 + 1}{x - 1}. High is x2+1x^2 + 1 with d-high 2x2x; low is x−1x - 1 with d-low 11:

y′=(x−1)(2x)−(x2+1)(1)(x−1)2=x2−2x−1(x−1)2.y' = \frac{(x-1)(2x) - (x^2+1)(1)}{(x-1)^2} = \frac{x^2 - 2x - 1}{(x-1)^2}.

At x=3x = 3 this is (9−6−1)/4=1/2(9 - 6 - 1)/4 = 1/2. A quick numerical check: y(3.001)≈5.000500y(3.001) \approx 5.000500 and y(2.999)≈4.999500y(2.999) \approx 4.999500, a rise of about 0.0010.001 over a run of 0.0020.002, slope 0.50.5.

When the denominator is a constant or a simple power, skip the quotient rule. x3+57\dfrac{x^3 + 5}{7} is just 17(x3+5)\tfrac{1}{7}(x^3 + 5), and 3x4=3x−4\dfrac{3}{x^4} = 3x^{-4} is a power-rule job.

How does the chain rule work?

The chain rule handles a function inside another function. If yy depends on uu and uu depends on xx, rates multiply:

dydx=dydu⋅dudx.\frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx}.

Think of gears: if uu changes 3 times as fast as xx, and yy changes 2 times as fast as uu, then yy changes 2×3=62 \times 3 = 6 times as fast as xx. In function notation, (f(g(x)))′=f′(g(x)) g′(x)\bigl(f(g(x))\bigr)' = f'(g(x))\,g'(x): differentiate the outer function, leaving the inner function untouched inside it, then multiply by the derivative of the inner function.

One layer deep.

ddxsin⁡(x2)=cos⁡(x2)⋅2x,ddxe3x=e3x⋅3=3e3x.\frac{d}{dx}\sin(x^2) = \cos(x^2)\cdot 2x, \qquad \frac{d}{dx}e^{3x} = e^{3x}\cdot 3 = 3e^{3x}.

ddx(2x+1)5=5(2x+1)4⋅2=10(2x+1)4.\frac{d}{dx}(2x+1)^5 = 5(2x+1)^4 \cdot 2 = 10(2x+1)^4.

ddx1+x2=ddx(1+x2)1/2=12(1+x2)−1/2⋅2x=x1+x2.\frac{d}{dx}\sqrt{1+x^2} = \frac{d}{dx}(1+x^2)^{1/2} = \tfrac{1}{2}(1+x^2)^{-1/2}\cdot 2x = \frac{x}{\sqrt{1+x^2}}.

Two layers deep. y=sin⁡2(3x)y = \sin^2(3x) means (sin⁡(3x))2\bigl(\sin(3x)\bigr)^2. Peel from the outside: the square, then the sine, then the 3x3x:

y′=2sin⁡(3x)⋅cos⁡(3x)⋅3=6sin⁡(3x)cos⁡(3x)=3sin⁡(6x),y' = 2\sin(3x)\cdot\cos(3x)\cdot 3 = 6\sin(3x)\cos(3x) = 3\sin(6x),

using the double-angle identity at the end.

Three layers. y=esin⁡(x2)y = e^{\sin(x^2)} is an exponential of a sine of a square:

y′=esin⁡(x2)⋅cos⁡(x2)⋅2x.y' = e^{\sin(x^2)}\cdot\cos(x^2)\cdot 2x.

One factor per layer, always. If you count three nested functions and your answer has two factors, you have dropped one.

Common mistakes.

  1. Forgetting the inner derivative. ddx(2x+1)5≠5(2x+1)4\frac{d}{dx}(2x+1)^5 \neq 5(2x+1)^4. The factor 22 is the chain rule.
  2. Differentiating the inside too early. ddxsin⁡(x2)\frac{d}{dx}\sin(x^2) is not cos⁡(2x)\cos(2x). The outer derivative keeps x2x^2 inside; the 2x2x goes outside as a multiplier.
  3. Confusing sin⁡2x\sin^2 x with sin⁡(x2)\sin(x^2). The first is (sin⁡x)2(\sin x)^2 with derivative 2sin⁡xcos⁡x2\sin x\cos x; the second has derivative 2xcos⁡(x2)2x\cos(x^2).

The chain rule is also the engine of machine learning: backpropagation is the chain rule applied through thousands of layers, as explained in How Does Automatic Differentiation Work?.

What is the derivative of e^x and ln x?

The exponential function is its own derivative:

ddxex=ex.\frac{d}{dx}e^x = e^x.

This is not a coincidence of the number 2.718…2.718\ldots; it is the property that defines it. Among all exponentials axa^x, the slope at x=0x = 0 equals 11 exactly when a=ea = e, and that pins down the slope everywhere because ex+h−ex=ex(eh−1)e^{x+h} - e^x = e^x(e^h - 1). The story of why this number keeps appearing is in Why Is e Everywhere?.

Other bases. Since ax=exln⁡aa^x = e^{x\ln a}, the chain rule gives

ddxax=exln⁡a⋅ln⁡a=axln⁡a.\frac{d}{dx}a^x = e^{x \ln a}\cdot \ln a = a^x \ln a.

For example, ddx2x\frac{d}{dx}2^x at x=3x = 3 is 8ln⁡2≈5.5458\ln 2 \approx 5.545.

Natural logarithm. If y=ln⁡xy = \ln x then ey=xe^y = x. Differentiate both sides with respect to xx, using the chain rule on the left: ey y′=1e^y\,y' = 1, so

ddxln⁡x=1ey=1x,x>0.\frac{d}{dx}\ln x = \frac{1}{e^y} = \frac{1}{x}, \qquad x > 0.

For negative xx, ln⁡(−x)\ln(-x) has derivative 1−x⋅(−1)=1x\frac{1}{-x}\cdot(-1) = \frac{1}{x}, which is why the cheat sheet lists ddxln⁡∣x∣=1x\frac{d}{dx}\ln\lvert x\rvert = \frac{1}{x} for every x≠0x \neq 0. For other bases, log⁡ax=ln⁡x/ln⁡a\log_a x = \ln x/\ln a, so its derivative is 1xln⁡a\frac{1}{x\ln a}. The rules that make these conversions legitimate are derived in Why Logarithm Rules Work.

The general power rule. For x>0x > 0 and any real nn, xn=enln⁡xx^n = e^{n\ln x}, so ddxxn=enln⁡x⋅nx=xn⋅nx=nxn−1\frac{d}{dx}x^n = e^{n\ln x}\cdot \frac{n}{x} = x^n\cdot\frac{n}{x} = nx^{n-1}. That closes the gap left in the power-rule section.

Logarithmic differentiation. What is the derivative of xxx^x? Neither the power rule (exponent not constant) nor the exponential rule (base not constant) applies. Take logs first: ln⁡y=xln⁡x\ln y = x\ln x. Differentiate both sides:

y′y=ln⁡x+x⋅1x=ln⁡x+1⟹ddxxx=xx(ln⁡x+1).\frac{y'}{y} = \ln x + x\cdot\frac{1}{x} = \ln x + 1 \quad\Longrightarrow\quad \frac{d}{dx}x^x = x^x(\ln x + 1).

At x=2x = 2: 4(ln⁡2+1)≈6.7734(\ln 2 + 1) \approx 6.773. The same trick tames long products and quotients, since logs turn them into sums.

What are the derivatives of sin x and cos x?

Everything here rests on one limit, measured in radians:

lim⁡h→0sin⁡hh=1,lim⁡h→0cos⁡h−1h=0.\lim_{h\to 0}\frac{\sin h}{h} = 1, \qquad \lim_{h \to 0}\frac{\cos h - 1}{h} = 0.

The first is usually proved with the squeeze theorem, covered in How to Find Limits; the second follows from it. Now expand with the angle-addition formula:

sin⁡(x+h)−sin⁡xh=sin⁡x⋅cos⁡h−1h+cos⁡x⋅sin⁡hh  ⟶  sin⁡x⋅0+cos⁡x⋅1=cos⁡x.\frac{\sin(x+h) - \sin x}{h} = \sin x\cdot\frac{\cos h - 1}{h} + \cos x\cdot\frac{\sin h}{h} \;\longrightarrow\; \sin x \cdot 0 + \cos x\cdot 1 = \cos x.

So ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x, and the same computation gives ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x. These hold only in radians; in degrees every derivative picks up a factor π/180\pi/180, which is why calculus always uses radians.

The other four come from the quotient rule. For tangent:

ddxtan⁡x=ddxsin⁡xcos⁡x=cos⁡xcos⁡x−sin⁡x(−sin⁡x)cos⁡2x=1cos⁡2x=sec⁡2x,\frac{d}{dx}\tan x = \frac{d}{dx}\frac{\sin x}{\cos x} = \frac{\cos x\cos x - \sin x(-\sin x)}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x,

using sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1. Likewise

ddxcot⁡x=−csc⁡2x,ddxsec⁡x=sec⁡xtan⁡x,ddxcsc⁡x=−csc⁡xcot⁡x.\frac{d}{dx}\cot x = -\csc^2 x, \qquad \frac{d}{dx}\sec x = \sec x\tan x, \qquad \frac{d}{dx}\csc x = -\csc x\cot x.

A memory aid: the three “co-” functions get a minus sign. For the definitions and identities behind these, see Sine, Cosine and Tangent.

Inverse trig, briefly. If y=arcsin⁡xy = \arcsin x then sin⁡y=x\sin y = x, so cos⁡y⋅y′=1\cos y \cdot y' = 1 and y′=1/cos⁡y=1/1−x2y' = 1/\cos y = 1/\sqrt{1 - x^2} (the root is positive because yy lies in [−π/2,π/2][-\pi/2, \pi/2]). The same method gives

ddxarccos⁡x=−11−x2,ddxarctan⁡x=11+x2.\frac{d}{dx}\arccos x = -\frac{1}{\sqrt{1-x^2}}, \qquad \frac{d}{dx}\arctan x = \frac{1}{1+x^2}.

How does implicit differentiation work?

Not every curve is a graph y=f(x)y = f(x). The circle x2+y2=25x^2 + y^2 = 25 is a relation between xx and yy, and solving for yy splits it into two halves. Implicit differentiation skips that step: differentiate both sides with respect to xx, treating yy as an unknown function of xx, so each yy term gets a dy/dxdy/dx from the chain rule.

2x+2y dydx=0⟹dydx=−xy.2x + 2y\,\frac{dy}{dx} = 0 \quad\Longrightarrow\quad \frac{dy}{dx} = -\frac{x}{y}.

At the point (3,4)(3, 4) the slope is −3/4-3/4. As a check, the radius to (3,4)(3,4) has slope 4/34/3, and a tangent to a circle is perpendicular to the radius: (4/3)(−3/4)=−1(4/3)(-3/4) = -1.

Related rates. The same idea with time as the variable. A 5-metre ladder leans against a wall. Its foot is xx metres from the wall and its top is yy metres up, so x2+y2=25x^2 + y^2 = 25, the same circle. The foot slides away at 0.50.5 metres per second. How fast is the top falling when the foot is 3 metres out?

Differentiate with respect to tt:

2xdxdt+2ydydt=0⟹dydt=−xy dxdt.2x\frac{dx}{dt} + 2y\frac{dy}{dt} = 0 \quad\Longrightarrow\quad \frac{dy}{dt} = -\frac{x}{y}\,\frac{dx}{dt}.

When x=3x = 3, y=4y = 4, so dydt=−34(0.5)=−0.375\frac{dy}{dt} = -\frac{3}{4}(0.5) = -0.375 metres per second. The top falls at 37.537.5 centimetres per second, and that rate grows as the ladder flattens, because x/yx/y grows.

What are higher derivatives used for?

Differentiate a derivative and you get the second derivative, f′′(x)f''(x) or d2ydx2\frac{d^2y}{dx^2}. Go again for the third, and so on. For the ball, h(t)=20t−4.9t2h(t) = 20t - 4.9t^2:

h′(t)=20−9.8t,h′′(t)=−9.8.h'(t) = 20 - 9.8t, \qquad h''(t) = -9.8.

The second derivative of position is acceleration: a constant −9.8-9.8 metres per second squared, which is gravity. The velocity falls by 9.89.8 m/s every second, from 2020 at launch to 00 at the top.

Concavity. Where f′′>0f'' > 0 the slope is increasing and the graph bends upward like a cup; where f′′<0f'' < 0 it bends downward like a cap. A point where f′′f'' changes sign is an inflection point.

Second derivative test. At a critical point where f′(c)=0f'(c) = 0: if f′′(c)>0f''(c) > 0 it is a local minimum, if f′′(c)<0f''(c) < 0 a local maximum, and if f′′(c)=0f''(c) = 0 the test says nothing. Take f(x)=x4−4x3f(x) = x^4 - 4x^3. Then f′(x)=4x3−12x2=4x2(x−3)f'(x) = 4x^3 - 12x^2 = 4x^2(x-3), with critical points x=0x = 0 and x=3x = 3. Next, f′′(x)=12x2−24xf''(x) = 12x^2 - 24x, so f′′(3)=36>0f''(3) = 36 > 0: a minimum, with f(3)=−27f(3) = -27. But f′′(0)=0f''(0) = 0, and the test is silent. Looking at the sign of f′f' settles it: 4x2(x−3)4x^2(x-3) is negative on both sides of 00, so the function keeps decreasing through x=0x = 0, which is a flat inflection point, not an extremum.

Higher derivatives also build polynomial approximations: the coefficients of a Taylor series are f(n)(a)/n!f^{(n)}(a)/n!, so knowing every derivative at one point can rebuild the whole function. The first derivative alone drives Newton’s method for finding roots.

How do you combine the derivative rules?

Real functions use several rules at once. Work from the outermost structure inward: is the whole thing a sum, a product, a quotient or a composition? Apply that rule, then deal with each piece the same way. Afterwards, check numerically with a symmetric difference quotient,

f′(x)≈f(x+h)−f(x−h)2h,f'(x) \approx \frac{f(x+h) - f(x-h)}{2h},

whose error shrinks like h2h^2, so h=0.001h = 0.001 typically gives five or six correct digits.

Example 1: product and chain. Differentiate f(x)=e−x2sin⁡(3x)f(x) = e^{-x^2}\sin(3x). It is a product. The first factor needs the chain rule, (e−x2)′=−2x e−x2\left(e^{-x^2}\right)' = -2x\,e^{-x^2}, and so does the second, (sin⁡3x)′=3cos⁡3x\left(\sin 3x\right)' = 3\cos 3x. The product rule gives

f′(x)=−2x e−x2sin⁡(3x)+3e−x2cos⁡(3x)=e−x2(3cos⁡3x−2xsin⁡3x).f'(x) = -2x\,e^{-x^2}\sin(3x) + 3e^{-x^2}\cos(3x) = e^{-x^2}\bigl(3\cos 3x - 2x\sin 3x\bigr).

At x=0.5x = 0.5: e−0.25(3cos⁡1.5−sin⁡1.5)≈0.7788×(0.2122−0.9975)≈−0.6116e^{-0.25}\bigl(3\cos 1.5 - \sin 1.5\bigr) \approx 0.7788 \times (0.2122 - 0.9975) \approx -0.6116. Numerically, (f(0.501)−f(0.499))/0.002≈−0.61158\bigl(f(0.501) - f(0.499)\bigr)/0.002 \approx -0.61158. They agree.

Example 2: quotient and chain. Differentiate g(x)=x2x2+4g(x) = \dfrac{x^2}{\sqrt{x^2+4}}. High is x2x^2 with d-high 2x2x; low is (x2+4)1/2(x^2+4)^{1/2}, with d-low xx2+4\frac{x}{\sqrt{x^2+4}} by the chain rule. So

g′(x)=2xx2+4−x2⋅xx2+4x2+4.g'(x) = \frac{2x\sqrt{x^2+4} - x^2\cdot\dfrac{x}{\sqrt{x^2+4}}}{x^2+4}.

Multiply top and bottom by x2+4\sqrt{x^2+4} to clear the nested fraction:

g′(x)=2x(x2+4)−x3(x2+4)3/2=x3+8x(x2+4)3/2.g'(x) = \frac{2x(x^2+4) - x^3}{(x^2+4)^{3/2}} = \frac{x^3 + 8x}{(x^2+4)^{3/2}}.

At x=2x = 2: 8+1683/2=24162=322≈1.06066\dfrac{8 + 16}{8^{3/2}} = \dfrac{24}{16\sqrt{2}} = \dfrac{3}{2\sqrt 2} \approx 1.06066. The symmetric difference quotient with h=0.001h = 0.001 gives 1.060661.06066. Agreement again.

Simplifying is optional for correctness but worth doing: the tidy form shows at a glance that g′(x)g'(x) has the sign of xx, so gg falls to its minimum at x=0x = 0 and rises on either side.

Who discovered the derivative rules?

Isaac Newton worked out his calculus in the mid-1660s and called derivatives fluxions: the rates at which “flowing” quantities change in time, written with a dot, x˙\dot{x}. His Method of Fluxions was written around 1671 but not published until 1736, after his death.

Gottfried Wilhelm Leibniz published first. His Nova Methodus pro Maximis et Minimis, in the October 1684 issue of Acta Eruditorum, set out rules for the differentials of sums, products, quotients and powers, stating them without proof. In his notation the product rule reads d(xv)=x dv+v dxd(xv) = x\,dv + v\,dx, which is the rectangle argument above in miniature. The dy/dxdy/dx notation, with the chain rule built into its shape, is his, and it is still the notation that makes the chain rule look obvious.

The prime notation f′(x)f'(x) was popularised by Joseph-Louis Lagrange in his Théorie des fonctions analytiques of 1797, part of his attempt to found calculus on power series instead of infinitesimals. All three notations survive: Newton’s dot in physics for time derivatives, Leibniz’s dy/dxdy/dx wherever variables need tracking, and Lagrange’s prime for compact work with a single variable. The fundamental theorem of calculus, which both Newton and Leibniz grasped, then turns every derivative rule in this article into an integration rule run backwards.

Every rule here comes from one limit, the difference quotient. You only had to take that limit once for each rule, and after that the rules do the work.


Related topics: What Is a Derivative?, How to Find Limits, Exponent Rules, Why Logarithm Rules Work, Why Is e Everywhere?, Sine, Cosine and Tangent, Taylor Series, Newton’s Method, Fundamental Theorem of Calculus, Automatic Differentiation

Frequently asked

What are the basic derivative rules?

The constant rule says a constant has derivative zero. The power rule says x to the n differentiates to n times x to the n minus 1. Constant multiples pass through the derivative, and the derivative of a sum is the sum of the derivatives. The product rule handles f times g, the quotient rule handles f over g, and the chain rule handles a function inside another function. Add the derivatives of e to the x, ln x, sine and cosine and you can differentiate almost any formula you meet.

What is the power rule for derivatives?

The power rule says the derivative of x to the n is n times x to the n minus 1: bring the exponent down as a coefficient and lower the exponent by one. It works for every real exponent, not just positive whole numbers, so 1 over x squared differentiates to minus 2 over x cubed and the square root of x differentiates to 1 over twice the square root of x.

How do you use the chain rule?

Identify the outer function and the inner function, differentiate the outer function while leaving the inner one untouched, then multiply by the derivative of the inner function. For sin of x squared, the outer function is sine and the inner is x squared, so the derivative is cos of x squared times 2x. With several layers, you peel them from the outside in and multiply one factor per layer.

What is the difference between the product rule and the quotient rule?

The product rule differentiates f times g and gives f prime g plus f g prime, a sum with no denominator. The quotient rule differentiates f over g and gives g f prime minus f g prime, all over g squared. The quotient rule has a minus sign, so order matters, and a squared denominator. It is not a separate fact: it follows from the product rule applied to f times 1 over g, with the chain rule used on 1 over g.

What is the derivative of e^x and ln x?

The derivative of e to the x is e to the x itself, which is the property that singles out the number e. The derivative of ln x is 1 over x for positive x, and the derivative of ln of the absolute value of x is 1 over x for every nonzero x. For another base a, the derivative of a to the x is a to the x times ln a.

What is implicit differentiation?

Implicit differentiation finds dy/dx when y is tied to x by an equation rather than given by a formula y equals something. You differentiate both sides with respect to x, treat y as a function of x so every y term picks up a factor dy/dx by the chain rule, and then solve for dy/dx. For the circle x squared plus y squared equals 25, this gives dy/dx equal to minus x over y, so the slope at the point (3, 4) is minus 3/4.