UBC MATH 100/180 . Final Exam Prep VideosWatch Now

Calculus · Taylor and Maclaurin series

Taylor and Maclaurin series

A translator from any function into the easy language of polynomials. Learn what it is, how to build it, the famous five and the shortcuts, then solve 69 questions, 46 of them from past finals.

Problems seen0 of 69

A translator: from any function to a polynomial

Some functions speak a hard language: exe^x, sin⁡x\sin x, ln⁡(1+x)\ln(1+x), x\sqrt{x}. You cannot work out sin⁡(0.1)\sin(0.1) or e0.2e^{0.2} with a pencil. Polynomials speak an easy language: they only need ++, −- and ×\times. A Taylor polynomial is a translator. It rewrites a function in polynomial language. Near one point you choose, the centre aa, the translation is almost perfect.

Hard languagePolynomial language
  • ex\cf{e^x}translate1+x+x22+x36+⋯1 + x + \dfrac{x^2}{2} + \dfrac{x^3}{6} + \cdots
  • sin⁡x\cf{\sin x}translatex−x36+x5120−⋯x - \dfrac{x^3}{6} + \dfrac{x^5}{120} - \cdots
  • cos⁡x\cf{\cos x}translate1−x22+x424−⋯1 - \dfrac{x^2}{2} + \dfrac{x^4}{24} - \cdots
  • ln⁡(1+x)\cf{\ln(1+x)}translatex−x22+x33−⋯x - \dfrac{x^2}{2} + \dfrac{x^3}{3} - \cdots
  • 11−x\cf{\dfrac{1}{1-x}}translate1+x+x2+x3+⋯1 + x + x^2 + x^3 + \cdots
These five are translated at the centre a=0\ca{a = 0}. The dots mean the polynomial can keep going: more terms, a better translation. Stop after the xnx^n term and you have Tn(x)T_n(x), the Taylor polynomial of degree nn.

The big idea

Near the centre, f(x)f(x) and its Taylor polynomial Tn(x)T_n(x) are almost the same. So you can do the hard work on the easy polynomial instead.

Taylor or Maclaurin?

Same thing. Maclaurin is the name when the centre is a=0a = 0. Taylor is the name for any centre.

Like any translation, it is best close to home

Pick a function. Move the degree up: the polynomial copies more of the function. Move the centre: the translation follows it.

−6−4−20246−3−2−10123xya = 0y = sin xT₃(x)

T3(x) = x−16x3

  • ✓ the height f(a)
  • ✓ the slope f′(a)
  • ✓ the bend f″(a)
  • ✓ f‴(a)

T₃ copies the first 3 derivatives at the centre. The more it copies, the longer it stays close. The green stretch is where it is within 0.05 of the function.

What to notice:

  • At the centre, TnT_n and ff are exactly equal. Every degree goes through the blue dot.
  • Near the centre, they are very close.
  • Far from the centre, they can be very different.
  • A higher degree stays close for longer: the green stretch grows.
  • For ln⁡(1+x)\ln(1+x) and 11−x\dfrac{1}{1-x}, the green stretch never passes x=1x = 1. Some translations only work near their centre, however many terms you add.

Why do we care?

Reason 1

Work out values by hand

sin⁡x\sin x translates to x−x36x - \dfrac{x^3}{6} near 00. So

sin⁡(0.1) is very close to 110−16000=5996000=0.0998333…\displaystyle \sin(0.1) \text{ is very close to } \frac{1}{10} - \frac{1}{6000} = \frac{599}{6000} = 0.0998333\ldots

The true value is 0.0998334…0.0998334\ldots: the same to six decimal places, with only ++, −-, ×\times and ÷\div. Computers work out sin⁡x\sin x, exe^x and ln⁡x\ln x with polynomials like this.

Reason 2

Make hard limits easy

Put the polynomial in place of sin⁡x\sin x:

lim⁡x→0sin⁡xx=lim⁡x→0x−x36+⋯x=lim⁡x→0(1−x26+⋯ )=1.\displaystyle \lim_{x\to0}\frac{\sin x}{x} = \lim_{x\to0}\frac{x - \frac{x^3}{6} + \cdots}{x} = \lim_{x\to0}\left(1 - \frac{x^2}{6} + \cdots\right) = 1.

No L'Hôpital's rule needed. See Limits.

Reason 3

Find a high derivative in one line

ex2=1+x2+x42+x66+⋯e^{x^2} = 1 + x^2 + \dfrac{x^4}{2} + \dfrac{x^6}{6} + \cdots (put x2x^2 in for xx in exe^x). The x6x^6 coefficient is f(6)(0)6!\dfrac{f^{(6)}(0)}{6!}, so

f(6)(0)=6!⋅16=120.\displaystyle f^{(6)}(0) = 6! \cdot \frac{1}{6} = 120.

Six derivatives of ex2e^{x^2} by hand would take a page.

Reason 4

Simple models in science

For a small angle, sin⁡θ\sin\theta is almost θ\theta: that is T1T_1. This is why a pendulum's swing has a simple formula. Physics and engineering replace hard functions by T1T_1 or T2T_2 all the time.

Words you will see

Taylor polynomial Tn(x)T_n(x)
The polynomial of degree nn that copies ff at the centre aa: the same value and the same first nn derivatives.
Centre a\ca{a}
The point the polynomial is built at. Questions say "at aa", "about aa", "centred at aa", "expanded about aa", "around aa".
Maclaurin polynomial
A Taylor polynomial with centre a=0\ca{a = 0}. "Maclaurin" tells you a=0a = 0.
Degree n\cn{n} (or order nn)
The highest power allowed: (x−a)n(x - a)^n. "Second degree", "second order" and "quadratic approximation" all mean T2T_2. "Linear approximation" means T1T_1.
Coefficient ck\cc{c_k}
The number in front of (x−a)k(x - a)^k. It is ck=f(k)(a)k!\cc{c_k} = \dfrac{\cd{f^{(k)}(a)}}{\cn{k!}}.
f(k)(a)f^{(k)}(a)
The kkth derivative of ff, at aa. f(0)f^{(0)} is ff itself, f(1)=f′f^{(1)} = f', f(2)=f′′f^{(2)} = f''.
k!k! (kk factorial)
1⋅2⋅3⋯k1 \cdot 2 \cdot 3 \cdots k. 0!=10! = 1, 3!=63! = 6, 4!=244! = 24. See factorials.
Taylor series, Maclaurin series
The polynomial that never stops: all the terms, forever. Exams often ask for "the first three nonzero terms" of a series: that is a polynomial again.
Σ\Sigma (sigma)
"Add them all up". ∑n=0∞cnxn=c0+c1x+c2x2+⋯\displaystyle\sum\limits_{n=0}^{\infty} c_n x^n = c_0 + c_1x + c_2x^2 + \cdots: start at the number under Σ\Sigma, stop at the number on top. Point at any Σ\Sigma on the page for help. See the sigma sign.
Error (remainder)
How far off the polynomial is: f(x)−Tn(x)f(x) - T_n(x). See the Error tab.

More of the same kind: Newton's method and Euler's method, related rates and optimization. One recipe per kind of question: the Math 100 Problem Playbook.