Skip to content
IB Diploma ProgrammeSL & HL

Maclaurin series

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Maclaurin series notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Maclaurin series notes as text: skim, search, and jump between subtopics.

~10 min read

1. Building a Maclaurin series

A Maclaurin series writes a function as a polynomial that goes on for ever, built from the derivatives of the function at x=0. Each term uses one derivative.

The term in x^(r) has coefficient (f^((r))(0))/(r!). The factorial is part of the coefficient: do not leave it out.

To obtain a series, differentiate repeatedly, put x=0 into each derivative, then write out the terms in order. Stop when you have the number of terms the question asks for.

f(x)=f(0)+f'(0) x+(f''(0))/(2!)x²+(f'''(0))/(3!)x³+⋯

f(x)=sum_r=0^(∞)(f^((r))(0))/(r!) x^(r)

Worked example 15 marks

The function f is defined by f(x)=ln(1+x). Find the Maclaurin series for f(x) up to and including the term in x³.

  1. 1

    f'(x)=(1+x)⁻¹, f''(x)=-(1+x)⁻², f'''(x)=2(1+x)⁻³ (M1) [1]

  2. 2

    f(0)=ln 1=0 and f'(0)=1 (A1) [1]

  3. 3

    f''(0)=-1 (A1) [1]

  4. 4

    f'''(0)=2 (A1) [1]

  5. 5

    f(x)=0+x-x²/(2!)+2x³/(3!)=x-x²/2+x³/3 (A1) [1]

2. The standard series

Six series are used again and again. They are in the data booklet, so you do not rebuild them each time. Know what each looks like.

sin x has odd powers only, with alternating signs. cos x has even powers only. e^(x) has every power, all with plus signs. arctan x has odd powers with the factors 1/3,1/5,… and no factorials.

The series for (1+x)^(p) works for any rational power p, including negative and fractional ones. The coefficients are (p(p-1))/(2!), (p(p-1)(p-2))/(3!) and so on.

e^(x)=1+x+x²/(2!)+x³/(3!)+⋯

sin x=x-x³/(3!)+x⁵/(5!)-⋯

cos x=1-x²/(2!)+x⁴/(4!)-⋯

arctan x=x-x³/3+x⁵/5-⋯

ln(1+x)=x-x²/2+x³/3-⋯

(1+x)^(p)=1+px+(p(p-1))/(2!)x²+(p(p-1)(p-2))/(3!)x³+⋯

Worked example 14 marks

Find the Maclaurin series for √(1+x) up to and including the term in x³.

  1. 1

    write √(1+x)=(1+x)^(p) with p=1/2 and use the series for (1+x)^(p) (M1) [1]

  2. 2

    term in x: 1/2x (A1) [1]

  3. 3

    term in x²: (1/2(-1/2))/(2!)x²=-1/8x² (A1) [1]

  4. 4

    term in x³: (1/2(-1/2)(-3/2))/(3!)x³=1/16x³, so √(1+x)=1+()/x2-x²/8+x³/16 (A1) [1]

3. Substitution

A standard series can be used with x replaced by another expression. To get the series for e^(x²), replace x with x² everywhere in the series for e^(x).

Put the replacement in brackets before you simplify. In cos 2x the term x²/(2!) becomes ((2x)²)/(2!), so the 2 is squared too.

The new series has the same pattern, but each power of x is now a power of the replacement. The powers can jump: the series for e^(x²) has terms in x⁰,x²,x⁴,… only.

e^(x²)=1+x²+x⁴/(2!)+x⁶/(3!)+⋯

cos 2x=1-((2x)²)/(2!)+((2x)⁴)/(4!)-⋯=1-2x²+2/3x⁴-⋯

Worked example 13 marks

Find the Maclaurin series for ln(1+3x²) up to and including the term in x⁶.

  1. 1

    replace x with 3x² in ln(1+x)=x-x²/2+x³/3-⋯: 3x²-((3x²)²)/2+((3x²)³)/3 (M1) [1]

  2. 2

    (3x²)²=9x⁴, so the second term is -9/2x⁴ (A1) [1]

  3. 3

    (3x²)³=27x⁶, so the third term is 9x⁶: ln(1+3x²)=3x²-9/2x⁴+9x⁶ (A1) [1]

4. Products of series

To find the series for a product such as e^(x)sin x, write each series, then multiply them term by term. Collect the terms with the same power of x.

Only keep terms up to the power you need. For a series up to x³, each factor needs terms up to x³ only, and often less. Every pair of terms that gives the same power must be counted.

A coefficient can come out as zero. Then that power is missing from the answer.

e^(x)sin x=(1+x+x²/2+⋯)(x-x³/6+⋯)=x+x²+x³/3+⋯

Worked example 14 marks

Find the Maclaurin series for e^(x)cos x up to and including the term in x³.

  1. 1

    e^(x)=1+x+x²/2+x³/6 and cos x=1-x²/2 (A1) [1]

  2. 2

    e^(x)cos x=(1+x+x²/2+x³/6)(1-x²/2) (M1) [1]

  3. 3

    term in x²: x²/2-x²/2=0 (A1) [1]

  4. 4

    term in x³: x³/6-x³/2=-x³/3, so the series is 1+x-x³/3 (A1) [1]

5. Differentiating and integrating a series

A series can be differentiated or integrated term by term. This gives the series for a related function.

Differentiating the series for sin x gives the series for cos x. Integrating a series gives a constant of integration. Find it by putting x=0 into both sides.

This is how a series is built for a function that is the integral of a simple one. ln(1+x) is the integral of (1+x)⁻¹, and arctan x is the integral of (1+x²)⁻¹.

d/dx(x-x³/(3!)+⋯)=1-x²/(2!)+⋯=cos x

arctan x=int1/(1+x²) dx=int(1-x²+x⁴-⋯)dx

Worked example 14 marks

(a) Find the Maclaurin series for (1+x)⁻¹ up to and including the term in x³. [1]

(b) Hence, by integration, find the Maclaurin series for ln(1+x) up to and including the term in x⁴. [3]

  1. 1

    (a) (1+x)⁻¹=1-x+x²-x³ (A1) [1]

  2. 2

    (b) ln(1+x)=int(1-x+x²-x³)dx=x-x²/2+x³/3-x⁴/4+c (M1)(A1) [2]

  3. 3

    ln 1=0, so putting x=0 gives c=0 (R1) [1]

6. Using a series to find a limit

A limit such as lim_x→0(f(x)-1)/x² gives 0/0 if x=0 is put in. Replace f(x) with its Maclaurin series instead.

The terms cancel and a common power of x divides out. Every term left over still has a factor of x, so it goes to zero as x→0. Only the constant term survives.

A power of a function needs the series for the function raised to that power. For a small u, only the first two terms of (1+u)ⁿ matter at the order needed.

The answer must still contain n here. No follow-through marks are given for an expression that does not involve n.

cosⁿ x=(1-x²/2+⋯)ⁿ=1-nx²/2+⋯

Worked example 15 marks

Consider the family of functions fn(x)=cosⁿ x, where x∈R and n∈N.

(i) Find the Maclaurin series of fn(x) up to the term in x².(ii) Hence or otherwise, find lim_x→0(fn(x)-1)/x² in terms of n. [5]

  1. 1

    (i) attempt to raise the Maclaurin expansion for cos x to the power n: fn(x)=(1-x²/2+⋯)ⁿ (M1) [1]

  2. 2

    fn(x)=1-nx²/2+⋯ A2 [2]

  3. 3

    (ii) attempt to use the Maclaurin expansion for fn(x): (fn(x)-1)/x²=(-nx²/2+⋯)/x²=-()/n2+powers ofx (M1) [1]

  4. 4

    lim_x→0(fn(x)-1)/x²=-()/n2 A1 [1]

7. A series from a differential equation

When a function is defined by a differential equation, its series comes from the equation. Use the initial condition for y(0). Put x=0 into the equation for y'(0).

Then differentiate the equation to get y'', and put x=0 again. Use the product rule wherever x multiplies y. Repeat for each term you need.

Write each value into the Maclaurin formula: the term in x^(r) is (y^((r))(0))/(r!)x^(r). No solving of the equation is needed.

y=y(0)+y'(0) x+(y''(0))/(2!)x²+(y'''(0))/(3!)x³+⋯

