Back to Library

MTH102 LN3 Differentiation

Academic Session 2025/2026 | FUL BookBank Resources

Ready to read
MTH 102 Lecture Note 3 Differentiation

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), dydx, ddx[f(x)], or Dxy.

Key Takeaways


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) - xh

= limh → 0 hh

= 1

Therefore:

ddx(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 - 2x2h

= limh → 0 4xh + 2h2h

= limh → 0 (4x + 2h)

= 4x

Therefore:

ddx(2x2) = 4x

Example 3: Derivative of f(x) = xx + 1

Let:

f(x) = xx + 1

Then:

f(x + h) = x + hx + h + 1

Using first principles:

f′(x) = limh → 0 x + hx + h + 1 - xx + 1h

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 hh(x + h + 1)(x + 1)

= limh → 0 1(x + h + 1)(x + 1)

= 1(x + 1)2

Exam Points


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:

ddx(c) = 0

Example:

If y = 7, then dydx = 0.

3.2 Power Rule

If y = xn, where n is a real number, then:

ddx(xn) = nxn - 1

Examples

1. If y = x3, then:

dydx = 3x2

2. If y = √x, rewrite it as y = x1/2. Then:

dydx = 12x-1/2

= 12√x

3. If y = 4x2, rewrite as y = 4x-2. Then:

dydx = 4(-2)x-3

= -8x3

3.3 Constant Multiple Rule

If c is constant and f is differentiable, then:

ddx[cf(x)] = c f′(x)

Example:

If y = 6x4, then:

dydx = 24x3

3.4 Sum and Difference Rules

If f and g are differentiable, then:

ddx[f(x) + g(x)] = f′(x) + g′(x)

ddx[f(x) - g(x)] = f′(x) - g′(x)

Example

Differentiate:

f(x) = -2x3 + 9x2 - 2

Solution:

f′(x) = -6x2 + 18x

Key Takeaways


4. Product Rule

The product rule is used when two differentiable functions are multiplied.

If y = f(x)g(x), then:

dydx = 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


5. Quotient Rule

The quotient rule is used when one differentiable function is divided by another.

If:

y = f(x)g(x)

then:

dydx = g(x)f′(x) - f(x)g′(x)[g(x)]2

Example

Differentiate:

y = x2 + x - 2x3 + 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:

dydx = (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:

dydx = -x4 - 2x3 + 6x2 + 12x + 6(x3 + 6)2

Exam Points


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:

dydx = dydu × dudx

Example 1

Differentiate:

y = √(x2 + 1)

Solution:

Let:

u = x2 + 1

Then:

y = √u = u1/2

dydu = 12√u

dudx = 2x

Therefore:

dydx = 12√u × 2x

= x√u

= x√(x2 + 1)

Example 2

Differentiate:

y = (3x2 - 4)4

Solution:

Let:

u = 3x2 - 4

Then:

y = u4

dydu = 4u3

dudx = 6x

Therefore:

dydx = 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


7. Derivatives of Trigonometric Functions

The standard trigonometric derivatives must be used with angles measured in radians.

Important Trigonometric Limits

limx → 0 sin xx = 1

limx → 0 1 - cos xx = 0

These results are used to prove the derivatives of sine and cosine.

Basic Trigonometric Derivatives

FunctionDerivative
sin xcos x
cos x-sin x
tan xsec2 x
cot x-csc2 x
sec xsec x tan x
csc x-csc x cot x

Example 1

Differentiate:

y = sin(3x)

Solution:

Let u = 3x. Then y = sin u.

dydx = 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:

dydx = 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 xcos x, use the quotient rule:

ddx(tan x) = cos x(cos x) - sin x(-sin x)cos2 x

= cos2 x + sin2 xcos2 x

= 1cos2 x

= sec2 x

Exam Points


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

FunctionDerivative
sin-1x1√(1 - x2)
cos-1x-1√(1 - x2)
tan-1x11 + x2

Example 1

Differentiate:

y = sin-1(3x)

Solution:

Let u = 3x. Then:

dydx = 1√(1 - u2) × 3

= 3√(1 - 9x2)

Example 2

Differentiate:

y = cos-1(x2)

Solution:

Let u = x2. Then:

dydx = -1√(1 - u2) × 2x

= -2x√(1 - x4)

Example 3

Differentiate:

y = tan-1(2x)

Solution:

Let u = 2x = 2x-1. Then:

dudx = -2x-2 = -2x2

Since ddu(tan-1u) = 11 + u2,

dydx = 11 + (2x)2 × (-2x2)

= -2x2 + 4

Key Takeaways


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:

ddx(y) = dydx

ddx(yn) = nyn - 1dydx

Example 1

Find dydx if:

x2y - 5x = 3

Solution:

Differentiate term by term:

ddx(x2y) - ddx(5x) = ddx(3)

Using the product rule on x2y:

x2dydx + 2xy - 5 = 0

Therefore:

x2dydx = 5 - 2xy

dydx = 5 - 2xyx2

Example 2

Find dydx if:

x3 + y3 = 3xy

Solution:

Differentiate both sides:

3x2 + 3y2dydx = 3(xdydx + y)

Expand the right side:

3x2 + 3y2dydx = 3xdydx + 3y

Collect terms containing dydx:

3y2dydx - 3xdydx = 3y - 3x2

Factor:

(3y2 - 3x)dydx = 3y - 3x2

Therefore:

dydx = y - x2y2 - x

Example 3

Find dydx if:

x2 + y2 + sin y = 3

Solution:

Differentiate term by term:

2x + 2ydydx + cos y dydx = 0

Factor dydx:

(2y + cos y)dydx = -2x

Therefore:

dydx = -2x2y + cos y

Exam Points


10. Higher Derivatives

If y = f(x), then the first derivative is f′(x) or dydx. 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:

d2ydx2 or f″(x)

The third derivative is written as:

d3ydx3

In general, the nth derivative is written as:

dnydxn

Example

If:

y = cos x1 - sin x

find d2ydx2.

Solution:

Using the quotient rule:

dydx = (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

= 11 - sin x

Differentiate again:

d2ydx2 = ddx[(1 - sin x)-1]

= -(1 - sin x)-2(-cos x)

= cos x(1 - sin x)2

Key Takeaways


11. Derivatives of Logarithmic Functions

The number e is a special mathematical constant defined by:

e = limn → ∞ (1 + 1n)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

ddx(ln x) = 1x

If u is a differentiable function of x, then:

ddx(ln u) = 1u × dudx

Example 1

Differentiate:

y = ln(x3 + 1)

Solution:

Let u = x3 + 1. Then:

dydx = 1u × dudx

= 1x3 + 1 × 3x2

= 3x2x3 + 1

Example 2

Differentiate:

y = ln(sec x)

Solution:

dydx = 1sec 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) - 12 ln(x - 2)

Therefore:

dydx = 1x + 1 - 12(x - 2)

= x - 52(x + 1)(x - 2)

Logarithms to Other Bases

If a > 0 and a ≠ 1, then:

logax = ln xln a

Therefore:

ddx(logax) = 1x ln a

Example

Differentiate:

f(x) = log10(2 + sin x)

Solution:

f′(x) = cos x(2 + sin x)ln 10

Exam Points


12. Derivatives of Exponential Functions

Natural Exponential Function

The derivative of the natural exponential function is itself:

ddx(ex) = ex

If u is a differentiable function of x, then:

ddx(eu) = eududx

Example 1

Differentiate:

y = e2x2 - 1

Solution:

Let u = 2x2 - 1. Then:

dudx = 4x

Therefore:

dydx = 4x e2x2 - 1

Example 2

Differentiate:

y = etan x

Solution:

dydx = etan x sec2x

Example 3

Differentiate:

y = x2e-3/x

Solution:

Use the product rule:

dydx = x2ddx(e-3/x) + e-3/xddx(x2)

Since ddx(-3x) = 3x2,

dydx = x2e-3/x(3x2) + 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:

ddx(ax) = axln a

If u is a differentiable function of x, then:

ddx(au) = auln a × dudx

Example

Differentiate:

y = 10x2

Solution:

Let u = x2. Then:

dydx = 10uln 10 × 2x

= 2x(ln 10)10x2

Key Takeaways


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:

dydx = dydtdxdt

provided dxdt ≠ 0.

Example 1

Find dydx if:

x = t3 + t and y = 2t2

Solution:

dydt = 4t

dxdt = 3t2 + 1

Therefore:

dydx = 4t3t2 + 1

Example 2

Find dydx if:

x = sin(2t) and y = cos(4t)

Solution:

dydt = -4sin(4t)

dxdt = 2cos(2t)

Therefore:

dydx = -4sin(4t)2cos(2t) = -2sin(4t)cos(2t)

Exam Points


14. Stationary Points, Maximum Values, and Minimum Values

A stationary point occurs at a point on a curve where:

dydx = 0

At such points, the tangent to the curve is horizontal.

Stationary points may be classified as:

Second Derivative Test

Suppose dydx = 0 at x = a.

Example

Let:

y = x3 - 2x2 + x + 4

Find the stationary points and determine whether they give maximum or minimum values.

Solution:

First derivative:

dydx = 3x2 - 4x + 1

At stationary points:

3x2 - 4x + 1 = 0

Factor:

(3x - 1)(x - 1) = 0

Thus:

x = 13 or x = 1

Second derivative:

d2ydx2 = 6x - 4

At x = 13:

6(13) - 4 = 2 - 4 = -2

Since this is negative, x = 13 gives a local maximum.

The maximum value is:

y = (13)3 - 2(13)2 + 13 + 4

= 127 - 29 + 13 + 4

= 11227

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


15. Exam-Focused Formula Summary

First Principle

f′(x) = limh → 0 f(x + h) - f(x)h

Basic Rules

ddx(c) = 0

ddx(xn) = nxn - 1

ddx[cf(x)] = cf′(x)

ddx[f(x) ± g(x)] = f′(x) ± g′(x)

Product and Quotient Rules

ddx[f(x)g(x)] = f(x)g′(x) + g(x)f′(x)

ddx[f(x)g(x)] = g(x)f′(x) - f(x)g′(x)[g(x)]2

Chain Rule

dydx = dydu × dudx

Trigonometric Derivatives

ddx(sin x) = cos x

ddx(cos x) = -sin x

ddx(tan x) = sec2x

ddx(cot x) = -csc2x

ddx(sec x) = sec x tan x

ddx(csc x) = -csc x cot x

Inverse Trigonometric Derivatives

ddx(sin-1x) = 1√(1 - x2)

ddx(cos-1x) = -1√(1 - x2)

ddx(tan-1x) = 11 + x2

Logarithmic and Exponential Derivatives

ddx(ln x) = 1x

ddx(ln u) = u′u

ddx(ex) = ex

ddx(eu) = euu′

ddx(ax) = axln a

ddx(au) = auln a × u′

Parametric Differentiation

dydx = dydtdxdt

Stationary Points

dydx = 0

Maximum if d2ydx2 < 0.

Minimum if d2ydx2 > 0.


16. Practice Questions for Revision

A. First Principles

  1. Find the derivative of y = x3 + 2x from first principles.
  2. Find the derivative of f(x) = x2 + x from first principles.
  3. Find the derivative of g(x) = 4x2 + 2 from first principles.
  4. Find the derivative of y = x4 - x2 from first principles.

B. Basic Differentiation Rules

  1. Differentiate y = 7x5 - 3x4 + x2.
  2. Differentiate y = 2t4 - 6t + t - 2t2.
  3. Differentiate y = 63√x.

C. Product and Quotient Rules

  1. Differentiate f(x) = (x3 + 1)(x4 + 1).
  2. Differentiate g(x) = (x + x3)(x2 - 1).
  3. Find dydx if y = x2x + 1.
  4. Find dydx if y = x21 + √x.

D. Chain Rule and Trigonometric Functions

  1. Differentiate y = 2(x - 13)5.
  2. Differentiate f(x) = (sin x1 + cos x)3.
  3. Differentiate g(x) = (x - 2x)2.
  4. Differentiate h(x) = (3x2 - 4)4.
  5. Find the derivative of y = x2tan2(4x).

E. Inverse Trigonometric, Logarithmic, and Exponential Functions

  1. Differentiate y = sin-1(√(1 - x2)).
  2. Differentiate y = cos-1(5x2).
  3. Differentiate y = tan-1(xa).
  4. Differentiate y = esin x.
  5. Differentiate y = e-2x2.
  6. Differentiate f(x) = 2x3.
  7. Differentiate y = ln(√(x2 - 2)).

F. Implicit and Parametric Differentiation

  1. Differentiate implicitly: xy = 5.
  2. Differentiate implicitly: x2y2 + x + y = 0.
  3. Differentiate implicitly: xy + sin y = 2.
  4. Find dydx if y = sin θ and x = 3cos θ.
  5. Find dydx if y = t2 and x = 1t.

G. Higher Derivatives and Stationary Points

  1. Find d2ydx2 if y = cos2x.
  2. Find d2ydx2 if y = 12 - x.
  3. Find the stationary points and classify them for y = 2x3 + 3x2 - 36x + 5.
  4. Find the stationary points and classify them for y = x4 - 4x3.

17. Final Revision Checklist

Before an examination, make sure you can:

🏆

Mastered this topic?

Put your knowledge to the test! Take a timed practice quiz to see how well you've prepared for the exams.

🚀 Open CBT Practice Hub