This handout teaches topic 5, Calculus, of Mathematics: Analysis and Approaches, the course first assessed in 2021: the derivative as a gradient and a rate of change, the rules of differentiation, stationary points and optimisation, kinematics, integration and areas, and, for HL, limits and first principles, implicit differentiation and related rates, further integration techniques, volumes of revolution, differential equations and Maclaurin series. It is written for both SL and HL students. HL students also apply the further results in the sections marked AHL.
Prerequisites: functions and their graphs, exponentials and logarithms (topic 2), and trigonometric functions in radians (topic 3). In calculus, angles are always in radians.
5.2
梯度与导数
English
From average to instant
A car's trip computer shows 72 km/h as the average speed of a 36 km journey that took 30 minutes. The speedometer shows something different: the speed at this instant. An average speed is the gradient of a chord on a distance-time graph; an instantaneous speed is the gradient of the tangent. Calculus is the mathematics of getting from the first to the second by making the time interval smaller and smaller.
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
$$\frac{f(x + h) - f(x)}{h}$$
As $Q$ moves towards $P$, $h \to 0$ and 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
For $y = x^2$ at $x = 1$ the secant gradients are $4$, $3$, $2.5$, $2.1$, $2.01$, … as $Q$ comes closer, so the derivative at $x = 1$ is $2$.
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 real $n$, the derivative of $x^n$ is $nx^{n-1}$. Constants multiply through and terms are differentiated one by one:
$f$ is increasing where $f'(x) > 0$ and decreasing where $f'(x) < 0$. For $f(x) = x^3 - 3x$, $f'(x) = 3x^2 - 3 = 3(x - 1)(x + 1)$, which is negative for $-1 < x < 1$, so $f$ is decreasing there and increasing for $x < -1$ and $x > 1$.
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}$ when $m \ne 0$. If the tangent is horizontal, the normal is the vertical line $x=a$.
The tangent to y = x² at (2, 4)
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$.
Differentiating again gives the second derivative 二阶导数$f''(x)$ or $\dfrac{d^2y}{dx^2}$: the rate of change of the gradient. Where $f''(x) > 0$ the graph is concave up (the gradient is increasing); where $f''(x) < 0$ it is concave down.
A stationary point 驻点 is where $f'(x) = 0$: the tangent is horizontal. It can be a local maximum, a local minimum or a stationary point of inflection.
Fenced enclosures: optimization finds the dimensions that maximise area for a fixed fence lengthStationary points of y = x³ − 3x
Worked example.$f(x) = x^3 - 3x$.
$f'(x) = 3x^2 - 3 = 0$ gives $x = \pm 1$. The points are $(-1, 2)$ and $(1, -2)$.
$f''(x) = 6x$. At $x = -1$, $f'' = -6 < 0$: a local maximum. At $x = 1$, $f'' = 6 > 0$: a local minimum.
If $f'' = 0$ the test fails; check the sign of $f'$ on each side instead.
A point of inflection 拐点 is where the concavity changes: $f''(x) = 0$and$f''$ changes sign. For $x^3 - 3x$, $f''(x) = 6x$ changes sign at $x = 0$, so $(0, 0)$ is a point of inflection (not stationary, since $f'(0) = -3$). For $y = x^4$, $f''(0) = 0$ but $f''$ does not change sign, so the origin is a minimum, not an inflection.
Optimisation
To find the largest or smallest value of a quantity: write it as a function of one variable, differentiate, set the derivative to zero, solve, and check it is a maximum or minimum. Also check the ends of the allowed domain.
Write V in one variable, then the derivative finds the maximum: x = 2 gives 128 cm³
Worked example. Equal squares of side $x$ cm are cut from the corners of a 12 cm by 12 cm sheet, and the sides are folded up to make an open box. Find the largest volume.
$V = x(12 - 2x)^2 = 4x^3 - 48x^2 + 144x$, with $0 < x < 6$.
$\dfrac{dV}{dx} = 12x^2 - 96x + 144 = 12(x - 2)(x - 6) = 0$, so $x = 2$ (since $x = 6$ is outside the domain).
$\dfrac{d^2V}{dx^2} = 24x - 96 = -48 < 0$ at $x = 2$: a maximum.
For a particle moving in a straight line, with displacement 位移$s$ from a fixed point at time $t$:
A roller coaster is calculus you can feel: velocity is the derivative of position, and acceleration is the derivative of velocity
$$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 particle is at rest when $v = 0$ and changes direction where $v$ changes sign. It is speeding up when $v$ and $a$ have the same sign.
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 from $t = 0$ to $4$: $\displaystyle\int_0^4 (t^2 - 4t + 3)\,dt = \left[\frac{t^3}{3} - 2t^2 + 3t\right]_0^4 = \frac{4}{3}$ m.
A boundary condition fixes $C$: if $\dfrac{dy}{dx} = 6x^2$ and the curve passes through $(1, 5)$, then $y = 2x^3 + C$ and $5 = 2 + C$, so $y = 2x^3 + 3$.
Integration by inspection
When the integrand is a function of $g(x)$ multiplied by $g'(x)$, reverse the chain rule:
where $F$ is any antiderivative. Between a curve above the $x$-axis and the axis, it gives the area. Where the curve is below the axis, the integral is negative.
A function is continuous at $a$ if $\lim_{x \to a} f(x) = f(a)$, and differentiable at $a$ if this derivative limit exists. $|x|$ is continuous at 0 but not differentiable there (the left and right gradients are $-1$ and $1$).
L'Hôpital's rule
Suppose $f$ and $g$ are differentiable near $a$ (except possibly at $a$), $g'(x) \ne 0$ there, and $\lim f(x) = \lim g(x) = 0$ (or both are infinite). If the limit of $f'(x)/g'(x)$ exists, including an infinite limit, then
Check the $\frac{0}{0}$ or $\frac{\infty}{\infty}$ form each time before applying it.
Further derivatives
$f(x)$
$f'(x)$
$f(x)$
$f'(x)$
$\tan x$
$\sec^2 x$
$a^x$
$a^x\ln a$
$\sec x$
$\sec x\tan x$
$\log_a x$
$\dfrac{1}{x\ln a}$
$\csc x$
$-\csc x\cot x$
$\arcsin x$
$\dfrac{1}{\sqrt{1 - x^2}}$
$\cot x$
$-\csc^2 x$
$\arccos x$
$-\dfrac{1}{\sqrt{1 - x^2}}$
$\arctan x$
$\dfrac{1}{1 + x^2}$
Implicit differentiation
When $y$ is not given as a function of $x$, differentiate both sides with respect to $x$, using the chain rule on each $y$ term: $\dfrac{d}{dx}(y^2) = 2y\dfrac{dy}{dx}$. This is implicit differentiation 隐函数求导.
Worked example. Find the gradient of $x^2 + y^2 = 25$ at $(3, 4)$.
$2x + 2y\dfrac{dy}{dx} = 0$, so $\dfrac{dy}{dx} = -\dfrac{x}{y}$.
At $(3, 4)$: $\dfrac{dy}{dx} = -\dfrac{3}{4}$.
Products need the product rule: $\dfrac{d}{dx}(x^2y) = 2xy + x^2\dfrac{dy}{dx}$.
Related rates
When two quantities are linked and both change with time, the chain rule links their rates. These are related rates 相关变化率.
Worked example. A spherical balloon's radius increases at 0.5 cm/s. How fast is its volume increasing when $r = 10$ cm?
$V = \frac{4}{3}\pi r^3$, so $\dfrac{dV}{dr} = 4\pi r^2$.
$\displaystyle\int = \ln\lvert x + 1\rvert + 2\ln\lvert x + 3\rvert + C$.
Areas with the $y$-axis 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 made 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 potter shaping a vessel: solids of revolution are volumes formed by rotating a plane regionA 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 = \pi\left[\frac{x^2}{2}\right]_0^4 = 8\pi$.
A differential equation 微分方程 links a function with its derivatives. Under suitable continuity and uniqueness conditions on $f$, a first-order equation $\dfrac{dy}{dx} = f(x, y)$ with an initial value has one local solution curve; an initial value alone does not guarantee existence or uniqueness. When it cannot be solved exactly, Euler's method 欧拉法 steps along the tangent:
A cooling cup of coffee: Newton's law of cooling is a classic differential equation model
$$x_{n+1} = x_n + h \qquad y_{n+1} = y_n + h \times f(x_n, y_n)$$
The exact value is $2e^{0.5} \approx 3.297$. Euler underestimates here because the curve bends upwards, away from each tangent; a smaller $h$ reduces the error.
Exact methods
Separation of variables 分离变量法, for $\dfrac{dy}{dx} = f(x)g(y)$: $\displaystyle\int \frac{1}{g(y)}\,dy = \int f(x)\,dx$. For $\dfrac{dy}{dx} = 0.5y$: $\ln\lvert y\rvert = 0.5x + c$, so $y = Ae^{0.5x}$, and $y(0) = 2$ gives $y = 2e^{0.5x}$.
Homogeneous equations $\dfrac{dy}{dx} = f\!\left(\dfrac{y}{x}\right)$: substitute $y = vx$, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$, then separate. For $\dfrac{dy}{dx} = 1 + \dfrac{y}{x}$: $v + x\dfrac{dv}{dx} = 1 + v$, so $v = \ln\lvert x\rvert + c$ and $y = x\ln\lvert x\rvert + cx$.
Integrating factor 积分因子, for $\dfrac{dy}{dx} + P(x)y = Q(x)$: multiply by $e^{\int P\,dx}$, so the left side becomes $\dfrac{d}{dx}\left(ye^{\int P\,dx}\right)$.
Worked example.$\dfrac{dy}{dx} + 2y = e^{-x}$. The integrating factor is $e^{2x}$:
$$\frac{d}{dx}(ye^{2x}) = e^{x} \quad\Rightarrow\quad ye^{2x} = e^x + C \quad\Rightarrow\quad y = e^{-x} + Ce^{-2x}$$
Maclaurin series
A function can be approximated near $x = 0$ by a polynomial, its Maclaurin series 麦克劳林级数:
The linear, quadratic and cubic sums share the exponential function’s value at the center.The linear, quadratic and cubic sums share the exponential function’s value at the center.
New series come from substitution, multiplication, differentiation and integration of known ones: $e^{x}\sin x \approx \left(1 + x + \frac{x^2}{2}\right)\left(x - \frac{x^3}{6}\right) \approx x + x^2 + \frac{x^3}{3}$.
Worked example: a series from a differential equation.$\dfrac{dy}{dx} = x + y$, $y(0) = 1$.
$y'(0) = 0 + 1 = 1$.
$y'' = 1 + y'$, so $y''(0) = 2$; $y''' = y''$, so $y'''(0) = 2$.
$y \approx 1 + x + \dfrac{2}{2!}x^2 + \dfrac{2}{3!}x^3 = 1 + x + x^2 + \dfrac{x^3}{3}$.
Common mistakes.
Forgetting $+C$ on an indefinite integral, then losing marks when a point is given to find $C$.
Missing the inner derivative: $\dfrac{d}{dx}(3x+1)^4 = 12(3x+1)^3$, not $4(3x+1)^3$.
Multiplying derivatives for a product: $\dfrac{d}{dx}(uv) = u\dfrac{dv}{dx} + v\dfrac{du}{dx}$.
Using the tangent gradient $m$ for a normal. The normal has gradient $-\dfrac{1}{m}$.
Taking $f''(x) = 0$ as proof of a point of inflection. Check that $f''$ changes sign there.
Integrating straight across a root. Area below the $x$-axis gives a negative integral, so split at the roots and add the sizes.
Confusing displacement with distance: distance travelled is $\int |v|\,dt$.
HL: applying L'Hôpital's rule to a limit that is not of the form $\tfrac00$ or $\tfrac{\infty}{\infty}$.
$y' = 6x^2 - 6x - 12 = 6(x - 2)(x + 1) = 0$ at $x = -1$ and $x = 2$. $y'' = 12x - 6$: at $x = -1$, $-18 < 0$, maximum $(-1, 11)$; at $x = 2$, $18 > 0$, minimum $(2, -16)$.
$y' = 3x^2 - 12x$, $y'' = 6x - 12 = 0$ at $x = 2$, where $y = 8 - 24 + 5 = -11$. $y''$ is negative for $x < 2$ and positive for $x > 2$, so $(2, -11)$ is a point of inflection.
Sides $x$ and $20 - x$; $A = 20x - x^2$, $A' = 20 - 2x = 0$ at $x = 10$, and $A'' = -2 < 0$: a maximum. A 10 cm by 10 cm square, area 100 cm².
$s = 3t^2 - t^3 + 2$; $a = 6 - 6t$; at rest when $3t(2 - t) = 0$, at $t = 0$ and $t = 2$ s.
Displacement $= s(3) - s(0) = (27 - 27 + 2) - 2 = 0$ m. Distance: from 0 to 2, $s$ goes from 2 to 6 (4 m); from 2 to 3, from 6 to 2 (4 m). Distance $= 8$ m.