James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 5: Calculus › Maclaurin series

Maclaurin series

Approximating functions by polynomials: the Maclaurin series formula, the standard series, building new series by substitution, multiplication, differentiation and integration, and using series for limits, approximations and differential equations.

AHL 5.19HL onlyPaper 1Paper 2≈ 80 min to work through
Before you start: higher derivatives and the extended binomial theorem. See Limits and first principles and Binomial theorem (HL).

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Derive a Maclaurin series from f(0),f′(0),f′′(0),…AHL 5.19
  • Use the standard series for ex, sinx, cosx, ln(1+x), arctanx and (1+x)pAHL 5.19
  • Find new series by substitution, products, differentiation and integrationAHL 5.19
  • Use series to approximate values and integrals, and to find limitsAHL 5.19
  • Find a series solution of a differential equationAHL 5.19

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Near x=0, a function can be imitated by a polynomial that has the same value, the same gradient, the same second derivative, and so on, at x=0. Each extra matching derivative adds one term and makes the polynomial hug the curve over a wider range. The infinite version of this polynomial is the Maclaurin series.

2.1 The Maclaurin series formula

Maclaurin series In formula booklet
f(x)=f(0)+xf′(0)+x22!f′′(0)+x33!f′′′(0)+…
Where does the formula come from?

Suppose f(x)=a0+a1x+a2x2+a3x3+…. Setting x=0 gives a0=f(0). Differentiating once and setting x=0 gives a1=f′(0). Differentiating twice: 2a2=f′′(0). Three times: 3!a3=f′′′(0). The factorials come from repeatedly differentiating powers.

Worked example 1Paper 1
Find the Maclaurin series for ln(1+x) up to the term in x4.
f(0)=0; f′(x)=(1+x)−1⇒f′(0)=1
f′′(x)=−(1+x)−2⇒−1; f′′′(x)=2(1+x)−3⇒2; f(4)(x)=−6(1+x)−4⇒−6
ln(1+x)=x−x22+x33−x44+…
23!=13 and −64!=−14. Valid for −1<x≤1.

2.2 The standard series

Standard Maclaurin series In formula booklet
ex1+x+x22!+x33!+…
ln(1+x)x−x22+x33−…
sinxx−x33!+x55!−…
cosx1−x22!+x44!−…
arctanxx−x33+x55−…
(1+x)p1+px+p(p−1)2!x2+…

Notice the symmetry: sinx (an odd function) has only odd powers, and cosx (even) has only even powers. See Odd and even functions.

2.3 New series from old

Differentiating many times is slow. It is usually quicker to build series from the standard ones.

Substitution. Replace x by any expression: e−x2=1−x2+x42−x66+… and cos2x=1−2x2+23x4−…

Worked example 2Paper 1
Find the Maclaurin series for exsinx up to the term in x3.
(1+x+x22+x36)(x−x36)
Only keep terms up to x3 in each factor.
x+x2+x32−x36+…
=x+x2+x33

Differentiation and integration. A series can be differentiated or integrated term by term. For example, integrating 11+t2=1−t2+t4−… (from the binomial series) from 0 to x gives the series for arctanx.

Worked example 3Paper 1
Use the series for e−x2 to estimate ∫00.5e−x2dx.
∫00.5(1−x2+x42)dx=[x−x33+x510]00.5
=0.5−0.041667+0.003125=0.4615
The integral has no elementary antiderivative; the true value is 0.46128.
Worked example 4Paper 2
Show that ln1+x1−x=2(x+x33+x55+…), and use it to estimate ln2.
ln(1+x)−ln(1−x): the series for ln(1−x) is −x−x22−x33−…
Substitute −x for x.
Subtracting, even powers cancel and odd powers double.
1+x1−x=2⇒x=13: ln2≈2(13+181+11215)=0.69300
True value 0.69315.
Three terms give four correct significant figures, far better than the series for ln(1+x) at x=1.

2.4 Limits using series

Worked example 5Paper 1
Find limx→0sinx−xx3.
(x−x36+x5120−…)−xx3=−16+x2120−…
→−16
L’Hôpital would need three applications; the series takes one line.

2.5 Series from a differential equation

If you know y(0) and a differential equation, you can find y′(0) from the equation, then differentiate the equation (implicitly) to find y′′(0), and so on. Then use the Maclaurin formula.

