Skip to main content

Section 2.2 Integration Using Tables and Computer Algebra Systems

Finding antiderivatives is tricky business, often requiring sophisticated techniques of integration that are beyond the scope of this course. At times, we will be running across an function for which we cannot find an antiderivative. Does this mean we cannot make further progress? Not necessarily!

In this notebook, we will introduce two tools, created by professional mathematicians and computer scientists, that are readily available to us, namely

  1. Tables of Integrals, and
  2. Computer Algebra Systems / Online Integrators.

Subsection 2.2.1 Tables of Integrals

During our first class, we crowdsourced a Basic Table of Integrals, based on our knowledge of basic functions from the previous calculus course, such as

\begin{alignat*}{1} \int x^n \ dx &= \frac{x^{n+1}}{n+1} + C \ \ \ \mbox{for} \ \ n \ne 1 \\ \int \frac{1}{x} \ dx &= \ln|x| + C \\ \int e^x \ dx &= e^x + C \\ \int \sin(x) \ dx &= -\cos(x) + C \\ & . \\ & . \\ & . \end{alignat*}

Mathematicians have collected antiderivatives of thousands of functions over the years, and organized them for lookup by others. A small Table of Integrals is available at the front of the recommended textbook (Reference Pages 6-10). For convenience, we have posted a pdf file with these pages on eClass (with permission from the publisher).

In the next video, we take a look at how this Table to Integrals is organized, and we do a few examples to demonstrate how to use the Table.

Figure 2.2.1. Video demonstrating the use of the Table of Integrals. NOTE: At minute 5:02, there is a small mistake, namely that a factor of 2 was not carried through from one line to the next.
Remark 2.2.2.
It is important to keep in mind that it is not uncommon to need to use algebraic techniques (such as completing the square) and/or substitution to rewrite a given function into one of the forms listed in the Table of Integrals.

Subsection 2.2.2 A Powerful Online Integrator

In the last decade or so, mathematicians and computer scientists have made tremendous progress in developing software to evaluate integrals. An example is WolframAlpha's computational engine, which can be accessed for free online.

Exploration 2.2.1.
To evaluate \(\displaystyle \int \frac{dx}{x^2 \sqrt{4x^2+9}}\text{,}\) navigate to https://www.wolframalpha.com and type (or copy and paste) integrate 1 / ( x^2 sqrt( 4x^2 + 9 ) )
Answer
With the press of a button, we find $$ \int \frac{dx}{x^2 \sqrt{4x^2+9}} = \frac{ - \sqrt{ 4x^2 + 9 } }{ 9x} + C. $$
Exploration 2.2.2.
Similarly, to evaluate \(\displaystyle \int_0^{\pi} x^3 \sin(x) \ dx\text{,}\) navigate to https://www.wolframalpha.com and type (or copy and paste) integrate x^3 sin(x) from 0 to pi
Answer
We readily obtain $$ \int_0^{\pi} x^3 \sin(x) \ dx = \pi ( \pi^2 - 6 ). $$

Pretty cool, eh!

Remark 2.2.3.
WolframAlpha is a very powerful tool, and it is easy to be tempted to use WolframAlpha to complete the pre-class quizzes and online homework problems. While you would earn the marks for these assessments, you would of course be cheating yourself from learning by not doing the work. We encourage you to be disciplined, and use WolframAlpha only as a tool to check your work and when told to use it (for example, for a question where an integral needs to be evaluated but the evaluation itself is not the focus).

Subsection 2.2.3 Not All Functions Have an Antiderivative That Can Be Written in Terms of Functions That We Know

Not all functions, even seemingly innocuous functions such as \(\displaystyle f(x) = \frac{e^x}{x}\) or \(\displaystyle g(x) = \sin(x^2)\text{,}\) have an antiderivative that can be written in terms of functions that we know.

For example, let's take a look at what WolframAlpha says if we try to evaluate \(\displaystyle \int \sin(x^2) \ dx\text{.}\)

Exploration 2.2.3.
Navigate to https://www.wolframalpha.com and type (or copy and paste) integrate sin( x^2 )
Answer
WolframAlpha returns $$ \int \sin(x^2) \ dx = \sqrt{ \frac{\pi}{2} } \mathcal{S}\left( \sqrt{ \frac{2}{\pi} } x \right) + C, $$ with a note indicating that \(\mathcal{S}(x)\) is the Fresnel S integral. The Fresnel S integral is a mathematical object that has applications in physics and engineering. It is a topic of study in advanced mathematics and physics courses; it is well beyond the scope of our course.

The take-home message of this last exploration is that the antiderivative of \(\sin(x^2)\) cannot be written in terms of elementary functions.

Although WolframAlpha cannot evaluate the indefinite integral \(\displaystyle \int \sin(x^2) \ dx\) in terms of elementary functions, it can evaluate a definite integral such as \(\displaystyle \int_0^3 \sin(x^2) \ dx\text{.}\)

Exploration 2.2.4.
Navigate to https://www.wolframalpha.com and type (or copy and paste) integrate sin( x^2 ) from 0 to 3
Answer

WolframAlpha returns $$ \int_0^3 \sin(x^2) \ dx \approx 0.773563. $$

Note that WolframAlpha provides a visual representation of the definite integral immediately below the numerical result: it shows that the definite integral represents the net area under the graph of \(f(x) = \sin(x^2)\) between \(x=0\) and \(x=3\) (area of the blue regions lying above the \(x\)-axis minus the area of the red region lying below the \(x\)-axis).

Subsection 2.2.4 Summary

  • A Table of Integrals is a useful resource in the evaluation of an integral. It is not uncommon to need to use algebraic techniques (such as completing the square) and/or substitution to rewrite a given function into one of the forms listed in the Table of Integrals.
  • WolframAlpha is an excellent tool in the evaluation of both indefinite and definite integrals.
  • Not all functions have an antiderivative that can be written in terms of elementary functions (functions that we know).

Subsection 2.2.5 Don't Forget

Don't forget to return to eClass to complete the pre-class quiz.

Subsection 2.2.6 Further Study

Remember that the notes presented above only serve as an introduction to the topic. Further study of the topic will be required. This includes working through the pre-class quizzes, reviewing the lecture notes, and diligently working through the homework problems.

As you study, you should reflect on the following learning outcomes, and critically assess where you are on the path to achieving these learning outcomes:

The following references provide a good start for review and further study:

Learning Outcome Video Textbook Section
1 2.E4 5.7 (Example 2)
2 2.E4 5.7 (Examples 1 and 3)
3 N/A 5.7 (Examples 4 and 5)