Differential Equations for EngineersXYZ Homework Edition

⇩ Download ▾

7.1 Power Series

Many functions can be written in terms of a power series

k = 0 a k ( x x 0 ) k \sum _{k=0}^{\infty} a_k(x-x_0)^k \nonumber

If we assume that a solution of a differential equation is written as a power series, then perhaps we can use a method reminiscent of undetermined coefficients. That is, we will try to solve for the numbers aka_k. Before we can carry out this process, let us review some results and concepts about power series.

Definition

As we said, a power series is an expression such as

k = 0 a k ( x x 0 ) k = a 0 + a 1 ( x x 0 ) + a 2 ( x x 0 ) 2 + a 3 ( x x 0 ) 3 + , \label{eq:2} \sum_{k=0}^\infty a_k {(x-x_0)}^k =a_0 + a_1 (x-x_0) +a_2 {(x-x_0)}^2 +a_3 {(x-x_0)}^3 + \cdots,

(7.1.1)

where a0,a1,a2,,ak,a_0,a_1,a_2,\ldots,a_k,\ldots and x0x_0 are constants. Let

S n ( x ) = k = 0 n a k ( x x 0 ) k = a 0 + a 1 ( x x 0 ) + a 2 ( x x 0 ) 2 + a 3 ( x x 0 ) 3 + + a n ( x x 0 ) n , S_n(x) = \sum_{k=0}^n a_k {(x-x_0)}^k =a_0 + a_1 (x-x_0) + a_2 {(x-x_0)}^2 + a_3 {(x-x_0)}^3 + \cdots + a_n {(x-x_0)}^n, \nonumber

denote the so-called partial sum. If for some xx, the limit

lim n S n ( x ) = lim n k = 0 n a k ( x x 0 ) k \lim_{n\to \infty} S_n(x) = \lim_{n\to\infty} \sum_{k=0}^n a_k {(x-x_0)}^k \nonumber

exists, then we say that the series (7.1.1) converges at xx. Note that for x=x0x=x_0, the series always converges to a0a_0. When (7.1.1) converges at any other point xx0x \neq x_0, we say that (7.1.1) is a convergent power series. In this case we write

k = 0 a k ( x x 0 ) k = lim n k = 0 n a k ( x x 0 ) k . \sum_{k=0}^\infty a_k {(x-x_0)}^k = \lim_{n\to\infty} \sum_{k=0}^n a_k {(x-x_0)}^k. \nonumber

If the series does not converge for any point xx0x \neq x_0, we say that the series is divergent.

Radius of Convergence

If a power series converges absolutely at some x1x_1, then for all xx such that |xx0||x1x0|\lvert x - x_0 \rvert \leq \lvert x_1 - x_0 \vert (that is, xx is closer than x1x_1 to x0x_0) we have |ak(xx0)k||ak(x1x0)k|\bigl\lvert a_k {(x-x_0)}^k \bigr\rvert \leq \bigl\lvert a_k {(x_1-x_0)}^k \bigr\rvert for all kk. As the numbers |ak(x1x0)k|\bigl\lvert a_k {(x_1-x_0)}^k \bigr\rvert sum to some finite limit, summing smaller positive numbers |ak(xx0)k|\bigl\lvert a_k {(x-x_0)}^k \bigr\rvert must also have a finite limit. Hence, the series must converge absolutely at xx.

Diagram of power series convergence on a number line: the shaded band from x sub 0 minus rho to x sub 0 plus rho is labelled converges absolutely, diverges beyond each endpoint.
Figure 1\PageIndex{1}: Convergence of a power series.

See Figure 1\PageIndex{1}. In Example 1\PageIndex{1} the radius of convergence is ρ=\rho = \infty as the series converges everywhere. In Example 2\PageIndex{2} the radius of convergence is ρ=1\rho=1. We note that ρ=0\rho = 0 is another way of saying that the series is divergent. A useful test for convergence of a series is the ratio test. Suppose that

k = 0 c k \sum_{k=0}^\infty c_k \nonumber

is a series such that the limit

L = lim n | c k + 1 c k | L = \lim_{n\to\infty} \left \lvert \frac{c_{k+1}}{c_k} \right \rvert \nonumber

exists. Then the series converges absolutely if L<1L < 1 and diverges if L>1L > 1.

