Educerie

This whole subtopic is higher level. Nothing in it is on an SL paper.

Educerie · IB Diploma · Mathematics: analysis and approaches

IB Mathematics AA 5.19 · HL only

Maclaurin series

How can a polynomial stand in for exe^{x}, sin⁡x\sin x or ln⁡(1+x)\ln(1 + x), and how do you build the series for a new function from the ones you already know?

What you will learn

  • HL Understand a Maclaurin series as a polynomial matching a function's value and derivatives at x = 0
  • HL Know the standard series for e to the x, sin x, cos x, arctan x, ln(1 + x) and (1 + x) to a rational power, and where each is valid
  • HL Understand how substitution, products, differentiation and integration build new series from the standard ones
  • HL Know how to find a series solution of a differential equation by differentiating the equation repeatedly

You must be able to

  1. HL Find a Maclaurin series from the definition, up to a given power of x
  2. HL Find the series of a differential equation's solution from its value and derivatives at x = 0
  3. HL Find a new series by substituting into a standard series, such as e to the x²
  4. HL Calculate a product of two series, such as e to the x times sin x, collecting powers
  5. HL Use a series to find a limit or approximate an integral
  6. HL State the values of x for which an expansion is valid

In the exam. Paper 1 (no calculator): derive a series from the definition (4 to 6 marks), build one by substitution, multiplication, differentiation or integration (3 to 6 marks), use it to find a limit (5.13), or find the series solution of a differential equation (6 to 8 marks). Paper 2: use a series to approximate a value or an integral, and compare with the GDC (4 to 6 marks). Paper 3 often builds a whole problem on a series.

1Where the coefficients come from

Suppose f(x)=a0+a1x+a2x2+a3x3+a4x4+…f(x) = a_{0} + a_{1}x + a_{2}x^{2} + a_{3}x^{3} + a_{4}x^{4} + \dots.

  • Put x=0x = 0 and every term but the first vanishes, so a0=f(0)a_{0} = f(0).
  • Differentiate once and put x=0x = 0: a1=f′(0)a_{1} = f'(0).
  • Differentiate again: f′′(x)=2a2+3×2a3x+…f''(x) = 2a_{2} + 3 \times 2a_{3}x + \dots, so f′′(0)=2a2f''(0) = 2a_{2}.
  • Once more: f′′′(0)=3×2×1×a3=3! a3f'''(0) = 3 \times 2 \times 1 \times a_{3} = 3!\,a_{3}.

The pattern is an=f(n)(0)n!a_{n} = \dfrac{f^{(n)}(0)}{n!}, which gives the formula in the booklet:

Maclaurin series: f(x)=f(0)+x f′(0)+x22!f′′(0)+x33!f′′′(0)+…f(x) = f(0) + x\,f'(0) + \dfrac{x^{2}}{2!}f''(0) + \dfrac{x^{3}}{3!}f'''(0) + \dots, with the nn-th term xnn!f(n)(0)\dfrac{x^{n}}{n!}f^{(n)}(0).

  • Stopping after the term in xnx^{n} leaves the Maclaurin polynomial of degree nn. That is what "up to and including the term in xnx^{n}" asks for.
  • A term whose coefficient is zero still counts as a term. The polynomial for sin⁡x\sin x of degree 4 is the same as the one of degree 3.
  • The request "the first three non-zero terms" is different. Skip the zeros and count only the terms that are there.

Example 1: exe^{x}

  • Every derivative of exe^{x} is exe^{x}, and e0=1e^{0} = 1.
  • So every f(n)(0)f^{(n)}(0) is 1, and
ex=1+x+x22!+x33!+x44!+…e^{x} = 1 + x + \frac{x^{2}}{2!} + \frac{x^{3}}{3!} + \frac{x^{4}}{4!} + \dots
  • Figure 1 shows the partial sums. The line 1+x1 + x matches the value and the slope at 0: it is the tangent. Adding x22\dfrac{x^{2}}{2} matches the bending. Adding x36\dfrac{x^{3}}{6} matches the rate the bending changes. Each term clings to exe^{x} over a wider stretch.
Figure 1 · Polynomials that copy eˣ at x = 0 y = eˣ 1 + x 1 + x + x²/2 (dashed) 1 + x + x²/2 + x³/6 x y −1 1 2 2 4 6 Each new term matches one more derivative at 0: first the value, then the slope, then the bending. Near 0 the cubic is almost indistinguishable from eˣ; further out every polynomial drifts away.
Figure 1 · Polynomials that copy eˣ at x = 0
  • A quick use: e0.1≈1+0.1+0.005+0.000167=1.105167e^{0.1} \approx 1 + 0.1 + 0.005 + 0.000167 = 1.105167, and the true value is 1.1051711.105171. Four terms give five correct decimal places, as the powers of 0.10.1 shrink so fast.

Example 2: sin⁡x\sin x

  • The derivatives cycle: sin⁡x\sin x, cos⁡x\cos x, −sin⁡x-\sin x, −cos⁡x-\cos x, sin⁡x\sin x, …. At 0 these are 0,1,0,−1,0,1,…0, 1, 0, -1, 0, 1, \dots.
  • The even powers vanish and the odd ones alternate in sign.
sin⁡x=x−x33!+x55!−x77!+…\sin x = x - \frac{x^{3}}{3!} + \frac{x^{5}}{5!} - \frac{x^{7}}{7!} + \dots
  • An odd function has only odd powers, a good check. Figure 2 shows the polynomials of degree 1, 3, 5 and 7 each staying on the sine curve for longer.
  • The series for cos⁡x\cos x follows the same way (derivatives at 0 are 1,0,−1,0,…1, 0, -1, 0, \dots). Or differentiate the sine series (section 5). An even function has only even powers.
Figure 2 · More terms, a wider stretch of agreement x degree 3 degree 5 degree 7 y = sin x x y −2π −π π 2π −1 1 Maclaurin polynomials for sin x of degree 1, 3, 5 and 7. Each extra term keeps the polynomial on the curve for longer.
Figure 2 · More terms, a wider stretch of agreement

Example 3: ln⁡(1+x)\ln(1 + x)

  • ln⁡x\ln x itself has no Maclaurin series, because ln⁡0\ln 0 does not exist.
  • That is why the standard series is for ln⁡(1+x)\ln(1 + x).
f(x)=ln⁡(1+x)f(0)=0f(x) = \ln(1 + x) \qquad\qquad f(0) = 0f′(x)=(1+x)−1f′(0)=1f'(x) = (1 + x)^{-1} \qquad\qquad f'(0) = 1f′′(x)=−(1+x)−2f′′(0)=−1f''(x) = -(1 + x)^{-2} \qquad\qquad f''(0) = -1f′′′(x)=2(1+x)−3f′′′(0)=2f'''(x) = 2(1 + x)^{-3} \qquad\qquad f'''(0) = 2f(4)(x)=−6(1+x)−4f(4)(0)=−6f^{(4)}(x) = -6(1 + x)^{-4} \qquad\qquad f^{(4)}(0) = -6ln⁡(1+x)=0+x−x22!+2x33!−6x44!+⋯=x−x22+x33−x44+…\ln(1 + x) = 0 + x - \frac{x^{2}}{2!} + \frac{2x^{3}}{3!} - \frac{6x^{4}}{4!} + \dots = x - \frac{x^{2}}{2} + \frac{x^{3}}{3} - \frac{x^{4}}{4} + \dots
  • The factorials cancel to leave ±xnn\pm\dfrac{x^{n}}{n}.
  • Lay out a derivation like this: derivatives in one column, values at 0 in the other.

Example 4: values at 0 that are not 0 or 1

  • Find the Maclaurin series for f(x)=cos⁡(x+π3)f(x) = \cos\left(x + \dfrac{\pi}{3}\right) up to and including the term in x4x^{4}.
  • The derivatives cycle as for cos⁡x\cos x, but at 0 they take the exact values of cos⁡π3\cos\dfrac{\pi}{3} and sin⁡π3\sin\dfrac{\pi}{3}:
f(0)=12f′(0)=−32f′′(0)=−12f′′′(0)=32f(4)(0)=12f(0) = \frac{1}{2} \qquad f'(0) = -\frac{\sqrt{3}}{2} \qquad f''(0) = -\frac{1}{2} \qquad f'''(0) = \frac{\sqrt{3}}{2} \qquad f^{(4)}(0) = \frac{1}{2}cos⁡(x+π3)=12−32x−x24+312x3+x448+…\cos\left(x + \frac{\pi}{3}\right) = \frac{1}{2} - \frac{\sqrt{3}}{2}x - \frac{x^{2}}{4} + \frac{\sqrt{3}}{12}x^{3} + \frac{x^{4}}{48} + \dots
  • Keep the surds exact. No power is missing here, because the function is neither odd nor even.
  • A check: the compound-angle formula gives 12cos⁡x−32sin⁡x\dfrac{1}{2}\cos x - \dfrac{\sqrt{3}}{2}\sin x, and the two standard series give the same coefficients.

2The standard series, and where each one works

FunctionSeriesWorks for
exe^{x}1+x+x22!+x33!+…1 + x + \dfrac{x^{2}}{2!} + \dfrac{x^{3}}{3!} + \dotsevery xx
sin⁡x\sin xx−x33!+x55!−…x - \dfrac{x^{3}}{3!} + \dfrac{x^{5}}{5!} - \dotsevery xx
cos⁡x\cos x1−x22!+x44!−…1 - \dfrac{x^{2}}{2!} + \dfrac{x^{4}}{4!} - \dotsevery xx
ln⁡(1+x)\ln(1 + x)x−x22+x33−x44+…x - \dfrac{x^{2}}{2} + \dfrac{x^{3}}{3} - \dfrac{x^{4}}{4} + \dots−1<x≤1-1 < x \le 1
arctan⁡x\arctan xx−x33+x55−x77+…x - \dfrac{x^{3}}{3} + \dfrac{x^{5}}{5} - \dfrac{x^{7}}{7} + \dots−1≤x≤1-1 \le x \le 1
(1+x)p(1 + x)^{p}1+px+p(p−1)x22!+p(p−1)(p−2)x33!+…1 + px + \dfrac{p(p - 1)x^{2}}{2!} + \dfrac{p(p - 1)(p - 2)x^{3}}{3!} + \dots−1<x<1-1 < x < 1 (every xx if pp is a positive whole number)

The last column matters when you use a series to approximate. You are not asked to prove it.

Figure 3 shows the problem with ln⁡(1+x)\ln(1 + x). Inside −1<x≤1-1 < x \le 1 the partial sums close in on the curve. Beyond x=1x = 1 each extra term makes things worse, because the powers xnx^{n} grow faster than the nn in the denominator.

Figure 3 · The series for ln(1 + x) only works for −1 < x ≤ 1 series fails y = ln(1 + x) 11 terms 10 terms 5 terms x y −1 1 2 −2 −1 1 2 Partial sums with 5, 10 and 11 terms. Inside −1 < x ≤ 1 they close in on ln(1 + x); beyond x = 1 they swing further away with every term added, so the series is no use there.
Figure 3 · The series for ln(1 + x) only works for −1 < x ≤ 1

The binomial series

  • Take (1+x)p(1 + x)^{p} with pp a fraction or a negative number. The Maclaurin method gives exactly the extended binomial expansion of 1.10: f(0)=1f(0) = 1, f′(0)=pf'(0) = p, f′′(0)=p(p−1)f''(0) = p(p - 1), and so on.
  • For example, (1+x)1/2=1+x2−x28+x316−…(1 + x)^{1/2} = 1 + \dfrac{x}{2} - \dfrac{x^{2}}{8} + \dfrac{x^{3}}{16} - \dots and (1+x)−1=1−x+x2−x3+…(1 + x)^{-1} = 1 - x + x^{2} - x^{3} + \dots.

Stating where a new series works

  • A question may say "state the values of xx for which the expansion is valid". Rewrite the standard condition in terms of what has replaced xx. The series for (1+ax)p(1 + ax)^{p} works when ∣ax∣<1|ax| < 1, that is ∣x∣<1∣a∣|x| < \dfrac{1}{|a|}.
  • So (1−3x)−1/2(1 - 3x)^{-1/2} works for ∣x∣<13|x| < \dfrac{1}{3} and ln⁡(1+5x)\ln(1 + 5x) for −15<x≤15-\dfrac{1}{5} < x \le \dfrac{1}{5}. The sum of two series, or their product, works only where both do: the smaller of the two intervals.

Using a series to find a number. Choose the form that puts the replaced variable close to 0.

