5.19 Maclaurin series

5.19 Maclaurin series

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • f(x)=∑f(n)(0)n!xnf(x)=\sum\dfrac{f^{(n)}(0)}{n!}x^{n}. Include the factorials.
  • Know the standard series for exe^{x}, sin⁡x\sin x, cos⁡x\cos x, ln⁡(1+x)\ln(1+x) and (1+x)p(1+x)^{p}, with their intervals of validity.
  • New series come by substitution (bracket every power), products, differentiation and integration.
  • From a differential equation: differentiate implicitly, evaluate at x=0x=0, build the series.
  • Series approximations are best near x=0x=0; use series to evaluate limits.
−4−3−2−11234−2−1.5−1−0.50.511.52xy(0, 0)y = sin xtwo termsthree terms
sin x (solid) and two truncated series (dashed): good near 0, worse further away.

What is a Maclaurin series?

A Maclaurin series writes a function as an infinite polynomial built from its derivatives at x=0x=0. Truncating it gives an approximation that is very good close to x=0x=0.

A Maclaurin series is

f(x)=f(0)+xf′(0)+x22!f′′(0)+x33!f′′′(0)+…f(x)=f(0)+xf'(0)+\frac{x^{2}}{2!}f''(0)+\frac{x^{3}}{3!}f'''(0)+\dots

The general term is f(n)(0)n!xn\dfrac{f^{(n)}(0)}{n!}x^{n}. If you truncate the series after a few terms, you get a polynomial approximation that is usually worse further from x=0x=0. The formula is in the booklet; the skill is finding derivatives accurately.

−2−1.5−1−0.50.511.522468xy(0, 1)eˣ1 + x+ x²/2+ x³/6
The more terms of the Maclaurin series of eˣ (dashed), the closer the polynomial is to the curve near x = 0
  • General termf(n)(0)n!xn\dfrac{f^{(n)}(0)}{n!}x^{n}

What is the coefficient of x2x^{2} in the Maclaurin series of cos⁡x\cos x?

The standard series

The series for exe^{x}, sin⁡x\sin x, cos⁡x\cos x, ln⁡(1+x)\ln(1+x) and (1+x)p(1+x)^{p} are in the booklet, with the range of xx where each is valid.

  • ex=1+x+x22!+x33!+…e^{x}=1+x+\frac{x^{2}}{2!}+\frac{x^{3}}{3!}+\dots (all xx)
  • sin⁡x=x−x33!+x55!−…\sin x=x-\frac{x^{3}}{3!}+\frac{x^{5}}{5!}-\dots (all xx)
  • cos⁡x=1−x22!+x44!−…\cos x=1-\frac{x^{2}}{2!}+\frac{x^{4}}{4!}-\dots (all xx)
  • ln⁡(1+x)=x−x22+x33−…\ln(1+x)=x-\frac{x^{2}}{2}+\frac{x^{3}}{3}-\dots (−1<x≤1-1<x\le1), with no factorials
  • (1+x)p=1+px+p(p−1)2!x2+…(1+x)^{p}=1+px+\frac{p(p-1)}{2!}x^{2}+\dots (∣x∣<1|x|<1)

The interval of validity is where the series converges. sin⁡x\sin x is odd, so only odd powers appear; cos⁡x\cos x is even.

−2−1.5−1−0.50.511.522468xy(0, 1)y = eˣthree termsfour terms
eˣ (solid) and two truncated series (dashed).

What is the coefficient of x3x^{3} in the series for ln⁡(1+x)\ln(1+x)?

New series by substitution

Replace xx in a standard series by an expression, simplify every power carefully, and change the interval of validity to match.

  • e2x=1+2x+2x2+43x3+…e^{2x}=1+2x+2x^{2}+\frac{4}{3}x^{3}+\dots
  • ex2=1+x2+x42!+…e^{x^{2}}=1+x^{2}+\frac{x^{4}}{2!}+\dots
  • ln⁡(1+3x)=3x−92x2+9x3−…\ln(1+3x)=3x-\frac{9}{2}x^{2}+9x^{3}-\dots, valid for −13<x≤13-\frac{1}{3}<x\le\frac{1}{3}

Bracket every power: (2x)3=8x3(2x)^{3}=8x^{3}, not 2x32x^{3}. Substituting 3x3x for xx in −1<x≤1-1<x\le1 gives the new interval.

−1.4−1.2−1−0.8−0.6−0.4−0.200.20.40.60.811.2246810xy(0, 1)e^(2x)series
e^(2x) and its series 1 + 2x + 2x² + (4/3)x³ (dashed), obtained by replacing x with 2x

exe^{x}

Replace xx by:
2x2x
Result:
1+2x+2x2+43x31+2x+2x^{2}+\frac{4}{3}x^{3}

ln⁡(1+x)\ln(1+x)

Replace xx by:
3x3x
Result:
3x−92x2+9x33x-\frac{9}{2}x^{2}+9x^{3}

Worked example