Worked example 15 marks

A function y(x) satisfies dy/dx=x+y and y(0)=1. Find the Maclaurin series for y up to and including the term in x³.

  1. 1

    y'(0)=0+1=1 (A1) [1]

  2. 2

    differentiate: y''=1+y' (M1) [1]

  3. 3

    y''(0)=1+1=2 (A1) [1]

  4. 4

    y'''=y'', so y'''(0)=2 (A1) [1]

  5. 5

    y=1+x+2x²/(2!)+2x³/(3!)=1+x+x²+x³/3 (A1) [1]

Recap

  • A Maclaurin series has terms (f^((r))(0))/(r!)x^(r). Differentiate, put x=0, then divide by r!.
  • Know the series for e^(x), sin x, cos x, arctan x, ln(1+x) and (1+x)^(p), where p is any rational number.
  • To substitute, replace x everywhere and use brackets: cos 2x has (2x)² in its second term.
  • To multiply series, multiply every pair of terms and collect each power. A coefficient can be zero.
  • Differentiate or integrate a series term by term. After integrating, find the constant by putting x=0.
  • In a limit, replace each function with its series, divide out the common power of x, and keep the constant term.
  • For a series from a differential equation, put x=0 for y'(0), then differentiate the equation, using the product rule, for each higher derivative.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. Write down the first two non-zero terms of the Maclaurin series for sin x.1 mark
    Answer
    1. sin x=x-x³/(3!)+⋯=x-x³/6+⋯ (A1).

    Trap: The sine series has odd powers only. A term in x² does not appear.

  2. Use the Maclaurin series for e^(x) to find the series for e^(3x) up to and including the term in x³.2 marks
    Answer
    1. e^(3x)=1+3x+((3x)²)/(2!)+((3x)³)/(3!) (M1).
    2. =1+3x+9/2x²+9/2x³ (A1).

    Trap: The 3 must be raised to the same power as x. Writing 3x²/(2!) leaves the 3 unsquared.

  3. Do not use a calculator. Use the series for ln(1+x) to find the series for ln(1-x) up to and including the term in x³.2 marks
    Answer
    1. replace x with -x: (-x)-((-x)²)/2+((-x)³)/3 (M1).
    2. ln(1-x)=-x-x²/2-x³/3 (A1).

    Trap: Negating every term gives -x+x²/2-x³/3, which is -ln(1+x). Put -x in every term: (-x)² is positive, so the term in x² stays negative.

  4. Do not use a calculator. Find the first three terms of the Maclaurin series for 1/(√(1+x)).3 marks
    Answer
    1. write 1/(√(1+x))=(1+x)^(-1/2) (M1).
    2. term in x: -1/2x (A1).
    3. term in x²: ((-1/2)(-3/2))/(2!)x²=3/8x² (A1).
    4. so the series is 1-()/x2+3x²/8.

    Trap: The second factor in the coefficient is p-1=-3/2, not -1/2. Using -1/2 twice gives 1/8.

  5. Do not use a calculator. Find the Maclaurin series for xe^(-x) up to and including the term in x⁴.3 marks
    Answer
    1. e^(-x)=1-x+x²/2-x³/6 (A1).
    2. multiply by x (M1).
    3. xe^(-x)=x-x²+x³/2-x⁴/6 (A1).

    Trap: The factor of x raises every power by one. To reach x⁴ the series for e^(-x) is needed up to x³ only.

  6. Do not use a calculator. Find the Maclaurin series for e^(x)ln(1+x) up to and including the term in x³.4 marks
    Answer
    1. ln(1+x)=x-x²/2+x³/3 and e^(x)=1+x+x²/2 (A1)(A1).
    2. (x-x²/2+x³/3)(1+x+x²/2) (M1).
    3. term in x²: x· x-x²/2=x²/2. Term in x³: 1/2-1/2+1/3=1/3.
    4. so the series is x+x²/2+x³/3 (A1).

    Trap: The term in x³ has three contributions. Counting only x·x²/2 gives 1/2, not 1/3.

  7. Do not use a calculator. Given that d/dx(arctan x)=1/(1+x²), show that the Maclaurin series for arctan x begins x-x³/3+x⁵/5.4 marks
    Answer
    1. (1+x²)⁻¹=1-x²+x⁴-⋯ (M1)(A1).
    2. integrate: arctan x=x-x³/3+x⁵/5+c (A1).
    3. arctan 0=0, so c=0 (R1).

    Trap: Integrating a series gives a constant. Without the condition arctan 0=0 the series is not fully determined.

  8. Do not use a calculator. Find lim_x→0(e^(x)-1-x)/(xsin x).4 marks
    Answer
    1. e^(x)-1-x=x²/2+x³/6+⋯ (A1).
    2. xsin x=x(x-x³/6+⋯)=x²-x⁴/6+⋯ (A1).
    3. divide top and bottom by x²: (1/2+()/x6+⋯)/(1-x²/6+⋯) (M1).
    4. the limit as x→0 is 1/2 (A1).

    Trap: Both the top and the bottom start at x². Dividing by x only leaves 0/0 again, so divide by x² and keep the constant terms.

  9. A function y(x) satisfies dy/dx=xy and y(0)=1. Find the Maclaurin series for y up to and including the term in x⁴.6 marks
    Answer
    1. y'(0)=0×1=0 (A1).
    2. differentiate the equation with the product rule: y''=y+xy' (M1).
    3. y''(0)=1+0=1 (A1).
    4. differentiate again: y'''=2y'+xy'', so y'''(0)=0. Then y⁽⁴⁾=3y''+xy''' (M1).
    5. y⁽⁴⁾(0)=3 (A1).
    6. y=1+x²/(2!)+3x⁴/(4!)=1+x²/2+x⁴/8 (A1).

    Trap: Differentiating xy gives y+xy', not xy'. Dropping the y makes y''(0)=0 and the series is just 1.

  10. The function f is defined by f(x)=e^(sin x). (a) Show that f'(x)=f(x)cos x. [1] (b) By differentiating the equation in part (a), find the Maclaurin series for f(x) up to and including the term in x³. [6] (c) Hence find lim_x→0(f(x)-1-x)/x². [2]9 marks
    Answer
    1. (a)
    2. chain rule: f'(x)=cos x e^(sin x)=f(x)cos x A1 AG.
    3. (b)
    4. f(0)=e⁰=1 and f'(0)=1×cos 0=1 A1.
    5. product rule: f''(x)=f'(x)cos x-f(x)sin x M1.
    6. f''(0)=1×1-1×0=1 A1.
    7. product rule on both terms: f'''(x)=f''(x)cos x-2f'(x)sin x-f(x)cos x M1.
    8. f'''(0)=1-0-1=0 A1.
    9. f(x)=1+x+x²/(2!)+0/(3!)x³=1+x+x²/2, with no term in x³ A1.
    10. (c)
    11. (f(x)-1-x)/x²=(x²/2+⋯)/x²=1/2+powers ofx M1.
    12. the limit is 1/2 A1.

    Trap: Each derivative of f(x)cos x needs the product rule. Writing f''=f'cos x drops -fsin x, then f'''(0) comes out as 1 and a false term x³/6 appears.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
