FROM THE TOPICS LIBRARYISSUE 06

MaclaurinSeries

From polynomial fingerprints to approximation and evaluation.

Explore the topic

FOUR-POSTER PROJECT · 1/4

Polynomial Fingerprints

Download poster 1 · A3 PDF ↓

What Do Derivatives Tell Us?

BIG QUESTION

Can the derivatives of a function at x = 0 reconstruct the function nearby?

  1. 01Polynomial Fingerprints
  2. 02The Maclaurin Formula
  3. 03Building New Maclaurin Series
  4. 04Approximate & Evaluate
01

A polynomial and its derivatives at the origin

Consider a polynomial

P(x)=a_0+a_1x+a_2x^2+a_3x^3+\cdots+a_nx^n

Differentiate and evaluate at x = 0:

P(0)=a_0
P'(x)=a_1+2a_2x+3a_3x^2+\cdots
P'(0)=a_1
P''(x)=2a_2+6a_3x+\cdots
P''(0)=2!a_2
P'''(x)=6a_3+\cdots\quad\Rightarrow\quad P'''(0)=3!a_3

Hence, for a polynomial,

a_n=\frac{P^{(n)}(0)}{n!}\quad(n=0,1,2,3,\ldots)
A polynomial carries its coefficients inside its derivatives at the origin.
02

Successive polynomial approximations

We can build a sequence of polynomials using the first few derivatives at 0. These are called Maclaurin polynomials.

Definition (Maclaurin polynomial)
The polynomial of degree n matching the first n derivatives of a function f at 0 is

P_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(0)}{k!}x^k

For a polynomial P(x), the sequence Pn(x) reproduces the polynomial exactly when n is at least the degree.

Exponential function with Maclaurin polynomials P0, P1 and P2

Here Pn(x) denotes the Maclaurin polynomial of degree n for f(x) = ex, using the first n derivatives at 0.

As n increases, the polynomial matches more derivatives and gives a better approximation to the function near x = 0.
03

Worked example

Use derivatives at 0 to recover the coefficients of

P(x)=3-2x+5x^2-x^3
P(0)=3\quad\Rightarrow\quad a_0=3
P'(x)=-2+10x-3x^2
P'(0)=-2\quad\Rightarrow\quad a_1=-2
P''(x)=10-6x
P''(0)=10\quad\Rightarrow\quad a_2=\frac{10}{2!}=5
P'''(x)=-6\quad\Rightarrow\quad P'''(0)=-6
a_3=\frac{-6}{3!}=-1
04

Your turn

A function f has the following derivative values at 0:

f(0)=1,\quad f'(0)=2,
f''(0)=-6,\quad f'''(0)=24

(a) Write down the cubic polynomial whose derivatives at 0 take these values.
(b) Check your answer by differentiating.

05

Think about it

• How do the factorials arise naturally from differentiation?

• Why do the polynomials Pn(x) match the function and its derivatives at 0?

• How does the graph show the effect of including more terms?

• For a general function (not necessarily a polynomial), might the same idea reconstruct the function nearby?

NEXT DISCOVERY

If derivatives determine the coefficients of a polynomial, could the same idea reconstruct functions such as eˣ, sin x or cos x?

Is there one formula that works for every suitable function? →

FOUR-POSTER PROJECT · 2/4

The Maclaurin Formula

Download poster 2 · A3 PDF ↓

Turning Derivatives into a Series

BIG QUESTION

Can one formula convert all derivatives at x = 0 into an infinite polynomial?

01

From polynomials to functions

Recap from Poster 1
For a polynomial, the coefficients are determined by the derivatives at x = 0:

a_n=\frac{P^{(n)}(0)}{n!}

Can the same idea be applied to a general differentiable function? If we use all the derivatives at 0, we obtain an infinite polynomial.

02

The Maclaurin formula

If a function f has derivatives of all orders at x = 0 and its Maclaurin series converges to f(x) near x = 0, then

f(x)=\sum_{n=0}^{\infty}\frac{f^{(n)}(0)}{n!}x^n

or, written out,

f(x)=f(0)+f'(0)x+\frac{f''(0)}{2!}x^2
\quad+\frac{f'''(0)}{3!}x^3+\cdots
Differentiate repeatedly → Evaluate at x = 0 → Divide by factorial → Coefficient of xn.
03

Standard Maclaurin series

(a) Exponential function: ex
All derivatives of ex are ex, so f(n)(0) = 1 for all n.

e^x=\sum_{n=0}^{\infty}\frac{x^n}{n!}=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\cdots

(b) Sine function: sin x
The derivatives cycle: sin x, cos x, −sin x, −cos x, …
So f(n)(0) = 0 for even n and f(2k+1)(0) = (−1)k.

\sin x=\sum_{k=0}^{\infty}(-1)^k\frac{x^{2k+1}}{(2k+1)!}=x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots

