Differentiation is the mathematical process of finding the rate at which one quantity changes with respect to another. If y = f(x), the derivative of y with respect to x measures how rapidly y changes when x changes.
Geometrically, the derivative of a function at a point is the gradient of the tangent line to the curve at that point. If the derivative is positive, the curve is increasing. If it is negative, the curve is decreasing. If it is zero, the curve may have a stationary point.
The derivative of f(x) may be written in several equivalent forms:
f′(x), dy⁄dx, d⁄dx[f(x)], or Dxy.
The derivative of a function may be obtained directly from the limit definition. This is called differentiation from first principles.
For a function y = f(x), the average gradient between x and x + h is:
f(x + h) - f(x)⁄h
As h approaches zero, the second point approaches the first point, and the secant line becomes a tangent line. Therefore, the derivative is:
f′(x) = limh → 0 f(x + h) - f(x)⁄h
This formula is the fundamental definition of the derivative.
Let f(x) = x. Then:
f(x + h) = x + h
Using first principles:
f′(x) = limh → 0 (x + h) - x⁄h
= limh → 0 h⁄h
= 1
Therefore:
d⁄dx(x) = 1
Let f(x) = 2x2. Then:
f(x + h) = 2(x + h)2
= 2(x2 + 2xh + h2)
= 2x2 + 4xh + 2h2
Hence:
f′(x) = limh → 0 2x2 + 4xh + 2h2 - 2x2⁄h
= limh → 0 4xh + 2h2⁄h
= limh → 0 (4x + 2h)
= 4x
Therefore:
d⁄dx(2x2) = 4x
Let:
f(x) = x⁄x + 1
Then:
f(x + h) = x + h⁄x + h + 1
Using first principles:
f′(x) = limh → 0 x + h⁄x + h + 1 - x⁄x + 1⁄h
Combining the fractions in the numerator gives:
f′(x) = limh → 0 (x + h)(x + 1) - x(x + h + 1)⁄h(x + h + 1)(x + 1)
Expanding the numerator:
(x + h)(x + 1) - x(x + h + 1)
= x2 + xh + x + h - x2 - xh - x
= h
Therefore:
f′(x) = limh → 0 h⁄h(x + h + 1)(x + 1)
= limh → 0 1⁄(x + h + 1)(x + 1)
= 1⁄(x + 1)2
First principles is fundamental, but it is often too long for routine work. Differentiation rules allow us to find derivatives quickly and accurately.
If c is a constant, then:
d⁄dx(c) = 0
Example:
If y = 7, then dy⁄dx = 0.
If y = xn, where n is a real number, then:
d⁄dx(xn) = nxn - 1
1. If y = x3, then:
dy⁄dx = 3x2
2. If y = √x, rewrite it as y = x1/2. Then:
dy⁄dx = 1⁄2x-1/2
= 1⁄2√x
3. If y = 4⁄x2, rewrite as y = 4x-2. Then:
dy⁄dx = 4(-2)x-3
= -8⁄x3
If c is constant and f is differentiable, then:
d⁄dx[cf(x)] = c f′(x)
Example:
If y = 6x4, then:
dy⁄dx = 24x3
If f and g are differentiable, then:
d⁄dx[f(x) + g(x)] = f′(x) + g′(x)
d⁄dx[f(x) - g(x)] = f′(x) - g′(x)
Differentiate:
f(x) = -2x3 + 9x2 - 2
Solution:
f′(x) = -6x2 + 18x
The product rule is used when two differentiable functions are multiplied.
If y = f(x)g(x), then:
dy⁄dx = f(x)g′(x) + g(x)f′(x)
In words: derivative of the first times the second, plus derivative of the second times the first.
Differentiate:
h(x) = (3x - 2x2)(5 + 4x)
Solution:
Let u = 3x - 2x2 and v = 5 + 4x.
Then:
u′ = 3 - 4x
v′ = 4
By the product rule:
h′(x) = u v′ + v u′
= (3x - 2x2)(4) + (5 + 4x)(3 - 4x)
= 12x - 8x2 + 15 - 8x - 16x2
= -24x2 + 4x + 15
The quotient rule is used when one differentiable function is divided by another.
If:
y = f(x)⁄g(x)
then:
dy⁄dx = g(x)f′(x) - f(x)g′(x)⁄[g(x)]2
Differentiate:
y = x2 + x - 2⁄x3 + 6
Solution:
Let f(x) = x2 + x - 2 and g(x) = x3 + 6.
Then:
f′(x) = 2x + 1
g′(x) = 3x2
By the quotient rule:
dy⁄dx = (x3 + 6)(2x + 1) - (x2 + x - 2)(3x2)⁄(x3 + 6)2
Expanding the numerator:
(x3 + 6)(2x + 1) = 2x4 + x3 + 12x + 6
(x2 + x - 2)(3x2) = 3x4 + 3x3 - 6x2
Therefore:
dy⁄dx = -x4 - 2x3 + 6x2 + 12x + 6⁄(x3 + 6)2
The chain rule is used to differentiate composite functions. A composite function is a function inside another function.
If y = f(u) and u = g(x), then:
dy⁄dx = dy⁄du × du⁄dx
Differentiate:
y = √(x2 + 1)
Solution:
Let:
u = x2 + 1
Then:
y = √u = u1/2
dy⁄du = 1⁄2√u
du⁄dx = 2x
Therefore:
dy⁄dx = 1⁄2√u × 2x
= x⁄√u
= x⁄√(x2 + 1)
Differentiate:
y = (3x2 - 4)4
Solution:
Let:
u = 3x2 - 4
Then:
y = u4
dy⁄du = 4u3
du⁄dx = 6x
Therefore:
dy⁄dx = 4u3 × 6x
= 24x(3x2 - 4)3
Differentiate:
f(x) = 1⁄(3x - 4)2
Solution:
Rewrite as:
f(x) = (3x - 4)-2
Let:
u = 3x - 4
Then:
f(u) = u-2
f′(u) = -2u-3
u′(x) = 3
Therefore:
f′(x) = -2u-3 × 3
= -6u-3
= -6⁄(3x - 4)3
The standard trigonometric derivatives must be used with angles measured in radians.
limx → 0 sin x⁄x = 1
limx → 0 1 - cos x⁄x = 0
These results are used to prove the derivatives of sine and cosine.
| Function | Derivative |
|---|---|
| sin x | cos x |
| cos x | -sin x |
| tan x | sec2 x |
| cot x | -csc2 x |
| sec x | sec x tan x |
| csc x | -csc x cot x |
Differentiate:
y = sin(3x)
Solution:
Let u = 3x. Then y = sin u.
dy⁄dx = cos u × 3
= 3 cos(3x)
Differentiate:
g(x) = sin(4x2 - 3)
Solution:
Let u = 4x2 - 3. Then:
g′(x) = cos u × 8x
= 8x cos(4x2 - 3)
Differentiate:
y = x6 cos x + 2x5
Solution:
Use the product rule on x6 cos x:
dy⁄dx = x6(-sin x) + cos x(6x5) + 10x4
= -x6 sin x + 6x5 cos x + 10x4
= x4(-x2 sin x + 6x cos x + 10)
Differentiate:
y = tan x
Solution:
Since tan x = sin x⁄cos x, use the quotient rule:
d⁄dx(tan x) = cos x(cos x) - sin x(-sin x)⁄cos2 x
= cos2 x + sin2 x⁄cos2 x
= 1⁄cos2 x
= sec2 x
Inverse trigonometric functions include sin-1x, cos-1x, and tan-1x. These are also written as arcsin x, arccos x, and arctan x.
| Function | Derivative |
|---|---|
| sin-1x | 1⁄√(1 - x2) |
| cos-1x | -1⁄√(1 - x2) |
| tan-1x | 1⁄1 + x2 |
Differentiate:
y = sin-1(3x)
Solution:
Let u = 3x. Then:
dy⁄dx = 1⁄√(1 - u2) × 3
= 3⁄√(1 - 9x2)
Differentiate:
y = cos-1(x2)
Solution:
Let u = x2. Then:
dy⁄dx = -1⁄√(1 - u2) × 2x
= -2x⁄√(1 - x4)
Differentiate:
y = tan-1(2⁄x)
Solution:
Let u = 2⁄x = 2x-1. Then:
du⁄dx = -2x-2 = -2⁄x2
Since d⁄du(tan-1u) = 1⁄1 + u2,
dy⁄dx = 1⁄1 + (2⁄x)2 × (-2⁄x2)
= -2⁄x2 + 4
A function is given explicitly when y is written directly in terms of x, such as y = x2 + 1.
A function is given implicitly when x and y are mixed together in one equation, such as:
x2y - 5x = 3
or:
x3 + y3 = 3xy
When differentiating implicitly, treat y as a function of x. Therefore:
d⁄dx(y) = dy⁄dx
d⁄dx(yn) = nyn - 1dy⁄dx
Find dy⁄dx if:
x2y - 5x = 3
Solution:
Differentiate term by term:
d⁄dx(x2y) - d⁄dx(5x) = d⁄dx(3)
Using the product rule on x2y:
x2dy⁄dx + 2xy - 5 = 0
Therefore:
x2dy⁄dx = 5 - 2xy
dy⁄dx = 5 - 2xy⁄x2
Find dy⁄dx if:
x3 + y3 = 3xy
Solution:
Differentiate both sides:
3x2 + 3y2dy⁄dx = 3(xdy⁄dx + y)
Expand the right side:
3x2 + 3y2dy⁄dx = 3xdy⁄dx + 3y
Collect terms containing dy⁄dx:
3y2dy⁄dx - 3xdy⁄dx = 3y - 3x2
Factor:
(3y2 - 3x)dy⁄dx = 3y - 3x2
Therefore:
dy⁄dx = y - x2⁄y2 - x
Find dy⁄dx if:
x2 + y2 + sin y = 3
Solution:
Differentiate term by term:
2x + 2ydy⁄dx + cos y dy⁄dx = 0
Factor dy⁄dx:
(2y + cos y)dy⁄dx = -2x
Therefore:
dy⁄dx = -2x⁄2y + cos y
If y = f(x), then the first derivative is f′(x) or dy⁄dx. Since the derivative is often another function of x, it can also be differentiated.
The derivative of the first derivative is called the second derivative and is written as:
d2y⁄dx2 or f″(x)
The third derivative is written as:
d3y⁄dx3
In general, the nth derivative is written as:
dny⁄dxn
If:
y = cos x⁄1 - sin x
find d2y⁄dx2.
Solution:
Using the quotient rule:
dy⁄dx = (1 - sin x)(-sin x) - cos x(-cos x)⁄(1 - sin x)2
= -sin x + sin2x + cos2x⁄(1 - sin x)2
= 1 - sin x⁄(1 - sin x)2
= 1⁄1 - sin x
Differentiate again:
d2y⁄dx2 = d⁄dx[(1 - sin x)-1]
= -(1 - sin x)-2(-cos x)
= cos x⁄(1 - sin x)2
The number e is a special mathematical constant defined by:
e = limn → ∞ (1 + 1⁄n)n
Its approximate value is:
e ≈ 2.71828
The function ex is called the natural exponential function. Its inverse is the natural logarithm, written as:
ln x
Important identities:
ln(ex) = x
eln x = x
d⁄dx(ln x) = 1⁄x
If u is a differentiable function of x, then:
d⁄dx(ln u) = 1⁄u × du⁄dx
Differentiate:
y = ln(x3 + 1)
Solution:
Let u = x3 + 1. Then:
dy⁄dx = 1⁄u × du⁄dx
= 1⁄x3 + 1 × 3x2
= 3x2⁄x3 + 1
Differentiate:
y = ln(sec x)
Solution:
dy⁄dx = 1⁄sec x × sec x tan x
= tan x
Differentiate:
y = ln(x + 1⁄√(x - 2))
Solution:
Use logarithmic laws first:
y = ln(x + 1) - ln(√(x - 2))
Since √(x - 2) = (x - 2)1/2,
y = ln(x + 1) - 1⁄2 ln(x - 2)
Therefore:
dy⁄dx = 1⁄x + 1 - 1⁄2(x - 2)
= x - 5⁄2(x + 1)(x - 2)
If a > 0 and a ≠ 1, then:
logax = ln x⁄ln a
Therefore:
d⁄dx(logax) = 1⁄x ln a
Differentiate:
f(x) = log10(2 + sin x)
Solution:
f′(x) = cos x⁄(2 + sin x)ln 10
The derivative of the natural exponential function is itself:
d⁄dx(ex) = ex
If u is a differentiable function of x, then:
d⁄dx(eu) = eudu⁄dx
Differentiate:
y = e2x2 - 1
Solution:
Let u = 2x2 - 1. Then:
du⁄dx = 4x
Therefore:
dy⁄dx = 4x e2x2 - 1
Differentiate:
y = etan x
Solution:
dy⁄dx = etan x sec2x
Differentiate:
y = x2e-3/x
Solution:
Use the product rule:
dy⁄dx = x2d⁄dx(e-3/x) + e-3/xd⁄dx(x2)
Since d⁄dx(-3⁄x) = 3⁄x2,
dy⁄dx = x2e-3/x(3⁄x2) + 2xe-3/x
= 3e-3/x + 2xe-3/x
= (3 + 2x)e-3/x
If a > 0 and a ≠ 1, then:
d⁄dx(ax) = axln a
If u is a differentiable function of x, then:
d⁄dx(au) = auln a × du⁄dx
Differentiate:
y = 10x2
Solution:
Let u = x2. Then:
dy⁄dx = 10uln 10 × 2x
= 2x(ln 10)10x2
Sometimes x and y are both expressed in terms of a third variable, usually t. Such equations are called parametric equations.
If:
x = x(t) and y = y(t)
then:
dy⁄dx = dy⁄dt⁄dx⁄dt
provided dx⁄dt ≠ 0.
Find dy⁄dx if:
x = t3 + t and y = 2t2
Solution:
dy⁄dt = 4t
dx⁄dt = 3t2 + 1
Therefore:
dy⁄dx = 4t⁄3t2 + 1
Find dy⁄dx if:
x = sin(2t) and y = cos(4t)
Solution:
dy⁄dt = -4sin(4t)
dx⁄dt = 2cos(2t)
Therefore:
dy⁄dx = -4sin(4t)⁄2cos(2t) = -2sin(4t)⁄cos(2t)
A stationary point occurs at a point on a curve where:
dy⁄dx = 0
At such points, the tangent to the curve is horizontal.
Stationary points may be classified as:
Suppose dy⁄dx = 0 at x = a.
Let:
y = x3 - 2x2 + x + 4
Find the stationary points and determine whether they give maximum or minimum values.
Solution:
First derivative:
dy⁄dx = 3x2 - 4x + 1
At stationary points:
3x2 - 4x + 1 = 0
Factor:
(3x - 1)(x - 1) = 0
Thus:
x = 1⁄3 or x = 1
Second derivative:
d2y⁄dx2 = 6x - 4
At x = 1⁄3:
6(1⁄3) - 4 = 2 - 4 = -2
Since this is negative, x = 1⁄3 gives a local maximum.
The maximum value is:
y = (1⁄3)3 - 2(1⁄3)2 + 1⁄3 + 4
= 1⁄27 - 2⁄9 + 1⁄3 + 4
= 112⁄27
At x = 1:
6(1) - 4 = 2
Since this is positive, x = 1 gives a local minimum.
The minimum value is:
y = 13 - 2(1)2 + 1 + 4 = 4
f′(x) = limh → 0 f(x + h) - f(x)⁄h
d⁄dx(c) = 0
d⁄dx(xn) = nxn - 1
d⁄dx[cf(x)] = cf′(x)
d⁄dx[f(x) ± g(x)] = f′(x) ± g′(x)
d⁄dx[f(x)g(x)] = f(x)g′(x) + g(x)f′(x)
d⁄dx[f(x)⁄g(x)] = g(x)f′(x) - f(x)g′(x)⁄[g(x)]2
dy⁄dx = dy⁄du × du⁄dx
d⁄dx(sin x) = cos x
d⁄dx(cos x) = -sin x
d⁄dx(tan x) = sec2x
d⁄dx(cot x) = -csc2x
d⁄dx(sec x) = sec x tan x
d⁄dx(csc x) = -csc x cot x
d⁄dx(sin-1x) = 1⁄√(1 - x2)
d⁄dx(cos-1x) = -1⁄√(1 - x2)
d⁄dx(tan-1x) = 1⁄1 + x2
d⁄dx(ln x) = 1⁄x
d⁄dx(ln u) = u′⁄u
d⁄dx(ex) = ex
d⁄dx(eu) = euu′
d⁄dx(ax) = axln a
d⁄dx(au) = auln a × u′
dy⁄dx = dy⁄dt⁄dx⁄dt
dy⁄dx = 0
Maximum if d2y⁄dx2 < 0.
Minimum if d2y⁄dx2 > 0.
Before an examination, make sure you can: