Skip to main content
Examonaut

Topic 4 · Lesson 3 of 4

Maclaurin series (A level only)

The idea

A Maclaurin series writes a function as a power series, f(x)=a0+a1x+a2x2+…f(x) = a_0 + a_1x + a_2x^2 + \dots, that matches the function's value and all its derivatives at x=0x = 0. Differentiating the series rr times and putting x=0x = 0 gives ar=f(r)(0)r!a_r = \frac{f^{(r)}(0)}{r!}, so

f(x)=f(0)+f′(0)x+f′′(0)2!x2+⋯+f(r)(0)r!xr+…f(x) = f(0) + f'(0)x + \frac{f''(0)}{2!}x^2 + \dots + \frac{f^{(r)}(0)}{r!}x^r + \dots

The standard series

These are in the formula booklet; you should also be able to derive them.

ex=1+x+x22!+⋯+xrr!+…for all xe^x = 1 + x + \frac{x^2}{2!} + \dots + \frac{x^r}{r!} + \dots \quad \text{for all } x
ln⁡(1+x)=x−x22+x33−⋯+(−1)r+1xrr+…for −1<x≤1\ln(1 + x) = x - \frac{x^2}{2} + \frac{x^3}{3} - \dots + (-1)^{r+1}\frac{x^r}{r} + \dots \quad \text{for } -1 < x \leq 1
sin⁡x=x−x33!+x55!−⋯+(−1)rx2r+1(2r+1)!+…for all x\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \dots + (-1)^r\frac{x^{2r+1}}{(2r+1)!} + \dots \quad \text{for all } x
cos⁡x=1−x22!+x44!−⋯+(−1)rx2r(2r)!+…for all x\cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \dots + (-1)^r\frac{x^{2r}}{(2r)!} + \dots \quad \text{for all } x
(1+x)n=1+nx+n(n−1)2!x2+…for ∣x∣<1, n∈R(1 + x)^n = 1 + nx + \frac{n(n - 1)}{2!}x^2 + \dots \quad \text{for } |x| < 1, \ n \in \mathbb{R}

The trigonometric series need xx in radians. Notice that sin⁡x\sin x (an odd function) has only odd powers, and cos⁡x\cos x (even) only even powers.

Worked example

From the definition

Find the Maclaurin series of tan⁡x\tan x up to the term in x3x^3.

Show solution
  1. f(x)=tan⁡xf(x) = \tan x, so f(0)=0f(0) = 0.
  2. f′(x)=sec⁡2xf'(x) = \sec^2 x, so f′(0)=1f'(0) = 1.
  3. f′′(x)=2sec⁡2xtan⁡xf''(x) = 2\sec^2 x\tan x, so f′′(0)=0f''(0) = 0.
  4. f′′′(x)=4sec⁡2xtan⁡2x+2sec⁡4xf'''(x) = 4\sec^2 x\tan^2 x + 2\sec^4 x, so f′′′(0)=2f'''(0) = 2.
  5. tan⁡x≈x+23!x3=x+13x3\tan x \approx x + \frac{2}{3!}x^3 = x + \frac{1}{3}x^3.

Compound functions

Usually it is quicker to build a series from the standard ones than to differentiate repeatedly.

  • Substitute: replace xx by 3x3x, −x2-x^2, and so on. ln⁡(1+3x)=3x−9x22+9x3−…\ln(1 + 3x) = 3x - \frac{9x^2}{2} + 9x^3 - \dots, valid for −1<3x≤1-1 < 3x \leq 1, that is −13<x≤13-\frac{1}{3} < x \leq \frac{1}{3}.
  • Multiply two series, keeping only the terms you need: exsin⁡x=(1+x+x22+x36)(x−x36)+⋯=x+x2+13x3+…e^x\sin x = \left(1 + x + \frac{x^2}{2} + \frac{x^3}{6}\right)\left(x - \frac{x^3}{6}\right) + \dots = x + x^2 + \frac{1}{3}x^3 + \dots
  • Use log laws first: ln⁡(1+x1−x)=ln⁡(1+x)−ln⁡(1−x)=2(x+x33+x55+… )\ln\left(\frac{1 + x}{1 - x}\right) = \ln(1 + x) - \ln(1 - x) = 2\left(x + \frac{x^3}{3} + \frac{x^5}{5} + \dots\right), with general term 2x2r−12r−1\frac{2x^{2r-1}}{2r - 1}, valid for −1<x<1-1 < x < 1 (both series must be valid).
  • Compose: for esin⁡xe^{\sin x}, put u=sin⁡x≈x−x36u = \sin x \approx x - \frac{x^3}{6} into eu=1+u+u22+u36e^u = 1 + u + \frac{u^2}{2} + \frac{u^3}{6} and collect powers of xx up to the one you need: esin⁡x=1+x+x22+0x3+…e^{\sin x} = 1 + x + \frac{x^2}{2} + 0x^3 + \dots

Using series

Series give approximations: ln⁡1.1≈0.1−0.005+0.000333=0.09533\ln 1.1 \approx 0.1 - 0.005 + 0.000333 = 0.09533, close to the true 0.095310.09531. They also evaluate limits that look like 00\frac{0}{0}:

lim⁡x→01−cos⁡xx2=lim⁡x→0x22−x424+…x2=12\lim_{x \to 0} \frac{1 - \cos x}{x^2} = \lim_{x \to 0} \frac{\frac{x^2}{2} - \frac{x^4}{24} + \dots}{x^2} = \frac{1}{2}

Practise this topic

Both are part of Premium.