Skip to content

Differentiation

AQA A-Level MathematicsTopic 7

Video lesson for this topic Open the video page
6:12

Differentiation

Section G is differentiation. These are the standard results: x to the n gives n x to the n minus 1; e to the k x gives k e to the k x; ln x gives 1 over x; a…

English narration · English and 中文 subtitles you can switch

7.1

Scope and prerequisites

AQA A-level Mathematics 7357, section G (Differentiation), version 1.3 (first assessment 2018). Original teaching notes.

Prerequisites: gradients of straight lines, the laws of indices, functions and graphs from section B, and exponentials and logarithms from section F.

These are original teaching examples, not official AQA material.

Vocabulary Train
English
differentiation/ˌdɪfəˌrenʃɪˈeɪʃn/
7.2

Differentiation 微分

Gradient at a point

A speedometer shows how fast you are going right now, not your average over the whole trip. Differentiation finds that kind of rate: the gradient of a curve at a single point. The result is the derivative 导数, written $\frac{dy}{dx}$ or $f'(x)$. It tells you where a graph rises and falls, where it turns, and how fast one quantity changes when another one does.

A roller coaster train on a looping track, with the lift hill behind it
A roller coaster on its looping track: the derivative measures the instantaneous rate of change of position

From chord to tangent: first principles

Take two points on $y=f(x)$, at $x$ and $x+h$. The chord joining them has gradient $\frac{f(x+h)-f(x)}h$. As $h$ gets smaller, the chord gets closer to the tangent. So

$$f'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}h.$$

Worked example. Differentiate $f(x)=x^2$ from first principles.

$$\frac{(x+h)^2-x^2}h=\frac{2xh+h^2}h=2x+h\;\to\;2x\text{ as }h\to0.$$

Worked example. Differentiate $\sin x$ from first principles ($x$ in radians). Use $\sin(x+h)=\sin x\cos h+\cos x\sin h$:

$$\frac{\sin(x+h)-\sin x}h=\sin x\cdot\frac{\cos h-1}h+\cos x\cdot\frac{\sin h}h.$$

For small $h$, $\cos h-1\approx-\frac{h^2}2$ and $\sin h\approx h$. So the first fraction gets close to 0 and the second to 1, and $\frac{d}{dx}\sin x=\cos x$.

Left: y = x³ − 3x with local maximum (−1, 2) and local minimum (1, −2). Right: a secant through x = 1 approaching the tangent of gradient 2 on y = x²
f′(x) = 0 finds the candidates; f″ classifies them. The derivative is the limit of secant gradients as h → 0

Standard derivatives

$f(x)$ $f'(x)$ $f(x)$ $f'(x)$
$x^n$ $nx^{n-1}$ $\sin kx$ $k\cos kx$
$e^{kx}$ $ke^{kx}$ $\cos kx$ $-k\sin kx$
$\ln x$ $\frac1x$ $\tan kx$ $k\sec^2kx$
$a^x$ $a^x\ln a$ a constant $0$

The trig results are true only when $x$ is in radians. To differentiate a sum, differentiate each term. Before you differentiate, write roots and fractions as powers: $\sqrt x=x^{\frac12}$ and $\frac3{x^2}=3x^{-2}$.

Worked example. Differentiate $y=4\sqrt x-\dfrac3{x^2}$.

$$y=4x^{\frac12}-3x^{-2}\;\Rightarrow\;\frac{dy}{dx}=2x^{-\frac12}+6x^{-3}=\frac2{\sqrt x}+\frac6{x^3}.$$

Tangents, normals, increasing and decreasing

The gradient of the tangent at $x=a$ is $f'(a)$. The normal 法线 is perpendicular to the tangent, so its gradient is $-\frac1{f'(a)}$.

Worked example. For $y=x^3-3x$ at $x=2$: $y=8-6=2$ and $\frac{dy}{dx}=3x^2-3=9$.

  • Tangent: $y-2=9(x-2)$, so $y=9x-16$.
  • Normal: gradient $-\frac19$, so $y-2=-\frac19(x-2)$, which is $x+9y-20=0$.

A function is increasing where $f'(x)>0$ and decreasing where $f'(x)<0$. For $y=x^3-3x$, $f'(x)=3(x-1)(x+1)$, so the function is decreasing for $-1<x<1$ and increasing for $x<-1$ and $x>1$.

Stationary points and the second derivative

At a stationary point 驻点, $f'(x)=0$. It may be a maximum, a minimum or a stationary point of inflection. The second derivative 二阶导数 $f''(x)$ tells you which.

A curve with a local maximum and a local minimum marked; the derivative's sign is shown on each stretch of the curve.
Stationary means the tangent is horizontal; the sign change classifies it.
$f''(a)$ Nature
$<0$ local maximum 极大值
$>0$ local minimum 极小值
$=0$ no decision: check the sign of $f'$ on each side

Worked example. Find and classify the stationary points of $y=x^3-3x$.

