38 Symbolic anti-differentiation
You have already learned how to write down, by sight, the anti-derivative of the many of the pattern-book functions. As a reminder, here is an (almost) complete list of the derivatives and anti-derivatives of the pattern-book functions.
power-law |
||
See below. |
You can see that the derivatives and anti-derivatives of the pattern-book functions can be written using the pattern-book functions themselves. The left column contains the symbolic derivatives of the pattern book functions.1 The right column contains the symbolic anti-derivatives. We call them “symbolic,” because they are written down with the same kind of symbols that we use for writing the pattern-book functions themselves.2
We are stretching things a bit by including
Think of the above table as the “basic facts” of differentiation and anti-differentiation. It is well worth memorizing the table since it shows many of the relationships among the functions that are central to this book. For the sinusoids, we’ve used the traditional name
For differentiation, any function that can be written using combinations of the pattern-book functions by multiplication, composition, and linear combination has a derivative that can be written using the pattern-book functions. So a complete story of symbolic differentiation is told by the above table and the differentiation rules:
linear combination:
product:
composition:
This chapter is about the analogous rules for anti-differentiation. The anti-differentiation rule for linear combination is simple: essentially the same as the rule for differentiation.
Indeed, there are many functions for which a symbolic anti-derivative cannot be constructed from compositions and/or multiplication of pattern-book functions that can be written using pattern-book functions.3
Fortunately, we already know the symbolic anti-derivative form of many functions. We will call those the cataloged functions, but this is not a term in general use in mathematics. For functions not in the catalog, it is non-trivial to find out whether the function has a symbolic anti-derivative or not. This is one reason why the techniques of integration do not always provide a result.
The following sections provide an overview of techniques of integration. We start with a description of the cataloged functions and direct you to computer-based systems for looking up the catalog. (These are almost always faster and more reliable than trying to do things by hand.) Then we introduce a new interpretation of the notation for anti-differentiation: differentials. This interpretation makes it somewhat easier to understand the major techniques of integration: substitution and integration by parts. We will finish by returning to a setting where symbolic integration is easy: polynomials.
Remember that, even if we cannot always find a symbolic anti-derivative, that we can always construct a numerical anti-derivative that will be precise enough for almost any genuine purpose.
38.1 The cataloged functions
In a traditional science or mathematics education, students encounter (almost exclusively) basic functions from a mid-sized catalog. For instance:
The professional applied mathematician’s catalog is much larger. You can see an example published by the US National Institute of Standards and Technology as the Digital Library of Mathematical Functions. (Almost all of the 36 chapters in this catalog, important though they be, are highly specialized and not of general interest across fields.)
There is a considerable body of theory for these cataloged functions, which often takes the form of relating them to one another. For instance,
Simply to illustrate what a function catalog looks like, Figure 38.1 shows a page from an 1899 handbook entitled A Short Table of Integrals.

