Atoms in Mathematics and Science, Part 3: Power Series

We’ve been talking about reductionism in the past couple of posts, and we’ll continue the story by discussing power series in this post.

The idea behind reductionism in mathematics is to identify some elementary “objects” and to express a complicated “thing” in terms of the elementary things. The intention is either to make it easier to understand the complex thing, or to make it easier to work with it, or both.

The specific implementation of this idea in the context of power series is to express a function (which might be difficult to deal with) as a “linear combination” of powers; that is, the elementary objects are 1, x, x^2, x^3, x^4, ... . I put “linear combination” within quotation marks because the term technically refers to a sum of a finite number of terms, and in a power series there are typically an infinite number of terms.

Consider the sine function. It is a well-known function to anyone who has done high-school mathematics, but what is not always appreciated is that when we write sin x, we are just writing the name of a function, not a formula for it. When we write x2 + 1, we have a formula for a function, so that we can calculate the value of the function for any real value of x using the algorithm implicit in the formula. Without a calculator, how on earth can you calculate the sine of 1 radian? Better yet, how is the calculator programmed to calculate the sine of 1 radian?

If we could approximate the sine function using a power series, that would solve our problem. As long as the approximation gets better and better the more terms in the series are used (a situation that holds in this case; we’d have to study the concept of convergence (and then convergence of power series) to make sense of this, which we will do another time), then we only need take a sufficient number of terms in the series to get an approximation that will be correct to 12 or 13 decimal places, which is sufficient for a calculator that displays 10 decimal places. This is more or less how the calculator is programmed to calculate values of the sine function.

Let’s see how this works. Let’s presume that we can model the function y = sin x by a power series

y = a_0 + a_1x + a_2x^2 + a_3x^3 + \cdots = \sum_{n=0}^{\infty} a_n x^n

where each of the coefficients a0, a1, and so on, represents a number that we must determine. To determine the coefficients, we need to use the properties of the sine function. This can be done in several ways; one way is to use the known values of the function and its derivatives at x = 0:

y(0) = 0, y^{\prime}(0) = 1, y^{\prime \prime}(0) = 0, y^{\prime \prime \prime}(0) = -1

Values for subsequent derivatives at x = 0 follow the same cyclic pattern of 0, 1, 0, –1, and so on. These properties of the sine function are enough to allow us to determine all of the coefficients. To begin, substitute 0 for x in the power series for the sine function. The result is that all of the terms in the series are zero, except for the first:

y = a_0 + a_1 x + a_2 x^2 + a_3 x^3 + \cdots

0 = a_0 + a_1(0) + a_2(0)^2 + a_3(0)^3 + \cdots

We conclude that a0 = 0. Next, differentiate the power series term-by-term, and then substitute 0 for x to obtain:

y^{\prime} = a_1 + 2a_2x + 3a_3x^2 + \cdots = \sum_{n=0}^{\infty} na_n  x^{n - 1}

1 = a_1 + 2a_2(0) + 3a_3(0)^2 + \cdots

We conclude that a1 = 1. Continuing in this way we can determine all of the coefficients. The result is (where the exclamation point stands for factorial)

y^{\prime} = x - \dfrac{x^3}{3!} +\dfrac{x^5}{5!} - \cdots = \sum_{n=1}^{\infty} (-1)^n \dfrac{x^{2n}}{(2n)!}

Of course, to be confident that this method always leads to valid results, we would have to dive into the theoretical details quite a lot more deeply; a good reason to take a university calculus course, don’t you think? (Or at least read a good book on the subject … Understanding Analysis by Stephen Abbott might be a good place for you to go if you’re interested.) (For example, we differentiated the power series term-by-term, assuming that the result would be the power series for the derivative of the function. Is this always valid?) But you can certainly play with the method for other functions, too; try the cosine function, the natural exponential function, and the function y = \dfrac{1}{1 - x} for starters.

Next consider the following differential equation with initial conditions:

y^{\prime \prime} + y = 0, \quad y(0) = 0, \quad y^{\prime}(0) = 1

Let’s suppose that we would like to solve this differential equation (which involves determining all possible functions that satisfy both the equation and the initial conditions), but don’t know how. One choice is to suppose that y has a power series expansion

y = a_0 + a_1x + a_2x^2 + a_3x^3 + \cdots = \sum_{n=0}^{\infty} a_n  x^n

Then differentiate the power series twice (assuming this is valid):

y^{\prime} = a_1 + 2a_2x + 3a_3x^2 + 4a_4 x^3 + \cdots = \sum_{n=0}^{\infty} na_n  x^{n - 1}

y^{\prime \prime} = 2a_2 + 6a_3x + 12a_4x^2 + \cdots = \sum_{n=0}^{\infty}  n(n - 1)a_n  x^{n - 2}

Then form the sum y^{\prime \prime} + y, collect like terms, and set the expression equal to 0. The conclusion is that each of the resulting coefficients must be zero, which allows us (with the use of the initial conditions) to solve for the coefficients of the original power series.

Try this for yourself! You’ll see that the result is

y^{\prime} = x - \dfrac{x^3}{3!} + \dfrac{x^5}{5!} - \cdots =  \sum_{n=1}^{\infty} (-1)^n \dfrac{x^{2n}}{(2n)!}

But hold on … this is the same as the power series for the sine function that we worked out earlier in a different way. The conclusion is that the sine function is a solution to the differential equation that satisfies the initial conditions.

Questions remain: Is this the only solution? If there are others, how can we determine them? And there are more general question: Can all functions be represented in a satisfactory way by power series? But we shall have to leave these questions for another time.

We’ll continue this story by discussing Fourier series in a subsequent post.

Advertisements

About Santo D'Agostino

I have taught mathematics and physics since the mid 1980s. I have also been a textbook writer/editor since then. Currently I am working independently on a number of writing and education projects while teaching physics at my local university. I love math and physics, and love teaching and writing about them. My blog also discusses education, science, environment, etc. https://qedinsight.wordpress.com Further resources, and online tutoring, can be found at my other site http://www.qedinfinity.com
This entry was posted in Mathematics and tagged , , , , . Bookmark the permalink.

2 Responses to Atoms in Mathematics and Science, Part 3: Power Series

  1. Pingback: An Operator Method for Solving Second Order Differential Equations | QED Insight

  2. Pingback: Atoms in Mathematics and Science, Part 2: Infinite-Dimensional Spaces | QED Insight

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s