Skip to content

Taylor polynomials

A differentiable function looks like its tangent line close to a point, more like a parabola built from its second derivative, and more still like a polynomial built from as many derivatives as you care to take. Exams ask for the polynomial, for the estimate it gives, for a derivative read back off its coefficients, and, in flavour A, for a bound on how wrong the estimate can be.

In this topic

Taught
Before the final
Questions
16
Total marks
47
Suggested time
76 min
Difficulty

Introductory to Capstone

Show the 5 hardest

Key results

The Taylor polynomial
Tn(x)=∑k=0nf(k)(a)k!(x−a)kT_{n}(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x - a)^{k}

When ff has nn derivatives at aa; written out, Tn(x)=f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+⋯+f(n)(a)n!(x−a)nT_{n}(x) = f(a) + f'(a)(x - a) + \dfrac{f''(a)}{2!}(x - a)^{2} + \cdots + \dfrac{f^{(n)}(a)}{n!}(x - a)^{n}, and with a=0a = 0 it is the Maclaurin polynomial.

Reading a derivative off
f(k)(a)=k! ckf^{(k)}(a) = k!\,c_{k}

When ckc_{k} is the coefficient of (x−a)k(x - a)^{k} in the Taylor polynomial TnT_{n} of ff about aa, for k≤nk \le n.

Standard Maclaurin polynomials
ex: 1+x+x22!+x33!+⋯sin⁡x: x−x33!+x55!−⋯cos⁡x: 1−x22!+x44!−⋯log⁡(1+x): x−x22+x33−⋯\begin{aligned} e^{x}&:\ 1 + x + \frac{x^{2}}{2!} + \frac{x^{3}}{3!} + \cdots \\ \sin x&:\ x - \frac{x^{3}}{3!} + \frac{x^{5}}{5!} - \cdots \\ \cos x&:\ 1 - \frac{x^{2}}{2!} + \frac{x^{4}}{4!} - \cdots \\ \log(1 + x)&:\ x - \frac{x^{2}}{2} + \frac{x^{3}}{3} - \cdots \end{aligned}

Each line lists the terms of the function’s Maclaurin polynomials, which approximate it near x=0x = 0, with xx in radians for sine and cosine.

The Lagrange remainder
f(x)−Tn(x)=f(n+1)(c)(n+1)! (x−a)n+1f(x) - T_{n}(x) = \frac{f^{(n+1)}(c)}{(n + 1)!}\,(x - a)^{n+1}

For some cc strictly between aa and xx, when ff has n+1n + 1 derivatives on an interval containing aa and xx.

Bounding the error
∣f(x)−Tn(x)∣≤M(n+1)! ∣x−a∣n+1\bigl|f(x) - T_{n}(x)\bigr| \le \frac{M}{(n + 1)!}\,|x - a|^{n+1}

When ff has n+1n + 1 derivatives on an interval containing aa and xx, and ∣f(n+1)(c)∣≤M\bigl|f^{(n+1)}(c)\bigr| \le M for every cc between aa and xx.

Read the theoryUBC Math 100 §9 Taylor polynomialsCLP-1 §3.4 Taylor polynomials

Worked example

Standard3 marks · 4 min

Find the second-order Taylor polynomial T2(x)T_{2}(x) of f(x)=sin⁡xf(x) = \sin x about x=π6x = \dfrac{\pi}{6}.

Strategy

Find the value and the first two derivatives at the centre π/6, where sine and cosine are exact, and build the polynomial in powers of x − π/6, dividing the second derivative by 2!.

Working

  1. f(x)=sin⁡x,f′(x)=cos⁡x,f′′(x)=−sin⁡xf(x) = \sin x, \qquad f'(x) = \cos x, \qquad f''(x) = -\sin x

    Differentiate as functions first.

  2. f ⁣(π6)=12,f′ ⁣(π6)=32,f′′ ⁣(π6)=−12f\!\left(\tfrac{\pi}{6}\right) = \tfrac{1}{2}, \qquad f'\!\left(\tfrac{\pi}{6}\right) = \tfrac{\sqrt{3}}{2}, \qquad f''\!\left(\tfrac{\pi}{6}\right) = -\tfrac{1}{2}

    Then evaluate at the centre, not at 0.

  3. T2(x)=12+32(x−π6)−14(x−π6)2T_{2}(x) = \tfrac{1}{2} + \tfrac{\sqrt{3}}{2}\left(x - \tfrac{\pi}{6}\right) - \tfrac{1}{4}\left(x - \tfrac{\pi}{6}\right)^{2}

    The square term is f″(π/6)/2! = −1/4. Expanding the brackets gives the same polynomial in another form.

Answer

T2(x)=12+32(x−π6)−14(x−π6)2T_{2}(x) = \frac{1}{2} + \frac{\sqrt{3}}{2}\left(x - \frac{\pi}{6}\right) - \frac{1}{4}\left(x - \frac{\pi}{6}\right)^{2}

The answer is T two of x equals one half, plus root 3 over 2 times (x minus pi over 6), minus one quarter of (x minus pi over 6) squared.

Check

At x = 0.5, T₂ and sin 0.5 both come to 0.4794 to four places.

Where this goes wrong

Using the Maclaurin coefficients of sin x, which are 0, 1 and 0, with powers of x − π/6, which gives x − π/6. The coefficients of a Taylor polynomial are the derivatives at its own centre, here π/6.

On the paper

Tabulate ff and its derivatives at the centre, then write the polynomial in powers of (x−a)(x - a), not xx, unless a=0a = 0.

Leans on

The derivatives of sine and cosine, from Exponential and trigonometric functions

Your turn

Standard3 marks · 5 min

Find the third-order Taylor polynomial T3(x)T_{3}(x) of f(x)=1xf(x) = \dfrac{1}{x} about x=2x = 2.

Answer this question

Practice questions

5 of the 16, across every level. Open a solution to read the working, or answer the question yourself and it counts towards your progress.

  • Introductory2 marks · 3 min

    The third-order Maclaurin polynomial of a function ff is given below. Find f′′′(0)f'''(0).

    T3(x)=2−x+5x2−43x3T_{3}(x) = 2 - x + 5x^{2} - \tfrac{4}{3}x^{3}
    Answer this question
  • Introductory2 marks · 3 min

    Find the coefficient of x3x^{3} in the third-order Maclaurin polynomial of f(x)=log⁡(1+2x)f(x) = \log(1 + 2x).

    Answer this question
  • Standard3 marks · 4 min

    A function ff has f(1)=3f(1) = 3, f′(1)=−2f'(1) = -2 and f′′(1)=6f''(1) = 6. Use the quadratic approximation of ff centred at x=1x = 1 to estimate f(1.1)f(1.1).

    Answer this question
  • Challenging3 marks · 6 min

    A function ff has third derivative f′′′(x)=cos⁡x4+x2f'''(x) = \dfrac{\cos x}{4 + x^{2}}. If f(0.5)f(0.5) is approximated by its second-order Maclaurin polynomial T2(0.5)T_{2}(0.5), find the best bound on the error ∣f(0.5)−T2(0.5)∣|f(0.5) - T_{2}(0.5)| that the Taylor remainder formula gives.

    Answer this question
  • Capstone5 marks · 10 min

    Use the second-order Taylor polynomial of f(x)=xf(x) = \sqrt{x} about x=16x = 16 to estimate 17\sqrt{17}, and use the Taylor remainder to give a bound on the error of your estimate.

    Answer this question

Browse all 16 questions

  • Needs

    Linear approximation

    Tangent-line estimates, whether they run high or low, and approximating a value without a calculator.

    14 questions