Skip to main content
Examonaut

Topic 2 · Lesson 1 of 4

Taylor series

From Maclaurin to Taylor

The Maclaurin series of f(x)f(x) matches the value and all the derivatives of ff at x=0x = 0. To match them at x=ax = a instead, use powers of (x−a)(x - a):

f(x)=f(a)+(x−a)f′(a)+(x−a)22!f′′(a)+⋯+(x−a)rr!f(r)(a)+…f(x) = f(a) + (x - a)f'(a) + \frac{(x - a)^2}{2!}f''(a) + \dots + \frac{(x - a)^r}{r!}f^{(r)}(a) + \dots

Writing x+ax + a for xx gives the equivalent form, useful when you want a series in plain powers of xx:

f(x+a)=f(a)+xf′(a)+x22!f′′(a)+⋯+xrr!f(r)(a)+…f(x + a) = f(a) + xf'(a) + \frac{x^2}{2!}f''(a) + \dots + \frac{x^r}{r!}f^{(r)}(a) + \dots

Why it works: if f(x)=c0+c1(x−a)+c2(x−a)2+…f(x) = c_0 + c_1(x - a) + c_2(x - a)^2 + \dots, then putting x=ax = a gives c0=f(a)c_0 = f(a); differentiating once and putting x=ax = a gives c1=f′(a)c_1 = f'(a); differentiating rr times gives r!cr=f(r)(a)r!c_r = f^{(r)}(a).

A series about x=ax = a is most accurate for xx close to aa. To estimate 4.4\sqrt{4.4}, expand x\sqrt{x} about 4, not about 0 (where x\sqrt{x} cannot even be differentiated).

The method

  1. Differentiate ff as many times as you need, simplifying as you go.
  2. Evaluate each derivative at x=ax = a. Exact values are expected: π4\frac{\pi}{4}, π6\frac{\pi}{6}, e2e^2 and so on stay exact.
  3. Substitute into the formula, remembering the factorials.

Worked example

About a point

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

Show solution
  1. f(x)=ln⁡xf(x) = \ln x, f′(x)=1xf'(x) = \frac{1}{x}, f′′(x)=−1x2f''(x) = -\frac{1}{x^2}, f′′′(x)=2x3f'''(x) = \frac{2}{x^3}.
  2. At x=2x = 2: ln⁡2\ln 2, 12\frac{1}{2}, −14-\frac{1}{4}, 14\frac{1}{4}.
  3. ln⁡x=ln⁡2+12(x−2)−18(x−2)2+124(x−2)3+…\ln x = \ln 2 + \frac{1}{2}(x - 2) - \frac{1}{8}(x - 2)^2 + \frac{1}{24}(x - 2)^3 + \dots

Check: ln⁡x=ln⁡2+ln⁡(1+x−22)\ln x = \ln 2 + \ln\left(1 + \frac{x - 2}{2}\right), and the series for ln⁡(1+u)\ln(1 + u) with u=x−22u = \frac{x - 2}{2} gives the same terms.

Worked example

The f(x + a) form

Expand sin⁡(x+π4)\sin\left(x + \frac{\pi}{4}\right) in ascending powers of xx up to x3x^3, and estimate sin⁡46°\sin 46°.

Show solution
  1. With f=sin⁡f = \sin and a=π4a = \frac{\pi}{4}: f(a)=f′(a)=22f(a) = f'(a) = \frac{\sqrt{2}}{2} and f′′(a)=f′′′(a)=−22f''(a) = f'''(a) = -\frac{\sqrt{2}}{2}.
  2. sin⁡(x+π4)=22(1+x−12x2−16x3+… )\sin\left(x + \frac{\pi}{4}\right) = \frac{\sqrt{2}}{2}\left(1 + x - \frac{1}{2}x^2 - \frac{1}{6}x^3 + \dots\right)
  3. 46°=π4+π18046° = \frac{\pi}{4} + \frac{\pi}{180}, so put x=π180x = \frac{\pi}{180} (in radians): sin⁡46°≈0.719340\sin 46° \approx 0.719340.

Series from known series

You can often avoid differentiating. To expand exe^x about x=1x = 1, write ex=e×ex−1e^x = e \times e^{x - 1} and use the Maclaurin series of eue^u with u=x−1u = x - 1. To expand cos⁡x\cos x about π2\frac{\pi}{2}, write cos⁡x=−sin⁡(x−π2)\cos x = -\sin\left(x - \frac{\pi}{2}\right). If a question says "use Taylor's theorem" or "by differentiating", show the derivatives.

Practise this topic

Both are part of Premium.