Differentiation Rules

⚡ Key Takeaways

Differentiation rules are a toolkit of algebraic shortcuts for computing derivatives without resorting to the limit definition each time. Key result: the derivative of any combination of standard functions (sums, products, quotients, compositions, powers) can be found by applying a small set of rules — the power, product, quotient, and chain rules — in sequence. Where it applies: any differentiable function built from polynomials, trig, exponentials, logarithms, and their combinations. Who/when: developed by Newton and Leibniz in the 1670s–1680s; formalized in the 19th century.

💡 The Core Insight

Every elementary function is assembled from simple pieces using four operations: addition, multiplication, division, and composition. Differentiation rules tell you how the derivative behaves under each of these operations. If you know how to differentiate the pieces, you can differentiate the whole — no limits required.

Formal Statement

DefinitionThe Derivative

The derivative of a function ff at a point xx is the limit of the difference quotient:

1
f′(x)=lim⁡h→0f(x+h)−f(x)h\quad f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}

Derivation hint: This is the slope of the secant line through (x,f(x))(x, f(x)) and (x+h,f(x+h))(x+h, f(x+h)) as the second point slides toward the first. Here f′(x)f'(x) (read "f prime of x") is also written dfdx\dfrac{df}{dx} or dydx\dfrac{dy}{dx}, where y=f(x)y = f(x). The symbol hh is the small horizontal increment that shrinks to zero.

TheoremThe Core Differentiation Rules

Let ff and gg be differentiable functions and cc a constant. Then:

Constant rule:

2
ddx[c]=0\quad \frac{d}{dx}[c] = 0

Derivation hint: A constant function has zero slope everywhere; the difference quotient is 0/h=00/h = 0.

Power rule:

3
ddx[xn]=n x n−1\quad \frac{d}{dx}[x^n] = n\,x^{\,n-1}

Derivation hint: Expand (x+h)n(x+h)^n by the binomial theorem; all terms but nxn−1hn x^{n-1}h carry a factor h2h^2 or higher and vanish.

Constant multiple rule:

4
ddx[c f(x)]=c f′(x)\quad \frac{d}{dx}[c\,f(x)] = c\,f'(x)

Derivation hint: A constant factor pulls straight out of the limit defining f′f'.

Sum/difference rule:

5
ddx[f(x)±g(x)]=f′(x)±g′(x)\quad \frac{d}{dx}[f(x) \pm g(x)] = f'(x) \pm g'(x)

Derivation hint: The limit of a sum is the sum of limits; split the difference quotient into two.

Product rule:

6
ddx[f(x) g(x)]=f′(x) g(x)+f(x) g′(x)\quad \frac{d}{dx}[f(x)\,g(x)] = f'(x)\,g(x) + f(x)\,g'(x)

Derivation hint: Add and subtract f(x+h)g(x)f(x+h)g(x) in the numerator to split into two manageable quotients.

Quotient rule:

7
ddx ⁣[f(x)g(x)]=f′(x) g(x)−f(x) g′(x)[g(x)]2\quad \frac{d}{dx}\!\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)\,g(x) - f(x)\,g'(x)}{[g(x)]^2}

Derivation hint: Write the quotient as a product f⋅g−1f\cdot g^{-1} and apply the product and chain rules, or use the add-subtract trick directly.

Chain rule:

8
ddx[f(g(x))]=f′(g(x))⋅g′(x)\quad \frac{d}{dx}\big[f(g(x))\big] = f'(g(x))\cdot g'(x)

Derivation hint: Multiply and divide the difference quotient by Δg\Delta g so it becomes (rate of ff in gg) times (rate of gg in xx).

DefinitionDerivatives of Standard Functions

The basic building blocks, memorized once:

9
ddx[sin⁡x]=cos⁡x,ddx[cos⁡x]=−sin⁡x\quad \frac{d}{dx}[\sin x] = \cos x, \qquad \frac{d}{dx}[\cos x] = -\sin x

Derivation hint: Use the limit definition with the angle-addition formulas and the limits lim⁡h→0sin⁡hh=1\lim_{h\to 0}\frac{\sin h}{h}=1 and lim⁡h→0cos⁡h−1h=0\lim_{h\to 0}\frac{\cos h - 1}{h}=0.

10
ddx[ex]=ex,ddx[ln⁡x]=1x\quad \frac{d}{dx}[e^x] = e^x, \qquad \frac{d}{dx}[\ln x] = \frac{1}{x}

Derivation hint: ee is defined precisely so that exe^x is its own derivative; differentiate eln⁡x=xe^{\ln x}=x implicitly to get the log rule.

11
ddx[tan⁡x]=sec⁡2x\quad \frac{d}{dx}[\tan x] = \sec^2 x

Derivation hint: Write tan⁡x=sin⁡x/cos⁡x\tan x = \sin x / \cos x and apply the quotient rule, using sin⁡2+cos⁡2=1\sin^2 + \cos^2 = 1.

Why It Holds

ProofThe Product Rule, Step by Step

We prove equation [6]. Start from the limit definition applied to the product p(x)=f(x)g(x)p(x) = f(x)g(x):

Step 1. Write the difference quotient:

12
p′(x)=lim⁡h→0f(x+h)g(x+h)−f(x)g(x)h\quad p'(x) = \lim_{h\to 0} \frac{f(x+h)g(x+h) - f(x)g(x)}{h}

Derivation hint: Direct substitution of p=fgp = fg into equation [1].

Step 2. Add and subtract f(x+h)g(x)f(x+h)g(x) in the numerator (it cancels to zero net):

13
p′(x)=lim⁡h→0f(x+h)g(x+h)−f(x+h)g(x)+f(x+h)g(x)−f(x)g(x)h\quad p'(x) = \lim_{h\to 0} \frac{f(x+h)g(x+h) - f(x+h)g(x) + f(x+h)g(x) - f(x)g(x)}{h}

Derivation hint: This is the key algebraic trick — inserting a "bridge" term lets us factor.

Step 3. Factor and split into two limits:

14
p′(x)=lim⁡h→0f(x+h) g(x+h)−g(x)h+lim⁡h→0g(x) f(x+h)−f(x)h\quad p'(x) = \lim_{h\to 0} f(x+h)\,\frac{g(x+h)-g(x)}{h} + \lim_{h\to 0} g(x)\,\frac{f(x+h)-f(x)}{h}

Derivation hint: Group the first two terms by their common factor f(x+h)f(x+h), the last two by g(x)g(x).

Step 4. Evaluate each limit. As h→0h\to 0, f(x+h)→f(x)f(x+h)\to f(x) (continuity), the first quotient →g′(x)\to g'(x), and the second →f′(x)\to f'(x):

15
p′(x)=f(x) g′(x)+g(x) f′(x)■\quad p'(x) = f(x)\,g'(x) + g(x)\,f'(x) \qquad \blacksquare

Derivation hint: Apply the product law for limits and the definition of derivative to each surviving factor.

∎
IN
Isaac Newton
1643–1727

Newton developed his "method of fluxions" around 1665–1666 during the plague years at his family farm. He thought of variables as quantities flowing in time, and the derivative — his fluxion, written x˙\dot{x} — as a velocity. His physical instinct (rates of change of position, velocity, acceleration) made the product and chain rules natural: the rate of a combined quantity comes from how each part flows. Newton's notation survives today in physics, where x˙\dot{x} and x¨\ddot{x} denote first and second time derivatives.

Building Intuition

🧠 Intuition

Think of the product rule geometrically. Imagine a rectangle with sides f(x)f(x) and g(x)g(x), so its area is the product f⋅gf\cdot g. When xx increases a little, both sides grow: ff by Δf\Delta f, gg by Δg\Delta g. The new area gains two thin strips — one of size g⋅Δfg\cdot \Delta f (bottom) and one of size f⋅Δgf\cdot \Delta g (side) — plus a tiny corner Δf⋅Δg\Delta f \cdot \Delta g. The corner is negligibly small (a product of two small things), so the rate of area change is f g′+g f′f\,g' + g\,f'. That is exactly equation [6]. The chain rule is about gears meshing. If gear A turns twice as fast as gear B, and gear B turns three times as fast as gear C, then A turns six times as fast as C: rates multiply. Composition f(g(x))f(g(x)) chains two gears — multiply their rates.

Figure
The product rule as growing rectangle area: the two outer strips are g Δfg\,\Delta f and f Δgf\,\Delta g; the corner Δf Δg\Delta f\,\Delta g is negligible.
f · g g·Δf f·Δg ΔfΔg g f Δf Δg Δ(fg) ≈ g·Δf + f·Δg

Worked Examples

ExampleProduct and Power Rules Combined

Given: Differentiate y=(3x2+1)(x3−5x)y = (3x^2 + 1)(x^3 - 5x).

Step 1. Identify the two factors: f(x)=3x2+1f(x) = 3x^2 + 1 and g(x)=x3−5xg(x) = x^3 - 5x.

Step 2. Differentiate each using power and sum rules (equations [3], [5]): f′(x)=6xf'(x) = 6x and g′(x)=3x2−5g'(x) = 3x^2 - 5.

Step 3. Apply the product rule, equation [6]:

16
y′=(6x)(x3−5x)+(3x2+1)(3x2−5)\quad y' = (6x)(x^3 - 5x) + (3x^2 + 1)(3x^2 - 5)

Derivation hint: Substitute f′,g,f,g′f', g, f, g' directly into f′g+fg′f'g + fg'.

Step 4. Expand and collect: y′=6x4−30x2+9x4−15x2+3x2−5y' = 6x^4 - 30x^2 + 9x^4 - 15x^2 + 3x^2 - 5.

