Series, finite differences and Taylor expansions
Introduced| English | Meaning |
|---|---|
| method of differences/ˈmeθəd ɒv ˈdɪfrənsɪz/ | Summing by expressing terms as differences so that intermediate terms cancel and boundary terms remain. |
| partial fractions/ˈpɑːʃl ˈfrækʃnz/ | Simpler rational expressions whose sum equals a given rational expression. |
| Maclaurin series/məˈklɔːrɪn ˈsɪəriːz/ | A Taylor series centred at zero, whose coefficients are determined by the function's derivatives at zero. |
| Taylor series/ˈteɪlə ˈsɪəriːz/ | The derivative-based power series about a chosen point; it represents the function only where it converges to that function. |
Maclaurin's polynomial for any curve, 1742
- In 1742, the Scottish mathematician Colin Maclaurin published A Treatise of Fluxions in Edinburgh. It showed how to replace a curve such as $e^x$ or $\sin x$ near $x = 0$ by a polynomial built from its derivatives.
- Calculators still use series like these to find $\sin 0.3$ or $\ln 1.1$. FP2 also adds a quick way to sum some series exactly: the method of differences 差分法.
The method of differences
- If each term can be written as $f(r) - f(r + 1)$, most terms cancel when you add them. Use partial fractions 部分分式 first: $\dfrac{1}{r(r + 1)} = \dfrac{1}{r} - \dfrac{1}{r + 1}$.
- So $\displaystyle\sum_{r=1}^{n}\frac{1}{r(r + 1)} = \left(1 - \tfrac{1}{2}\right) + \left(\tfrac{1}{2} - \tfrac{1}{3}\right) + \dots + \left(\tfrac{1}{n} - \tfrac{1}{n + 1}\right) = 1 - \frac{1}{n + 1}$.
Find $\displaystyle\sum_{r=1}^{20}\frac{1}{r(r + 1)}$ as a decimal to 4 d.p.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$1 - \dfrac{1}{21} = \dfrac{20}{21} = 0.9524$.
Which is $\dfrac{2}{r(r + 2)}$ in partial fractions?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
$\dfrac{(r + 2) - r}{r(r + 2)} = \dfrac{2}{r(r + 2)}$.
Maclaurin series
- $f(x) = f(0) + f'(0)x + \dfrac{f''(0)}{2!}x^2 + \dfrac{f'''(0)}{3!}x^3 + \dots$ is the Maclaurin series 麦克劳林级数 of $f$.
- For $e^x$, every derivative at 0 is 1, so $e^x = 1 + x + \dfrac{x^2}{2!} + \dfrac{x^3}{3!} + \dots$, valid for all $x$.
Series, finite differences and Taylor expansions
About x=a, f(x)=f(a)+f prime(a)(x-a)+f double prime(a)(x-a)²/2!+
Compare the model with the worked case and explain one change.
What is the $x^3$ term in the Maclaurin series of $e^x$?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
$f'''(0) = 1$, divided by $3! = 6$.
Worked example: the series for $\ln(1 + x)$
Find the Maclaurin series of $f(x) = \ln(1 + x)$ up to $x^3$, and use it to estimate $\ln 1.1$.
- Derivatives at 0: $f(0) = 0$; $f'(x) = (1 + x)^{-1}$, so $f'(0) = 1$; $f''(x) = -(1 + x)^{-2}$, so $f''(0) = -1$; $f'''(x) = 2(1 + x)^{-3}$, so $f'''(0) = 2$.
- Series: $\ln(1 + x) = x - \dfrac{x^2}{2} + \dfrac{2x^3}{3!} = x - \dfrac{x^2}{2} + \dfrac{x^3}{3}$, valid for $-1 < x \le 1$.
- Estimate: $x = 0.1$ gives $0.1 - 0.005 + 0.000333 = 0.095333$; the true value is $0.095310$.
Use $\ln(1 + x) \approx x - \tfrac{x^2}{2} + \tfrac{x^3}{3}$ to estimate $\ln 1.2$, to 4 d.p.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$0.2 - 0.02 + 0.002667 = 0.182667$; the true value is $0.18232$.
Combining known series
- Replace $x$ in a known series: $e^{2x} = 1 + 2x + 2x^2 + \dfrac{4}{3}x^3 + \dots$, and $\sin x = x - \dfrac{x^3}{3!} + \dfrac{x^5}{5!} - \dots$.
- Multiply series for a product: $e^x\sin x = (1 + x + \tfrac{1}{2}x^2)(x - \tfrac{1}{6}x^3) = x + x^2 + \tfrac{1}{3}x^3 + \dots$.
Find the series of $e^{-x^2}$ up to $x^4$.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Put $-x^2$ for $x$ in $1 + x + \tfrac{1}{2}x^2$.
Taylor series about $x = a$
- Far from 0, a Taylor series 泰勒级数 about $x = a$ works better: $f(x) = f(a) + f'(a)(x - a) + \dfrac{f''(a)}{2!}(x - a)^2 + \dots$.
- $\sqrt{x}$ about $x = 4$: $2 + \dfrac{x - 4}{4} - \dfrac{(x - 4)^2}{64}$, so $\sqrt{4.1} \approx 2.024844$ — correct to 5 d.p.
The Maclaurin series of $\ln(1 + x)$ can be used with $x = 2$ to find $\ln 3$.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
It is valid only for $-1 < x \le 1$; at $x = 2$ the terms grow.
Using a series outside its range of validity. $\ln(1 + x) = x - \tfrac{x^2}{2} + \tfrac{x^3}{3} - \dots$ is valid only for $-1 < x \le 1$. Putting $x = 2$ to find $\ln 3$ gives $2 - 2 + 2.67 - 4 + \dots$, which never settles. Use a Taylor series about a nearer point instead.
Write a term as $f(r) - f(r + 1)$ and let the middle terms cancel. A Maclaurin series uses derivatives at 0; a Taylor series uses derivatives at $x = a$. Build new series by substituting into or multiplying known ones, and always state where the series is valid.
Find the Maclaurin series of $\cos x$ up to $x^4$ from its derivatives, and use it to estimate $\cos 0.5$.
Derivatives, then substitute.