Maclaurin series of a function

Maclaurin series of a function

Spec D5 · AQA A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • 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 coefficient of xrx^r is f(r)(0)r!\frac{f^{(r)}(0)}{r!}, so f(r)(0)=r!×(coefficient)f^{(r)}(0)=r!\times(\text{coefficient}).
  • Find a series by repeated differentiation: simplify, then evaluate at 00 each time.
  • An even function has only even powers; an odd function only odd powers.
  • The function and every derivative must exist at x=0x=0: ln⁡x\ln x has no Maclaurin series, but ln⁡(1+x)\ln(1+x) does.

Maclaurin's theorem

The coefficient of xrx^r is the rrth derivative at 00 divided by r!r!.

If f(x)f(x) can be differentiated as often as needed at x=0x=0, its Maclaurin series is

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

Working backwards, f(r)(0)=r!×(coefficient of xr)f^{(r)}(0)=r!\times(\text{coefficient of }x^r). A derivative at zero is the value f(r)(0)f^{(r)}(0).

The function and every derivative you use must exist at x=0x=0.

−3−2−1123−2246810xy(0, 1)y = eˣ1 + x + x²/2 + x³/6
The Maclaurin series of eˣ is 1 + x + x²/2! + x³/3! + …: the cubic (dashed) matches eˣ closely near x = 0.
  • Coefficient of xrx^rf(r)(0)r!\dfrac{f^{(r)}(0)}{r!}
  • f(r)(0)f^{(r)}(0)r!×r!\times coefficient of xrx^r

Worked example

The series for f(x)f(x) has coefficient 55 of x3x^3. Find f′′′(0)f'''(0).

If f′′(0)=6f''(0)=6, what is the coefficient of x2x^2 in the Maclaurin series?

Repeated differentiation

Differentiate, simplify, and evaluate at 00 each time, in a table of f(0),f′(0),f′′(0),…f(0),f'(0),f''(0),\dots

Repeated differentiation means differentiating, simplifying, then evaluating at 00 each time.

Example, f(x)=ln⁡cos⁡xf(x)=\ln\cos x: f′=−tan⁡xf'=-\tan x, f′′=−sec⁡2xf''=-\sec^2x, giving f(0)=0f(0)=0, f′(0)=0f'(0)=0, f′′(0)=−1f''(0)=-1, f(4)(0)=−2f^{(4)}(0)=-2 and ln⁡cos⁡x=−x22−x412−…\ln\cos x=-\frac{x^2}{2}-\frac{x^4}{12}-\dots

If ff is even only even powers appear; if ff is odd only odd powers. Use this to check, e.g. tan⁡x\tan x is odd.

  1. 1

    Differentiate

    and simplify before differentiating again

  2. 2

    Evaluate at 00

    f(0),f′(0),f′′(0),…f(0),f'(0),f''(0),\dots

  3. 3

    Divide by r!r!

    the coefficient of xrx^r

  4. 4

    Assemble

    the series, and check odd/even

Building a series

Worked example

Find the Maclaurin series of tan⁡x\tan x up to x3x^3, then estimate tan⁡0.2\tan0.2.

Which powers of xx appear in the Maclaurin series of ln⁡cos⁡x\ln\cos x?

The general term

When the derivatives follow a pattern, the term in xrx^r is f(r)(0)r!xr\frac{f^{(r)}(0)}{r!}x^r.

If f(r)(0)f^{(r)}(0) is known for every rr, the general term is f(r)(0)r!xr\frac{f^{(r)}(0)}{r!}x^r.

  • 11−2x\frac{1}{1-2x}: f(r)(0)=2rr!f^{(r)}(0)=2^rr!, so the term is 2rxr2^rx^r.
  • e2x\mathrm{e}^{2x}: f(r)(0)=2rf^{(r)}(0)=2^r, so the term is 2rxrr!\frac{2^rx^r}{r!}.
  • sin⁡2x\sin2x: odd powers only, (−1)r(2x)2r+1(2r+1)!\frac{(-1)^r(2x)^{2r+1}}{(2r+1)!}.

Use (−1)r(-1)^r or (−1)r+1(-1)^{r+1} for alternating signs, and check by substituting the first few rr.

−1.4−1.2−1−0.8−0.6−0.4−0.200.20.40.60.81−2246810xy(0, 1)y = e^(2x)cubic approximation
e^(2x) has general term 2^r x^r / r!. The cubic 1 + 2x + 2x² + (4/3)x³ (dashed) follows it near 0.
  • 11−2x\dfrac{1}{1-2x}2rxr2^rx^r
  • e2x\mathrm{e}^{2x}2rxrr!\dfrac{2^rx^r}{r!}
  • ln⁡(1+x)\ln(1+x)(−1)r+1xrr\dfrac{(-1)^{r+1}x^r}{r}

Worked example

Find the general term of the series for ln⁡(1+x)\ln(1+x).

What is the general term of the series for e−x\mathrm{e}^{-x}?

Using a derivative relation

Find a relation between yy and its derivatives, differentiate it repeatedly, and evaluate at 00.

For some functions it is easier to find a relation between the derivatives. For y=esin⁡xy=\mathrm{e}^{\sin x}:

y''&=(\cos^2x-\sin x)y\\ y'''&=(-2\cos x\sin x-\cos x)y+(\cos^2x-\sin x)y'\end{aligned}$$ At $x=0$: $y=1$, $y'=1$, $y''=1$, $y'''=0$, so $y=1+x+\frac{x^2}{2}+0\cdot x^3+\dots$
  1. 1

    Find a relation

    e.g. y′=cos⁡x yy'=\cos x\,y

  2. 2

    Differentiate

    keep yy and y′y' in the expressions

  3. 3

    Evaluate at 00

    use the values y(0)y(0), y′(0)y'(0) at the end

  4. 4

    Check

    substitute sin⁡x\sin x into eu\mathrm{e}^u: the x3x^3 terms cancel

Derivative relation method

Why does ln⁡x\ln x have no Maclaurin series?

Try an exam question

Given f(x)=sec⁡xf(x)=\sec x, find f′(x)f'(x) and f′′(x)f''(x). Hence find the Maclaurin series of sec⁡x\sec x up to x2x^2, and use it to estimate sec⁡0.1\sec0.1.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

What is f′(x)f'(x)?

1 mark, marked against the mark scheme

Revision notes