Worked example 6Paper 1
dydx=x+y, y(0)=1. Find the Maclaurin series for y up to x3.
y′(0)=0+1=1
y′′=1+y′⇒y′′(0)=2; y′′′=y′′⇒y′′′(0)=2
Differentiate the equation itself; do not try to solve it.
y=1+x+22!x2+23!x3=1+x+x2+x33+…
This matches the exact solution 2ex−x−1.
See WE6 on the integrating factors page.
Worked example 7 (faded)Paper 1
Find the Maclaurin series for sin2x up to x4, using sin2x=12(1−cos2x).
cos2x=1−2x2+23x4, so sin2x=12(2x2−23x4)= x² − x⁴/3  ← you work this out
On your TI-Nspire Calculator tricks →

Plot f(x) and your polynomial on the same Graphs page to see where the approximation is good. For a numerical check, evaluate both at a small x such as 0.1: they should agree to several decimal places.

3Explore it

The navy curve is the function; the red curve is its Maclaurin polynomial up to xn. Increase n and watch the polynomial follow the curve further from 0. For ln(1+x) and arctanx it never works beyond |x|=1.

4Common mistakes & exam tips

Common mistakes

  • Forgetting the factorials: the coefficient of xn is f(n)(0)n!, not f(n)(0).
  • When substituting, not applying the power to the coefficient: (2x)3=8x3.
  • Multiplying series and keeping terms of too high a power that are incomplete.
  • Using ln(1+x) or arctanx series outside −1<x≤1.
  • In a DE series, substituting x=0 before differentiating the equation.

Exam tips

  • Say which standard series you are using, e.g. "replacing x by −x2 in the series for ex".
  • "Up to and including x3" means you need all terms of degree ≤3, including ones that are zero.
  • For limits, expand the numerator far enough to get the first non-zero term after cancelling.
  • Check a series by comparing values at x=0.1 on the GDC.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Write down the series for e3x up to x3.
1+3x+92x2+92x3
FluencyP2
Write down the series for cos(x2) up to x8.
1−x42+x824
FluencyP3
Find the series for 11−x up to x3 using the binomial series.
1+x+x2+x3
FluencyP4
Find limx→0ex−1−xx2 using series.
x2/2+…x2→12
Problem solvingP5
Find the series for excosx up to x3.
(1+x+x22+x36)(1−x22)=1+x−x33
Problem solvingP6
dydx=y2+x, y(0)=1. Find the series for y up to x3.
y′(0)=1, y′′=2yy′+1→3, y′′′=2(y′)2+2yy′′→8: 1+x+32x2+43x3

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

Let f(x)=excosx.

  • (a)Using the Maclaurin series for ex and cosx, find the Maclaurin series for f(x) up to and including the term in x3.[4]
  • (b)Hence find limx→0f(x)−1−xx3.[2]
(a)
(1+x+x22+x36)(1−x22)M1
1+x+x22−x22+x36−x32A1
1+x−x33A1A1
(b)
−x33+…x3M1
−13A1
Question 2Paper 1[6 marks]

The function y=f(x) satisfies dydx=y2+x, with y=1 when x=0.

  • (a)Show that d3ydx3=2(dydx)2+2yd2ydx2.[2]
  • (b)Hence find the Maclaurin series for y up to and including the term in x3.[4]
(a)
d2ydx2=2ydydx+1A1
product rule on 2ydydxM1AG
(b)
y′(0)=1, y′′(0)=3, y′′′(0)=8A1A1A1
1+x+32x2+43x3A1
Question 3Paper 1[5 marks]

  • (a)Find the Maclaurin series for cos2x, up to and including the term in x4.[2]
  • (b)Hence find the Maclaurin series for sin2x, up to and including the term in x4.[3]
(a)
1−(2x)22+(2x)424M1
1−2x2+23x4A1
(b)
sin2x=12(1−cos2x)M1
12(2x2−23x4)A1
x2−x43A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
Nov 2023 · TZ1 · Paper 1Q11Series for cos2x, then for ecos2x−1★★★
May 2024 · TZ1 · Paper 1Q8The first two non-zero terms of a Maclaurin series★★
May 2022 · TZ1 · Paper 1Q12Maclaurin series of a function and a related function★★★
May 2025 · TZ1 · Paper 1Q12Maclaurin series of a family of functions★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake