Skip to main content
Logo image

Coordinated Calculus

Section 5.12 Using Technology and Tables to Evaluate Integrals

We have learned several antidifferentiation techniques: u-substitution, integration by parts, trigonometric substitution, and the method of partial fractions. However, there will still be cases of integrals that can not be solved by these methods. Consider the integral ex2dx: none of these methods can be used to solve this integral. In fact, an elementary algebraic antiderivative for ex2 does not exist. No antidifferentiation method will provide us with a simple algebraic formula for a function F(x) that satisfies F(x)=ex2.
The goal of this section is to recognize that there are many functions for which an algebraic formula for an antiderivative does not exist, and appreciate the role that computing technology can play in finding antiderivatives of other complicated functions. Moreover, tables of integrals can be helpful in finding antiderivatives quickly, even when we are able to compute them by hand.

Example 5.109.

For each of the indefinite integrals below, look at the table of integrals in Appendix A and decide how an antiderivative may be obtained using the table. It is also worthwhile to ask whether any of the methods we have learned so far can also be used to find an antiderivative.
  1. 11+x2dx
  2.   2x+31+x2dx
  3.  ex1+(ex)2dx
  4.   11x2dx
Solution.
  1. This can be evaluated by following Rule (a) in the table. It may also be evaluated using trigonometric substitution.
  2. This requires algebraic manipulation before you can successfully use a substitution. We can evaluate 2x+31+x2dx by recognizing that 2x+31+x2=2x1+x2+31+x2 so we can split the original integral into two integrals. Then, evaluate 2x1+x2dx with the substitution u=1+x2 ,du=2xdx and evaluate 31+x2dx by following Rule (a) in the table or by using trigonometric substitution.
  3. This integral can be found by using the substitution u=ex ,du=exdx which transforms the integral to 11+u2du. The antiderivative of 11+u2du is again found using Rule (a) in the table; trigonometric substitution may also be used.
  4. The final integral can be evaluated by following Rule (g) in the table. It may also be evaluated using trigonometric substitution.

Subsection 5.12.1 Using an Integral Table

Calculus has a rich history, spanning across many centuries and continents. Core concepts like limit and continuity can be traced back to Greek mathematicians, astronomers, and philosophers in 400-300 BC. Scholars in China, India, the Middle East, and Europe developed these ideas further over hundreds of years until the first unified accounts of differential and integral calculus were given, independently, by Isaac Newton and Gottfried Wilhelm Leibniz in the 17th century.
It is instructive to realize that because the personal computer didn’t exist until the late 1980s, calculus (and all other mathematics) had to be done by hand for millenia. In the 21st century, however, computers have revolutionized many aspects of the world we live in, including mathematics. In this section we investigate the role that integral tables and computer algebra systems can play in evaluating indefinite integrals.
As seen in the short table of integrals found in Appendix A, there are many forms of integrals that involve a2±w2 and w2a2. These integral rules can be developed using the technique known as trigonometric substitution that we learned in the last section. To see how these rules are used, consider the differences among
11x2dx,   x1x2dx,   and   1x2dx.
The first integral is a familiar basic one, and results in arcsin(x)+C. The second integral can be evaluated using a standard u-substitution with u=1x2. The third, however, is not familiar and does not lend itself to u-substitution.
In Appendix A, we find the rule
(h) a2u2du=u2a2u2+a22arcsinua+C.
Using the substitutions a=1 and u=x (so that du=dx), it follows that
1x2dx=x21x2+12arcsinx+C.
Whenever we are applying a rule in the table, we are doing a u-substitution, particularly when the substitution is more complicated than setting u=x as in the last example.

Example 5.110.

