Skip to content
Educora
University30 min70 / 82

Derivatives and the rules of differentiation

The derivative as a limit, its geometric and physical meaning, the table of derivatives, the sum, product, quotient and chain rules, implicit differentiation and higher derivatives.

Check yourself
In this lesson you will learn
  • Compute a derivative from the definition and explain what it means
  • Use the table of derivatives and the rules of differentiation
  • Differentiate composite and implicit functions
  • Find higher derivatives and compute velocity and acceleration

A car's speedometer, the steepness of a mountain road at one spot, the rate at which a bacterial colony grows at noon: all three are the same mathematical object, the instantaneous rate of change. In the previous lesson limits turned 0/0 into a meaningful number; now we use them to define the most-used tool of calculus, the derivative.

Definition and meaning of the derivative

Let y = f(x) and move x₀ by a small step h. The function changes by Δy = f(x₀ + h) − f(x₀), and the average rate of change Δy/h is the slope of the secant through the points (x₀, f(x₀)) and (x₀ + h, f(x₀ + h)). As h → 0 the second point slides towards the first, and the secant turns into the tangent.

f′(x₀) = lim (h→0) (f(x₀ + h) − f(x₀)) / hf′(x₀) = lim (h→0) (f(x₀ + h) − f(x₀)) / h
where:
  • f′(x₀)the derivative at x₀, the slope of the tangent
  • h = Δxthe increment of the argument
  • f(x₀ + h) − f(x₀) = Δythe increment of the function

If this limit exists, f is differentiable at x₀. Notations: f′(x), y′, dy/dx (Leibniz), and ẋ for derivatives with respect to time (Newton).

Derivatives from the definition

Using the definition, find the derivatives of f(x) = x² and g(x) = 1/x.

Show solution
f: ((x + h)² − x²)/h = (2xh + h²)/h = 2x + h → 2x as h → 0.
g: (1/(x + h) − 1/x)/h = (x − (x + h)) / (x(x + h)h) = −1/(x(x + h)) → −1/x² as h → 0.
So (x²)′ = 2x and (1/x)′ = −1/x², in agreement with the power rule xⁿ → n · xⁿ⁻¹ for n = 2 and n = −1.
Interactive
Loading simulation…
The second line is the secant of y = x² through the points with x-coordinates a and a + h; its slope is ((a + h)² − a²)/h = 2a + h. Slide h down to 0: the secant becomes the tangent with slope 2a.

Geometric meaning: f′(x₀) is the slope of the tangent, f′(x₀) = tan α, where α is the angle between the tangent and the x-axis. Physical meaning: if s(t) is the position of a body, v(t) = s′(t) is its velocity and a(t) = v′(t) = s″(t) its acceleration. In economics the derivative of cost is the marginal cost, roughly the cost of producing one more unit.

Table of derivatives

f(x)f′(x)Note
c0a constant
xⁿn · xⁿ⁻¹any real n: (x⁵)′ = 5x⁴
√x1 / (2√x)x > 0; the case n = 1/2
eˣeˣequal to its own derivative
aˣaˣ · ln aa > 0, a ≠ 1
ln x1 / xx > 0
logₐ x1 / (x · ln a)a > 0, a ≠ 1, x > 0
sin xcos xx in radians
cos x−sin xmind the minus sign
tan x1 / cos² xcos x ≠ 0
cot x−1 / sin² xsin x ≠ 0
arcsin x1 / √(1 − x²)|x| < 1
arccos x−1 / √(1 − x²)|x| < 1
arctan x1 / (1 + x²)all x

Two rows of the table follow from the remarkable limits: (sin x)′ = lim (sin(x + h) − sin x)/h = lim 2 cos(x + h/2) sin(h/2) / h = lim cos(x + h/2) · sin(h/2)/(h/2) = cos x · 1. And (eˣ)′ = lim (eˣ⁺ʰ − eˣ)/h = eˣ · lim (eʰ − 1)/h = eˣ · 1. This is exactly why e is the “natural” base: with any other base an extra factor ln a appears.

Rules of differentiation

(u ± v)′ = u′ ± v′ (c · u)′ = c · u′
where:
  • u, vdifferentiable functions of x
  • ca constant

Linearity: the derivative of a sum is the sum of the derivatives, and a constant factor comes out.

(u · v)′ = u′ · v + u · v′
where:
  • u′, v′the derivatives of the factors

The product rule (Leibniz rule)

(u / v)′ = (u′ · v − u · v′) / v²(u / v)′ = (u′ · v − u · v′) / v²
where:
  • vthe denominator, v ≠ 0

The quotient rule

(f(g(x)))′ = f′(g(x)) · g′(x) dy/dx = dy/du · du/dx(f(g(x)))′ = f′(g(x)) · g′(x) dy/dx = dy/du · du/dx
where:
  • gthe inner function, u = g(x)
  • fthe outer function, y = f(u)

The chain rule (derivative of a composite function)