$y'=3x^2-3=0$ gives $x=\pm1$. Then $y''=6x$.

  • $x=-1$: $y=2$ and $y''=-6<0$, so $(-1,2)$ is a maximum.
  • $x=1$: $y=-2$ and $y''=6>0$, so $(1,-2)$ is a minimum.

Concavity. A curve is convex 凸 where $f''(x)>0$ (it bends upward, like a cup) and concave 凹 where $f''(x)<0$. A point of inflection 拐点 is where $f''$ changes sign. $y=x^3$ has $y'=0$ at the origin, but it keeps rising: the origin is a stationary point of inflection.

Common mistake. Saying $f''(a)=0$ means inflection. $y=x^4$ has $y''(0)=0$, but $x=0$ is a minimum. Check that $f''$ actually changes sign.

The chain rule

For a function of a function, $y=f(u)$ with $u=g(x)$:

$$\frac{dy}{dx}=\frac{dy}{du}\times\frac{du}{dx}.$$

In words: differentiate the outside, keep the inside, then multiply by the derivative of the inside.

  • $y=(3x^2+1)^5$: $\frac{dy}{dx}=5(3x^2+1)^4\times6x=30x(3x^2+1)^4$.
  • $y=e^{\sin x}$: $\frac{dy}{dx}=\cos x\,e^{\sin x}$.
  • $y=\ln(x^2+4)$: $\frac{dy}{dx}=\frac{2x}{x^2+4}$.

The chain rule also gives $\frac{dy}{dx}=\dfrac1{dx/dy}$, which is useful when $x$ is given in terms of $y$.

The product and quotient rules

$$\frac{d}{dx}(uv)=u'v+uv',\qquad\frac{d}{dx}\left(\frac uv\right)=\frac{u'v-uv'}{v^2}.$$

Worked example: product. Differentiate $y=xe^x$ and find the stationary point.

$u=x$ and $v=e^x$, so $\frac{dy}{dx}=1\cdot e^x+x\cdot e^x=e^x(1+x)$. Since $e^x>0$, the gradient is zero only at $x=-1$, where $y=-\frac1e$.

Common mistake. $(uv)'\ne u'v'$. At $x=1$, $u'v'=e$, but the true gradient is $2e$.

Worked example: quotient. $y=\dfrac{\ln x}x$, $x>0$. Find the stationary point.

$u=\ln x$, $u'=\frac1x$, $v=x$, $v'=1$:

$$\frac{dy}{dx}=\frac{\frac1x\cdot x-\ln x\cdot1}{x^2}=\frac{1-\ln x}{x^2}.$$

$1-\ln x=0$ gives $x=e$, $y=\frac1e$. The gradient is positive before $x=e$ and negative after, so it is a maximum.

Implicit differentiation

Some curves are not written as $y=\dots$. Differentiate every term with respect to $x$. A term in $y$ picks up a factor $\frac{dy}{dx}$ by the chain rule:

$$\frac{d}{dx}(y^n)=ny^{n-1}\frac{dy}{dx},\qquad\frac{d}{dx}(xy)=y+x\frac{dy}{dx}.$$

Worked example. Find the gradient of $x^2+y^2=25$ at $(3,4)$.

$$2x+2y\frac{dy}{dx}=0\;\Rightarrow\;\frac{dy}{dx}=-\frac xy=-\frac34.$$

This matches the tangent found with circle geometry in section C.

Worked example. For $x^2+xy+y^2=7$, find $\frac{dy}{dx}$ at $(1,2)$.

$$2x+\left(y+x\frac{dy}{dx}\right)+2y\frac{dy}{dx}=0\;\Rightarrow\;\frac{dy}{dx}=-\frac{2x+y}{x+2y}=-\frac{4}{5}.$$

Parametric differentiation

If $x$ and $y$ are both given in terms of $t$, divide the two rates:

$$\frac{dy}{dx}=\frac{dy/dt}{dx/dt}.$$

Worked example. $x=t^2$, $y=2t$. Find the tangent at $t=2$.

$\frac{dx}{dt}=2t$ and $\frac{dy}{dt}=2$, so $\frac{dy}{dx}=\frac1t$. At $t=2$ the point is $(4,4)$ and the gradient is $\frac12$. The tangent is $y-4=\frac12(x-4)$, which is $x-2y+4=0$.

Rates of change

Connected rates of change 相关变化率 link two rates through a formula, with the chain rule.

Worked example. The radius of a balloon grows at 0.2 cm/s. How fast is the volume growing when $r=5$ cm?

$$V=\tfrac43\pi r^3,\qquad\frac{dV}{dr}=4\pi r^2=100\pi,\qquad\frac{dV}{dt}=\frac{dV}{dr}\times\frac{dr}{dt}=100\pi\times0.2=20\pi\approx62.8\text{ cm}^3/\text{s}.$$