Let us apply this test to the series (7.1.1). That is we let ck=ak(xx0)kc_k = a_k {(x - x_0)}^k in the test. Compute

L = lim n | c k + 1 c k | = lim n | a k + 1 ( x x 0 ) k + 1 a k ( x x 0 ) k | = lim n | a k + 1 a k | | x x 0 | . L = \lim_{n\to\infty} \left \lvert \frac{c_{k+1}}{c_k} \right \rvert = \lim_{n\to\infty} \left \lvert \frac{a_{k+1} {(x - x_0)}^{k+1}}{a_k {(x - x_0)}^k} \right \rvert = \lim_{n\to\infty} \left \lvert\frac{a_{k+1}}{a_k}\right \rvert \lvert x - x_0 \rvert. \nonumber

Define AA by

A = lim n | a k + 1 a k | . A =\lim_{n\to\infty} \left \lvert \frac{a_{k+1}}{a_k} \right \rvert. \nonumber

Then if 1>L=A|xx0|1 > L = A \lvert x - x_0 \rvert the series (7.1.1) converges absolutely. If A=0A = 0, then the series always converges. If A>0A > 0, then the series converges absolutely if |xx0|<1A\lvert x - x_0 \rvert < \frac{1}{A}, and diverges if |xx0|>1A\lvert x - x_0 \rvert > \frac{1}{A}. That is, the radius of convergence is 1A\frac{1}{A}.

A similar test is the root test. Suppose

L = lim k | c k | 3 L=\lim_{k\to\infty} \sqrt[3]{|c_{k}|} \nonumber

exists. Then k=0ck\sum_{k=0}^{\infty}c_{k} converges absolutely if L<1L<1 and diverges if L>1L>1. We can use the same calculation as above to find AA. Let us summarize.

The root or the ratio test does not always apply. That is the limit of |ak+1ak|\bigl \lvert \frac{a_{k+1}}{a_k} \bigr \rvert or |ak|k\sqrt[k]{\lvert a_k \rvert} might not exist. There exist more sophisticated ways of finding the radius of convergence, but those would be beyond the scope of this chapter. The two methods above cover many of the series that arise in practice. Often if the root test applies, so does the ratio test, and vice versa, though the limit might be easier to compute in one way than the other.

Analytic Functions

Functions represented by power series are called analytic functions. Not every function is analytic, although the majority of the functions you have seen in calculus are. An analytic function f(x)f(x) is equal to its Taylor series1 near a point x0x_0. That is, for xx near x0x_0 we have

f ( x ) = k = 0 f ( k ) ( x 0 ) k ! ( x x 0 ) k , \label{eq:21} f(x) = \sum_{k=0}^\infty \frac{f^{(k)}(x_0)}{k!} {(x-x_0)}^k,

(7.1.2)

where f(k)(x0)f^{(k)}(x_0) denotes the kthk^{\text{th}} derivative of f(x)f(x) at the point x0x_0.

Plot of the sine curve with two Taylor approximations, x from minus 10 to 10. The green polynomial tracks the sine only to about x equals plus or minus 3 and the red to about plus or minus 4, then both run off the frame.
Figure 2\PageIndex{2}: The sine function and its Taylor approximations around xo=0x_o=0 of and degree.

For example, sine is an analytic function and its Taylor series around x0=0x_0 = 0 is given by

sin ( x ) = n = 0 ( 1 ) n ( 2 n + 1 ) ! x 2 n + 1 . \sin(x) = \sum_{n=0}^\infty \frac{{(-1)}^n}{(2n+1)!} x^{2n+1}. \nonumber

In Figure 2\PageIndex{2} we plot sin(x)\sin(x) and the truncations of the series up to degree 5 and 9. You can see that the approximation is very good for xx near 0, but gets worse for xx further away from 0. This is what happens in general. To get a good approximation far away from x0x_0 you need to take more and more terms of the Taylor series.

