These are selected topics, not the whole syllabus, and every example is fictional. The derivative is the gradient at a point; stationary points have gradient…
English narration · English + 中文 subtitles burned in
5.1
Scope and prerequisites
This handout teaches topic 5, Calculus, of Mathematics: Applications and Interpretation, the course first assessed in 2021: gradients and derivatives of $ax^n$, increasing and decreasing functions, tangents and normals, stationary points and optimisation, integration of $ax^n$ and areas, and the trapezoidal rule, and, for HL, further derivatives and the chain, product and quotient rules, related rates and the second derivative, further integration and volumes of revolution, kinematics, differential equations with slope fields and Euler's method, and coupled systems with phase portraits. It is written for both SL and HL students. HL students also apply the further results in the sections marked AHL.
Prerequisites: gradients of lines and functions (topic 2), indices, and, for HL, eigenvalues and eigenvectors (topic 1).
5.2
Gradients and derivatives
Kepler's wine casks
In 1613 the astronomer Johannes Kepler bought wine for his wedding in Linz. He watched the merchant measure each barrel by pushing a rod through the hole in its side to the far corner and reading off a length, whatever the shape of the barrel. Kepler doubted that one length could give a volume, and he wrote a whole book about it. He found volumes by cutting a solid into very thin slices and adding them up, an early form of integration. He also showed that the Austrian barrel shape gave almost the largest volume for its rod length, and that near a maximum, small changes in shape hardly change the volume, so the merchants' rule was nearly fair. That is the key idea of optimisation: at a maximum the rate of change is zero.
Kepler's idea: slice and add
Secants and the tangent
The gradient of a chord, or secant 割线, between $P(x, f(x))$ and a nearby point $Q(x + h, f(x + h))$ is $\dfrac{f(x + h) - f(x)}{h}$. As $h \to 0$ the secant approaches the tangent 切线 at $P$. The limit of the secant gradients is the derivative 导数$f'(x)$, also written $\dfrac{dy}{dx}$.
Secant gradients approach the tangent gradient
The derivative has two meanings:
the gradient of the curve $y = f(x)$ at a point;
the rate of change of $y$ with respect to $x$: if $V$ is a volume in litres and $t$ is time in seconds, $\dfrac{dV}{dt}$ is in litres per second.
The power rule
For any integer $n$, the derivative of $ax^n$ is $anx^{n-1}$, and the derivative of a constant is 0. Differentiate term by term.
$f$ is increasing 递增 where $f'(x) > 0$ and decreasing 递减 where $f'(x) < 0$. For $f(x) = x^3 - 3x$, $f'(x) = 3x^2 - 3$, which is negative for $-1 < x < 1$: $f$ decreases there and increases elsewhere.
Tangents and normals
At $x = a$ the tangent has gradient $m = f'(a)$ and passes through $(a, f(a))$. The normal 法线 is perpendicular to the tangent, with gradient $-\dfrac{1}{m}$.
Worked example. For $y = x^2$ at $x = 2$: $y = 4$ and $\dfrac{dy}{dx} = 2x = 4$.
Tangent: $y - 4 = 4(x - 2)$, so $y = 4x - 4$.
Normal: gradient $-\frac{1}{4}$, so $y - 4 = -\frac{1}{4}(x - 2)$, or $x + 4y - 18 = 0$.
On a calculator paper, the GDC finds the gradient at a point directly (numerical derivative); write down the value and what it means.
A stationary point 驻点 is where $f'(x) = 0$: the tangent is horizontal. Look at the sign of $f'(x)$ on each side:
Fenced enclosures: optimisation finds the dimensions that give the largest area for a fixed length of fence
$f'$ before
$f'$ after
Point
$+$
$-$
local maximum 局部最大值
$-$
$+$
local minimum 局部最小值
Worked example.$f(x) = x^3 - 3x$. $f'(x) = 3x^2 - 3 = 0$ gives $x = \pm 1$. Since $f'$ changes from $+$ to $-$ at $x = -1$, $(-1, 2)$ is a local maximum; it changes from $-$ to $+$ at $x = 1$, so $(1, -2)$ is a local minimum.
Optimisation
To make a quantity as large or as small as possible:
Use the fixed fence length to write A in one variable; A′(x) = 0 at x = 25 gives the largest pen
Write it as a function of one variable, using any fixed condition to remove the others.
Differentiate and solve the derivative $= 0$, using the GDC if needed.
Check that it is a maximum or a minimum, and check the ends of the domain.
Answer the question asked, with units.
Worked example. A drinks can must hold 500 cm³. Find the radius that uses the least metal.
Volume: $\pi r^2h = 500$, so $h = \dfrac{500}{\pi r^2}$.
$\dfrac{dA}{dr} = 4\pi r - \dfrac{1000}{r^2} = 0$ gives $r^3 = \dfrac{250}{\pi}$, so $r \approx 4.30$ cm, and then $h \approx 8.60$ cm.
$\dfrac{dA}{dr}$ changes from negative to positive, so this is a minimum: $A \approx 349$ cm².
The best can has its height equal to its diameter. Real cans are taller and thinner, because the ends are made of thicker metal and the shape must suit a hand and a fridge: the model leaves these out.
Worked example. A farmer has 100 m of fence to make a rectangular pen against a long wall, so only three sides need fencing. With the two sides at right angles to the wall $x$ m long, the third side is $100 - 2x$ and the area is $A = x(100 - 2x) = 100x - 2x^2$, for $0 < x < 50$. $\dfrac{dA}{dx} = 100 - 4x = 0$ at $x = 25$, and $\dfrac{dA}{dx}$ changes from positive to negative there, so the largest area is $25 \times 50 = 1250$ m².
Worked example. A company's profit is $P(x) = -2x^2 + 120x - 1000$ yuan when it sells $x$ items a day. $P'(x) = -4x + 120 = 0$ at $x = 30$, and $P(30) =$ ¥800 is the maximum daily profit.
Integration 积分 reverses differentiation. For $n \ne -1$:
$$\int ax^n\,dx = \frac{a}{n + 1}x^{n + 1} + c$$
The constant of integration 积分常数$c$ appears because every constant differentiates to 0. A boundary condition, a known point on the curve, finds $c$.
Worked example. A curve has gradient $f'(x) = 6x^2 - 4x + 5$ and passes through $(1, 6)$. Then $f(x) = 2x^3 - 2x^2 + 5x + c$, and $f(1) = 5 + c = 6$, so $c = 1$ and $f(x) = 2x^3 - 2x^2 + 5x + 1$.
Definite integrals and area
The definite integral 定积分$\displaystyle\int_a^b f(x)\,dx$ is the area between the curve and the $x$-axis from $x = a$ to $x = b$, when $f(x) \ge 0$. On a calculator paper, find it with the GDC and write down the integral you used.
Worked example. The area under $y = 4 - x^2$ from $x = 0$ to $x = 2$ is $\displaystyle\int_0^2 (4 - x^2)\,dx = \left[4x - \frac{x^3}{3}\right]_0^2 = 8 - \frac{8}{3} = \frac{16}{3} \approx 5.33$.
From a rate to a total
If $r(t)$ is a rate of change, then $\displaystyle\int_a^b r(t)\,dt$ is the total change from $t = a$ to $t = b$: the area under a rate graph is an amount.
Worked example. Water flows into a tank at $r(t) = 3t^2 + 2$ litres per minute. In the first 4 minutes the tank gains $\displaystyle\int_0^4 (3t^2 + 2)\,dt = \Big[t^3 + 2t\Big]_0^4 = 64 + 8 = 72$ litres. The units of the area are (litres per minute) $\times$ minutes $=$ litres.
The area under a rate graph is an amount: 72 litres in 4 minutes
constant of integration/ˈkɒnstənt ɒv ˌɪntɪˈɡreɪʃn/
definite integral/ˈdefɪnət ˈɪntɪɡrəl/
5.5
The trapezoidal rule
When only data are known, or the function cannot be integrated, estimate the area with trapezoids. With $n$ strips of equal width $h = \dfrac{b - a}{n}$:
Trapezoids under a curve that bends downwards give an underestimate
If the curve bends downwards (concave down), as here, the straight tops of the trapezoids lie below it, so the rule underestimates the area. If the curve bends upwards, it overestimates. More, narrower strips give a better estimate.
5.6
AHL: Further differentiation
Standard derivatives and the chain rule
$f(x)$
$f'(x)$
$x^n$ ($n$ rational)
$nx^{n-1}$
$\sin x$
$\cos x$
$\cos x$
$-\sin x$
$\tan x$
$\dfrac{1}{\cos^2 x}$
$e^x$
$e^x$
$\ln x$
$\dfrac{1}{x}$
Angles are in radians. For a function of a function, use the chain rule 链式法则: if $y = g(u)$ and $u = f(x)$, then
Worked example.$\dfrac{d}{dx}(x^2\sin x) = 2x\sin x + x^2\cos x$, by the product rule 乘积法则.
Worked example.$\dfrac{d}{dx}\left(\dfrac{\ln x}{x}\right) = \dfrac{x \cdot \frac{1}{x} - \ln x \cdot 1}{x^2} = \dfrac{1 - \ln x}{x^2}$, by the quotient rule 商法则. It is zero at $x = e$, the maximum of $\frac{\ln x}{x}$.
Related rates
When two quantities both change with time, the chain rule links their rates.
Worked example. Air is pumped into a spherical balloon at 50 cm³/s. How fast is the radius growing when $r = 10$ cm? $V = \frac{4}{3}\pi r^3$, so $\dfrac{dV}{dt} = 4\pi r^2\dfrac{dr}{dt}$. Then $50 = 4\pi(100)\dfrac{dr}{dt}$, so $\dfrac{dr}{dt} \approx 0.0398$ cm/s. The radius grows ever more slowly as the balloon gets bigger.
The second derivative
The second derivative 二阶导数$f''(x)$ is the rate of change of the gradient.
$f''(x) > 0$: the curve is concave up, and a stationary point there is a minimum.
$f''(x) < 0$: the curve is concave down, and a stationary point there is a maximum.
A point of inflection 拐点 is where $f''$ changes sign.
For $f(x) = x^3 - 3x$, $f''(x) = 6x$: $f''(-1) = -6$ confirms the maximum, $f''(1) = 6$ the minimum, and $(0, 0)$ is a point of inflection.
A potter's vessel is a solid of revolution: rotating a curve about an axis gives its volume
With a linear inside, divide by its coefficient: $\displaystyle\int e^{2x}\,dx = \frac{1}{2}e^{2x} + c$ and $\displaystyle\int\cos(3x)\,dx = \frac{1}{3}\sin(3x) + c$.
If the integrand contains a function and (a multiple of) its derivative, reverse the chain rule. This is integration by inspection, or by substitution.
Worked example.$\displaystyle\int 2x(x^2 + 1)^4\,dx = \frac{(x^2 + 1)^5}{5} + c$, because $2x$ is the derivative of $x^2 + 1$. Similarly $\displaystyle\int xe^{x^2}\,dx = \frac{1}{2}e^{x^2} + c$. Check by differentiating.
Areas and volumes of revolution
The area between a curve and the $y$-axis is $\displaystyle\int_c^d x\,dy$. When a region is rotated $2\pi$ about an axis, the volume of revolution 旋转体体积 is a stack of thin discs:
$$V = \pi\int_a^b y^2\,dx \ \text{(about the } x\text{-axis)}, \qquad V = \pi\int_c^d x^2\,dy \ \text{(about the } y\text{-axis)}$$
A volume of revolution is a stack of thin discs
Worked example. The region under $y = \sqrt{x}$ for $0 \le x \le 4$ is rotated about the $x$-axis: $V = \pi\displaystyle\int_0^4 x\,dx = 8\pi \approx 25.1$. Kepler's thin slices, made exact.
For motion in a straight line, with displacement 位移$s$ at time $t$:
A high-speed train: differentiate displacement for velocity, and velocity for acceleration
$$v = \frac{ds}{dt}, \qquad a = \frac{dv}{dt} = \frac{d^2s}{dt^2}, \qquad s = \int v\,dt$$
The velocity 速度$v$ has a sign that shows direction; speed is $|v|$. The acceleration 加速度 is $a$. Displacement is $\displaystyle\int_{t_1}^{t_2} v\,dt$, but the distance travelled is $\displaystyle\int_{t_1}^{t_2} |v|\,dt$, which the GDC finds directly.
Signed areas give displacement; total area gives distance
Worked example.$v = t^2 - 4t + 3$ m/s for $0 \le t \le 4$.
$v = (t - 1)(t - 3) = 0$ at $t = 1$ and $t = 3$: the particle changes direction twice.
$a = 2t - 4$; at $t = 0$, $a = -4$ m/s².
Displacement: $\displaystyle\int_0^4 v\,dt = \frac{4}{3}$ m. Distance: $\displaystyle\int_0^4 |v|\,dt = 4$ m.
A differential equation 微分方程 links a quantity with its rate of change. “The rate of growth is proportional to the size” is $\dfrac{dN}{dt} = kN$, with solution $N = Ae^{kt}$.
If the equation has the form $\dfrac{dy}{dx} = f(x)g(y)$, use separation of variables 分离变量法:
$$\int\frac{1}{g(y)}\,dy = \int f(x)\,dx$$
Worked example.$\dfrac{dy}{dx} = xy$ with $y = 2$ when $x = 0$. Then $\displaystyle\int\frac{1}{y}\,dy = \int x\,dx$ gives $\ln y = \dfrac{x^2}{2} + c$. At $x = 0$, $c = \ln 2$, so $y = 2e^{x^2/2}$. At $x = 1$, $y \approx 3.30$.
Newton's law of cooling from topic 2 comes from $\dfrac{dT}{dt} = -k(T - 20)$: separating gives $T = 20 + Ae^{-kt}$.
Slope fields
A slope field 斜率场 draws, at many points, a short line with the gradient the differential equation gives there. Solution curves follow the lines, like leaves floating on a stream.
The solution follows the slope field; Euler's steps follow it roughly
For $\dfrac{dy}{dx} = x - y$, the slope is 0 along the line $y = x$, positive below it and negative above it. Every solution approaches the line $y = x - 1$, along which the slope is exactly 1.
Euler's method
Euler's method 欧拉法 follows the slope field in small steps of width $h$:
$x = e^{3t} + e^{-t}$ and $y = e^{3t} - e^{-t}$. In the long run the $e^{3t}$ term wins, and the point moves out along the line $y = x$.
Phase portraits
A phase portrait 相图 shows the paths $(x(t), y(t))$ in the $xy$-plane. The eigenvalues decide its shape; the origin is the equilibrium point 平衡点.
Eigenvalues
Phase portrait
Equilibrium
real, both negative
paths approach the origin, generally along curves
stable
real, both positive
paths move away from the origin, generally along curves
unstable
real, opposite signs
saddle point 鞍点: in along one eigenvector, out along the other
unstable
complex, $\alpha \pm \beta i$ with $\alpha < 0$
spiral inwards
stable
complex, $\alpha > 0$
spiral outwards
unstable
imaginary, $\pm\beta i$
closed loops round the origin (a centre)
stable, but paths do not approach the origin
For a spiral, find the direction of rotation by working out $\frac{dx}{dt}$ and $\frac{dy}{dt}$ at one point, such as $(1, 0)$.
Real eigenvalues of opposite sign give a saddle; complex ones with negative real part give a stable spiral
Worked example.$\dfrac{dx}{dt} = -x - 2y$, $\dfrac{dy}{dt} = 2x - y$. The matrix $\begin{pmatrix} -1 & -2 \\ 2 & -1 \end{pmatrix}$ has eigenvalues $-1 \pm 2i$: the real part is negative, so the paths spiral into the origin. At $(1, 0)$, $\frac{dx}{dt} = -1$ and $\frac{dy}{dt} = 2$: the point moves up, so the spiral turns anticlockwise.
Euler's method for systems and second-order equations
Euler's method works for a coupled system, one step at a time for both variables:
Euler's method steps along the tangent; the estimate drifts from the true solution
For $\dfrac{dx}{dt} = x + 2y$, $\dfrac{dy}{dt} = 2x + y$ from $(2, 0)$ with $h = 0.1$: the rates are 2 and 4, so the next point is $(2.2, 0.4)$. The exact values at $t = 0.1$ are $(2.25, 0.445)$.
A second-order equation such as $\dfrac{d^2x}{dt^2} + 2\dfrac{dx}{dt} + 5x = 0$, a damped spring, becomes a coupled system with $y = \dfrac{dx}{dt}$:
$$\frac{dx}{dt} = y, \qquad \frac{dy}{dt} = -5x - 2y$$
The matrix $\begin{pmatrix} 0 & 1 \\ -5 & -2 \end{pmatrix}$ has eigenvalues $-1 \pm 2i$: the spring oscillates with decreasing size. From $x = 1$, $y = 0$ with $h = 0.1$, one Euler step gives $x = 1$, $y = -0.5$.
Common mistakes.
Differentiating $\dfrac{1}{x^2}$ without rewriting it: write $x^{-2}$, then the derivative is $-2x^{-3}$.
Forgetting $+C$ on an indefinite integral.
Using the tangent gradient $m$ for a normal. The normal has gradient $-\dfrac{1}{m}$.
Counting strips wrongly in the trapezoidal rule: $n$ strips have width $h = \dfrac{b-a}{n}$ and $n + 1$ ordinates.
Integrating straight across a root. Area below the $x$-axis gives a negative integral, so split at the roots.
Not checking the ends of the domain in an optimisation question.
HL: missing the inner derivative in the chain rule: $\dfrac{d}{dx}e^{3x} = 3e^{3x}$.
HL: dropping the units or a rate in a related-rates question; write the chain such as $\dfrac{dV}{dt} = \dfrac{dV}{dr}\cdot\dfrac{dr}{dt}$ first.
HL: separating variables and forgetting the constant, then being unable to use the initial condition.
HL: using $\pi\int (R - r)^2\,dx$ for a washer. The volume is $\pi\int (R^2 - r^2)\,dx$.
HL: in Euler's method, updating $x$ and $y$ with different step sizes, or using the new gradient in the same step.