Lecture Note 3: Differentiation
1. Meaning of Differentiation
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.
Key Takeaways
- Differentiation finds rate of change.
- The derivative at a point is the gradient of the tangent at that point.
- If y = f(x), then dy⁄dx means the derivative of y with respect to x.
- Differentiation is the foundation for curve sketching, optimization, motion, and many applications in science and engineering.
2. Differentiation from First Principles
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.
Example 1: Derivative of f(x) = x
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
Example 2: Derivative of f(x) = 2x2
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
Example 3: Derivative of f(x) = x⁄x + 1
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
Exam Points
- First principles always begins with f′(x) = limh → 0 f(x + h) - f(x)⁄h.
- Substitute x + h carefully wherever x appears.
- Simplify until the factor h cancels.
- Only after cancellation should h be allowed to approach zero.
3. Standard Differentiation Rules
First principles is fundamental, but it is often too long for routine work. Differentiation rules allow us to find derivatives quickly and accurately.
3.1 Derivative of a Constant
If c is a constant, then:
d⁄dx(c) = 0
Example:
If y = 7, then dy⁄dx = 0.
3.2 Power Rule
If y = xn, where n is a real number, then:
d⁄dx(xn) = nxn - 1
Examples
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
3.3 Constant Multiple Rule
If c is constant and f is differentiable, then:
d⁄dx[cf(x)] = c f′(x)
Example:
If y = 6x4, then:
dy⁄dx = 24x3
3.4 Sum and Difference Rules
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)
Example
Differentiate:
f(x) = -2x3 + 9x2 - 2
Solution:
f′(x) = -6x2 + 18x
Key Takeaways
- The derivative of a constant is zero.
- Use the power rule after writing radicals and reciprocals in index form.
- Differentiate sums and differences term by term.
- Always simplify negative powers where necessary.
4. Product Rule
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.
Example
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
Exam Points
- Use the product rule when two variable expressions are multiplied.
- Do not simply multiply the derivatives.
- You may expand first if the expression is simple, but the product rule is safer for longer products.
5. Quotient Rule
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
Example
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
Exam Points
- Use the quotient rule when both numerator and denominator contain variable expressions.
- Remember the order: denominator times derivative of numerator minus numerator times derivative of denominator.
- The denominator is always squared.
- Some quotients are easier if rewritten with negative powers before differentiating.
6. Chain Rule
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
Example 1
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)
Example 2
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
Example 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
Key Takeaways
- The chain rule is essential for powers of brackets, roots of functions, and trigonometric functions of functions.
- Differentiate the outer function first, leaving the inner function unchanged.
- Then multiply by the derivative of the inner function.
- When possible, rewrite roots and quotients using indices before differentiating.
7. Derivatives of Trigonometric Functions
The standard trigonometric derivatives must be used with angles measured in radians.
Important Trigonometric Limits
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.
Basic Trigonometric Derivatives
| 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 |
Example 1
Differentiate:
y = sin(3x)
Solution:
Let u = 3x. Then y = sin u.
dy⁄dx = cos u × 3
= 3 cos(3x)
Example 2
Differentiate:
g(x) = sin(4x2 - 3)
Solution:
Let u = 4x2 - 3. Then:
g′(x) = cos u × 8x
= 8x cos(4x2 - 3)
Example 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)
Example 4
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
Exam Points
- Trigonometric differentiation assumes radians.
- The derivative of sin x is cos x.
- The derivative of cos x is -sin x.
- Use the chain rule when the angle is not simply x.
- Remember the negative signs in d⁄dx(cos x), d⁄dx(cot x), and d⁄dx(csc x).
8. Derivatives of Inverse Trigonometric Functions
Inverse trigonometric functions include sin-1x, cos-1x, and tan-1x. These are also written as arcsin x, arccos x, and arctan x.
Standard Inverse Trigonometric Derivatives
| Function | Derivative |
|---|---|
| sin-1x | 1⁄√(1 - x2) |
| cos-1x | -1⁄√(1 - x2) |
| tan-1x | 1⁄1 + x2 |
Example 1
Differentiate:
y = sin-1(3x)
Solution:
Let u = 3x. Then:
dy⁄dx = 1⁄√(1 - u2) × 3
= 3⁄√(1 - 9x2)
Example 2
Differentiate:
y = cos-1(x2)
Solution:
Let u = x2. Then:
dy⁄dx = -1⁄√(1 - u2) × 2x
= -2x⁄√(1 - x4)
Example 3
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
Key Takeaways
- Use the chain rule for inverse trigonometric functions of another expression.
- The derivative of cos-1x has a negative sign.
- The expression under the square root in the derivatives of sin-1x and cos-1x is 1 - x2.
- Simplify carefully when the inner function is a fraction.
9. Implicit Differentiation
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
Example 1
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
Example 2
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
Example 3
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
Exam Points
- Implicit differentiation is used when y is not isolated.
- Whenever you differentiate a term involving y, multiply by dy⁄dx.
- Use the product rule when x and y are multiplied.
- After differentiating, collect all dy⁄dx terms on one side and factor.
10. Higher Derivatives
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
Example
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
Key Takeaways
- The second derivative is the derivative of the first derivative.
- Higher derivatives are found by repeated differentiation.
- The second derivative is useful for testing maximum and minimum values.
- Use clear notation so that d2y⁄dx2 is not confused with (dy⁄dx)2.
11. Derivatives of Logarithmic Functions
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
Logarithmic Derivative Rules
d⁄dx(ln x) = 1⁄x
If u is a differentiable function of x, then:
d⁄dx(ln u) = 1⁄u × du⁄dx
Example 1
Differentiate:
y = ln(x3 + 1)
Solution:
Let u = x3 + 1. Then:
dy⁄dx = 1⁄u × du⁄dx
= 1⁄x3 + 1 × 3x2
= 3x2⁄x3 + 1
Example 2
Differentiate:
y = ln(sec x)
Solution:
dy⁄dx = 1⁄sec x × sec x tan x
= tan x
Example 3
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)
Logarithms to Other Bases
If a > 0 and a ≠ 1, then:
logax = ln x⁄ln a
Therefore:
d⁄dx(logax) = 1⁄x ln a
Example
Differentiate:
f(x) = log10(2 + sin x)
Solution:
f′(x) = cos x⁄(2 + sin x)ln 10
Exam Points
- The derivative of ln x is 1⁄x.
- For ln u, multiply by u′.
- Use logarithmic laws to simplify products, quotients, and powers before differentiating.
- For logarithms not in base e, convert using logax = ln x⁄ln a.
12. Derivatives of Exponential Functions
Natural Exponential Function
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
Example 1
Differentiate:
y = e2x2 - 1
Solution:
Let u = 2x2 - 1. Then:
du⁄dx = 4x
Therefore:
dy⁄dx = 4x e2x2 - 1
Example 2
Differentiate:
y = etan x
Solution:
dy⁄dx = etan x sec2x
Example 3
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
Exponential Functions with Other Bases
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
Example
Differentiate:
y = 10x2
Solution:
Let u = x2. Then:
dy⁄dx = 10uln 10 × 2x
= 2x(ln 10)10x2
Key Takeaways
- The derivative of ex is ex.
- For eu, multiply by u′.
- For ax, multiply by ln a.
- Use product rule when exponentials multiply other functions of x.
13. Parametric Differentiation
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.
Example 1
Find dy⁄dx if:
x = t3 + t and y = 2t2
Solution:
dy⁄dt = 4t
dx⁄dt = 3t2 + 1
Therefore:
dy⁄dx = 4t⁄3t2 + 1
Example 2
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)
Exam Points
- Differentiate x and y separately with respect to the parameter.
- Divide dy⁄dt by dx⁄dt.
- Do not attempt to treat y directly as a function of x unless the parameter is first eliminated.
14. Stationary Points, Maximum Values, and Minimum Values
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:
- Local maximum points.
- Local minimum points.
- Stationary points of inflection.
Second Derivative Test
Suppose dy⁄dx = 0 at x = a.
- If d2y⁄dx2 < 0 at x = a, the point is a local maximum.
- If d2y⁄dx2 > 0 at x = a, the point is a local minimum.
- If d2y⁄dx2 = 0, the test is inconclusive; further analysis is required.
Example
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
Key Takeaways
- Stationary points occur where the first derivative is zero.
- Use the second derivative to classify stationary points.
- A negative second derivative indicates a local maximum.
- A positive second derivative indicates a local minimum.
- If the second derivative is zero, use another test because the result is inconclusive.
15. Exam-Focused Formula Summary
First Principle
f′(x) = limh → 0 f(x + h) - f(x)⁄h
Basic Rules
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)
Product and Quotient Rules
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
Chain Rule
dy⁄dx = dy⁄du × du⁄dx
Trigonometric Derivatives
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
Inverse Trigonometric Derivatives
d⁄dx(sin-1x) = 1⁄√(1 - x2)
d⁄dx(cos-1x) = -1⁄√(1 - x2)
d⁄dx(tan-1x) = 1⁄1 + x2
Logarithmic and Exponential Derivatives
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′
Parametric Differentiation
dy⁄dx = dy⁄dt⁄dx⁄dt
Stationary Points
dy⁄dx = 0
Maximum if d2y⁄dx2 < 0.
Minimum if d2y⁄dx2 > 0.
16. Practice Questions for Revision
A. First Principles
- Find the derivative of y = x3 + 2x from first principles.
- Find the derivative of f(x) = x2 + x from first principles.
- Find the derivative of g(x) = 4x2 + 2 from first principles.
- Find the derivative of y = x4 - x2 from first principles.
B. Basic Differentiation Rules
- Differentiate y = 7x5 - 3x4 + x2.
- Differentiate y = 2t4 - 6t + t - 2⁄t2.
- Differentiate y = 63√x.
C. Product and Quotient Rules
- Differentiate f(x) = (x3 + 1)(x4 + 1).
- Differentiate g(x) = (x + x3)(x2 - 1).
- Find dy⁄dx if y = x2⁄x + 1.
- Find dy⁄dx if y = x2⁄1 + √x.
D. Chain Rule and Trigonometric Functions
- Differentiate y = 2⁄(x - 13)5.
- Differentiate f(x) = (sin x⁄1 + cos x)3.
- Differentiate g(x) = (x - 2⁄x)2.
- Differentiate h(x) = (3x2 - 4)4.
- Find the derivative of y = x2tan2(4x).
E. Inverse Trigonometric, Logarithmic, and Exponential Functions
- Differentiate y = sin-1(√(1 - x2)).
- Differentiate y = cos-1(5x⁄2).
- Differentiate y = tan-1(x⁄a).
- Differentiate y = esin x.
- Differentiate y = e-2x2.
- Differentiate f(x) = 2x3.
- Differentiate y = ln(√(x2 - 2)).
F. Implicit and Parametric Differentiation
- Differentiate implicitly: xy = 5.
- Differentiate implicitly: x2y2 + x + y = 0.
- Differentiate implicitly: xy + sin y = 2.
- Find dy⁄dx if y = sin θ and x = 3cos θ.
- Find dy⁄dx if y = t2 and x = 1⁄t.
G. Higher Derivatives and Stationary Points
- Find d2y⁄dx2 if y = cos2x.
- Find d2y⁄dx2 if y = 1⁄2 - x.
- Find the stationary points and classify them for y = 2x3 + 3x2 - 36x + 5.
- Find the stationary points and classify them for y = x4 - 4x3.
17. Final Revision Checklist
Before an examination, make sure you can:
- Define differentiation as a rate of change.
- Find derivatives from first principles.
- Apply the constant, power, sum, and difference rules.
- Use the product rule and quotient rule correctly.
- Use the chain rule for composite functions.
- Differentiate trigonometric and inverse trigonometric functions.
- Differentiate logarithmic and exponential functions.
- Differentiate implicit functions.
- Differentiate parametric equations.
- Find second and higher derivatives.
- Find and classify stationary points using the second derivative test.