This tutorial deals with the approximation of functions of x, ƒ(x), using power series expansions:
- where ci are constant coefficients.
Power series open the door to the rapid calculation, manipulation and interpretation of analytical expressions that are, otherwise, difficult to deal with.
In each of the following Exercises, an appropriate power series can be derived by referring to the Standard Series.
It will greatly simplify each calculation if, at an early stage, you manage to deduce how many terms are required from each standard series to give the final result to the specified accuracy (e.g. to x3).
Note also that writing the given function in terms of partial fractions, where appropriate, can result in a simpler derivation.
Use the Standard Series, to expand the following functions in power series, as far as the terms shown. Also state the range of values of x for which the power series converges.
Click on questions to reveal their solutions
Exercise 1:
Solution: Find the expansions for the two terms and then multiply them:
1st term: | eX | = | 1 + X + X22! + X33! + X44! + ... true for all X |
∴ | e−3x | = | 1 + (−3x) + (−3x)22! + (−3x)33! + (−3x)44! + ... |
i.e. | e−3x | = | 1 − 3x + 9x22 − 9x32 + ... |
2nd term: | cos X | = | 1 − X22! + X44! − ... true for all X |
∴ | cos 2x | = | 1 − (2x)22! + ... (we only need terms up to x3) |
i.e. | cos 2x | = | 1 − 2x2 + ... |
∴ | e−3x cos 2x | = | (1 − 3x + 92x2 − 92x3) (1 − 2x2) + ... |
= | 1 − 3x + 92x2 − 92x3 − 2x2(1 − 3x) + ... (again, we only need terms up to x3) | ||
= | 1 − 3x + 92 x2 − 92 x3 − 2x2 + 6x3 +... | ||
= | 1 − 3x + (9 − 4)2 x2 + (12 − 9)2 x3 + ... | ||
∴ | e−3x cos 2x | = | 1 − 3x + 52 x2 + 32 x3 + ... (true for all x, ∴ converges for all x values). |
Exercise 2:
Solution: Find the expansions for the two terms and then multiply them:
1st term: | sin x | = | x − x33! + ... = x − x36 + ... true for all x |
2nd term: | ln(1 + X) | = | X − X22 + X33 − X44 + ... true for −1 < X ≤ 1 |
∴ | ln(1 − 2x) | = | (−2x) − (−2x)22 + (−2x)33 − (−2x)44 + ... true for −1 < (−2x) ≤ 1 |
= | − 2x − − 4x22 − 8x33 − 16x24 ... true for −1⁄2 ≤ x < 1⁄2 | ||
(note the switching of '<' and '≤' because of the minus sign of −2x) | |||
i.e. | ln(1 − 2x) | = | − 2x − − 2x2 − 83x3 − 4x4 − ... |
∴ | (sin x) ln (1 − 2x) | = | (x − x36) (− 2x2 − 83x3 − 4x4) + ... |
= | x(−2x − 2x2 − 83x3 − 4x4) −x36 (−2x − ...) + ... | ||
= | −2x2 − 2x3 − 83x4 + x43 + ... | ||
∴ | (sin x) ln(1 − 2x) | = | −2x2 − 2x3 − 73x4 + ... (converges for −1⁄2 ≤ x < 1⁄2) |
Note: We will assume convergence for the values of x that both the sin x and the ln(1 − 2x) power series are true.
Exercise 3:
Solution:
1st term: | (1 + x)n | = | 1 + nx + n(n−1)2! x2 + n(n−1)(n−2)3! x3 + ... where n = 1⁄2 |
∴ | √1 + x | = | (1 + x)1⁄2 |
= | 1 + 12x + 12 ⋅ (−12) x22 + 12 ⋅ (−12) ⋅ (−32) x36 + ... true for −1 < x < 1 | ||
∴ | √1 + x | = | 1 + 12x − 18x2 + 116x3 + ... |
2nd term: | eX | = | 1 + X + X22! + X33! + X44! + ... true for all X |
∴ | e−2x | = | 1 + (−2x) + (−2x)22! + (−2x)33! + (−2x)44! + ... |
i.e. | e−2x | = | 1 − 2x + 2x2 − 43 x3 + ... |
∴ | √1 + x ⋅ e−2x | = | (1 + 12x − 18x2 + 116x3) ( 1 − 2x + 2x2 − 43 x3 ) + ... |
1⋅(1 − 2x + 2x2 − 43 x3 ) + 12x ( 1 − 2x + 2x2 ) − 18x2 (1 − 2x ) + 116x3 + ... | |||
1 − 2x + 2x2 − 43 x3 + 12x − x2 + x3 − 18x2 + 14x3 + 116x3 + ... | |||
∴ | √1 + x ⋅ e−2x | = | 1 − 32x + 78x2 − 148x3 + ... (converges for −1 < x < 1) |
Exercise 4:
Solution:
1st term: | sin x | = | x − x33! + ... true for all x |
2nd term: | (1 + X)n | = | 1 + nX + n(n−1)2! X2 + n(n−1)(n−2)3! X3 + ... true for −1 < X < 1 |
∴ | (1 + 2x)1⁄2 | = | 1 − 12 (2x) + 322 (2x)22 − 1523 (2x)36 + ... true for −1 < 2x < 1 |
= | 1 − x + 32x2 −156x3 + ... true for −1⁄2 < x < 1⁄2 | ||
Note: in the above we only need the denominator term expressed up to x3 since sin x ≈ x − x3⁄6 will multiply this by at least x. |
|||
∴ | sin x √1 + 2x | = | (x − x36) ( 1 − x + 32x2 − 156x3 ) + ... |
= | x(1 − x + 32x2 − 52x3) − x36(1 − x) + ... | ||
= | x − x2 + 32x3 − 52x4 − 16x3 + 16x4 + ... | ||
= | x − x2 + (9 − 1)6x3 + (1 − 15)6x4 + ... | ||
∴ | sin x √1 + 2x | = | x − x2 + 43x3 − 73x4 + ... (converges for − 1⁄2 < x < 1⁄2) |
Exercise 5:
Solution:
1st term: | cos X | = | 1 − X22! + X44! − ... true for all X |
= | 1 − X22 + X424 − ... | ||
∴ | cos 4x | = | 1 − (4x)22 + (4x)424 − ... |
= | 1 − 8x2 + 646x4 − . | ||
i.e. | cos 4x | = | 1 − 8x2 + 323x4 − ... |
2nd term: | ln(1 + X) | = | X − X22 + X33 − X44 + ... true for −1 < X ≤ 1 |
∴ | ln(1 + 2x) | = | (2x) − (2x)22 + (2x)33 − (2x)44 + ... true for −1 < 2x ≤ 1 |
i.e. | ln(1 + 2x) | = | 2x − 2x2 + 83x3 − 4x4 + ... true for −1⁄2 < x ≤ 1⁄2 |
∴ | (cos 4x) ln(1 + 2x) | = | (1 − 8x2) (2x − 2x2 + 83x3 − 4x4) + ... |
= | 2x − 2x2 + 83x3 − 4x4 − 8x2(2x − 2x2) + ... | ||
i.e. | (cos 4x) ln(1 + 2x) | = | 2x − 2x2 − 403x3 + 12x4 + ... (converges for −1⁄2 < x ≤ 1⁄2) |
Exercise 6:
Solution:
First, express the equation in terms of partial fractions:
So, 5 + 4x (1 + 2x)(1 − x) = 2 1 + 2x + 3 1 − x
[Note: this form allows addition of series rather than multiplication, i.e. it makes the calculation easier]
1 1 − X | = | 1 + X + X2 + X3 + ... true for −1 < X < 1; | |
∴ | 1 1 + 2x | = | 1 + (−2x) + (−2x)2 + (−2x)3 + ... (true for −1 < (−2x) < 1) |
i.e. | 1 1 + 2x | = | 1 − 2x + 4x2 − 8x3 + ... true for −1⁄2 < x < 1⁄2 |
∴ | 1 1 + 2x + 3 1 − x | = | 2(1 − 2x + 4x2 − 8x3 + ...) + 3(1 + x + x2 + x3 + ...) |
= | 5 − x + 11x2 − 13x3 + ... (converges for −1⁄2 < x < 1⁄2) |
Exercise 7:
Solution:
Express the equation in terms of partial fractions:
So: 3 + x (2 + x)(1 + x) = −1 2 + x + 2 1 + x
1 1 − X | = | 1 + X + X2 + X3 + ... true for −1 < X < 1; | |
∴ | 1 1 + x | = | 1 + (−x) + (−x)2 + (−x)3 + ... (true for −1 < x < 1) |
= | 1 − x + x2 − x3 + ... true for −1 < x < 1; | ||
and: | 1 2 + x | = | (12) 1 1 + ( x 2) = (12) [ 1 − ( x 2) + ( x 2)2 − ( x 2)3 + ... ] (true for −1 < x 2 < 1) |
i.e. | − 1 2 + x | = | − 1 2 + x 4 - x2 8 + x3 16 + ... true for −1 < x < 2 |
∴ | 3 + x (2 + x)(1 + x) | = | −1 2 + x + 2 1 + x = − 1 2 + x 4 - x2 8 + x3 16 + ... + 2( 1 − x + x2 − x3 + ...) |
= | 3 2 − 7 4x + 15 8x2 − 31 16x3 + ... (converges for −1 < x < 1) |
Exercise 8:
Solution:
Express the equation in terms of partial fractions:
So: 4 + 5x (2 + x)(1 − x) = − 2 2 + x + 3 1 − x
Now: | 1 1 − x | = | 1 + x + x2 + x3 + ... true for −1 < x < 1; |
and: | 1 2 + x | = | 1 2 1 1 + x 2 = 1 2 [ 1 − ( x 2) + ( x 2)2 − ( x 2)3 + ... ] (true for −1 < x⁄2 < 1) |
= | 1 2 − x 4 + x2 8 − x3 16 + ... true for −2 < x < 2 | ||
∴ | 4 + 5x (2 + x)(1 − x) | = | −2 ( 1 2 − x 4 + x2 8 − x3 16) + 3 ( 1 + x + x2 + x3) + ... |
= | 2 + 7 2x + 11 4x2 + 25 8x3 + ... (converges for −1 < x < 1) |
Exercise 9:
Solution:
Numerator: | (1 + X)n | = | 1 + nX + n(n−1)2! X2 + n(n−1)(n−2)3! X3 + ... (true for −1 < X < 1) | ||
so: | √1 + X) | = | 1 + 12X + (12)⋅ (−12) X22! + (12)⋅ (−12)⋅ (−32) X33! + ... | ||
∴ | √1 + 2x) | = | 1 + 12(2x) + (12)⋅ (−12) (2x)22! + (12)⋅ (−12)⋅ (−32) (2x)33! + ... (true for −1 < 2x < 1) | ||
= | 1 + x − x22 + x32 − ... true for −1⁄2 < x < 1⁄2 | ||||
Denominator: | 11 − X | = | 1 + X + X2 + X3 + ... (true for −1 < X < 1) | ||
∴ | 11 − 3x | = | 1 + (3x) + (3x)2 + (3x)3 + ... (true for −1 < 3x < 1) | ||
= | 1 + 3x + 9x2 + 27x3 + ... (true for −1⁄3 < x < 1⁄3) | ||||
∴ | √1 + 2x 1 − 3x | = | (1 + x − x22 + x32) (1 + 3x + 9x2 + 27x3) + ... | ||
= | 1 + 3x + 9x2 + 27x3 | ||||
+x(1 + 3x + 9x2) | |||||
−x22 (1 + 3x) | |||||
+x32 (1) | |||||
= | 1 + 3x + 9x2 + 27x3 | ||||
+x + 3x2 + 9x3 | |||||
−12x2 −32x3 | |||||
+12x3 | |||||
= | 1 + 4x + 232x2 + 35x3 + ... (converges for −1⁄3 < x <1⁄3) |
Exercise 10:
Solution:
Numerator: | √1 + x) | = | (1 + x)1⁄2 = 1 + (12)x + (12)⋅ (−12) x22! + (12)⋅ (−12)⋅ (−32) x33! + ... | |
= | 1 + 12x − 18x2 + 116x3 + ... true for −1 < x < 1 | |||
Denominator: | 1√1 + X) | = | (1 + X)1⁄2 = 1 − (12)X + (−12)⋅ (−32) X22! + (−12)⋅ (−32)⋅ (−52)⋅ X33! + ... | |
(true for −1 < X < 1) | ||||
∴ | (1 − 2x)1⁄2 | = | 1 − 12(−2x) + (12)⋅ (32) (−2x)22! − (12)⋅ (32)⋅ (52) (−2x)33! + ... | |
(true for −1 < (−2x) < 1) | ||||
= | 1 + x + 32x2 + 52x3 + ... true for −1⁄2 < x < 1⁄2 | |||
∴ | (1 + x)1⁄2(1 − 2x)−1⁄2 | = | (1 + 12x − 18x2 + 116x3) (1 + x + 32x2 + 52x3) + ... | |
= | 1 + x + 32x2 + 52x3 | |||
+ 12 x(1 + x + 32x2) | ||||
−18x2(1 + x) | ||||
+116x3 (1) + ... | ||||
= | 1 + 32x + 158x2 + 5116x3 + ... (converges for −1⁄2 < x < 1⁄2) |
ƒ(x) | Power Series | Convergence |
---|---|---|
11 − x | 1 + x + x2 + x3 + x4 + ... | (−1 < x < 1) |
(1 + x)n | 1 + nx + n(n−1)2! x2 + n(n−1)(n−2)3! x3 + ... | (−1 < x < 1 when n ≠ 1, 2, 3, ...) (for all x when n = 1, 2, 3, ...) |
ex | 1 + x + x22! + x33! + x44! + ... | (for all x) |
ln(1 + x) | x − x22 + x33 − x44 + ... | (−1 < x ≤ 1) |
sin x | x − x33! + x55! − x77! + ... | (for all x) |
cos x | 1 − x22! + x44! − x66! + ... | (for all x) |
tan x | x + x33! + 2x515 + 17x7315 + ... | (−π⁄2 < x < π⁄2) |
sinh x | x + x33! + x55! + x77! + ... | (for all x) |
cosh x | 1 + x22! + x44! + x66! + ... | (for all x) |
Note: 2! = 2 × 1 = 2; 3! = 3 × 2 × 1 = 6; 4! = 4 × 3 × 2 × 1 = 24; etc.
The power series for (1 + x)n is an example of a binomial series.
When n is not a whole number (i.e. n ≠ 0, 1, 2, 3, ...) then the series is an infinite series and it is only true for −1 < x < 1.
On the other hand, when n is a whole number (i.e. n = 0, 1, 2, 3, ...) then the series no longer has an infinite number of terms and it is valid for all values of x.
Some books use notation to distinguish the above two cases, where:
(1 + x)n is written when the power is a whole number, and
(1 + x)r is written otherwise.
In this Tutorial we use the symbol n to denote the power in either case.