Interactive figureSine and its degree-5 and degree-9 Taylor polynomials about a movable pointDrag the Expansion point x0 slider from -6 to 6.
A wave runs the width of the frame, and two other curves cling to it over a stretch in the middle before peeling away and shooting off the top and bottom — one of them hugging the wave noticeably further before it breaks off than the other. Dragging the expansion point slides that whole window of agreement along the wave, carrying the break-away points with it: the accurate stretch always sits centred on the chosen point, and the longer-reaching curve always outlasts the shorter one. Adjustable parameter: Expansion point x0 (a) = 0. Viewing window: x from -8.44 to 8.44, y from -5.22 to 5.22.
XYZ Graph · viewer build 5edf91b
The book's sine picture with the expansion point set free: sin x in blue, its degree-5 Taylor polynomial in red and its degree-9 in green, both taken about x₀ = a. It opens at a = 0, the book's own picture; drag a along the sine curve and watch the sharp accuracy window slide with it — degree 9 always reaching further than degree 5, both failing at a distance, and the failure region moving rigidly with the centre.
Interactive figureHow far out does degree n reach?Drag the degree n slider from 1 to 15.
A smooth wave runs the full width of the frame, and a second curve lies on top of it near the centre before breaking away and shooting off the top or bottom edge. A slider sets the degree. At the lowest setting the second curve is a straight line through the origin that leaves the wave almost immediately. Each step up the slider extends the stretch over which the two curves are indistinguishable — first one hump, then two, then most of the frame — while the breakaway moves further from the centre and gets steeper. At every setting the second curve eventually departs the wave and leaves the picture, no matter how high the degree. Adjustable parameter: degree n (n) = 5. Viewing window: x from -10 to 10, y from -3.16 to 3.16.
XYZ Graph · viewer build 5edf91b · plotted curve with n = 9 checked against “Sine's Taylor polynomial through degree 9, computed” (mojocas 0.1.0): agrees
The figure above reproduces the book's Figure 2 — degrees 5 and 9, about a centre you can move. This one pins the centre at 0 and puts the DEGREE on the slider instead. Degree 1 is the line x, useful only at the origin. Each step adds one term and pushes the agreement outward: by degree 5 the rust curve holds the first hump, by degree 9 (the highest truncation drawn above) it tracks the wave to about x = 4, and at degree 15 it stays with it nearly to the frame's edge. What never changes is the shape of the failure — every truncation is a polynomial, so it must eventually run off to infinity. The degree only decides how far out it agrees first.
x16·x3+1120·x515040·x7+1362880·x9x - \frac{1}{6} \cdot x^{3} + \frac{1}{120} \cdot x^{5} - \frac{1}{5040} \cdot x^{7} + \frac{1}{362880} \cdot x^{9}
Sine's Taylor polynomial through degree 9, computed ✓ Computed · mojocas 0.1.0 ✓ Agrees with the text Sine's Taylor polynomial through degree 9, computed, computed exactly by mojocas 0.1.0, and confirmed to agree with the result stated in the text.The section states sine's Taylor series about 0 in closed form; written out to degree 9 it is exactly this polynomial, and the computer algebra system derives it from sin(x) itself rather than from the formula. These are the same coefficients the figure above plots — and on every rebuild the plotted polynomial, with its degree slider fixed at 9, is checked against this computed series, which is in turn checked against the text's formula. So the curve you drag and the series the text asserts really are checked against one another.

Manipulating Power Series

One of the main properties of power series that we will use is that we can differentiate them term by term. That is, suppose that ak(xx0)k\sum a_k {(x-x_0)}^k is a convergent power series. Then for xx in the radius of convergence we have

d d x [ k = 0 a k ( x x 0 ) k ] = k = 1 k a k ( x x 0 ) k 1 . \frac{d}{dx} \left[\sum_{k=0}^\infty a_k {(x-x_0)}^k\right]=\sum_{k=1}^\infty k a_k {(x-x_0)}^{k-1}. \nonumber

Notice that the term corresponding to k=0k=0 disappeared as it was constant. The radius of convergence of the differentiated series is the same as that of the original.

Convergent power series can be added and multiplied together, and multiplied by constants using the following rules. First, we can add series by adding term by term,

( k = 0 a k ( x x 0 ) k ) + ( k = 0 b k ( x x 0 ) k ) = k = 0 ( a k + b k ) ( x x 0 ) k . \left(\sum_{k=0}^\infty a_k {(x-x_0)}^k\right)+\left(\sum_{k=0}^\infty b_k {(x-x_0)}^k\right)=\sum_{k=0}^\infty (a_k+b_k) {(x-x_0)}^k. \nonumber

We can multiply by constants,