The use of cataloged functions is particularly prevalent in textbooks, so the quantitatively sophisticated student will encounter symbolic anti-derivatives of these functions throughout his or her studies.
The cataloged functions were assembled with great effort by mathematicians over the decades. The techniques and tricks they used to find symbolic anti-derivatives are not part of the everyday experience of technical workers, although many mathematically minded people find them a good source of recreation.
Calculus textbooks that include extensive coverage of the techniques and tricks should be understood as telling a story of the historical construction of catalogs, rather than conveying skills that are widely used today. In a practical sense, when the techniques are needed, it is more reliable to access them via computer interface such as WolframAlpha, as depicted in Figure 38.2.
The systems can do a good job identifying cases where the techniques will not work. In such systems, they provide the anti-derivative as constructed by numerical integration. The R/mosaic antiD()
function works in this same way, although its catalog contains only a tiny fraction of the functions found in professional systems. (But then, only a tiny fraction of the professional cataloged function are widely used in applied work.)
38.2 Differentials
Breathing some life into the symbol
By analogy, the English sentence
consists of five parts: the five words in the sentence.
But you can also see “We loaded up on snacks” as having three parts:
Likewise, the integrate sentence can be seen as consisting of just two parts:
A differential corresponds to the little sloped segments that we add up when calculating a definite integral numerically using the slope function visualization. That is
A differential is a genuine mathematical object and is used, for example, in analyzing the geometry of curved spaces, as in the Theory of General Relativity. But this is well beyond the scope of this introductory calculus course.
Our use here for differentials will be to express rules for anti-differentiation of function compositions and products.
You should be thinking of differentials when you see a sentence like the following:
“In
, make the substitution , implying that and getting , which is simple to integrate.”
The table gives some examples of functions and their differentials. “w.r.t” means “with respect to.”
As you can see, the differential of a function is simply the derivative of that function followed by the little
Notice that the differential of a function is not written with parentheses: The function
38.3 U-substitution
There is little reason to use
- Pick a function
and another function . Typically and belong to the family of basic modeling functions, e.g. , , , , and so on. For the purpose of illustration, we will use and . - Compose
with to produce a new function which, in our case, will be . - Use the chain rule to find
. In the example, the derivative of is , the derivative of is . By the chain rule,
In a sense, we have just watched a function give birth to another through the straightforward process of differentiation. Having witnessed the birth, we know who is the integration parent of
Now for the u-substitution game. The trick is to take a problem of the form
38.4 Integration by parts (standard presentation)
If you do a lot of symbolic anti-differentation, you will often come across functions that you don’t recognize as being the derivative of an already known function. Consider, for instance,
Even though the integrand
The re-organization rule is based on two fundamental properties of differentiation and anti-differentiation.
. This is saying nothing more than if is the derivative of , then must be an anti-derivative of . : the product rule of differentiation.
Let’s integrate both sides of the statement of the product rule. For the left side, applying rule (i), we get a simple result:
As for the right side, all we get is two anti-derivatives:
To implement the re-arrangement, we need to split our as yet unknown anti-derivative into two pieces:
The key creative step in using integration by parts effectively is to choose a helpful split of the original integral into the
For the calculus student learning integration by parts, there is an irony. Gaining enough experience to make good choices of
38.5 Integration by parts (optional alternative presentation)
Integration by parts applies to integrals that are recognizably of the form
Step 2: Pick one of
Step 3: Construct a helper function
Step 4: Find
Step 5: Anti-differentiate both sides of the previous equation. From the fundamental theorem of calculus, we know how to do the left side of the equation.
[The presentation of integration by parts in this section was formulated by Prof. Michael Brilleslyper.]
38.6 Didn’t work?
If integration by parts does not work … and it does not always work! … there is a variety of possibilities such as asking a math professor (who has a much larger set of functions at hand than you), looking through a table of integrals (which is to say, the collective calculus diary of generations of math professors), using a computer algebra system, or using numerical integration. One of these will work.
If you have difficulty using u-substitution or integration by parts, you will be in the same league as the vast majority of calculus students. Think of your fellow students who master the topic in the way you think of ice dancers. It is beautiful to watch, but you need a special talent and it hardly solves every problem. People who would fall on their face if strapped to a pair of skates have nonetheless made huge contributions in technical fields, even those that involve ice.
Prof. Kaplan once had a heart-to-heart with a 2009 Nobel-prize winner who confessed to always feeling bad and inadequate as a scientist because he had not done well in introductory calculus. It was only when he was nominated for the Nobel that he felt comfortable admitting to his “failure.” Even if you don’t master u-substitution or integration by parts, remember that you can integrate any function using easily accessible resources.
38.7 Integrating polynomials
One of the most famous settings for integration comes from the physics of free fall under gravity.
Here’s the setting. An object—a ball, let’s imagine—is being held at height
On release, the force that held the ball steady is removed and the object moves under the influence of only one factor: gravity. The effect of gravity near the Earth’s surface is easy to describe: it accelerates the object at a constant rate of about 9.8 m/s
Acceleration is the derivative with respect to time of velocity. Since we know acceleration, to find velocity we find an anti-derivative of acceleration:
Velocity is the derivative of position: height in this case. So height is an anti-derivative of velocity.
Let’s checkout the function
Stated generally, the anti-derivative of a polynomial is
In exercise 26.16, we introduced a Taylor polynomial approximation to the gaussian function. That might have seemed like a mere exercise in high-order differentiation at the time, but there is something more important at work.
The gaussian is one of those functions for which the anti-derivative cannot be written exactly using what the mathematicians call “elementary functions.” (See Section 38.1.) Yet integrals of the gaussian are very commonly used in science, especially in statistics where the gaussian is called the normal PDF.
The approach we’ve taken in this book is simply to give a name and a computer implementation of the anti-derivative of the gaussian. This is the function we’ve called pnorm()
.
We never told you the algorithm contained in pnorm()
. Nor do we really need to. We all depend on experts and specialists to design and build the computers we use. The same is true of software implementation of functions like pnorm()
. And for that matter, for implementations of functions like exp()
, log()
, sin()
, and so on. You don’t have to know about semi-conductors to use a computer productively, and you don’t need to know about numerical algorithms to use those functions.
One feasible algorithm for implementing
Another feasible approach integrates
One small deviation from the pattern-book functions is
. The absolute value in reflects the differing domains of the functions and . Logarithms are defined only the positive half of the number line, while the reciprocal function is defined for all non-zero . Including the absolute value in the argument to log covers situations such as which has the value .↩︎Mathematicians have a list that is a bit longer than our pattern-book functions—they call them elementary functions and include the tangent and other trig functions and their inverses, as well as what are called “hyperbolic functions” and their inverses.↩︎
Again, mathematicians prefer to refer to the “elementary functions” rather than the pattern-book functions.
and are not elementary functions, and there are several elementary function that we don’t include in the pattern-book list.↩︎Many jurisdictions tax food and clothing, etc. at a different rate than other items.↩︎