Using the rules

Differentiate: a) y = x³ sin x; b) y = (x² + 1)/(x − 1); c) y = sin(3x² + 1); d) y = (2x + 1)⁵.

Show solution
a) Product rule: y′ = (x³)′ sin x + x³ (sin x)′ = 3x² sin x + x³ cos x.
b) Quotient rule: y′ = (2x(x − 1) − (x² + 1) · 1)/(x − 1)² = (x² − 2x − 1)/(x − 1)².
c) Chain rule: the outer function is sin u, the inner u = 3x² + 1: y′ = cos(3x² + 1) · 6x = 6x cos(3x² + 1).
d) Outer u⁵, inner 2x + 1: y′ = 5(2x + 1)⁴ · 2 = 10(2x + 1)⁴.
Chain rule drill

Differentiate: a) ln(x² + 4); b) √(1 + x³); c) e^(sin x); d) arctan 2x.

Show solution
Each time: derivative of the outer function (with the inside unchanged) · derivative of the inner function.
a) (1/(x² + 4)) · 2x = 2x/(x² + 4).
b) (1/(2√(1 + x³))) · 3x² = 3x²/(2√(1 + x³)).
c) e^(sin x) · cos x = cos x · e^(sin x).
d) (1/(1 + (2x)²)) · 2 = 2/(1 + 4x²).

Implicit differentiation and higher derivatives

Sometimes y is not given as y = f(x) but by an equation such as x² + y² = 25. Then we differentiate both sides with respect to x, treating y as a function of x (so (y²)′ = 2y · y′ by the chain rule), and solve for y′. The same idea gives logarithmic differentiation: take ln of both sides first, which turns powers and products into sums.

A circle and xˣ

a) Find the slope of the tangent to the circle x² + y² = 25 at the point (3, 4).
b) Differentiate y = xˣ (x > 0).

Show solution
a) 2x + 2y · y′ = 0 ⇒ y′ = −x/y.
At (3, 4): y′ = −3/4. Check: the radius to (3, 4) has slope 4/3 and the tangent is perpendicular to it: (4/3) · (−3/4) = −1. ✓
b) ln y = x ln x. Differentiate: y′/y = ln x + x · (1/x) = ln x + 1.
y′ = xˣ(ln x + 1).

Implicit differentiation also explains the inverse-function rows of the table. Let y = arctan x, so tan y = x. Differentiate: (1/cos² y) · y′ = 1, hence y′ = cos² y = 1/(1 + tan² y) = 1/(1 + x²). In the same way y = ln x gives eʸ = x, then eʸ · y′ = 1 and y′ = 1/eʸ = 1/x.

(f⁻¹)′(y₀) = 1 / f′(x₀), y₀ = f(x₀)(f⁻¹)′(y₀) = 1 / f′(x₀), y₀ = f(x₀)
where:
  • f⁻¹the inverse function of f
  • f′(x₀)the derivative at x₀, f′(x₀) ≠ 0

Derivative of an inverse function: at corresponding points the slopes of two mutually inverse graphs are reciprocals.

f″(x) = (f′(x))′ f⁽ⁿ⁾(x) = (f⁽ⁿ⁻¹⁾(x))′
where:
  • f″the second derivative, the rate of change of the slope (acceleration in physics)
  • f⁽ⁿ⁾the n-th derivative

Useful patterns: (eᵏˣ)⁽ⁿ⁾ = kⁿeᵏˣ; the derivatives of sin x repeat every 4 steps: sin → cos → −sin → −cos → sin.

Velocity and acceleration

A body moves along a line according to s(t) = t³ − 6t² + 9t (s in metres, t in seconds). Find v(t) and a(t), the moments when the body stops, and its acceleration at t = 3 s.

Show solution
v(t) = s′(t) = 3t² − 12t + 9 = 3(t − 1)(t − 3) m/s.
The body stops when v = 0: at t = 1 s and t = 3 s.
a(t) = v′(t) = s″(t) = 6t − 12 m/s².
a(3) = 18 − 12 = 6 m/s². (At t = 1 s, a = −6 m/s²: the body is braking and turns back.)

Key points

  • f′(x₀) = lim (h→0) (f(x₀ + h) − f(x₀))/h: the slope of the tangent and the instantaneous rate of change.
  • Key derivatives: (xⁿ)′ = nxⁿ⁻¹, (eˣ)′ = eˣ, (ln x)′ = 1/x, (sin x)′ = cos x, (cos x)′ = −sin x.
  • Product: (uv)′ = u′v + uv′; quotient: (u/v)′ = (u′v − uv′)/v².
  • Chain rule: (f(g(x)))′ = f′(g(x)) · g′(x); never forget the inner derivative.
  • For implicit functions differentiate both sides; in motion s′ = v and s″ = a.

Check yourself

10 questions. Every correct answer earns XP.

1 / 10
f(x) = x⁴ − 3x + 2. Find f′(1).