cos 2x=1-2x²/(2!)+⋯, with the 2 not squaredcos 2x=1-((2x)²)/(2!)+⋯=1-2x²+⋯. Bracket the replacement before simplifying
The coefficient of x³ is f'''(0)The coefficient of x³ is (f'''(0))/(3!). Every term has a factorial
cosⁿ x=1-x²/2+⋯, an answer with no n in itcosⁿ x=(1-x²/2+⋯)ⁿ=1-nx²/2+⋯. Raise the series to the power n
Integrate the series term by term and stop, with no constantIntegrate term by term, then put x=0 to find the constant of integration

Frequently asked questions

How do you build a Maclaurin series for a function?
The term in x^(r) has coefficient (f^((r))(0))/(r!), so differentiate repeatedly, put x = 0 into each derivative, and divide by the factorial. The factorial is part of the coefficient. For f(x) = ln(1+x) up to x³, the series is x - x²/2 + x³/3. The standard series for e^(x), sin x, cos x and arctan x are in the data booklet.
How do you substitute an expression into a Maclaurin series, such as for cos 2x or ln(1 + 3x^2)?
Replace x everywhere with the expression, and put it in brackets before you simplify. In cos 2x the term x²/(2!) becomes ((2x)²)/(2!), so cos 2x = 1 - 2x² + 2/3x⁴ - ⋯. For ln(1 + 3x²) the series up to x⁶ is 3x² - 9/2x⁴ + 9x⁶.
How do you multiply two Maclaurin series together?
Write each series, multiply them term by term, and collect the terms with the same power of x. Keep only the terms you need. A coefficient can come out as zero, and then that power is missing from the answer. For e^(x)cos x up to x³, the x² terms cancel, giving 1 + x - x³/3.
How do you find a Maclaurin series for a function defined by a differential equation?
Use the initial condition for y(0), then put x = 0 into the equation for y'(0). Differentiate the equation to get y'', using the product rule wherever x multiplies y, and repeat for each term you need. For dy/dx = x + y with y(0) = 1, the series is 1 + x + x² + x³/3 up to x³.
How do you use a Maclaurin series to find a limit?
Replace each function with its Maclaurin series, divide out the common power of x, and keep the constant term, since every other term goes to zero as x → 0. For fn(x) = cosⁿ x = 1 - nx²/2 + ⋯, the limit is lim_x → 0(fn(x) - 1)/x² = -n/2. The answer must still contain n.
What mistakes do students make with Maclaurin series?
A common trap is differentiating xy as xy'. The product rule gives y + xy', and dropping the y makes y''(0) = 0 and the series wrong. Another is negating every term when substituting -x: (-x)² is positive, so ln(1 - x) = -x - x²/2 - x³/3, not -x + x²/2 - x³/3.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters