Calculus: Differentiation and Integration with Applications

Mathematics · Differentiation (first principles, the power, product, quotient and chain rules), tangents and normals, velocity and acceleration, maximum and minimum points and optimisation; then integration (indefinite and definite integrals), finding a curve, area under and between curves, and motion, with WAEC

The big idea

Differentiate → gradient and rate of change. Integrate → area and total amount. They undo each other.

One map for the whole topic: displacement, velocity and acceleration are linked by differentiating (gradient) one way and integrating (area) the other way
One map for the whole topic: displacement, velocity and acceleration are linked by differentiating (gradient) one way and integrating (area) the other way

Differentiate when asked for a gradient, tangent, normal, rate of change, velocity from displacement, acceleration, or a maximum, minimum or turning point. Integrate when asked for the equation of a curve from dy/dx, an area under or between curves, distance from velocity, velocity from acceleration, or a total amount.

PART A: DIFFERENTIATION

What dy/dx means

A car moves so that its distance is s = t2 metres. Its average speed between t = 2 and t = 2 + h is ((2 + h)2 − 4) ÷ h = 4 + h. As h shrinks to zero (1, 0.1, 0.01 …), the average speed settles at 4 m/s. That limiting value is the derivative.

dy/dx ("dee-y by dee-x") is the rate of change of y with respect to x. At any point it equals the gradient of the tangent to the curve there. Other notations: f′(x), y′.

dy/dx is the gradient of the tangent: for y = x², the tangent at (2, 4) is y = 4x − 4, with gradient 4
dy/dx is the gradient of the tangent: for y = x², the tangent at (2, 4) is y = 4x − 4, with gradient 4

Differentiation from first principles

dy/dx = lim (h → 0) [f(x + h) − f(x)] ÷ h

The four steps examiners mark: write f(x + h) → subtract f(x) → divide by h → let h → 0.

The rules

  • Power rule: y = axn → dy/dx = naxn − 1 (bring the power down, then reduce it by 1)
  • Constant: d/dx(7) = 0; linear: d/dx(5x) = 5
  • Sums and differences: differentiate term by term
  • Rewrite first: 1/x2 = x−2, √x = x½

Product rule: y = uv → dy/dx = v·(du/dx) + u·(dv/dx)

Quotient rule: y = u/v → dy/dx = (v·du/dx − u·dv/dx) ÷ v2 ("bottom first" in the numerator)

Chain rule (function of a function): y = f(u), u = g(x) → dy/dx = (dy/du) × (du/dx)

Sine and cosine (x in radians; mainly Further Maths and UTME): d/dx(sin x) = cos x; d/dx(cos x) = −sin x; d/dx(sin ax) = a cos ax.

Tangents and normals

  1. Find the point (x1, y1) on the curve.
  2. Find the gradient m = dy/dx at that point.
  3. Tangent: y − y1 = m(x − x1). Normal (at right angles to the tangent): gradient −1/m.
The tangent and the normal to y = x² − 3x + 2 at (3, 2)
The tangent and the normal to y = x² − 3x + 2 at (3, 2)

Rates of change and motion

If s is displacement at time t: velocity v = ds/dt and acceleration a = dv/dt.

Maximum and minimum (stationary) points

At a turning point the gradient is zero: set dy/dx = 0 and solve. Then use the second derivative d2y/dx2:

  • negative → maximum (∩)
  • positive → minimum (∪)
Stationary points of y = x³ − 3x² − 9x + 5: a maximum at (−1, 10) and a minimum at (3, −22)
Stationary points of y = x³ − 3x² − 9x + 5: a maximum at (−1, 10) and a minimum at (3, −22)

Optimisation word problems

Write the quantity to be maximised or minimised in terms of one variable, differentiate, set to zero, and check it is a maximum or minimum.

The open-box problem: squares of side x cut from a 12 cm sheet; the volume is greatest when x = 2 cm
The open-box problem: squares of side x cut from a 12 cm sheet; the volume is greatest when x = 2 cm

Differentiation traps

  1. A constant differentiates to 0, not itself.
  2. Rewrite 1/x3 as x−3 before differentiating.
  3. Negative powers go down: x−2 → −2x−3.
  4. Don't forget the chain rule: (3x + 2)5 needs × 3 from the inside.
  5. d/dx(uv) is not u′ × v′.
  6. Quotient rule: v·u′ − u·v′ (bottom first).

PART B: INTEGRATION

What is integration?

Integration is the reverse of differentiation. Differentiation finds the gradient (rate of change) of a function; integration starts from the gradient and finds the original function.

Integration is the reverse of differentiation: x³ differentiates to 3x², and 3x² integrates back to x³ + C
Integration is the reverse of differentiation: x³ differentiates to 3x², and 3x² integrates back to x³ + C

Notation and the constant of integration