α ( k = 0 a k ( x x 0 ) k ) = k = 0 α a k ( x x 0 ) k . \alpha \left(\sum_{k=0}^\infty a_k {(x-x_0)}^k\right)=\sum_{k=0}^\infty \alpha a_k {(x-x_0)}^k. \nonumber

We can also multiply series together,

( k = 0 a k ( x x 0 ) k ) ( k = 0 b k ( x x 0 ) k ) = k = 0 c k ( x x 0 ) k , \left(\sum_{k=0}^\infty a_k {(x-x_0)}^k\right) \, \left(\sum_{k=0}^\infty b_k {(x-x_0)}^k\right)=\sum_{k=0}^\infty c_k {(x-x_0)}^k, \nonumber

where ck=a0bk+a1bk1++akb0c_k = a_0b_k + a_1 b_{k-1} + \cdots + a_k b_0. The radius of convergence of the sum or the product is at least the minimum of the radii of convergence of the two series involved.

Power Series for Rational Functions

Polynomials are simply finite power series. That is, a polynomial is a power series where the aka_k are zero for all kk large enough. We can always expand a polynomial as a power series about any point x0x_0 by writing the polynomial as a polynomial in (xx0)(x-x_0). For example, let us write 2x23x+42x^2-3x+4 as a power series around x0=1x_0 = 1:

2 x 2 3 x + 4 = 3 + ( x 1 ) + 2 ( x 1 ) 2 . 2x^2-3x+4 = 3 + (x-1) + 2{(x-1)}^2. \nonumber

In other words a0=3a_0 = 3, a1=1a_1 = 1, a2=2a_2 = 2, and all other ak=0a_k = 0. To do this, we know that ak=0a_k = 0 for all k3k \geq 3 as the polynomial is of degree 2.

We write a0+a1(x1)+a2(x1)2a_0 + a_1(x-1) + a_2{(x-1)}^2, we expand, and we solve for a0a_0, a1a_1, and a2a_2. We could have also differentiated at x=1x=1and used the Taylor series formula (7.1.2).

Let us look at rational functions, that is, ratios of polynomials. An important fact is that a series for a function only defines the function on an interval even if the function is defined elsewhere. For example, for 1<x<1-1 < x < 1 we have

1 1 x = k = 0 x k = 1 + x + x 2 + \frac{1}{1-x} = \sum_{k=0}^\infty x^k = 1 + x + x^2 + \cdots \nonumber

This series is called the geometric series. The ratio test tells us that the radius of convergence is 11. The series diverges for x1x \leq -1 and x1x \geq 1, even though 11x\frac{1}{1-x} is defined for all x=1x \not= 1.

Interactive figureGeometric series against 1/(1 - x), with the number of terms on a sliderDrag the Highest power kept slider from 0 to 24.
Two curves lie exactly on top of one another through a band around the origin and separate sharply outside it. To the right of that band one carries calmly on below the axis while the other climbs off the top of the frame; to the left the second flies apart as well. Adding more terms widens the agreement only up to the same fixed edges and never past them, and each extra term flips the direction of the left-hand blow-up from upward to downward and back. Adjustable parameter: Highest power kept (n) = 4. Viewing window: x from -4.87 to 4.87, y from -3.01 to 3.01.
XYZ Graph · viewer build 5edf91b
1/(1 − x) in blue, the partial sum Sₙ = 1 + x + ⋯ + xⁿ in red. Drag n: the red curve locks onto the blue one across (−1, 1) and nowhere else — exactly the radius of convergence 1 this section derives. Past x = 1 the partial sum climbs off the top of the frame while 1/(1 − x) runs calmly along the lower right, still perfectly well defined. Left of x = −1 the partial sum flies apart, and watch its direction: it flips from up to down at every single step of n, because the terms alternate. At x = −1 itself it neither converges nor blows up — it just hops 1, 0, 1, 0, never settling on the value 1/2 the function has there.

We can use the geometric series together with rules for addition and multiplication of power series to expand rational functions around a point, as long as the denominator is not zero at x0x_0. Note that as for polynomials, we could equivalently use the Taylor series expansion (7.1.2).

Footnotes

[1] Named after the English mathematician Sir Brook Taylor (1685–1731).

Adapted from Differential Equations for Engineers by Jiří Lebl (https://www.jirka.org/diffyqs/), © Jiří Lebl, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.