MathematicsCore22 min read

Calculus

Rates of change, and areas under curves

This topic appears in:

01

A derivative is just a speedometer

Your car's odometer tells you where you are. Your speedometer tells you how fast that is changing. Calculus is the machinery for going from the first to the second — and back again.

On a graph, "how fast it is changing" means the steepness of the curve at one exact point. That is what a derivative measures. Steep upward curve → big positive derivative. Flat → zero. Sloping down → negative.

02

The problem with "slope at a point"

Slope needs two points: rise over run. But at a single point there is no run. So we cheat: take a second point a distance h away, compute the slope of the line joining them (the secant), then slide h toward zero and see what number the slope settles on.

That settling number is the limit, and it is the derivative.

f′(x) = lim(h→0) [ f(x+h) − f(x) ] / hthe whole of differential calculus, in one line

Pull the h slider down. Watch the dashed cyan secant swing until it lies exactly on the amber tangent — and watch the "gap" readout collapse to zero.

03

The rules you will actually use

Nobody computes limits by hand after the first week. You memorise these six and you are done for most of school calculus.

RuleIf f(x) =then f′(x) =
Powerxⁿn·xⁿ⁻¹
Constantc0
Sumu + vu′ + v′
Productu · vu′v + uv′
Quotientu / v(u′v − uv′) / v²
Chainf(g(x))f′(g(x)) · g′(x)

The mistake everyone makes

The chain rule. Differentiating sin(3x) gives 3·cos(3x), not cos(3x). The inner function 3x has its own derivative of 3, and it must come along. If a function is wrapped inside another function, you always pay the inside derivative too.

05

Integration: slicing an area into strips

Now run it backwards. Instead of "how fast is this changing", ask "how much has accumulated". Distance from speed. Area under a curve.

The trick is the same trick: approximate with something crude, then take a limit. Chop the area into rectangles, add them up, and let the rectangles get infinitely thin.

Push n from 6 to 80. The error readout falls toward zero. That limit is the integral.

06

The Fundamental Theorem

Differentiation and integration are inverse operations. This is the single most useful fact in calculus, because it means you never actually have to add up infinite rectangles — you just find an antiderivative and subtract.

∫ₐᵇ f(x) dx = F(b) − F(a)where F′ = ffind the antiderivative, plug in both ends, subtract

Worked example

∫₀² x² dx. The antiderivative of x² is x³/3. So the answer is (2³/3) − (0³/3) = 8/3 ≈ 2.667. Set the visualization above to x² with n = 80 and compare the readout.

07

Differentiation from first principles

The rules are for speed; the limit definition is what they are built on, and the paper asks for a first-principles derivation at least once. The routine is fixed, so it is worth practising until it takes two minutes.

Write f(x + h), subtract f(x), divide by h, simplify until the h in the denominator cancels, then let h → 0.

Worked example

Differentiate f(x) = x² + 3x from first principles.

  1. f(x + h) = (x + h)² + 3(x + h) = x² + 2xh + h² + 3x + 3h.Expand fully. Writing (x+h)² as x² + h² is the error that ruins the whole derivation.
  2. f(x + h) − f(x) = 2xh + h² + 3h.Every term without an h cancels — which is the check that the expansion was right.
  3. Divide by h: (2xh + h² + 3h)/h = 2x + h + 3.Legitimate because h is approaching zero, not equal to it.
  4. Let h → 0: f′(x) = 2x + 3.Confirm with the power rule: d/dx(x²) = 2x and d/dx(3x) = 3 ✓

f′(x) = 2x + 3

08

What derivatives are actually used for

Three applications account for nearly all the marks in the applied half of the chapter, and all three come from the same fact: the derivative is a gradient.

  • Tangents and normals. The tangent at x = a has gradient f′(a); the normal is perpendicular to it, so its gradient is −1/f′(a). Use point-slope form with the point (a, f(a)).
  • Maxima and minima. A stationary point has f′(x) = 0. Classify it with the second derivative: f″ > 0 is a minimum, f″ < 0 a maximum, and f″ = 0 is inconclusive, so test the sign of f′ either side.
  • Rates of change. dy/dt is how fast y changes with time. Related rates chain them together: dV/dt = (dV/dr)(dr/dt).