y′=15x4−42x2−5\boxed{y' = 15x^4 - 42x^2 - 5}

(Check: expanding yy first gives 3x5−14x3−5x3x^5 - 14x^3 - 5x, whose derivative is also 15x4−42x2−515x^4 - 42x^2 - 5. ✓)

ExampleChain Rule with Trigonometry

Given: A particle's height is h(t)=sin⁡(2t2+1)h(t) = \sin(2t^2 + 1) metres, with tt in seconds. Find the velocity h′(t)h'(t) and evaluate at t=1 st = 1\text{ s}.

Step 1. Identify the composition: outer f(u)=sin⁡uf(u) = \sin u, inner u=g(t)=2t2+1u = g(t) = 2t^2 + 1.

Step 2. Differentiate each (equations [9], [3]): f′(u)=cos⁡uf'(u) = \cos u and g′(t)=4tg'(t) = 4t.

Step 3. Apply the chain rule, equation [8]:

17
h′(t)=cos⁡(2t2+1)⋅4t\quad h'(t) = \cos(2t^2 + 1)\cdot 4t

Derivation hint: Multiply the outer derivative evaluated at the inner function by the inner derivative.

Step 4. Evaluate at t=1t = 1: the inner is 2(1)2+1=32(1)^2 + 1 = 3, so h′(1)=cos⁡(3)⋅4(1)=4cos⁡(3)h'(1) = \cos(3)\cdot 4(1) = 4\cos(3). With cos⁡(3 rad)≈−0.990\cos(3\text{ rad}) \approx -0.990:

h′(1)≈−3.96 m/s\boxed{h'(1) \approx -3.96\ \text{m/s}}

Common Misconceptions

⚠️ Common mistake

The product rule is NOT (fg)′=f′g′(fg)' = f'g'. The derivative of a product is not the product of derivatives. Likewise the quotient rule is not (f/g)′=f′/g′(f/g)' = f'/g'. These are among the most common errors. You must use the full formulas [6] and [7]. Quick check: ddx[x⋅x]=ddx[x2]=2x\frac{d}{dx}[x\cdot x] = \frac{d}{dx}[x^2] = 2x, but f′g′=(1)(1)=1≠2xf'g' = (1)(1) = 1 \neq 2x.

Counterexample

The chain rule cannot be skipped. Suppose a student writes ddx[sin⁡(x2)]=cos⁡(x2)\frac{d}{dx}[\sin(x^2)] = \cos(x^2), forgetting the inner derivative. This is wrong. The correct answer is cos⁡(x2)⋅2x\cos(x^2)\cdot 2x. To see the error concretely at x=2x = 2: the function is sin⁡(4)\sin(4), and its true rate of change is cos⁡(4)⋅4≈(−0.654)(4)≈−2.62\cos(4)\cdot 4 \approx (-0.654)(4) \approx -2.62, not the incorrect cos⁡(4)≈−0.654\cos(4)\approx -0.654. Forgetting ⋅ g′(x)\cdot\, g'(x) understated the rate by a factor of 4.

Connections

connection

Differentiation rules are the computational engine behind nearly all of calculus. They feed directly into Implicit Differentiation, where you differentiate both sides of an equation and apply the chain rule to terms in yy. They underlie Related Rates problems, where the chain rule links the rates of change of connected quantities. Reversing each rule gives techniques of Integration by Parts (reverse product rule) and Integration by Substitution (reverse chain rule). The Mean Value Theorem guarantees the derivatives these rules compute actually describe average slopes, and Taylor Series uses repeated differentiation to approximate functions.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- c. 1629 — Pierre de Fermat develops a method of finding maxima and minima ("adequality") that anticipates setting a derivative to zero.
- 1665–1666 — Isaac Newton, during the plague years, invents his "method of fluxions," treating derivatives as rates of flow in time.
- 1675 — Gottfried Wilhelm Leibniz independently develops differential calculus and introduces the elegant dydx\dfrac{dy}{dx} notation and the dd symbol still used today.
- 1684 — Leibniz publishes the first calculus paper, Nova Methodus, stating the product and quotient rules in print.
- 1696 — Guillaume de l'Hôpital publishes the first calculus textbook, spreading Leibniz's rules across Europe.
- 1734 — Bishop George Berkeley critiques the logical foundations in The Analyst, mocking infinitesimals as "ghosts of departed quantities."
- 1797 — Joseph-Louis Lagrange introduces the prime notation f′(x)f'(x) and emphasizes a more algebraic foundation.
- 1821 — Augustin-Louis Cauchy gives rigorous limit-based definitions in Cours d'analyse, finally placing differentiation rules on solid ground.
- 1872 — Karl Weierstrass completes the rigorous ε\varepsilon–δ\delta formulation of limits, fully justifying every differentiation rule.

Subtleties & Limits

open-problem

The rules assume differentiability — but not every function is differentiable. A function can be continuous yet have no derivative at a corner (like ∣x∣|x| at x=0x=0) or a vertical tangent (like x1/3x^{1/3} at 00). Weierstrass shocked mathematicians in 1872 with a function that is continuous everywhere yet differentiable nowhere. The differentiation rules also assume you can identify the building blocks; for functions defined implicitly, by integrals, or as infinite series, more careful machinery is needed. A deeper subtlety: the chain rule's proof must handle the case where the inner increment Δg\Delta g equals zero, which the naive "multiply and divide" argument glosses over — a rigorous treatment requires a small extra term. These caveats motivate the careful analysis studied in real analysis.

See Also

Limits · The Derivative · Implicit Differentiation · Related Rates · Chain Rule · Optimization · Integration by Substitution · Mean Value Theorem · Taylor Series