A-Level Further Maths 9231 / Topic 2.3 / AS & A Level
Know a function at zero, and you can rebuild it nearby.
A Maclaurin series writes a function as a polynomial whose coefficients come from its derivatives at \(x = 0\). Derive the series for \(e^{x}\), \(\sin x\) and \(\ln(1 + x)\), use successive differentiation for functions such as \(\tan x\) and \(e^{\sin x}\), combine known series, and use the result to approximate values and limits.
\(f(x) = f(0) + x f'(0) + \dfrac{x^{2}}{2!} f''(0) + \dfrac{x^{3}}{3!} f'''(0) + \dots\) Every coefficient is a derivative at \(0\) divided by a factorial. When \(f\) is hard to differentiate repeatedly, find a relation such as \(y' = 1 + y^{2}\) and differentiate THAT. When \(f\) is built from standard functions, substitute into and multiply the standard series instead, keeping every term up to the power you need. A series for \(\ln(1 + x)\) only works for \(-1 \lt x \le 1\).
Fig. 1: y = sin x (dashed) with its Maclaurin polynomials of degree 1 (y = x), 3 and 5. Near x = 0 all of them hug the curve; each extra term keeps the polynomial close to sin x over a wider interval, and each one eventually runs away from it
Section 01
The Maclaurin formula.
Suppose \(f(x) = a_{0} + a_{1}x + a_{2}x^{2} + a_{3}x^{3} + \dots\) Put \(x = 0\): \(a_{0} = f(0)\). Differentiate and put \(x = 0\): \(a_{1} = f'(0)\). Differentiate again: \(2a_{2} = f''(0)\); again: \(3 \times 2\,a_{3} = f'''(0)\). In general the coefficient of \(x^{r}\) is \(\dfrac{f^{(r)}(0)}{r!}\). So to build the series, list \(f, f', f'', \dots\), evaluate each at \(0\), and divide by the factorial. Fig. 1 shows the first few polynomials for \(\sin x\) closing in on the curve.
You are expected to derive the first few terms of such series, not a general term. Angles are always in radians: the derivative of \(\sin x\) is \(\cos x\) only in radians.
Worked example e to the x from scratch
Use the Maclaurin formula to find the first four terms of the series for \(e^{x}\), and use them to estimate \(e^{0.1}\).
\(f(x) = e^{x}\), and every derivative is also \(e^{x}\). So \(f(0) = f'(0) = f''(0) = f'''(0) = 1\).
\[\sin x = 0 + x(1) + 0 + \frac{x^{3}}{3!}(-1) + 0 + \frac{x^{5}}{5!}(1) = x - \frac{x^{3}}{6} + \frac{x^{5}}{120}.\]
Only odd powers appear, as they must for an odd function: \(\sin(-x) = -\sin x\).
Answer: \(\sin x = x - \dfrac{x^{3}}{6} + \dfrac{x^{5}}{120} - \dots\)
Your turn
Find the Maclaurin series for \(\ln(1 + x)\) up to and including the term in \(x^{4}\).
\(f = \ln(1 + x)\), \(f' = (1 + x)^{-1}\), \(f'' = -(1 + x)^{-2}\), \(f''' = 2(1 + x)^{-3}\), \(f^{(4)} = -6(1 + x)^{-4}\). At \(0\): \(0, 1, -1, 2, -6\). So \(\ln(1 + x) = x - \dfrac{x^{2}}{2} + \dfrac{2x^{3}}{6} - \dfrac{6x^{4}}{24} = x - \dfrac{x^{2}}{2} + \dfrac{x^{3}}{3} - \dfrac{x^{4}}{4}\), valid for \(-1 \lt x \le 1\).
Examiner trap
Two classic slips: forgetting the factorials (writing \(f'''(0)\,x^{3}\) instead of \(\dfrac{f'''(0)}{3!}x^{3}\)), and evaluating at the wrong point. Every derivative is evaluated at \(x = 0\). Also, \(\ln x\) itself has NO Maclaurin series: \(\ln 0\) is undefined, which is why the standard series is for \(\ln(1 + x)\).
Section 02
When the derivatives get messy.
For \(\tan x\) or \(e^{\sin x}\), differentiating four or five times directly creates long product and quotient rules. Two tricks keep it short. First, write \(y = f(x)\) and find a simple relation between \(y\) and its derivatives, then differentiate the RELATION (successive implicit differentiation, from the previous lesson). Second, never simplify more than you must: you only need values at \(x = 0\), so substitute \(x = 0\) as early as possible.
\(y = \tan x\): \(y' = \sec^{2} x = 1 + y^{2}\), so every later derivative comes from differentiating \(1 + y^{2}\).
\(y = e^{\sin x}\): \(y' = y\cos x\), a product of two simple factors.
\(y = \sinh^{-1} x\): \(y' = (1 + x^{2})^{-\frac{1}{2}}\), then use the chain and product rules.
Record the values at \(0\) in a small table: \(y(0), y'(0), y''(0), \dots\) Then the series is one line.
Worked example tan x via y' = 1 + y²
Given \(y = \tan x\), show that \(\dfrac{dy}{dx} = 1 + y^{2}\). Hence find the Maclaurin series for \(\tan x\) up to and including the term in \(x^{3}\).
\(\dfrac{dy}{dx} = \sec^{2} x = 1 + \tan^{2} x = 1 + y^{2}\).
Differentiate the relation (chain rule on \(y^{2}\)): \(y'' = 2y\,y'\). Again (product rule): \(y''' = 2(y')^{2} + 2y\,y''\).
Do not substitute \(x = 0\) BEFORE differentiating. \(y'' = 2y\,y'\) is a function you can still differentiate; the number \(0\) is not. Write the general derivative first, differentiate it, and only then plug in \(0\). And keep \(y\) itself in the product rule: from \(y' = y\cos x\), the next derivative has TWO terms.
Stage 1 · Learn
Check your understanding
Four quick checks. Each correct answer earns XP and records this skill on your profile.
Quick check+10 XP
In the Maclaurin series of \(f(x)\), what is the coefficient of \(x^{3}\)?
Quick check+10 XP
What is the series for \(e^{-2x}\) up to the term in \(x^{2}\)?
Quick check+10 XP
For which values of \(x\) is the Maclaurin series for \(\ln(1 + x)\) valid?
Quick check+10 XP
For \(y = \tan x\), \(y''' = 2(y')^{2} + 2y\,y''\), and at \(x = 0\) this equals 2. What is the coefficient of \(x^{3}\) in the series for \(\tan x\)?
Section 03
Combining series and using them.
Once you know the standard series, many others come without differentiating at all. Replace \(x\) by \(2x\), \(-x\) or \(x^{2}\) in a standard series; multiply two series, keeping every product up to the power you need; add or subtract logs. Then use the polynomial: put in a small \(x\) to approximate a value, or replace each function in a limit by its series and cancel the powers of \(x\).
Substitute: \(e^{-2x} = 1 - 2x + \dfrac{(-2x)^{2}}{2} - \dots = 1 - 2x + 2x^{2} - \dots\) Bracket the whole new variable before squaring it.
Multiply: to reach \(x^{3}\), collect every pair of terms whose powers add to 3 or less.
Limits: in \(\displaystyle\lim_{x \to 0}\) of a fraction, expand top and bottom, divide by the lowest power, then let \(x \to 0\).
Validity: a series built from \(\ln(1 + 2x)\) is valid only for \(-1 \lt 2x \le 1\), that is \(-\tfrac{1}{2} \lt x \le \tfrac{1}{2}\). Outside its range the series does not approach the function at all, however many terms you take.
Worked example A product of two series
Find the Maclaurin series for \(e^{x}\cos x\) up to and including the term in \(x^{3}\).
\(e^{x} = 1 + x + \dfrac{x^{2}}{2} + \dfrac{x^{3}}{6} + \dots\) and \(\cos x = 1 - \dfrac{x^{2}}{2} + \dots\) (the next term of \(\cos x\) is in \(x^{4}\), too high).
\[e^{x}\cos x = \left(1 + x + \frac{x^{2}}{2} + \frac{x^{3}}{6}\right)\left(1 - \frac{x^{2}}{2}\right)\]
Subtracting, the even powers cancel and the odd powers double: \(2x + \dfrac{2x^{3}}{3} + \dfrac{2x^{5}}{5} + \dots\) Both series need \(-1 \lt x \lt 1\).
(b) \(\dfrac{1 + x}{1 - x} = 2\) gives \(x = \tfrac{1}{3}\), inside the range of validity.
The true value is \(0.6931\). Compare \(\ln(1 + x)\) at \(x = 1\): four terms give \(1 - \tfrac{1}{2} + \tfrac{1}{3} - \tfrac{1}{4} = 0.583\); that series converges very slowly at the edge of its range.
Answer: (a) shown (b) \(\ln 2 \approx 0.6930\)
Your turn
Use the series for \(\cos x\) to find \(\displaystyle\lim_{x \to 0} \frac{1 - \cos x}{x^{2}}\).
\(1 - \cos x = \dfrac{x^{2}}{2} - \dfrac{x^{4}}{24} + \dots\), so \(\dfrac{1 - \cos x}{x^{2}} = \dfrac{1}{2} - \dfrac{x^{2}}{24} + \dots \to \dfrac{1}{2}\) as \(x \to 0\).
Examiner trap
When multiplying series, do not drop cross terms: in \(e^{x}\cos x\) the \(x^{3}\) term gets a contribution from \(x \times \left(-\dfrac{x^{2}}{2}\right)\) as well as from \(\dfrac{x^{3}}{6} \times 1\). And never use a series outside its range: \(\ln(1 + x)\) at \(x = 2\) gives \(2 - 2 + \tfrac{8}{3} - 4 + \dots\), which never settles on \(\ln 3\).
Stage 2 · Exam
Exam-style questions
Unlocks once the four checks above are done. Worth more XP, written to AS & A Level Further Mathematics Paper 1 to 4 standard.
Finish the four checks above to unlock the exam questions
Exam style+20 XP
Find the Maclaurin series for \(e^{2x}\cos x\) up to and including the term in \(x^{2}\).
Exam style+20 XP
Use Maclaurin series to find \(\displaystyle\lim_{x \to 0} \frac{x - \sin x}{x^{3}}\).
Exam style+20 XP
Find the first two non-zero terms of the Maclaurin series for \(\ln\!\left(\dfrac{1 + x}{1 - x}\right)\).
Exam style+20 XP
Find the Maclaurin series for \(\sinh^{-1} x\) up to and including the term in \(x^{3}\).
Skill unlocked
Maclaurin series built, combined and put to work.
This skill is now recorded on your profile. Keep the chain going.