Building a differential equation. A differential equation 微分方程 links a quantity and its rate of change. “The rate at which a population $P$ grows is proportional to $P$” becomes $\dfrac{dP}{dt}=kP$, with $k>0$. “A hot drink cools at a rate proportional to the difference between its temperature $\theta$ and the room temperature of $20^\circ$C” becomes $\dfrac{d\theta}{dt}=-k(\theta-20)$. The minus sign shows that $\theta$ is falling. You solve equations like these in section H.

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, and classify.

Worked example: the biggest box. Squares of side $x$ cm are cut from the corners of a $12\times12$ cm sheet, and the sides are folded up to make an open box. Find the largest volume.

$$V=x(12-2x)^2,\qquad V'=(12-2x)^2-4x(12-2x)=(12-2x)(12-6x).$$

$V'=0$ at $x=6$ or $x=2$. At $x=6$, $V=0$ (no base is left), so the useful value is $x=2$, which gives $V=2\times8^2=128$ cm³. For a sensible box $0<x<6$; $V''(2)<0$ confirms a maximum.

Left: y = x³ − 3x with the tangent y = 9x − 16 and the normal x + 9y = 20 meeting at right angles at (2, 2). Right: the box volume V = x(12 − 2x)² for 0 < x < 6 with its maximum 128 cm³ at x = 2
The normal's gradient −1/9 is the negative reciprocal of the tangent's 9; the box volume is largest at x = 2, where V′ = 0

Common mistake. Forgetting the ends of the interval. On a restricted domain, compare the stationary values with the values at the ends.

Traps

Slip Habit
calling every $f'(x)=0$ a turning point classify with $f''$ or the sign change; $x^3$ has an inflection
ignoring the ends of a restricted interval compare stationary and end values for a global extreme
differentiating $\sin x$ with $x$ in degrees work in radians: only then is $\frac{d}{dx}\sin x=\cos x$
dropping the inside's derivative in the chain rule $\frac{d}{dx}\sin3x=3\cos3x$, not $\cos3x$

Practice

  1. Differentiate $\sqrt x$ and $\dfrac1{x^3}$.
  2. Differentiate $\sin3x$, $e^{-2x}$ and $\ln(5x)$.
  3. Differentiate $x^2\ln x$.
  4. Find and classify the stationary points of $y=2x^3-9x^2+12x$.
  5. Find $\frac{dy}{dx}$ for $y^2=x$ and evaluate it at $(4,2)$.
  6. $x=3\cos t$, $y=2\sin t$. Find $\frac{dy}{dx}$ in terms of $t$.
  7. A square's side grows at 0.5 cm/s. How fast is its area growing when the side is 8 cm?

Answers.

  1. $\frac1{2\sqrt x}$; $-\frac3{x^4}$.
  2. $3\cos3x$; $-2e^{-2x}$; $\frac1x$.
  3. $2x\ln x+x$.
  4. $y'=6(x-1)(x-2)$: maximum $(1,5)$ ($y''=-6$), minimum $(2,4)$ ($y''=6$).
  5. $2y\frac{dy}{dx}=1$, so $\frac{dy}{dx}=\frac1{2y}=\frac14$.
  6. $\frac{2\cos t}{-3\sin t}=-\frac23\cot t$.
  7. $\frac{dA}{dt}=2s\times0.5=8$ cm²/s.

Key points

  • $f'(x)$ is the limit of chord gradients; first principles shows where the rules come from.
  • Write roots and fractions as powers before you differentiate.
  • $f'(x)=0$ finds stationary points; $f''$ or a sign change classifies them.
  • Chain: outside, keep the inside, times the inside's derivative. Product: $u'v+uv'$. Quotient: $\frac{u'v-uv'}{v^2}$.
  • Implicit: every $y$ term picks up $\frac{dy}{dx}$. Parametric: $\frac{dy}{dx}=\frac{dy/dt}{dx/dt}$.
  • Trig derivatives need radians.
Explore

Derivatives and stationary points

For y=ax^n, dy/dx=anx^(n-1)

Compare the model with the worked case and explain one change.

Vocabulary Train
English
derivative/dɪˈrɪvətɪv/
normal/ˈnɔːml/
stationary point/ˈsteɪʃənəri pɔɪnt/
second derivative/ˈsekənd dɪˈrɪvətɪv/
local maximum/ˈləʊkl ˈmæksɪməm/
local minimum/ˈləʊkl ˈmɪnɪməm/
convex/kɒnˈveks/
concave/kɒnˈkeɪv/
point of inflection/pɔɪnt ɒv ɪnˈflekʃn/
connected rates of change/kəˈnektɪd reɪts ɒv tʃeɪndʒ/
differential equation/ˌdɪfəˈrenʃl ɪˈkweɪʒn/

Interactive lessons on this topic

Work through it step by step, with instant-check exercises.

More topics in AQA A-Level Mathematics

Log in or create account

IGCSE, A-Level & AP