Recognize the Taylor series expansions of common functions.
Recognize and apply techniques to find the Taylor series for a function.
Use Taylor series to solve differential equations.
Use Taylor series to evaluate non-elementary integrals.
In the preceding section, we defined Taylor series and showed how to find the Taylor series for several common functions by explicitly calculating the coefficients of the Taylor polynomials. In this section we show how to use those Taylor series to derive Taylor series for other functions. We then present two common applications of power series. First, we show how power series can be used to solve differential equations. Second, we show how power series can be used to evaluate integrals when the antiderivative of the integrand cannot be expressed in terms of elementary functions. In one example, we consider \(\displaystyle \int e^{−x^2}dx,\) an integral that arises frequently in probability theory.
The Binomial Series
Our first goal in this section is to determine the Maclaurin series for the function \( f(x)=(1+x)^r\) for all real numbers \( r\). The Maclaurin series for this function is known as the binomial series. We begin by considering the simplest case: \( r\) is a nonnegative integer. We recall that, for \( r=0,\,1,\,2,\,3,\,4,\;f(x)=(1+x)^r\) can be written as
The expressions on the right-hand side are known as binomial expansions and the coefficients are known as binomial coefficients. More generally, for any nonnegative integer \( r\), the binomial coefficient of \( x^n\) in the binomial expansion of \( (1+x)^r\) is given by
We now consider the case when the exponent \(r\) is any real number, not necessarily a nonnegative integer. If \(r\) is not a nonnegative integer, then \(f(x)=(1+x)^r\) cannot be written as a finite polynomial. However, we can find a power series for \(f\). Specifically, we look for the Maclaurin series for \(f\). To do this, we find the derivatives of \(f\) and evaluate them at \(x=0\).
We note that if \(r\) is a nonnegative integer, then the \((r+1)^{\text{st}}\) derivative \( f^{(r+1)}\) is the zero function, and the series terminates. In addition, if \( r\) is a nonnegative integer, then Equation \ref{eq6.8} for the coefficients agrees with Equation \ref{eq6.6} for the coefficients, and the formula for the binomial series agrees with Equation \ref{eq6.7} for the finite binomial expansion. More generally, to denote the binomial coefficients for any real number \( r\), we define
if and only if \( |x|<1\), we conclude that the interval of convergence for the binomial series is \( (−1,1)\). The behavior at the endpoints depends on \( r\). It can be shown that for \( r≥0\) the series converges at both endpoints; for \( −1<r<0\), the series converges at \( x=1\) and diverges at \( x=−1\); and for \( r<−1\), the series diverges at both endpoints. The binomial series does converge to \( (1+x)^r\) in \( (−1,1)\) for all real numbers \( r\), but proving this fact by showing that the remainder \( R_n(x)→0\) is difficult.
Definition: Binomial Series
For any real number \( r\), the Maclaurin series for \( f(x)=(1+x)^r\) is the binomial series. It converges to \( f\) for \( |x|<1\), and we write
We can use this definition to find the binomial series for \( f(x)=\sqrt{1+x}\) and use the series to approximate \( \sqrt{1.5}\).
Example \(\PageIndex{1}\): Finding Binomial Series
Find the binomial series for \( f(x)=\sqrt{1+x}\).
Use the third-order Maclaurin polynomial \( p_3(x)\) to estimate \( \sqrt{1.5}\). Use Taylor’s theorem to bound the error. Use a graphing utility to compare the graphs of \( f\) and \( p_3\).
Solution
a. Here \( r=\dfrac{1}{2}\). Using the definition for the binomial series, we obtain
for some \( c\) between \( 0\) and \( 0.5\). Since \( f^{(4)}(x)=−\dfrac{15}{2^4(1+x)^{7/2}}\), and the maximum value of \( ∣f^{(4)}(x)∣\) on the interval \( (0,0.5)\) occurs at \( x=0\), we have
\( |R_3(0.5)|≤\dfrac{15}{4!2^4}(0.5)^4≈0.00244.\)
The function and the Maclaurin polynomial \( p_3\) are graphed in Figure \(\PageIndex{1}\).
Exercise \(\PageIndex{1}\)
Find the binomial series for \( f(x)=\dfrac{1}{(1+x)^2}\).
Hint
Use the definition of binomial series for \( r=−2\).
Answer
\(\displaystyle \sum_{n=0}^∞(−1)^n(n+1)x^n\)
Common Functions Expressed as Taylor Series
At this point, we have derived Maclaurin series for exponential, trigonometric, and logarithmic functions, as well as functions of the form \( f(x)=(1+x)^r\). In Table \(\PageIndex{1}\), we summarize the results of these series. We remark that the convergence of the Maclaurin series for \( f(x)=\ln(1+x)\) at the endpoint \( x=1\) and the Maclaurin series for \( f(x)=\tan^{−1}x\) at the endpoints \( x=1\) and \( x=−1\) relies on a more advanced theorem than we present here. (Refer to Abel’s theorem for a discussion of this more technical point.)
Table \(\PageIndex{1}\): Maclaurin Series for Common Functions
Earlier in the chapter, we showed how you could combine power series to create new power series. Here we use these properties, combined with the Maclaurin series in Table \(\PageIndex{1}\), to create Maclaurin series for other functions.
Example \( \PageIndex{2}\): Deriving Maclaurin Series from Known Series
Find the Maclaurin series of each of the following functions by using one of the series listed in Table \(\PageIndex{1}\).
\( f(x)=\cos\sqrt{x}\)
\( f(x)=\sinh x\)
Solution
a. Using the Maclaurin series for \( \cos x\) we find that the Maclaurin series for \( \cos\sqrt{x}\) is given by
This series converges to \( \cos\sqrt{x}\) for all \( x\) in the domain of \( \cos\sqrt{x}\); that is, for all \( x≥0\).
b. To find the Maclaurin series for \( \sinh x,\) we use the fact that
\( \sinh x=\dfrac{e^x−e^{−x}}{2}.\)
Using the Maclaurin series for \( e^x\), we see that the \(n^{\text{th}}\) term in the Maclaurin series for \(\sinh x\) is given by
\( \dfrac{x^n}{n!}−\dfrac{(−x)^n}{n!}.\)
For \( n\) even, this term is zero. For \( n\) odd, this term is \( \dfrac{2x^n}{n!}\). Therefore, the Maclaurin series for \(\sinh x\) has only odd-order terms and is given by
We also showed previously in this chapter how power series can be differentiated term by term to create a new power series. In Example \(\PageIndex{3}\), we differentiate the binomial series for \( \sqrt{1+x}\) term by term to find the binomial series for \( \dfrac{1}{\sqrt{1+x}}\). Note that we could construct the binomial series for \( \dfrac{1}{\sqrt{1+x}}\) directly from the definition, but differentiating the binomial series for \( \sqrt{1+x}\) is an easier calculation.
Example \(\PageIndex{3}\): Differentiating a Series to Find a New Series
Use the binomial series for \( \sqrt{1+x}\) to find the binomial series for \( \dfrac{1}{\sqrt{1+x}}\).
In this example, we differentiated a known Taylor series to construct a Taylor series for another function. The ability to differentiate power series term by term makes them a powerful tool for solving differential equations. We now show how this is accomplished.
Solving Differential Equations with Power Series
Consider the differential equation
\[y′(x)=y.\nonumber \]
Recall that this is a first-order separable equation and its solution is \(y=Ce^x\). 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 \(\displaystyle y=\sum_{n=0}^∞c_nx^n\) and determine what the coefficients would need to be. In the next example, we consider an initial-value problem involving \(y′=y\) to illustrate the technique.
Example \( \PageIndex{4}\): Power Series Solution of a Differential Equation
Use power series to solve the initial-value problem \(y′=y,\quad y(0)=3.\)
as the Taylor series for \( e^x\). Therefore, the solution is \( y=3e^x\).
Exercise \(\PageIndex{4}\)
Use power series to solve \( y′=2y,\quad y(0)=5.\)
Hint
The equations for the first several coefficients \( c_n\) will satisfy \( c_0=2c_1,\,c_1=2⋅2c_2,\,c_2=2⋅3c_3,\,….\) In general, for all \( n≥0,\;c_n=2(n+1)C_{n+1}\).
Answer
\( y=5e^{2x}\)
We now consider an example involving a differential equation that we cannot solve using previously discussed methods. This differential equation
\[y''−xy=0\nonumber \]
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 \( \PageIndex{5}\): Power Series Solution of Airy’s Equation
Use power series to solve \(y''−xy=0\) with the initial conditions \( y(0)=a\) and \( y'(0)=b.\)
Using the Uniqueness of Power Series Theorem (from an earlier Section) on the uniqueness of power series representations, we know that coefficients of the same degree must be equal. Therefore,
\( 2⋅1c_2=0,\)
\( 3⋅2c_3=c_0,\)
\( 4⋅3c_4=c_1,\)
\( 5⋅4c_5=c_2,\)
⋮
More generally, for \( n≥3\), we have \( n⋅(n−1)c_n=c_{n−3}\). In fact, all coefficients can be written in terms of \( c_0\) and \( c_1\). To see this, first note that \( c_2=0\). Then
The initial condition \( y(0)=a\) implies \( c_0=a\). Differentiating this series term by term and using the fact that \( y′(0)=b\), we conclude that \( c_1=b\).
Therefore, the solution of this initial-value problem is
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 \(\displaystyle \int e^{−x^2}\,dx.\) Unfortunately, the antiderivative of the integrand \( e^{−x^2}\) 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)=\sqrt{x^2−3x}+e^{x^3}−\sin(5x+4)\) is an elementary function, although not a particularly simple-looking function. Any integral of the form \(\displaystyle \int f(x)\,dx\) where the antiderivative of \( f\) cannot be written as an elementary function is considered a non-elementary integral.
Non-elementary 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 \(\displaystyle \int e^{−x^2}\,dx.\)
Example \(\PageIndex{6}\): Using Taylor Series to Evaluate a Definite Integral
Express \(\displaystyle \int e^{−x^2}dx\) as an infinite series.
Evaluate \(\displaystyle \int ^1_0e^{−x^2}dx\) to within an error of \( 0.01\).
Solution
a. The Maclaurin series for \( e^{−x^2}\) is given by
The sum of the first four terms is approximately \( 0.74\). By the alternating series test, this estimate is accurate to within an error of less than \( \dfrac{1}{216}≈0.0046296<0.01.\)
Exercise \(\PageIndex{6}\)
Express \(\displaystyle \int \cos\sqrt{x}\,dx\) as an infinite series. Evaluate \(\displaystyle \int ^1_0\cos\sqrt{x}\,dx\) to within an error of \( 0.01\).
Hint
Use the series found in Example \(\PageIndex{6}\).
Answer
\(\displaystyle C+\sum_{n=1}^∞(−1)^{n+1}\dfrac{x^n}{n(2n−2)!}\) The definite integral is approximately \( 0.514\) to within an error of \( 0.01\).
As mentioned above, the integral \(\displaystyle \int e^{−x^2}\,dx\) 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=a\) and \( x=b\) is given by
To simplify this integral, we typically let \( z=\dfrac{x−μ}{σ}\). This quantity \(z\) is known as the \(z\) score of a data value. With this simplification, integral Equation \ref{probeq} becomes
In Example \(\PageIndex{7}\), we show how we can use this integral in calculating probabilities.
Example \(\PageIndex{7}\): Using Maclaurin Series to Approximate a Probability
Suppose a set of standardized test scores are normally distributed with mean \( μ=100\) and standard deviation \( σ=50\). Use Equation \ref{probeq} and the first six terms in the Maclaurin series for \( e^{−x^2/2}\) to approximate the probability that a randomly selected test score is between \( x=100\) and \( x=200\). Use the alternating series test to determine how accurate your approximation is.
Solution
Since \( μ=100,σ=50,\) and we are trying to determine the area under the curve from \( a=100\) to \( b=200\), integral Equation \ref{probeq} becomes
We now use this result to evaluate the definite integral from Equation \ref{probeqEx7}:
\[\dfrac{1}{\sqrt{2π}}\int ^2_0e^{−z^2/2}\,dz=\dfrac{1}{\sqrt{2π}}\left(2−\dfrac{8}{6}+\dfrac{32}{40}−\dfrac{128}{336}+\dfrac{512}{3456}−\dfrac{2^{11}}{11⋅2^5⋅5!}+⋯\right)\nonumber \]
Using the first five terms, we estimate that the probability is approximately 0.4922. By the alternating series test, we see that this estimate is accurate to within
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.
Exercise \(\PageIndex{7}\)
Use the first five terms of the Maclaurin series for \( e^{−x^2/2}\) 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.
Hint
Evaluate \(\displaystyle \int ^1_0e^{−z^2/2}\,dz\) using the first five terms of the Maclaurin series for \( e^{−z^2/2}\).
Answer
The estimate is approximately \( 0.3414.\) This estimate is accurate to within \( 0.0000094.\)
Another application in which a non-elementary integral arises involves the period of a pendulum. The integral is
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 \( \PageIndex{8}\): 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
where \( g\) is the acceleration due to gravity and \( k=\sin\left(\dfrac{θ_{max}}{2}\right)\) (see Figure \(\PageIndex{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 \( θ\).)
If \( θ_{max}\) is small, then \( k=\sin\left(\dfrac{θ_{max}}{2}\right)\) is small. We claim that when \( k\) is small, this is a good estimate. To justify this claim, consider
b. For larger values of \( θ_{max}\), we can approximate \( T\) by using more terms in the integrand. By using the first two terms in the integral, we arrive at the estimate
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.
Key Concepts
The binomial series is the Maclaurin series for \( f(x)=(1+x)^r\). It converges for \( |x|<1\).
Taylor series for functions can often be derived by algebraic operations with a known Taylor series or by differentiating or integrating a known Taylor series.
Power series can be used to solve differential equations.
Taylor series can be used to help approximate integrals that cannot be evaluated by other means.
Glossary
binomial series
the Maclaurin series for \( f(x)=(1+x)^r\); it is given by \(\displaystyle (1+x)^r=\sum_{n=0}^∞\binom{r}{n}x^n=1+rx+\dfrac{r(r−1)}{2!}x^2+⋯+\dfrac{r(r−1)⋯(r−n+1)}{n!}x^n+⋯\) for \( |x|<1\)
non-elementary integral
an integral for which the antiderivative of the integrand cannot be expressed as an elementary function