5.23 Maclaurin SeriesHL ONLY
1. Maclaurin Series
Consider the infinite geometric series:
We know that the series converges for $-1 < x < 1$ and the result is $S_\infty = \dfrac{1}{1 - x}$.
In this paragraph we have the opposite task. We are given a function, say $f(x) = \dfrac{1}{1 - x}$, and we wish to express it as an infinite series (which is called a power series) of the form:
Suppose that a function $f(x)$ has derivatives of every order near $0$. Then $f(x)$ can be expressed as a power series as follows:
This is known as the Maclaurin series of the function.
Example 1
Find the Maclaurin series for $f(x) = \dfrac{1}{1 - x}$.
| $f^{(n)}(x)$ | $f^{(n)}(0)$ |
|---|---|
| $f(x) = (1 - x)^{-1}$ | $1$ |
| $f'(x) = (1 - x)^{-2}$ | $1$ |
| $f''(x) = 2(1 - x)^{-3}$ | $2$ |
| $f'''(x) = 6(1 - x)^{-4}$ | $3!$ |
In general, given a smooth function $f$, we wish to express it as $$ f(x) = a_0 + a_1 x + a_2 x^2 + a_3 x^3 + a_4 x^4 + \cdots = \sum_{k=0}^\infty a_k x^k $$ Then, the $n^{th}$ derivative of $f$ is $$ f^{(n)}(x) = \sum_{k=n}^\infty k(k-1)(k-2) \cdots (k-n+1)a_n x^{k-n} $$ Therefore, $$ f^{(n)}(0) = n!a_n \implies a_n = \dfrac{f^{(n)}(0)}{n!} $$
The partial sums of the Maclaurin series give good approximations of $f(x)$ near $x=0$:
- $a_0 + a_1 x$ is the tangent line of $f(x)$ at $x=0$
- $a_0 + a_1 x + a_2 x^2$ is the "best" quadratic that approximates $f(x)$
- $a_0 + a_1 x + a_2 x^2 + a_3 x^3$ is the "best" cubic that approximates $f(x)$
Example 2
Find the Maclaurin series of the function $f(x) = \sin x$ up to the term in $x^5$.
| $f^{(n)}(x)$ | $f^{(n)}(0)$ |
|---|---|
| $f(x) = \sin x$ | $0$ |
| $f'(x) = \cos x$ | $1$ |
| $f''(x) = -\sin x$ | $0$ |
| $f'''(x) = -\cos x$ | $-1$ |
| $f^{(4)}(x) = \sin x$ | $0$ |
| $f^{(5)}(x) = \cos x$ | $1$ |
Similarly, we can obtain these standard Maclaurin series:
- $e^x = 1 + x + \dfrac{x^2}{2!} + \dfrac{x^3}{3!} + \dots$
- $\cos x = 1 - \dfrac{x^2}{2!} + \dfrac{x^4}{4!} - \dots$
- $\ln(1 + x) = x - \dfrac{x^2}{2} + \dfrac{x^3}{3} - \dots$
- $\arctan x = x - \dfrac{x^3}{3} + \dfrac{x^5}{5} - \dots$
An alternative way to obtain a Maclaurin series is to modify or combine appropriately the already known series. We can add, multiply, differentiate or integrate series and generate new series.
Example 3
Find the Maclaurin series of the function $f(x) = e^{x^2}$.
Example 4
Find the Maclaurin series of the function $f(x) = x \sin x$.
$$ x \sin x = x \left( x - \dfrac{x^3}{3!} + \dfrac{x^5}{5!} - \cdots \right) = x^2 - \dfrac{x^4}{3!} + \dfrac{x^6}{5!} - \cdots $$
Example 5
Find the Maclaurin series of the function $f(x) = \dfrac{1}{1+x^2}$.
2. Differential Equations and Maclaurin Series
Consider a differential equation of the form $\dfrac{dy}{dx} = F(x, y)$ with boundary condition $y(0) = y_0$. The analytical solution is not always easy. However, we can find the Maclaurin series of the solution $y=f(x)$.
We know $f(0) = y_0$. By substituting into the D.E., we find $f'(0) = F(0, y_0)$. Implicit differentiation on $\dfrac{dy}{dx}$ gives $\dfrac{d^2y}{dx^2}$ and thus $f''(0)$, and so on.
Example 6
Find the Maclaurin series up to $x^2$ for the solution of the D.E. $\dfrac{dy}{dx} = x + y^2$ with $y=3$ when $x=0$.
3. General Binomial Theorem
The binomial theorem gives $$ (1+x)^n = 1 + nx + \dfrac{n(n-1)}{2!}x^2 + \dfrac{n(n-1)(n-2)}{3!}x^3 + \cdots $$ when $n \in \mathbb{N}$.
This version allows us to use negative or rational values for index $n$. Thus for example, $$ (1+x)^{-n} = 1 - nx + \dfrac{-n(-n-1)}{2!}x^2 + \cdots $$ but now we have infinitely many terms. This is an alternative way to obtain some infinite power series.
Example 7
Find the Maclaurin series up to $x^4$ for $f(x) = (1+x)^{-3}$.
Example 8
Find the Maclaurin series up to $x^3$ for $f(x) = \sqrt{1+x}$ by using the extension of the binomial theorem.
In general, for the extension of the binomial theorem we modify $(a+b)^n$ as follows:
For non-integer values of $n$, we obtain an infinite series which converges when $\left|\dfrac{b}{a}\right| < 1$.
Example 9
Find the Maclaurin series up to $x^2$ for $f(x) = (3 - 2x)^{-2}$ by using the extension of the binomial theorem.
The series converges when $\left|-\dfrac{2x}{3}\right| < 1 \iff |2x| < 3 \iff -\dfrac{3}{2} < x < \dfrac{3}{2}$.