Applications of Series: Learn It 4

Evaluating Nonelementary Integrals

Power series offer a powerful solution when you encounter integrals that can’t be solved with standard techniques. You’ve already seen how power series help solve differential equations—now let’s explore their second major application: evaluating integrals involving functions whose antiderivatives don’t exist in elementary form.

Consider the integral [latex]\displaystyle\int e^{-x^2}dx[/latex], which appears frequently in probability theory and statistics. You might try various integration techniques, but you’ll quickly discover that none work. The reason? The antiderivative of [latex]e^{-x^2}[/latex] cannot be expressed as an elementary function – a function that can be written using a finite number of algebraic combinations or compositions of exponential, logarithmic, trigonometric, or power functions.

The term “elementary” doesn’t mean “simple”—for instance, [latex]f(x) = \sqrt{x^2-3x} + e^{x^3} - \sin(5x+4)[/latex] is elementary despite its complexity.

When the antiderivative of a function isn’t elementary, we classify the integral as nonelementary.

nonelementary integrals

Any integral [latex]\displaystyle\int f(x)dx[/latex] where the antiderivative of [latex]f[/latex] cannot be written as an elementary function. These integrals require special techniques beyond basic integration methods.

When faced with nonelementary integrals, you can use this strategy: express the integrand as a power series, then integrate term by term. This approach transforms an impossible integral into a manageable infinite series.

We’ll demonstrate this technique using [latex]\displaystyle\int e^{-x^2}dx[/latex] as our key example.

  1. Express [latex]\displaystyle\int {e}^{\text{-}{x}^{2}}dx[/latex] as an infinite series.
  2. Evaluate [latex]{\displaystyle\int }_{0}^{1}{e}^{\text{-}{x}^{2}}dx[/latex] to within an error of [latex]0.01[/latex].

Watch the following video to see the worked solution to the example above.

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

The integral [latex]\displaystyle\int e^{-x^2}dx[/latex] isn’t just a mathematical curiosity—it plays a crucial role in analyzing real-world data. You’ll encounter this integral when working with normally distributed data sets, where values follow the familiar bell-shaped curve pattern.

When data is normally distributed with mean [latex]\mu[/latex] and standard deviation [latex]\sigma[/latex], you can find the probability that a randomly chosen value falls between [latex]x = a[/latex] and [latex]x = b[/latex] using:

[latex]\frac{1}{\sigma \sqrt{2\pi }}{\displaystyle\int }_{a}^{b}{e}^\frac{{\text{-}{\left(x-\mu \right)}^{2}}{\left(2{\sigma }^{2}\right)}}dx[/latex].

This represents the area under the normal curve between the two boundary values. (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 [latex]\mu [/latex] and standard deviation [latex]\sigma [/latex], the probability that a randomly selected data value is between [latex]a[/latex] and [latex]b[/latex] is the area under the curve [latex]y=\frac{1}{\sigma\sqrt{2\pi}}{e}^{\frac{-\left(x-\mu\right)^{2}}{\left(2{\sigma}^{2}\right)}}[/latex] between [latex]x=a[/latex] and [latex]x=b[/latex].

To simplify calculations, statisticians use the substitution [latex]z = \frac{x-\mu}{\sigma}[/latex]. This quantity [latex]z[/latex] is called the z-score of a data value—it measures how many standard deviations away from the mean a particular value lies.

With this substitution, our probability integral becomes the more manageable form:

[latex]\dfrac{1}{\sqrt{2\pi }} {\displaystyle\int}_{\frac{\left(a-\mu \right)}{\sigma}}^{\frac{\left(b-\mu\right)}{\sigma}}{e}^{-z^2\text{/}2}dz[/latex]

This standardized version allows us to work with universal probability tables and makes calculations more efficient. In the next example, we’ll show how to use this integral to calculate actual probabilities.

Suppose a set of standardized test scores are normally distributed with mean [latex]\mu =100[/latex] and standard deviation [latex]\sigma =50[/latex]. Use the equation before this example and the first six terms in the Maclaurin series for [latex]{e}^{\frac{\text{-}{x}^{2}}{2}}[/latex] to approximate the probability that a randomly selected test score is between [latex]x=100[/latex] and [latex]x=200[/latex]. Use the alternating series test to determine how accurate your approximation is.

Nonelementary integrals appear in many areas of physics and engineering. One important example comes from analyzing pendulum motion, where the period involves the integral:

[latex]{\displaystyle\int }_{0}^{\frac{\pi}{2}}\frac{d\theta }{\sqrt{1-{k}^{2}{\sin}^{2}\theta }}[/latex].
This integral cannot be evaluated using standard techniques. An integral of this form is known as an elliptic integral of the first kind. These integrals originally arose when mathematicians attempted to calculate the arc length of an ellipse, which explains their name. Elliptic integrals appear throughout physics and engineering—from pendulum periods to planetary motion calculations. Since we can’t solve them analytically, power series provide an essential tool for obtaining numerical approximations.

We’ll now demonstrate how to use power series techniques to approximate this integral and make it useful for practical calculations.

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 [latex]L[/latex] that makes a maximum angle [latex]{\theta }_{\text{max}}[/latex] with the vertical, its period [latex]T[/latex] is given by

[latex]T=4\sqrt{\frac{L}{g}}{\displaystyle\int }_{0}^{\frac{\pi}{2}}\frac{d\theta }{\sqrt{1-{k}^{2}{\sin}^{2}\theta }}[/latex]

 

where [latex]g[/latex] is the acceleration due to gravity and [latex]k=\sin\left(\frac{{\theta }_{\text{max}}}{2}\right)[/latex] (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 [latex]\sin\theta[/latex] is approximated by [latex]\theta[/latex].) Use the binomial series

[latex]\frac{1}{\sqrt{1+x}}=1+\displaystyle\sum _{n=1}^{\infty }\frac{{\left(-1\right)}^{n}}{n\text{!}}\frac{1\cdot 3\cdot 5\cdots \left(2n - 1\right)}{{2}^{n}}{x}^{n}[/latex]

 

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 [latex]L[/latex] and makes a maximum angle [latex]{\theta }_{\text{max}}[/latex] 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.