∫ f(x) dx = F(x) + C

  • ∫ is the integral sign; f(x) is the integrand; dx means "with respect to x".
  • C is the constant of integration. x3 + 5, x3 − 10 and x3 + 0.5 all differentiate to 3x2, so when we integrate 3x2 we must write x3 + C.

The basic rules

Basic integration rules: power rule, sum and difference rule, constant multiple rule, and the special cases eˣ and 1/x
Basic integration rules: power rule, sum and difference rule, constant multiple rule, and the special cases eˣ and 1/x
  • Power rule: ∫ xn dx = xn + 1/(n + 1) + C (for n ≠ −1). In words: add 1 to the power, then divide by the new power.
  • Constant multiple: ∫ k f(x) dx = k ∫ f(x) dx
  • Sum and difference: integrate term by term.
  • A constant on its own: ∫ k dx = kx + C

Check by differentiating

Differentiate your answer: you should get back the integrand.

Special integrals to memorise

  • ∫ 1/x dx = ln|x| + C (the power rule fails when n = −1)
  • ∫ ex dx = ex + C
  • ∫ cos x dx = sin x + C
  • ∫ sin x dx = −cos x + C

Integrating (ax + b)n: a linear "inside"

For a bracket with a linear inside, integrate as normal and then divide by the coefficient of x:

∫ (ax + b)n dx = (ax + b)n + 1/(a(n + 1)) + C

Substitution example: ∫(2x + 3)⁵ dx = (2x + 3)⁶/12 + C
Substitution example: ∫(2x + 3)⁵ dx = (2x + 3)⁶/12 + C

Finding the equation of a curve from its gradient

If you know dy/dx and one point on the curve, integrate and then use the point to find C.

Definite integrals

A definite integral has limits. Integrate (no C needed), then substitute the upper limit minus the lower limit:

∫ab f(x) dx = [F(x)]ab = F(b) − F(a)

Area under a curve

The area between a curve y = f(x), the x-axis and the lines x = a and x = b is ∫ab f(x) dx (when the curve is above the x-axis).

Area below the x-axis and between curves

y = x² − 4x lies below the x-axis for 0 < x < 4: the integral is −32/3, so the area is 32/3 square units; and the area between y = x and y = x² is 1/6
y = x² − 4x lies below the x-axis for 0 < x < 4: the integral is −32/3, so the area is 32/3 square units; and the area between y = x and y = x² is 1/6

Area between two curves = ∫ (top curve − bottom curve) dx, between the points where they meet.

Motion by integration

Distance s = ∫ v dt (the area under a velocity–time graph) and velocity v = ∫ a dt.

A full NECO Paper 2 question

Going further (Further Maths and A-Level)

Harder integrals use extra techniques:

  • Substitution for a function and its derivative together, e.g. ∫ x ex² dx = ½ex² + C.
  • Integration by parts for products: ∫ u dv = uv − ∫ v du. For example, ∫ x ex dx = x ex − ex + C.
  • Partial fractions for rational functions, e.g. ∫ 1/((x + 1)(x + 2)) dx = ln|x + 1| − ln|x + 2| + C. (See the Algebra class for how to split the fraction.)

Integration traps

  1. Forgetting + C on an indefinite integral.
  2. Multiplying instead of dividing: ∫ x3 dx = x4/4, not 4x4.
  3. Integrating brackets directly: expand (x + 1)2 first.
  4. Subtracting the limits the wrong way round: always F(upper) − F(lower).
  5. Leaving an area below the axis negative: take the positive value.
  6. Mixing up the operations: area or distance → integrate; gradient or rate → differentiate.

Practice

  1. Differentiate y = 5x4 − 3x2 + 8.
  2. Differentiate y = (4x − 1)3.
  3. Differentiate y = 2x/(x + 3).
  4. Find the equation of the tangent to y = x2 + 1 at x = 1.
  5. Find and classify the turning point of y = x2 − 6x + 5.
  6. s = 2t3 − 9t2 + 12t. When is the particle at rest?
  7. Two positive numbers add up to 20. Find the largest possible product.
  8. Find ∫ (4x3 + 2x) dx and ∫ (1/x3) dx.
  9. Evaluate ∫ from 0 to 2 of (x2 + 2) dx.
  10. Find the area enclosed by y = 4 − x2 and the x-axis.
  11. dy/dx = 2x + 3 and the curve passes through (1, 6). Find y.
  12. Find the maximum value of y = 12x − x3 for x > 0.

Answers: 1. 20x3 − 6x · 2. 12(4x − 1)2 · 3. 6/(x + 3)2 · 4. y = 2x · 5. (3, −4), a minimum · 6. t = 1 s and t = 2 s · 7. 10 × 10 = 100 · 8. x4 + x2 + C; −1/(2x2) + C · 9. 20/3 = 6⅔ · 10. 32/3 = 10⅔ square units · 11. y = x2 + 3x + 2 · 12. 16 (at x = 2)

Previous topic: Statistics and Probability.

Check your understanding

Practise Calculus: 10 questions in study mode, with an explanation after each answer.

Start Practice