7.523=2 (0.94)1/3=2(1−0.063−(0.06)29−5(0.06)381)take the 8 out: x=−0.06 is small=2 (1−0.02−0.0004−0.0000133)=1.95917\begin{aligned}\sqrt[3]{7.52} &= 2\,(0.94)^{1/3} = 2\left(1 - \frac{0.06}{3} - \frac{(0.06)^{2}}{9} - \frac{5(0.06)^{3}}{81}\right) && \textcolor{#838c91}{\text{take the 8 out: }x = -0.06\text{ is small}} \\[6pt] &= 2\,(1 - 0.02 - 0.0004 - 0.0000133) = 1.95917\end{aligned}
  • Pulling out the perfect cube is what makes the series usable (the GDC gives 1.9591721.959172).
  • When the terms alternate in sign and shrink, the error is smaller than the first term you left out.
  • Example: sin⁡0.5≈0.5−0.536=0.47917\sin 0.5 \approx 0.5 - \dfrac{0.5^{3}}{6} = 0.47917 is within 0.55120=0.00026\dfrac{0.5^{5}}{120} = 0.00026 of the truth.

Accuracy against simplicity

  • More terms mean more accuracy, but the right choice of series can matter more.
  • Five terms of the ln⁡(1+x)\ln(1 + x) series at x=1x = 1 give ln⁡2≈0.783\ln 2 \approx 0.783. That is poor, because x=1x = 1 is at the edge of where the series works. Since ln⁡2=−ln⁡(1−12)\ln 2 = -\ln\left(1 - \dfrac{1}{2}\right), use the ln⁡(1−x)\ln(1 - x) series at x=12x = \dfrac{1}{2}, well inside its interval. The same five terms give 0.5+0.125+0.04167+0.01563+0.00625=0.6890.5 + 0.125 + 0.04167 + 0.01563 + 0.00625 = 0.689, against the true 0.693150.69315.
  • The guide asks whether there is always a trade-off between accuracy and simplicity, and sets the Kerala School beside the Bourbaki.
    • In the fourteenth century the Indian mathematician Madhava already had infinite series for trigonometric functions. James Gregory in Scotland, probably unaware of his work, found such series again in the seventeenth century.

3New series by substitution

Figure 4 shows four ways to make a new series from a standard one. This section and the next add two more: a series inside a series, and division.

Figure 4 · Six standard series, four ways to build new ones The standard series eˣ sin x, cos x ln(1 + x) arctan x (1 + x)ᵖ Substitute replace x by x², −x, 2x … ex², cos 2x, ln(1 − x) Multiply two series, collect terms eˣ sin x Differentiate term by term d/dx of sin x series → cos x Integrate term by term ∫ 1/(1 + x²) → arctan x You rarely differentiate from scratch. Start from a known series and change it.
Figure 4 · Six standard series, four ways to build new ones

Substitution. Replace xx throughout by something else, such as x2x^{2}, −x-x, 2x2x or 3x23x^{2}. The guide's example is ex2e^{x^{2}}:

eu=1+u+u22!+u33!+…standard series with u in place of xe^{u} = 1 + u + \frac{u^{2}}{2!} + \frac{u^{3}}{3!} + \dots \qquad \textcolor{#838c91}{\text{standard series with }u\text{ in place of }x}ex2=1+x2+x42+x66+…put u=x2: (x2)2=x4, (x2)3=x6e^{x^{2}} = 1 + x^{2} + \frac{x^{4}}{2} + \frac{x^{6}}{6} + \dots \qquad \textcolor{#838c91}{\text{put }u = x^{2}\text{: }(x^{2})^{2} = x^{4}\text{, }(x^{2})^{3} = x^{6}}

The same move gives other series:

  • cos⁡2x=1−(2x)22!+(2x)44!−⋯=1−2x2+23x4−…\cos 2x = 1 - \dfrac{(2x)^{2}}{2!} + \dfrac{(2x)^{4}}{4!} - \dots = 1 - 2x^{2} + \tfrac{2}{3}x^{4} - \dots. The brackets matter: (2x)2(2x)^{2} is 4x24x^{2}, not 2x22x^{2}.
  • ln⁡(1−x)=−x−x22−x33−…\ln(1 - x) = -x - \dfrac{x^{2}}{2} - \dfrac{x^{3}}{3} - \dots, by putting −x-x for xx.
  • 11+x2=1−x2+x4−x6+…\dfrac{1}{1 + x^{2}} = 1 - x^{2} + x^{4} - x^{6} + \dots, from (1+u)−1(1 + u)^{-1} with u=x2u = x^{2}.

A binomial substitution, with its interval. Find the series for 11−3x\dfrac{1}{\sqrt{1 - 3x}} up to x3x^{3} and state when it is valid. Write it as (1+u)−1/2(1 + u)^{-1/2} with u=−3xu = -3x:

(1+u)−1/2=1−u2+3u28−5u316+…coefficients (−1/2)(−3/2)2!=38 and (−1/2)(−3/2)(−5/2)3!=−516(1 + u)^{-1/2} = 1 - \frac{u}{2} + \frac{3u^{2}}{8} - \frac{5u^{3}}{16} + \dots \qquad \textcolor{#838c91}{\text{coefficients }\frac{(-1/2)(-3/2)}{2!} = \frac{3}{8}\text{ and }\frac{(-1/2)(-3/2)(-5/2)}{3!} = -\frac{5}{16}}(1−3x)−1/2=1+3x2+27x28+135x316+…38(−3x)2=278x2, −516(−3x)3=13516x3(1 - 3x)^{-1/2} = 1 + \frac{3x}{2} + \frac{27x^{2}}{8} + \frac{135x^{3}}{16} + \dots \qquad \textcolor{#838c91}{\frac{3}{8}(-3x)^{2} = \frac{27}{8}x^{2}\text{, }-\frac{5}{16}(-3x)^{3} = \frac{135}{16}x^{3}}

It is valid when ∣3x∣<1|3x| < 1, that is −13<x<13-\dfrac{1}{3} < x < \dfrac{1}{3}.

A series inside a series

  • To find the series of f(g(x))f(g(x)), put the series for g(x)g(x) in place of xx in the series for ff. Then keep only the powers you need.
  • The one condition: the series for g(x)g(x) must have no constant term, because the standard series only work near 00.
  • Take cos⁡(ln⁡(1+x))\cos\left(\ln(1 + x)\right) up to x4x^{4}, with u=ln⁡(1+x)=x−x22+x33−…u = \ln(1 + x) = x - \dfrac{x^{2}}{2} + \dfrac{x^{3}}{3} - \dots:
cos⁡u=1−u22+u424−…\cos u = 1 - \frac{u^{2}}{2} + \frac{u^{4}}{24} - \dotsu2=x2−x3+1112x4+…u4=x4+…x4 in u2: 14+23=1112, from (−x22)2 and 2×x×x33u^{2} = x^{2} - x^{3} + \frac{11}{12}x^{4} + \dots \qquad u^{4} = x^{4} + \dots \qquad \textcolor{#838c91}{x^{4}\text{ in }u^{2}\text{: }\frac{1}{4} + \frac{2}{3} = \frac{11}{12}\text{, from }\left(-\frac{x^{2}}{2}\right)^{2}\text{ and }2 \times x \times \frac{x^{3}}{3}}cos⁡(ln⁡(1+x))=1−12(x2−x3+1112x4)+x424=1−x22+x32−5x412+…\cos\left(\ln(1 + x)\right) = 1 - \frac{1}{2}\left(x^{2} - x^{3} + \frac{11}{12}x^{4}\right) + \frac{x^{4}}{24} = 1 - \frac{x^{2}}{2} + \frac{x^{3}}{2} - \frac{5x^{4}}{12} + \dots
  • Because uu starts at xx, no power of uu above unu^{n} matters for a series up to xnx^{n}.
  • If the inner function has a constant term, take it out first. For cos⁡x3\sqrt[3]{\cos x}, write cos⁡x=1+u\cos x = 1 + u with u=−x22+x424−…u = -\dfrac{x^{2}}{2} + \dfrac{x^{4}}{24} - \dots, which starts at x2x^{2}. Then use (1+u)1/3=1+u3−u29+…(1 + u)^{1/3} = 1 + \dfrac{u}{3} - \dfrac{u^{2}}{9} + \dots:
cos⁡x3=1+13(−x22+x424)−19(x44)+⋯=1−x26+(172−136)x4=1−x26−x472+…\sqrt[3]{\cos x} = 1 + \frac{1}{3}\left(-\frac{x^{2}}{2} + \frac{x^{4}}{24}\right) - \frac{1}{9}\left(\frac{x^{4}}{4}\right) + \dots = 1 - \frac{x^{2}}{6} + \left(\frac{1}{72} - \frac{1}{36}\right)x^{4} = 1 - \frac{x^{2}}{6} - \frac{x^{4}}{72} + \dots
  • For ecos⁡xe^{\cos x}, write ecos⁡x=e×ecos⁡x−1e^{\cos x} = e \times e^{\cos x - 1} and use u=cos⁡x−1u = \cos x - 1, which gives e(1−x22+x46+… )e\left(1 - \dfrac{x^{2}}{2} + \dfrac{x^{4}}{6} + \dots\right).
  • Substituting the whole of cos⁡x=1−…\cos x = 1 - \dots into eue^{u} gives a wrong series once you cut it off.

4Sums, products and quotients of series

Adding and subtracting

  • Combine like powers.
  • Example: ex+e−x=2+x2+x412+…e^{x} + e^{-x} = 2 + x^{2} + \dfrac{x^{4}}{12} + \dots (odd powers cancel).
  • Subtracting the series for ln⁡(1−x)\ln(1 - x) from that for ln⁡(1+x)\ln(1 + x) cancels the even powers: ln⁡1+x1−x=2(x+x33+x55+… )\ln\dfrac{1 + x}{1 - x} = 2\left(x + \dfrac{x^{3}}{3} + \dfrac{x^{5}}{5} + \dots\right). It works only where both do, −1<x<1-1 < x < 1, so it loses the end point x=1x = 1.

Multiplication

  • Multiply two series like two long brackets, but keep only the terms up to the power asked for.
  • The guide's example is exsin⁡xe^{x}\sin x, up to x4x^{4}.
exsin⁡x=(1+x+x22+x36+… )(x−x36+… )e^{x}\sin x = \left(1 + x + \frac{x^{2}}{2} + \frac{x^{3}}{6} + \dots\right)\left(x - \frac{x^{3}}{6} + \dots\right)x1:1×x=xx^{1}: \quad 1 \times x = xx2:x×x=x2x^{2}: \quad x \times x = x^{2}x3:1×(−x36)+x22×x=(−16+12)x3=x33x^{3}: \quad 1 \times \left(-\frac{x^{3}}{6}\right) + \frac{x^{2}}{2} \times x = \left(-\frac{1}{6} + \frac{1}{2}\right)x^{3} = \frac{x^{3}}{3}x4:x×(−x36)+x36×x=0x^{4}: \quad x \times \left(-\frac{x^{3}}{6}\right) + \frac{x^{3}}{6} \times x = 0exsin⁡x=x+x2+x33+0x4+…e^{x}\sin x = x + x^{2} + \frac{x^{3}}{3} + 0x^{4} + \dots
  • Collecting by powers avoids multiplying out terms you will throw away. Differentiating exsin⁡xe^{x}\sin x four times gives the same coefficients, much more slowly.
  • For each power, list the pairs whose powers add up to it. For 1+x cos⁡x\sqrt{1 + x}\,\cos x the x3x^{3} term comes from x316×1\dfrac{x^{3}}{16} \times 1 and x2×(−x22)\dfrac{x}{2} \times \left(-\dfrac{x^{2}}{2}\right), so its coefficient is 116−14=−316\dfrac{1}{16} - \dfrac{1}{4} = -\dfrac{3}{16}.
  • Squaring a series is a product too. For sin⁡2x\sin^{2}x, multiply the whole series x−x36+…x - \dfrac{x^{3}}{6} + \dots by itself, which gives x2−x43+…x^{2} - \dfrac{x^{4}}{3} + \dots. Squaring each term separately is a common slip.

Dividing one series by another. There are two ways.

  • Method 1: turn it into a product. Write the bottom as 1+t1 + t, where tt has no constant term. Use 11+t=1−t+t2−t3+…\dfrac{1}{1 + t} = 1 - t + t^{2} - t^{3} + \dots (the binomial series with p=−1p = -1).
  • To find xex−1\dfrac{x}{e^{x} - 1} up to x3x^{3}, first note that ex−1=x+x22+x36+x424+…e^{x} - 1 = x + \dfrac{x^{2}}{2} + \dfrac{x^{3}}{6} + \dfrac{x^{4}}{24} + \dots has a factor xx. It cancels the xx on top.
xex−1=11+tt=x2+x26+x324+…t2=x24+x36+…t3=x38+…\frac{x}{e^{x} - 1} = \frac{1}{1 + t} \qquad t = \frac{x}{2} + \frac{x^{2}}{6} + \frac{x^{3}}{24} + \dots \qquad t^{2} = \frac{x^{2}}{4} + \frac{x^{3}}{6} + \dots \qquad t^{3} = \frac{x^{3}}{8} + \dots11+t=1−t+t2−t3=1−x2+(−16+14)x2+(−124+16−18)x3+…=1−x2+x212+0x3+…\begin{aligned}\frac{1}{1 + t} &= 1 - t + t^{2} - t^{3} = 1 - \frac{x}{2} + \left(-\frac{1}{6} + \frac{1}{4}\right)x^{2} + \left(-\frac{1}{24} + \frac{1}{6} - \frac{1}{8}\right)x^{3} + \dots \\[6pt] &= 1 - \frac{x}{2} + \frac{x^{2}}{12} + 0x^{3} + \dots\end{aligned}
  • Method 2: equate coefficients. Call the quotient a0+a1x+a2x2+…a_{0} + a_{1}x + a_{2}x^{2} + \dots, multiply back by the bottom, and match powers.
  • For tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x}, tan⁡x\tan x is odd. So write tan⁡x=a1x+a3x3+a5x5+…\tan x = a_{1}x + a_{3}x^{3} + a_{5}x^{5} + \dots and use sin⁡x=tan⁡xcos⁡x\sin x = \tan x \cos x:
x−x36+x5120−⋯=(a1x+a3x3+a5x5)(1−x22+x424)x - \frac{x^{3}}{6} + \frac{x^{5}}{120} - \dots = \left(a_{1}x + a_{3}x^{3} + a_{5}x^{5}\right)\left(1 - \frac{x^{2}}{2} + \frac{x^{4}}{24}\right)x1:a1=1x^{1}: \quad a_{1} = 1x3:a3−a12=−16⇒a3=13x^{3}: \quad a_{3} - \frac{a_{1}}{2} = -\frac{1}{6} \quad\Rightarrow\quad a_{3} = \frac{1}{3}x5:a5−a32+a124=1120⇒a5=215x^{5}: \quad a_{5} - \frac{a_{3}}{2} + \frac{a_{1}}{24} = \frac{1}{120} \quad\Rightarrow\quad a_{5} = \frac{2}{15}tan⁡x=x+x33+2x515+…\tan x = x + \frac{x^{3}}{3} + \frac{2x^{5}}{15} + \dots

Method 1 is quicker when the bottom is easy to write as 1+t1 + t. Method 2 is quicker when you know the shape of the answer (odd, even, or its first term).

5New series by differentiation and integration

A series can be differentiated or integrated term by term, like any polynomial.

Differentiation

  • ddx\dfrac{d}{dx} of the sine series is 1−3x23!+5x45!−…1 - \dfrac{3x^{2}}{3!} + \dfrac{5x^{4}}{5!} - \dots, which simplifies to 1−x22!+x44!−…1 - \dfrac{x^{2}}{2!} + \dfrac{x^{4}}{4!} - \dots: the cosine series, as it should be.
  • From 11−x=1+x+x2+x3+…\dfrac{1}{1 - x} = 1 + x + x^{2} + x^{3} + \dots, differentiating gives 1(1−x)2=1+2x+3x2+4x3+…\dfrac{1}{(1 - x)^{2}} = 1 + 2x + 3x^{2} + 4x^{3} + \dots.
  • Differentiation also links a series you have to one you want. Since ddxtan⁡x=1+tan⁡2x\dfrac{d}{dx}\tan x = 1 + \tan^{2}x, squaring x+x33x + \dfrac{x^{3}}{3} gives tan⁡2x=x2+2x43+…\tan^{2}x = x^{2} + \dfrac{2x^{4}}{3} + \dots. Integrating 1+x2+2x431 + x^{2} + \dfrac{2x^{4}}{3} returns x+x33+2x515x + \dfrac{x^{3}}{3} + \dfrac{2x^{5}}{15}, a check on section 5.
  • A "hence" usually points at a move like this. The series you have just found is the starting point.

Integration: where arctan⁡x\arctan x comes from

  • Derivatives of arctan⁡x\arctan x get messy fast.
  • But 11+x2\dfrac{1}{1 + x^{2}}, its first derivative, has a series by substitution.
11+t2=1−t2+t4−t6+…\frac{1}{1 + t^{2}} = 1 - t^{2} + t^{4} - t^{6} + \dotsarctan⁡x=∫0x11+t2 dt=[ t−t33+t55−t77+… ]0x\arctan x = \int_{0}^{x} \frac{1}{1 + t^{2}}\,dt = \left[\, t - \frac{t^{3}}{3} + \frac{t^{5}}{5} - \frac{t^{7}}{7} + \dots \,\right]_{0}^{x}arctan⁡x=x−x33+x55−x77+…constant 0, since arctan⁡0=0\arctan x = x - \frac{x^{3}}{3} + \frac{x^{5}}{5} - \frac{x^{7}}{7} + \dots \qquad \textcolor{#838c91}{\text{constant 0, since }\arctan 0 = 0}

6Using a series: integrals, limits and approximations

Integrals no formula can do

  • e−x2e^{-x^{2}} has no antiderivative in standard functions, yet its area matters (it is the shape of the normal curve, 4.9).
  • Its series integrates easily. Figure 5 shows the area from 0 to 0.5.
e−x2=1−x2+x42−x66+…substitute u=−x2 into eue^{-x^{2}} = 1 - x^{2} + \frac{x^{4}}{2} - \frac{x^{6}}{6} + \dots \qquad \textcolor{#838c91}{\text{substitute }u = -x^{2}\text{ into }e^{u}}∫00.5e−x2 dx≈[ x−x33+x510−x742 ]00.5=0.5−0.041667+0.003125−0.000186=0.46127GDC: 0.46128\begin{aligned} &\int_{0}^{0.5} e^{-x^{2}}\,dx \approx \left[\, x - \frac{x^{3}}{3} + \frac{x^{5}}{10} - \frac{x^{7}}{42} \,\right]_{0}^{0.5} \\[6pt] &= 0.5 - 0.041667 + 0.003125 - 0.000186 \\[6pt] &= 0.46127 && \textcolor{#838c91}{\text{GDC: }0.46128}\end{aligned}
Figure 5 · Integrating a series term by term 0.46128 y = e−x² series: 1 − x² + x⁴/2 − x⁶/6 x y 0.5 1 1.5 0.5 1 This curve has no antiderivative in standard functions, but its series integrates term by term. Four terms give 0.46127 for the shaded area; the true value is 0.46128.
Figure 5 · Integrating a series term by term

Limits

  • A series also settles limits of the form 00\dfrac{0}{0} (5.13) without l'Hôpital's rule.
  • Divide through by the lowest power that survives, then let x→0x \to 0. Every term that still carries an xx disappears.
tan⁡x−xx3=(x+x33+2x515+… )−xx3=13+2x215+…⇒lim⁡x→0tan⁡x−xx3=13\frac{\tan x - x}{x^{3}} = \frac{\left(x + \frac{x^{3}}{3} + \frac{2x^{5}}{15} + \dots\right) - x}{x^{3}} = \frac{1}{3} + \frac{2x^{2}}{15} + \dots \quad\Rightarrow\quad \lim_{x \to 0} \frac{\tan x - x}{x^{3}} = \frac{1}{3}x−sin⁡xx3=x36−x5120+…x3=16−x2120+…⇒lim⁡x→0x−sin⁡xx3=16\frac{x - \sin x}{x^{3}} = \frac{\frac{x^{3}}{6} - \frac{x^{5}}{120} + \dots}{x^{3}} = \frac{1}{6} - \frac{x^{2}}{120} + \dots \quad\Rightarrow\quad \lim_{x \to 0} \frac{x - \sin x}{x^{3}} = \frac{1}{6}

7Series from a differential equation

Sometimes you know only a differential equation and a starting value. The Maclaurin formula needs only the derivatives at 0. The equation supplies them: it gives y′y', and differentiating it gives y′′y'', y′′′y''' and so on.

Example 5

  • The function yy satisfies dydx=x+y2\dfrac{dy}{dx} = x + y^{2}, with y=1y = 1 when x=0x = 0.
  • Find the Maclaurin series for yy up to the term in x3x^{3}.
y′=x+y2y′(0)=0+12=1y' = x + y^{2} \qquad\qquad y'(0) = 0 + 1^{2} = 1y′′=1+2yy′y′′(0)=1+2(1)(1)=3differentiate y2 implicitly: 2yy′y'' = 1 + 2yy' \qquad\qquad y''(0) = 1 + 2(1)(1) = 3 \qquad \textcolor{#838c91}{\text{differentiate }y^{2}\text{ implicitly: }2yy'}y′′′=2(y′)2+2yy′′y′′′(0)=2(1)+2(1)(3)=8product rule on 2yy′y''' = 2(y')^{2} + 2yy'' \qquad\qquad y'''(0) = 2(1) + 2(1)(3) = 8 \qquad \textcolor{#838c91}{\text{product rule on }2yy'}y=1+x+32!x2+83!x3+…y = 1 + x + \frac{3}{2!}x^{2} + \frac{8}{3!}x^{3} + \dotsy=1+x+32x2+43x3+…y = 1 + x + \frac{3}{2}x^{2} + \frac{4}{3}x^{3} + \dots
  • No exact method of 5.18 solves this equation (the y2y^{2} makes it neither separable, homogeneous nor linear), so the series is what you get.
  • Figure 6 compares the cubic with the true solution, computed numerically: they agree to 0.0030.003 at x=0.2x = 0.2, then separate.
Figure 6 · A series solution of dy/dx = x + y², y(0) = 1 (0, 1) series: 1 + x + 1.5x² + (4/3)x³ true solution x y 0.1 0.2 0.3 0.4 0.5 0.6 1 1.5 2 2.5 3 No method on this page solves the equation exactly. The cubic from the series (amber) hugs the true solution (teal, computed numerically) near x = 0 and drifts away as x grows.
Figure 6 · A series solution of dy ÷ dx = x + y², y(0) = 1

Example 6: xx does not appear in the equation

  • The function yy satisfies dydx=1+y2\dfrac{dy}{dx} = 1 + y^{2}, with y(0)=0y(0) = 0. Find the series up to x5x^{5}.
  • Each derivative uses only yy and lower derivatives, so the work is product rule and implicit differentiation.
y′=1+y2y′(0)=1y' = 1 + y^{2} \qquad\qquad y'(0) = 1y′′=2yy′y′′(0)=0y'' = 2yy' \qquad\qquad y''(0) = 0y′′′=2(y′)2+2yy′′y′′′(0)=2y''' = 2(y')^{2} + 2yy'' \qquad\qquad y'''(0) = 2y(4)=6y′y′′+2yy′′′y(4)(0)=0y^{(4)} = 6y'y'' + 2yy''' \qquad\qquad y^{(4)}(0) = 0y(5)=6(y′′)2+8y′y′′′+2yy(4)y(5)(0)=0+16+0=16y^{(5)} = 6(y'')^{2} + 8y'y''' + 2yy^{(4)} \qquad\qquad y^{(5)}(0) = 0 + 16 + 0 = 16y=x+23!x3+165!x5+⋯=x+x33+2x515+…y = x + \frac{2}{3!}x^{3} + \frac{16}{5!}x^{5} + \dots = x + \frac{x^{3}}{3} + \frac{2x^{5}}{15} + \dots

This is the series for tan⁡x\tan x, the solution of this equation.

Example 7: a function you know, but awkward to differentiate

  • Find the series for y=earctan⁡xy = e^{\arctan x} up to x4x^{4}.
  • Differentiating directly is heavy. Instead y′=y1+x2y' = \dfrac{y}{1 + x^{2}}, so (1+x2)y′=y(1 + x^{2})y' = y, which differentiates again and again with no quotients.
(1+x2)y′=yy(0)=1y′(0)=1(1 + x^{2})y' = y \qquad y(0) = 1 \qquad y'(0) = 12xy′+(1+x2)y′′=y′y′′(0)=y′(0)=12xy' + (1 + x^{2})y'' = y' \qquad\qquad y''(0) = y'(0) = 12y′+4xy′′+(1+x2)y′′′=y′′y′′′(0)=1−2=−12y' + 4xy'' + (1 + x^{2})y''' = y'' \qquad\qquad y'''(0) = 1 - 2 = -16y′′+6xy′′′+(1+x2)y(4)=y′′′y(4)(0)=−1−6=−7differentiate the line above; put x=0 at the end6y'' + 6xy''' + (1 + x^{2})y^{(4)} = y''' \qquad\qquad y^{(4)}(0) = -1 - 6 = -7 \qquad \textcolor{#838c91}{\text{differentiate the line above; put }x = 0\text{ at the end}}earctan⁡x=1+x+x22−x36−7x424+…e^{\arctan x} = 1 + x + \frac{x^{2}}{2} - \frac{x^{3}}{6} - \frac{7x^{4}}{24} + \dots

Example 8: a second-order equation

  • The function yy satisfies y′′=xy−y′y'' = xy - y', with y(0)=1y(0) = 1 and y′(0)=3y'(0) = 3. Find the series up to x4x^{4}.
  • A second-order equation needs two starting values, and it gives y′′y'' first.
y′′=xy−y′y′′(0)=0−3=−3y'' = xy - y' \qquad\qquad y''(0) = 0 - 3 = -3y′′′=y+xy′−y′′y′′′(0)=1+0+3=4product rule on xy, then −y′′y''' = y + xy' - y'' \qquad\qquad y'''(0) = 1 + 0 + 3 = 4 \qquad \textcolor{#838c91}{\text{product rule on }xy\text{, then }-y''}y(4)=y′+y′+xy′′−y′′′=2y′+xy′′−y′′′y(4)(0)=6+0−4=2y^{(4)} = y' + y' + xy'' - y''' = 2y' + xy'' - y''' \qquad\qquad y^{(4)}(0) = 6 + 0 - 4 = 2y=1+3x−32!x2+43!x3+24!x4+⋯=1+3x−3x22+2x33+x412+…y = 1 + 3x - \frac{3}{2!}x^{2} + \frac{4}{3!}x^{3} + \frac{2}{4!}x^{4} + \dots = 1 + 3x - \frac{3x^{2}}{2} + \frac{2x^{3}}{3} + \frac{x^{4}}{12} + \dots

Practice questions

29 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.