(c) Cosine function: cos x
The derivatives cycle: cos x, −sin x, −cos x, sin x, …
So f(n)(0) = 0 for odd n and f(2k)(0) = (−1)k.

\cos x=\sum_{k=0}^{\infty}(-1)^k\frac{x^{2k}}{(2k)!}=1-\frac{x^2}{2!}+\frac{x^4}{4!}-\cdots

(d) Natural logarithm: ln(1 + x)
For |x| < 1, the derivatives give f(n)(0) = (−1)n−1(n − 1)!.

\ln(1+x)=\sum_{n=1}^{\infty}(-1)^{n-1}\frac{x^n}{n}=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+\cdots
Graphs of exponential, sine, cosine and natural logarithm functions
04

Visualising the idea

The Maclaurin series can be viewed as an infinite sequence of polynomial approximations Pn(x) near x = 0.

P_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(0)}{k!}x^k
Exponential function with Maclaurin polynomials P0, P1 and P3

As n increases, Pn(x) gives a better approximation to f(x) near x = 0.

05

Worked example

Find the first four non-zero terms of the Maclaurin series for e−2x.

Method 1: differentiate

f(x)=e^{-2x},\quad f'(x)=-2e^{-2x}
f''(x)=4e^{-2x},\quad f'''(x)=-8e^{-2x},\ldots

Hence f(n)(0) = (−2)n and

e^{-2x}=1-2x+\frac{(-2)^2}{2!}x^2+\frac{(-2)^3}{3!}x^3+\cdots
=1-2x+2x^2-\frac{4}{3}x^3+\cdots

Method 2: use eu with u = −2x

e^u=1+u+\frac{u^2}{2!}+\frac{u^3}{3!}+\cdots

Substitute u = −2x:

e^{-2x}=1+(-2x)+\frac{(-2x)^2}{2!}+\frac{(-2x)^3}{3!}+\cdots
=1-2x+2x^2-\frac{4}{3}x^3+\cdots
06

Your turn

Find the first four non-zero terms of the Maclaurin series for:

\mathrm{(a)}\ e^{3x}\quad\mathrm{(b)}\ \sin(2x)
\mathrm{(c)}\ \cos(3x)\quad\mathrm{(d)}\ \ln(1-x)
NEXT DISCOVERY

We now know several standard Maclaurin series. But must we differentiate from scratch every time the function changes slightly? Can known series be transformed, combined and reused?

Can we build new Maclaurin series efficiently from the ones we already know? →

FOUR-POSTER PROJECT · 3/4

Building New Maclaurin Series

Download poster 3 · A3 PDF ↓

Transform, Combine and Reuse

BIG QUESTION

How can we use known Maclaurin series to find new series efficiently?

01

A toolbox of known series

From Poster 2 we have the following standard Maclaurin series:

e^x=\sum_{n=0}^{\infty}\frac{x^n}{n!}=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\cdots
\sin x=\sum_{k=0}^{\infty}(-1)^k\frac{x^{2k+1}}{(2k+1)!}=x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots
\cos x=\sum_{k=0}^{\infty}(-1)^k\frac{x^{2k}}{(2k)!}=1-\frac{x^2}{2!}+\frac{x^4}{4!}-\cdots
\ln(1+x)=\sum_{n=1}^{\infty}(-1)^{n-1}\frac{x^n}{n}=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+\cdots

For ln(1 + x): |x| < 1.

02

Substitution and scaling

(a) Substitute x → ax
Replace x by ax in a known series.
Example: e2x

e^{2x}=\sum_{n=0}^{\infty}\frac{(2x)^n}{n!}
=1+2x+\frac{(2x)^2}{2!}+\frac{(2x)^3}{3!}+\cdots
=1+2x+2x^2+\frac{4}{3}x^3+\frac{2}{3}x^4+\cdots

(b) Replace x by a function
We can also substitute functions such as x2, −x or 2x.
Example: ex²

e^{x^2}=\sum_{n=0}^{\infty}\frac{(x^2)^n}{n!}
=1+x^2+\frac{x^4}{2!}+\frac{x^6}{3!}+\cdots
Graphs showing substitution in the exponential function
03

Addition and subtraction

Series can be added or subtracted term by term.
(a) ex + e−x

e^x+e^{-x}=\left(1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\cdots\right)
\quad+\left(1-x+\frac{x^2}{2!}-\frac{x^3}{3!}+\cdots\right)
=2+\frac{2x^2}{2!}+\frac{2x^4}{4!}+\cdots
=2\left(1+\frac{x^2}{2!}+\frac{x^4}{4!}+\cdots\right)

(b) ex − e−x

e^x-e^{-x}=2\left(x+\frac{x^3}{3!}+\frac{x^5}{5!}+\cdots\right)
Adding cancels odd powers; subtracting cancels even powers.
04

Multiplication of series

To find the product, multiply and keep terms up to the required order.
Example: ex cos x up to x4

e^x=1+x+\frac{x^2}{2}+\frac{x^3}{6}+\frac{x^4}{24}+\cdots
\cos x=1-\frac{x^2}{2}+\frac{x^4}{24}+\cdots
e^x\cos x=\left(1+x+\frac{x^2}{2}+\frac{x^3}{6}+\frac{x^4}{24}\right)
\quad\times\left(1-\frac{x^2}{2}+\frac{x^4}{24}\right)+\cdots
=1+x+0x^2-\frac{1}{3}x^3-\frac{1}{6}x^4+\cdots
We only need terms whose total degree is at most 4.
05

Division and simple transformations

(a) The geometric series
For |x| < 1,

\frac{1}{1-x}=1+x+x^2+x^3+\cdots

Use this to find series for related functions, e.g.

\frac{1}{1+x}=1-x+x^2-x^3+\cdots\quad(|x|<1)

(b) Using ln(1 + x)

\ln(1+x)=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+\cdots

|x| < 1. Differentiate to obtain

\frac{1}{1+x}=1-x+x^2-x^3+\cdots

or integrate to find series for related functions.

(c) Square roots and other powers
From the binomial series (introduced here conceptually)

(1+x)^\alpha=1+\alpha x+\frac{\alpha(\alpha-1)}{2}x^2
\quad+\frac{\alpha(\alpha-1)(\alpha-2)}{6}x^3+\cdots

For example,

\sqrt{1+x}=(1+x)^{\frac{1}{2}}=1+\frac{1}{2}x-\frac{1}{8}x^2+\frac{1}{16}x^3+\cdots

−1 < x < 1.

06

Order notation (Big-O)

We often write a truncated series using order notation, for example

e^x=1+x+\frac{x^2}{2}+O(x^3)

which means that the omitted terms begin at order x3.

This helps us to decide how many terms we need when multiplying, dividing or substituting series.
07

Your turn

Using known Maclaurin series, expand each expression up to and including the specified power:

(a) ex cos x (up to and including x4)

\mathrm{(b)}\ \frac{\sin x}{1-x}\quad\mathrm{(up\ to\ }x^3\mathrm{)}

(c) e2x sin x (up to and including x4)

\mathrm{(d)}\ \sqrt{1+x}\quad\mathrm{(up\ to\ }x^3\mathrm{)}
NEXT DISCOVERY

A truncated series gives an approximation. But how many terms should we keep—and when can we trust the result? When is a Maclaurin approximation good enough?

How accurately can a polynomial imitate a function nearby? →

FOUR-POSTER PROJECT · 4/4

Approximate & Evaluate

Download poster 4 · A3 PDF ↓

When is a Maclaurin approximation good enough?

BIG QUESTION

How many terms should we keep and when can we trust the result?

01

Truncation and error

A truncated Maclaurin series gives a polynomial approximation to f(x):

P_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(0)}{k!}x^k

Approximation error:

E_n(x)=f(x)-P_n(x)
02

More terms, better local fit

Sine function with Maclaurin polynomials P1, P3 and P5

Near x = 0, P1, P3 and P5 match more and more derivatives of sin x, so the fit improves locally.

03

Numerical approximation

Use the third-degree Maclaurin polynomial for ex:

e^x\approx1+x+\frac{x^2}{2}+\frac{x^3}{6}

For x = 0.1:

e^{0.1}\approx1+0.1+\frac{0.01}{2}+\frac{0.001}{6}
=1.1051667

Calculator: 1.1051702

Absolute error ≈ 3.5 × 10−6.
04

Series can evaluate limits

Near x = 0:

\sin x=x-\frac{x^3}{6}+O(x^5)

Therefore

\lim_{x\to0}\frac{\sin x-x}{x^3}=-\frac{1}{6}
05

When can we trust it?

• Closer to x = 0 → usually better accuracy.

• More terms → usually smaller local error.

• Farther from 0 → more terms may be needed.

• A series is not automatically valid for every x.

• Always check the interval/domain of validity.

06

Poster 4 challenge

Approximate sin(0.4) using:

P_1(x)=x
P_3(x)=x-\frac{x^3}{6}
P_5(x)=x-\frac{x^3}{6}+\frac{x^5}{120}

Compare with sin(0.4) ≈ 0.3894183423.

Which polynomial first gives 6 correct decimal places?
SERIES COMPLETE

How does the number of terms needed depend on the value of x and the required accuracy?

Culminating investigation: HOW MANY TERMS ARE ENOUGH? →
KEEP EXPLORING

Companion resources.

Choose your edition. Practise first, then explore the solutions.

02 / REVIEW

Teacher Edition

Questions with worked solutions.
Open to everyone once released.

Download Teacher PDF

The Teacher Edition is available now.

Download the four A3 posters (PDF)

THE ORIGINALS

The topic, on paper.

ORIGINAL POSTER

Open full size ↗