Evaluate the integral
9+64x2dx.
Solution.
Here, we want to use Rule (c) from the table, but we now set a=3 and u=8x. We also choose the “+” option in the rule. With this substitution, it follows that du=8dx, so dx=18du. Applying the substitution,
9+64x2dx=9+u218du=189+u2du.
By Rule (c), we now find that
9+64x2dx=(18(u2u2+9+92ln|u+u2+9|+C)=(18(8x264x2+9+92ln|8x+64x2+9|+C).
Whenever we use a u-subsitution in conjunction with Appendix A, it’s important that we not forget to address any constants that arise and include them in our computations, such as the 18 that appeared in Example 5.110.

Example 5.111.

For each of the following integrals, evaluate the integral using u-substitution and/or an entry from the table found in Appendix A.
  1. x2+4dx
  2. xx2+4dx
  3. 216+25x2dx
  4. 1x24936x2dx
Hint.
  1. Compare to u2+a2du.
  2. Try a straightforward u-substitution; the table is unneeded.
  3. Let a=4 and u=5x and look for a similar integral in the table.
  4. Let a=7 and u=6x; find a related integral in the table.
Answer.
  1. x2+4dx=x2x2+4+2ln|x+x2+4|+C.
  2. xx2+4dx=x2+4+C.
  3. 216+25x2dx=25ln|5x+16+25x2|+C.
  4. 1x24936x2dx=4936x249x+C.
Solution.
  1. By Rule (c) in Appendix A with a=2 and u=x,
    x2+4dx=x2x2+4+42ln|x+x2+4|+C.
  2. Let u=x2+4, so du=2xdx. Thus
    xx2+4dx=12duu=122u1/2+C=x2+4+C.
  3. Letting a=4 and u=5x, we see du=5dx. Thus,
    216+25x2dx=25dua2+u2.
    Now by Rule (b) in Appendix A, it follows
    216+25x2dx=25ln|5x+16+25x2|+C.
  4. Letting a=7 and u=6x, it follows that x=16u and du=6dx, and therefore
    1x24936x2dx=161136u2a2u2du.
    Using Rule (k) in Appendix A and the fact that 1636=6, we see
    1x24936x2dx=64936x2496x+C.

Subsection 5.12.2 Using Computer Algebra Systems

A computer algebra system (CAS) is a computer program that is capable of executing symbolic mathematics. For example, if we ask a CAS to solve the equation ax2+bx+c=0 for the variable x, where a, b, and c are arbitrary constants, the program will return x=b±b24ac2a. Research to develop the first CAS dates to the 1960s, and these programs became publicly available in the early 1990s. Two prominent examples are the programs Maple and Mathematica, which were among the first computer algebra systems to offer a graphical user interface. Today, Maple and Mathematica are exceptionally powerful professional software packages that can execute an amazing array of sophisticated mathematical computations. They are also very expensive, as each is a proprietary program. The CAS SAGE is an open-source, free alternative to Maple and Mathematica.
For the purposes of this text, when we need to use a CAS, we are going to turn instead to a similar, but somewhat different computational tool, the web-based “computational knowledge engine” called WolframAlpha.
 40 
WolframAlpha can be accessed at www.wolframalpha.com.
There are two features of WolframAlpha that make it stand out from the CAS options mentioned above: (1) unlike Maple and Mathematica, WolframAlpha is free (provided we are willing to navigate some pop-up advertising); and (2) unlike any of the three, the syntax in WolframAlpha is flexible. Think of WolframAlpha as being a little bit like doing a Google search: the program will interpret what is input, and then provide a summary of options.
If we want to have WolframAlpha evaluate an integral for us, we can provide it syntax such as
integrate x^2 dx
to which the program responds with
x2dx=x33+constant.
To find the partial fraction decomposition of any rational function, in WolframAlpha, entering
partial fraction 5x/(x^2-x-2)
results in the output
5xx2x2=103(x2)+53(x+1).
While there is much to be enthusiastic about regarding CAS programs such as WolframAlpha, there are several things we should be cautious about: (1) a CAS only responds to exactly what is input; (2) a CAS can answer using powerful functions from very advanced mathematics; and (3) there are problems that even a CAS cannot do without additional human insight.
Although (1) likely goes without saying, we have to be careful with our input: if we enter syntax that defines the wrong function, the CAS will work with precisely the function we define. For example, if we are interested in evaluating the integral
1165x2dx,
and we mistakenly enter
integrate 1/16 - 5x^2 dx
a CAS will (correctly) reply with
116x53x3.
But if we are sufficiently well-versed in antidifferentiation, we will recognize that this function cannot be the one that we seek: integrating a rational function such as 1165x2, we expect the logarithm function to be present in the result.
Regarding (2), even for a relatively simple integral such as 1165x2dx, some CASs will invoke advanced functions rather than simple ones. For instance, if we use Maple to execute the command
int(1/(16-5*x^2), x);
the program responds with
1165x2dx=520arctanh(54x).
While this is correct (save for the missing arbitrary constant, which Maple never reports), the inverse hyperbolic tangent function is not a common nor familiar one; a simpler way to express this function can be found by using the partial fractions method, and happens to be the result reported by WolframAlpha:
1165x2dx=185(log(45+5x)log(455x))+constant.
Using sophisticated functions from more advanced mathematics is sometimes the way a CAS says to the user “I don’t know how to do this problem.” For example, if we want to evaluate
ex2dx,
and we ask WolframAlpha to do so, the input
integrate exp(-x^2) dx
results in the output
ex2dx=π2erf(x)+constant.
The function “erf(x)” is the error function, which is actually defined by an integral:
erf(x)=2π0xet2dt.
So, in producing an output involving an integral, the CAS has basically reported back to us the very question we asked.
Finally, as remarked at (3) above, there are times that a CAS will actually fail without some additional human insight. If we consider the integral
(1+x)ex1+x2e2xdx
and ask WolframAlpha to evaluate
int (1+x) * exp(x) * sqrt(1+x^2 * exp(2x)) dx,
the program thinks for a moment and then reports
(no result found in terms of standard mathematical functions)
But in fact this integral is not that difficult to evaluate. If we let u=xex, then du=(1+x)exdx, which means that the preceding integral has the form
(1+x)ex1+x2e2xdx=1+u2du,
which is a straightforward one for any CAS to evaluate.
So, we should proceed with some caution: while any CAS is capable of evaluating a wide range of integrals (both definite and indefinite), there are times when the result can mislead us. We must think carefully about the meaning of the output, whether it is consistent with what we expect, and whether or not it makes sense to proceed.

Subsection 5.12.3 Summary

  • Until the development of computer algebra systems, integral tables enabled students of calculus to evaluate integrals of certain forms quickly, such as a2+u2du, where a is a positive real number. A short table of integrals may be found in Appendix A.
  • Computer algebra systems can play an important role in finding antiderivatives, though we must be cautious to use correct input, to watch for unusual or unfamiliar advanced functions that the CAS may cite in its result, and to consider the possibility that a CAS may need further assistance or insight from us in order to answer a particular question.

Exercises 5.12.4 Exercises

1. Using a Computer Algebra System to Antidifferentiate Rational Functions.

For each of the following integrals involving rational functions, (1) use a CAS to find the partial fraction decomposition of the integrand; (2) evaluate the integral of the resulting function without the assistance of technology; (3) use a CAS to evaluate the original integral to test and compare your result in (2).
  1. x3+x+1x41dx
  2. x5+x2+3x36x2+11x6dx
  3. x2x1(x3)3dx

2. Using a Table of Integrals to Find Antiderivatives of Radical Functions.

For each of the following integrals involving radical functions, (1) use an appropriate u-substitution along with Appendix A to evaluate the integral without the assistance of technology, and (2) use a CAS to evaluate the original integral to test and compare your result in (1).
  1. 1x9x2+25dx
  2. x1+x4dx
  3. ex4+e2xdx
  4. tan(x)9cos2(x)dx

3. Comparing Antidifferentiation Tools.

Consider the indefinite integral given by
x+1+x2xdx.
  1. Explain why u-substitution does not offer a way to simplify this integral by discussing at least two different options you might try for u.
  2. Explain why integration by parts does not seem to be a reasonable way to proceed, either, by considering one option for u and dv.
  3. Is there any line in the integral table in Appendix A that is helpful for this integral?
  4. Evaluate the given integral using WolframAlpha. What do you observe?