Solving Differential Equations and Nonelementary Integrals

Learning Outcomes

  • Use Taylor series to solve differential equations
  • Use Taylor series to evaluate nonelementary integrals

Solving Differential Equations with Power Series

Consider the differential equation

y(x)=yy(x)=y.

 

Recall that this is a first-order separable equation and its solution is y=Cexy=Cex. This equation is easily solved using techniques discussed earlier in the text. For most differential equations, however, we do not yet have analytical tools to solve them. Power series are an extremely useful tool for solving many types of differential equations. In this technique, we look for a solution of the form y=n=0cnxny=n=0cnxn and determine what the coefficients would need to be. In the next example, we consider an initial-value problem involving y=yy=y to illustrate the technique.

Example: Power Series Solution of a Differential Equation

Use power series to solve the initial-value problem

y=y,y(0)=3y=y,y(0)=3.

 

Watch the following video to see the worked solution to Example: Power Series Solution of a Differential Equation.

You can view the transcript for “6.4.4” here (opens in new window).

try it

Use power series to solve y=2y,y(0)=5y=2y,y(0)=5.

We now consider an example involving a differential equation that we cannot solve using previously discussed methods. This differential equation

yxy=0yxy=0

 

is known as Airy’s equation. It has many applications in mathematical physics, such as modeling the diffraction of light. Here we show how to solve it using power series.

Example: Power Series Solution of Airy’s Equation

Use power series to solve

yxy=0yxy=0

 

with the initial conditions y(0)=ay(0)=a and y(0)=by(0)=b.

try it

Use power series to solve y+x2y=0y+x2y=0 with the initial condition y(0)=ay(0)=a and y(0)=by(0)=b.

Evaluating Nonelementary Integrals

Solving differential equations is one common application of power series. We now turn to a second application. We show how power series can be used to evaluate integrals involving functions whose antiderivatives cannot be expressed using elementary functions.

One integral that arises often in applications in probability theory is e-x2dxe-x2dx. Unfortunately, the antiderivative of the integrand e-x2e-x2 is not an elementary function. By elementary function, we mean a function that can be written using a finite number of algebraic combinations or compositions of exponential, logarithmic, trigonometric, or power functions. We remark that the term “elementary function” is not synonymous with noncomplicated function. For example, the function f(x)=x23x+ex3sin(5x+4)f(x)=x23x+ex3sin(5x+4) is an elementary function, although not a particularly simple-looking function. Any integral of the form f(x)dxf(x)dx where the antiderivative of ff cannot be written as an elementary function is considered a nonelementary integral.

Nonelementary integrals cannot be evaluated using the basic integration techniques discussed earlier. One way to evaluate such integrals is by expressing the integrand as a power series and integrating term by term. We demonstrate this technique by considering e-x2dxe-x2dx.

Example: Using Taylor Series to Evaluate a Definite Integral

  1. Express e-x2dxe-x2dx as an infinite series.
  2. Evaluate 10e-x2dx10e-x2dx to within an error of 0.010.01.

Watch the following video to see the worked solution to Example: Using Taylor Series to Evaluate a Definite Integral.

You can view the transcript for “6.4.5” here (opens in new window).

try it

Express cosxdxcosxdx as an infinite series. Evaluate 10cosxdx10cosxdx to within an error of 0.010.01.

Try It

As mentioned above, the integral e-x2dxe-x2dx arises often in probability theory. Specifically, it is used when studying data sets that are normally distributed, meaning the data values lie under a bell-shaped curve. For example, if a set of data values is normally distributed with mean μμ and standard deviation σσ, then the probability that a randomly chosen value lies between x=ax=a and x=bx=b is given by

1σ2πbae-(xμ)2(2σ2)dx1σ2πbae-(xμ)2(2σ2)dx.

 

(See Figure 2.)

This graph is the normal distribution. It is a bell-shaped curve with the highest point above mu on the x-axis. Also, there is a shaded area under the curve above the x-axis. The shaded area is bounded by alpha on the left and b on the right.

Figure 2. If data values are normally distributed with mean μμ and standard deviation σσ, the probability that a randomly selected data value is between aa and bb is the area under the curve y=1σ2πe(xμ)2(2σ2)y=1σ2πe(xμ)2(2σ2) between x=ax=a and x=bx=b.

To simplify this integral, we typically let z=xμσz=xμσ. This quantity zz is known as the zz score of a data value. With this simplification, integral our previous equation becomes

12π(bμ)σ(aμ)σez2/2dz12π(bμ)σ(aμ)σez2/2dz

 

In the next example, we show how we can use this integral in calculating probabilities.

Example: Using Maclaurin Series to Approximate a Probability

Suppose a set of standardized test scores are normally distributed with mean μ=100μ=100 and standard deviation σ=50σ=50. Use the equation before this example and the first six terms in the Maclaurin series for e-x22e-x22 to approximate the probability that a randomly selected test score is between x=100x=100 and x=200x=200. Use the alternating series test to determine how accurate your approximation is.

Analysis

If you are familiar with probability theory, you may know that the probability that a data value is within two standard deviations of the mean is approximately 95%. Here we calculated the probability that a data value is between the mean and two standard deviations above the mean, so the estimate should be around 47.5%. The estimate, combined with the bound on the accuracy, falls within this range.

try it

Use the first five terms of the Maclaurin series for e-x22 to estimate the probability that a randomly selected test score is between 100 and 150. Use the alternating series test to determine the accuracy of this estimate.

Another application in which a nonelementary integral arises involves the period of a pendulum. The integral is

π20dθ1k2sin2θ.

 

An integral of this form is known as an elliptic integral of the first kind. Elliptic integrals originally arose when trying to calculate the arc length of an ellipse. We now show how to use power series to approximate this integral.

Example: Period of a Pendulum

The period of a pendulum is the time it takes for a pendulum to make one complete back-and-forth swing. For a pendulum with length L that makes a maximum angle θmax with the vertical, its period T is given by

T=4Lgπ20dθ1k2sin2θ

 

where g is the acceleration due to gravity and k=sin(θmax2) (see Figure 3). (We note that this formula for the period arises from a non-linearized model of a pendulum. In some cases, for simplification, a linearized model is used and sinθ is approximated by θ.) Use the binomial series

11+x=1+n=1(1)nn!135(2n1)2nxn

 

to estimate the period of this pendulum. Specifically, approximate the period of the pendulum if

  1. you use only the first term in the binomial series, and
  2. you use the first two terms in the binomial series.

    This figure is a pendulum. There are three positions of the pendulum shown. When the pendulum is to the far left, it is labeled negative theta max. When the pendulum is in the middle and vertical, it is labeled equilibrium position. When the pendulum is to the far right it is labeled theta max. Also, theta is the angle from equilibrium to the far right position. The length of the pendulum is labeled L.

    Figure 3. This pendulum has length L and makes a maximum angle θmax with the vertical.

The applications of Taylor series in this section are intended to highlight their importance. In general, Taylor series are useful because they allow us to represent known functions using polynomials, thus providing us a tool for approximating function values and estimating complicated integrals. In addition, they allow us to define new functions as power series, thus providing us with a powerful tool for solving differential equations.