Taylor series

Taylor series

Spec 6.3 · Edexcel International A Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A Taylor series expands f(x)f(x) about x=ax=a in powers of (x−a)(x-a).
  • f(x)=f(a)+(x−a)f′(a)+(x−a)22!f′′(a)+…f(x)=f(a)+(x-a)f'(a)+\dfrac{(x-a)^2}{2!}f''(a)+\dots
  • Evaluate every derivative at aa, not at 00. Maclaurin is the case a=0a=0.
  • For approximations, choose aa close to the value where f(a)f(a) is exact.
  • Write x=a+hx=a+h to check a result with a known series.

From Maclaurin to Taylor

A Taylor series expands about any point x=ax=a, in powers of (x−a)(x-a), with derivatives evaluated at aa.

A Maclaurin series is only a good approximation for small ∣x∣|x|. A Taylor series expands about any point x=ax=a.

Suppose f(x)=a0+a1(x−a)+a2(x−a)2+…f(x)=a_0+a_1(x-a)+a_2(x-a)^2+\dots Putting x=ax=a gives a0=f(a)a_0=f(a); differentiating and putting x=ax=a gives a1=f′(a)a_1=f'(a), and in general n! an=f(n)(a)n!\,a_n=f^{(n)}(a). Writing x=a+hx=a+h: f(a+h)=f(a)+hf′(a)+h22!f′′(a)+…f(a+h)=f(a)+hf'(a)+\frac{h^2}{2!}f''(a)+\dots

  1. 1

    Assume a power series

    in powers of (x − a)

  2. 2

    Put x = a

    the constant term is f(a)

  3. 3

    Differentiate, put x = a

    the coefficient of (x − a) is f′(a)

  4. 4

    Repeat

    in general the coefficient is f⁽ⁿ⁾(a) ÷ n!

Building the Taylor series
  • f(x)f(x)f(a)+(x−a)f′(a)+(x−a)22!f′′(a)+…f(a)+(x-a)f'(a)+\dfrac{(x-a)^2}{2!}f''(a)+\dots

What is the coefficient of (x−a)2(x-a)^2 in a Taylor series?

Finding a Taylor series

Differentiate as often as needed, evaluate at aa, substitute into the formula and divide by the factorials.

Method: differentiate ff as many times as required, evaluate f(a),f′(a),f′′(a),…f(a),f'(a),f''(a),\dots, substitute and divide by the factorials.

For f(x)=sin⁡xf(x)=\sin x about x=πx=\pi: f(π)=0f(\pi)=0, f′(π)=−1f'(\pi)=-1, f′′(π)=0f''(\pi)=0, f′′′(π)=1f'''(\pi)=1, so sin⁡x=−(x−π)+(x−π)36−…\sin x=-(x-\pi)+\frac{(x-\pi)^3}{6}-\dots Check: sin⁡(π+h)=−sin⁡h=−h+h36−…\sin(\pi+h)=-\sin h=-h+\frac{h^3}{6}-\dots

11.522.533.544.55−1.5−1−0.50.511.5xy(π, 0)y = sin x−(x−π) + (x−π)³/6
y = sin x (solid) and its Taylor polynomial about x = π (dashed). The two curves meet closely near (π, 0).

Worked example

Find the Taylor series of ln⁡x\ln x about x=2x=2 up to (x−2)3(x-2)^3.

For f(x)=ln⁡xf(x)=\ln x, what is f(2)f(2) in the series about x=2x=2?

Awkward derivatives

Use trigonometric identities and keep the working organised, evaluating each derivative at aa as you go.

For f(x)=tan⁡xf(x)=\tan x about x=π4x=\frac{\pi}{4}, tan⁡x=1\tan x=1 and sec⁡2x=2\sec^2x=2 there. Then f′=sec⁡2xf'=\sec^2x gives 22; f′′=2sec⁡2xtan⁡xf''=2\sec^2x\tan x gives 44; f′′′=4sec⁡2xtan⁡2x+2sec⁡4xf'''=4\sec^2x\tan^2x+2\sec^4x gives 8+8=168+8=16.

Hence tan⁡x=1+2h+2h2+83h3+…\tan x=1+2h+2h^2+\frac83h^3+\dots with h=x−π4h=x-\frac\pi4. Differentiating term by term gives sec⁡2x=2+4h+8h2+…\sec^2x=2+4h+8h^2+\dots

0.20.40.60.811.21.4123456xy(π/4, 1)y = tan x1 + 2h + 2h² + 8h³/3
y = tan x (solid) and the cubic Taylor polynomial about x = π/4 (dashed).
  • At x=π4x=\frac\pi4: tan⁡x\tan x11, and sec⁡2x=2\sec^2x=2

What is f′(π4)f'\left(\frac\pi4\right) for f(x)=tan⁡xf(x)=\tan x?

Approximations

Choose the centre aa close to the value where f(a)f(a) and its derivatives are exact, then substitute x−ax-a.

To estimate f(x0)f(x_0), choose the centre aa close to x0x_0. For 4.2\sqrt{4.2} use f(x)=xf(x)=\sqrt x about x=4x=4, where f(4)=2f(4)=2. For sin⁡3\sin3 use sin⁡x\sin x about π\pi with x−π=3−πx-\pi=3-\pi, giving sin⁡3≈0.14112\sin3\approx0.14112.

The smaller ∣x−a∣|x-a| is, the better the approximation. Limits can be found by dividing by a power of (x−a)(x-a): sin⁡xx−π=−1+(x−π)26−⋯→−1\frac{\sin x}{x-\pi}=-1+\frac{(x-\pi)^2}{6}-\dots\to-1.

1234567890.511.522.533.54xy(4, 2)y = √x2 + (x−4)/4 − (x−4)²/64
y = √x and its quadratic Taylor polynomial about x = 4 (dashed). They almost coincide near x = 4.

Worked example

Estimate 4.2\sqrt{4.2} using a Taylor series about x=4x=4.

To estimate ln⁡2.1\ln2.1, which centre is best?

Try an exam question

Find the Taylor series of f(x)=sin⁡xf(x)=\sin x about x=π2x=\frac\pi2, up to and including the term in (x−π2)4\left(x-\frac\pi2\right)^4.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the value of f′′′(2)f'''(2).

1 mark, marked against the mark scheme

Revision notes