Find the Maclaurin series of e−x2e^{-x^{2}} up to the term in x4x^{4}.

What is the coefficient of x2x^{2} in the series for cos⁡2x\cos2x?

Products, derivatives and integrals

Multiply series and collect terms up to the power needed, or differentiate or integrate a series term by term.

Products: multiply two series, keeping only the pairs whose powers add to at most the power you need.

Differentiation: differentiate term by term. From ln⁡(1+3x)\ln(1+3x) we get 31+3x=3−9x+27x2−…\frac{3}{1+3x}=3-9x+27x^{2}-\dots

Integration: integrate term by term, which approximates integrals that cannot be done exactly, such as ∫00.5e−x2 dx≈∫00.5(1−x2+x42)dx\int_{0}^{0.5}e^{-x^{2}}\,\mathrm{d}x\approx\int_{0}^{0.5}\left(1-x^{2}+\frac{x^{4}}{2}\right)\mathrm{d}x.

−1.5−1−0.50.511.50.20.40.60.811.2xy(0, 1)e^(−x²)series
Integrating the series 1 − x² + x⁴/2 (dashed) term by term approximates the shaded area under e^(−x²) from 0 to 0.5
  • exsin⁡xe^{x}\sin xx+x2+13x3+…x+x^{2}+\dfrac{1}{3}x^{3}+\dots
  • ln⁡(1+3x)\ln(1+3x)ddx→3−9x+27x2−…\dfrac{\mathrm{d}}{\mathrm{d}x}\to3-9x+27x^{2}-\dots

Worked example

Find the series for exsin⁡xe^{x}\sin x up to x3x^{3}.

What is the coefficient of x2x^{2} in the series for excos⁡xe^{x}\cos x?

Series from differential equations

Differentiate the equation implicitly, evaluate at x=0x=0 at each stage, then build the series from y(0)y(0), y′(0)y'(0), y′′(0)y''(0) and so on.

If yy is defined by a differential equation and an initial value, differentiate the equation implicitly to get y′′y'', then again for y′′′y''', and substitute x=0x=0 at each stage. Put the values into y(0)+y′(0)x+y′′(0)2!x2+…y(0)+y'(0)x+\frac{y''(0)}{2!}x^{2}+\dots

Take care: ddx(y2)=2ydydx\frac{\mathrm{d}}{\mathrm{d}x}(y^{2})=2y\frac{\mathrm{d}y}{\mathrm{d}x}, and differentiating 2yy′2yy' needs the product rule: 2(y′)2+2yy′′2(y')^{2}+2yy''.

  1. 1

    First derivative

    use the equation to find y′(0)y'(0)

  2. 2

    Differentiate implicitly

    get y′′y'', then again for y′′′y'''

  3. 3

    Substitute x=0x=0

    use the known values at each stage

  4. 4

    Build the series

    y(0)+y′(0)x+y′′(0)2!x2+…y(0)+y'(0)x+\frac{y''(0)}{2!}x^{2}+\dots

Series from a differential equation.

Worked example

Find the series for yy up to x3x^{3}, where y′=x+y2y'=x+y^{2} and y(0)=1y(0)=1.

If y′=x+yy'=x+y and y(0)=1y(0)=1, what is the coefficient of x2x^{2} in the series for yy?

Approximations and limits

Substitute a small xx to approximate a value. For a limit, replace each function by its series, cancel the lowest power, then let x→0x\to0.

Approximations: substitute a small value of xx. For example ln⁡1.3≈0.264\ln1.3\approx0.264 from three terms of ln⁡(1+3x)\ln(1+3x) with x=0.1x=0.1 (true value 0.2624). Accuracy falls as xx moves away from 0.

Limits: replace each function by its series, cancel the lowest power of xx, then let x→0x\to0. If a question says to use the Maclaurin series, a limit found only by l'Hôpital's rule will not earn the marks.

−0.2−0.10.10.20.30.40.5−3−2−112xy(0.1, 0.262)ln(1 + 3x)series
ln(1 + 3x) and its three-term series (dashed): at x = 0.1 the value is 0.262, accurate near 0 but poorer further away
  • lim⁡x→0e2x−1−2xx2\lim_{x\to0}\dfrac{e^{2x}-1-2x}{x^{2}}22
  • lim⁡x→0sin⁡x−xx3\lim_{x\to0}\dfrac{\sin x-x}{x^{3}}−16-\dfrac{1}{6}

Worked example

Find lim⁡x→0e2x−1−2xx2\lim_{x\to0}\dfrac{e^{2x}-1-2x}{x^{2}}.

Find lim⁡x→0sin⁡x−xx3\lim_{x\to0}\dfrac{\sin x-x}{x^{3}}.

Try an exam question

Find the Maclaurin series for exsin⁡xe^{x}\sin x up to and including the term in x3x^{3}.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the coefficient of x3x^{3} in the Maclaurin series for f(x)f(x).

1 mark, marked against the mark scheme

Revision notes