Worked example

A closed cylindrical can is to hold 500 cm³. Find the radius that minimises its total surface area.

  1. Surface area A = 2πr² + 2πrh and volume V = πr²h = 500.Two variables, one constraint — the standard shape of an optimisation problem.
  2. From the constraint, h = 500/(πr²). Substitute: A = 2πr² + 1000/r.Reduce to one variable before differentiating. This substitution step is where the marks are.
  3. dA/dr = 4πr − 1000/r². Set it to zero: 4πr³ = 1000.Multiply through by r² to clear the fraction.
  4. r³ = 250/π, so r = 4.30 cm.
  5. d²A/dr² = 4π + 2000/r³ > 0, so it is a minimum.The second-derivative test is a mark of its own, and "it is obviously a minimum" earns nothing.

r ≈ 4.30 cm, confirmed as a minimum by the second derivative

09

The three rules that handle everything else

Differentiating xⁿ covers polynomials and nothing more. Almost every function worth differentiating is built by combining simpler ones, so three rules are needed: one for a function inside another, one for a product, and one for a quotient.

Recognising which structure you are looking at matters more than the rules themselves. Ask what the last operation performed is: if something is being raised to a power or fed into a function, it is a chain; if two functions are multiplied, it is a product; if one is divided by another, it is a quotient.

FunctionDerivativeNote
unchanged — the defining property of e
e^(f(x))f′(x)·e^(f(x))chain rule; the inner derivative comes out front
ln x1/xonly for x > 0
ln(f(x))f′(x)/f(x)derivative over the original
sin xcos xx must be in radians
cos x−sin xthe minus sign is examined constantly
tan xsec²x
tan⁻¹x1/(1 + x²)in the formula book, but worth knowing
chain:dy/dx = dy/du × du/dxproduct:d(uv)/dx = u(dv/dx) + v(du/dx)quotient: d(u/v)/dx = [v(du/dx) − u(dv/dx)] / v²the quotient rule subtracts, and the order of its two terms matters
u, v
the two component functionsname them explicitly before starting
the denominator squarednot differentiated — just squared
du/dx
derivative of the inner functionthe chain rule is hiding in every one of these

These derivatives assume radians

The result d(sin x)/dx = cos x is only true when x is measured in radians. In degrees the derivative picks up a factor of π/180. This is the deeper reason radians are used throughout A Level analysis — the calculus is simply wrong otherwise.

10

When y is not given explicitly

Sometimes a curve is defined by an equation that cannot be rearranged into y = f(x), such as x² + y² = xy + 7. Differentiating implicitly handles this: differentiate every term with respect to x, and each time a y is differentiated, the chain rule contributes a dy/dx.

Other curves are given through a third variable: x = t − e^(2t), y = t + e^(2t). These are parametric, and the gradient is found by differentiating each with respect to the parameter and dividing.

implicit:d(yⁿ)/dx = n·y^(n−1) · dy/dxd(xy)/dx = x·dy/dx + y(product rule)parametric: dy/dx = (dy/dt) ÷ (dx/dt)differentiating a y always leaves a dy/dx attached to it
dy/dx
the gradient being soughtcollect all such terms on one side, then factorise
t
the parameterit cancels in the division, leaving a gradient in t
Worked example

Find dy/dx for the curve x² + y² = xy + 7.

  1. Differentiate term by term: 2x + 2y(dy/dx) = x(dy/dx) + y + 0.The y² gives 2y·dy/dx by the chain rule, and xy needs the product rule.
  2. Gather the dy/dx terms: 2y(dy/dx) − x(dy/dx) = y − 2x.All the unknowns to one side, everything else to the other — as with any linear equation.
  3. Factorise: (2y − x)(dy/dx) = y − 2x.dy/dx is a common factor, which is what makes it solvable.
  4. dy/dx = (y − 2x)/(2y − x).The answer involves both x and y, which is normal for an implicit curve and not a sign of error.

dy/dx = (y − 2x)/(2y − x)

Practice questions

6 questions · 27 marks · full working on every one

Try each one on paper first, then open the working. The marks are shown where they are actually awarded, because that is where they are actually lost.

Short questions

3 · 7 marks

Two marks each, in the style of the short-question section of the paper. Answer in two or three lines.

SQ1[2 marks]
Differentiate y = 5x³ − 2/x with respect to x.
Model answer

Write it as 5x³ − 2x⁻¹. Then dy/dx = 15x² + 2x⁻², that is 15x² + 2/x².

Examiner tip. Rewrite every fraction and root as a power before you differentiate. The sign change on the second term catches people out.

SQ2[3 marks]
Find the gradient of the curve y = x² − 4x + 1 at the point where x = 3.
Model answer

dy/dx = 2x − 4, so at x = 3 the gradient is 2(3) − 4 = 2.

Examiner tip. Differentiate first, substitute second. Substituting into y instead of dy/dx gives the height, not the gradient.

SQ3[2 marks]
Explain how the second derivative distinguishes a maximum from a minimum.
Model answer

At a stationary point, if d²y/dx² < 0 it is a maximum; if d²y/dx² > 0 it is a minimum.

Examiner tip. Negative for a maximum — the curve is bending downwards. The sign feels backwards until you picture the shape.

Long questions

2 · 15 marks

Theory and numerical together, as they appear in the long-question section.

LQ1[7 marks]
A curve has equation y = x³ − 3x² − 9x + 5.
  1. Find dy/dx. [1]
  2. Find the coordinates of both stationary points. [4]
  3. Determine the nature of each. [2]
Mark scheme
  1. dy/dx = 3x² − 6x − 9[1]
  2. Sets it to zero: 3(x² − 2x − 3) = 0[1]
  3. Factorises: (x − 3)(x + 1) = 0, so x = 3 or x = −1[1]
  4. At x = 3: y = 27 − 27 − 27 + 5 = −22[1]
  5. At x = −1: y = −1 − 3 + 9 + 5 = 10[1]
  6. d²y/dx² = 6x − 6; at x = 3 it is +12, a minimum[1]
  7. At x = −1 it is −12, a maximum[1]

Minimum at (3, −22), maximum at (−1, 10)

Examiner tip. Setting dy/dx = 0 gives only the x values. The question asks for coordinates, so both y values are worth a mark each.

LQ2[8 marks]
An open-topped box is made from a square sheet of card of side 24 cm by cutting a square of side x cm from each corner and folding up the sides.
  1. Show that the volume is V = x(24 − 2x)². [2]
  2. Find the value of x that maximises the volume. [4]
  3. Calculate that maximum volume. [2]
Mark scheme
  1. The base is a square of side 24 − 2xa square is removed from both ends[1]
  2. The height is x, so V = x(24 − 2x)²[1]
  3. Expands: V = 576x − 96x² + 4x³[1]
  4. dV/dx = 576 − 192x + 12x²[1]
  5. Sets to zero: 12(x² − 16x + 48) = 0 → (x − 4)(x − 12) = 0[1]
  6. x = 4; x = 12 is rejected because it leaves no base[1]
  7. V = 4 × 16² = 4 × 256[1]
  8. V = 1024 cm³[1]

x = 4 cm giving V = 1024 cm³

Examiner tip. Optimisation questions always end with a solution to discard. Give the physical reason — at x = 12 the base has shrunk to nothing.

Exam questions

1 · 5 marks

Multi-part questions with a full mark scheme.

Q1[5 marks]
The displacement of a particle is s = 2t³ − 9t² + 12t metres after t seconds.
  1. Find expressions for the velocity and the acceleration. [2]
  2. Find the times at which the particle is instantaneously at rest. [2]
  3. Find the acceleration at the later of those times. [1]
Mark scheme
  1. v = ds/dt = 6t² − 18t + 12[1]
  2. a = dv/dt = 12t − 18[1]
  3. Sets v = 0: 6(t² − 3t + 2) = 0 → (t − 1)(t − 2) = 0[1]
  4. t = 1 s and t = 2 s[1]
  5. At t = 2: a = 24 − 18 = 6 m s⁻²[1]

v = 6t² − 18t + 12, a = 12t − 18; at rest at t = 1 s and 2 s; a = 6 m s⁻² at t = 2 s

Examiner tip. "At rest" means v = 0, not s = 0. Differentiating displacement once gives velocity, twice gives acceleration — the chain never varies.