Techniques of Integration: 6.1 Differential Notation
Techniques of Integration: 6.1 Differential Notation
Techniques of Integration
In this chapter, we expand our repertoire for antiderivatives beyond the “elementary” functions
discussed so far. A review of the table of elementary antiderivatives (found in Chapter 3) will be
useful. Here we will discuss a number of methods for finding antiderivatives. We refer to these
collected “tricks” as methods of integration. As will be shown, in some cases, these methods are
systematic (i.e. with clear steps), whereas in other cases, guesswork and trial and error is an
important part of the process.
A primary method of integration to be described is substitution. A close relationship exists
between the chain rule of differential calculus and the substitution method. A second very important
method is integration by parts. This methods has a basis in the product rule of differentiation, and
essentially, allows one to replace one (possibly hard) integral by another (hopefully simpler) one.
Many other secondary techniques of integration are known, and in the past, these formed a large
part of any second semester course in calculus. Nowadays, with many sophisticated mathematical
software packages (including Maple and Mathematica), integration can be carried our automatically
via computation called “symbolic manipulation”, reducing our need to dwell on these technical
methods.
We begin by familiarizing the reader with notation that appears frequently in substitution
integrals, i.e. differential notation.
∆y = m∆x.
∆y
∆x
Figure 6.1: The slope of the line shown here is m. This means that the small quantities ∆y and
∆x are related by ∆y = m∆x.
The slope of a straight line is the same everywhere. Moreover, if we make a very small step in
the x direction, call it dx (to remind us of an “infinitesimally small” quantity), then the resulting
change in the y direction, (call it dy) is related by
dy = m dx
Now suppose that we have a curve defined by some arbitrary function, y = f (x) which need not
be a straight line.For a given point (x, y) on this curve, a step ∆x in the x direction is associated
with a step ∆y in the y direction. The relationship between the step sizes is:
secant
y+∆ y tangent
y+dy y=f(x)
y y
x x+ ∆x x x+dx
Figure 6.2: On this figure, the graph of some function is used to illustrate the connection between
differentials dy and dx. Note that these are related via the slope of a tangent line to the curve, in
contrast with the relationship of ∆y and ∆x which stems from the slope of the secant line on the
same curve.
∆y = ms ∆x,
where now ms is the slope of a secant line (shown connecting two points on the curve in Figure 6.2).
If the size of the steps are small (dx and dy), then this relationship is well approximated by the
dy = mt dx = f ′ (x)dx.
The quantities dx and dy are called differentials. In general, they link a small step on the x axis
with the resulting small change in height along the tangent line to the curve (shown in Figure 6.2).
We might observe that the ratio of the differentials, i.e.
dy
= f ′ (x)
dx
appears to link our result to the definition of the derivative. We remember, though, that the
derivative is actually defined as a limit:
∆y
f ′ (x) = lim .
∆x→0 ∆x
Examples
We give some examples of functions, their derivatives, and the differential notation that goes with
them.
dy = 3x2 dx.
2. The function y = f (x) = tan(x) has derivative f ′ (x) = sec2 (x). Therefore
1
3. The function y = f (x) = ln(x) has derivative f ′ (x) = x
so
1
dy = dx.
x
With some practice, we can omit the intermediate step of writing down a derivative and go
directly from function to differential notation. Given a function y = f (x) we will often write
df
df (x) = dx
dx
and occasionally, we use just the symbol df to mean the same thing. The following examples
illustrate this idea with specific functions.
1
d(sin(x)) = cos(x) dx, d(xn ) = nxn−1 dx, d(arctan(x)) = dx.
1 + x2
Moreover, some of the basic rules of differentiation translate directly into rules for handling and
manipulating differentials. We give a list of some of these elementary rules below.
Proof
d d
F (x) = G(x)
dx dx
d d
F (x) − G(x) = 0
dx dx
d
(F (x) − G(x)) = 0
dx
This means that the function F (x) − G(x) should be a constant, since its derivative is zero. Thus
F (x) − G(x) = C
so
F (x) = G(x) + C,
as required. F (x) and G(x) are called antiderivatives of f (x), and this confirms, once more, that
any two antiderivatives differ at most by a constant.
In another terminology, which means the same thing, we also say that F (x) (or G(x)) is the
integral of the function f (x), and we refer to f (x) as the integrand. We write this as follows:
Z
F (x) = f (x) dx.
This notation is sometimes called “an indefinite integral” because it does not denote a specific
numerical value, nor is an interval specified for the integration range. An indefinite integral is a
function with an arbitrary constant. (Contrast this with the definite integral studied in our last
chapters: in the case of the definite integral, we specified an interval, and interpreted the result, a
number, in terms of areas associated with curves.) We also write
Z
f (x) dx = F (x) + C
if we want to indicate the form of all possible functions that are antiderivatives of f (x). C is referred
to as a constant of integration.
How do we handle this? We reason as follows. The df /dx (a quantity that is, itself, a function)
is the derivative of the function f (x). That means that f (x) is the antiderivative of df /dx. Then,
according to the Fundamental Theorem of Calculus,
df
Z
dx = f (x) + C.
dx
We can write this same result using the differential of f , as follows:
Z
df = f (x) + C.
The following examples illustrate the idea with several elementary functions.
Examples
R
1. d(cos x) = cos x + C.
R
2. dv = v + C.
3. d(x3 ) = x3 + C.
R
6.3.1 Example
We could find an antiderivative by expanding the integrand (x + 1)10 into a degree 10 polynomial
and using methods already known to us; but this would be laborious. Let us observe, however, that
if we define
u = (x + 1)
then
d(x + 1)
du = dx = dx.
dx
Now replacing (x + 1) by u and dx by the equivalent du we get:
Z
F (x) = u10 du.
Check
We consider how substitution type integrals can be calculated when we have endpoints, i.e. in
evaluating definite integrals. Consider the example:
Z 2
1
I= dx
1 x+1
This integration can be done by making the substitution u = x + 1 for which du = dx. We can
handle the endpoints in one of two ways:
We can change the integral over entirely to a definite integral in the variable u as follows: Since
u = x + 1, the endpoint x = 1 corresponds to u = 2, and the endpoint x = 2 corresponds to u = 3,
so changing the endpoints to reflect the change of variables leads to
Z 3 3
1 3
I= du = ln |u| = ln 3 − ln 2 = ln .
2 u 2 2
In the last steps we have plugged in the new endpoints (appropriate to u).
Here we plugged in the original endpoints (as appropriate to the variable x).
6.3.3 Example
Find a simple substitution and determine the antiderivatives (indefinite integrals) of the following
functions:
2
Z
1. I = dx.
x+2
Z 1
3
2. I = x2 ex dx
0
1
Z
3. I = dx.
(x + 1)2 + 1
Z √
4. I = (x + 3) x2 + 6x + 10 dx.
Z π
5. I = cos3 (x) sin(x) dx.
0
1
Z
6. I = dx.
b + ax2
Solutions
2
Z
1. I = dx. Let u = x + 2. Then du = dx and we get
x+2
2 1
Z Z
I= du = 2 du = 2 ln |u| = 2 ln |x + 2| + C.
u u
Z 1
3
2. I = x2 ex dx. Let u = x3 . Then du = 3x2 dx. Here we use method 2 for handling
0
endpoints.
du 1 1 3
Z
eu = eu = ex + C.
3 3 3
Then 1
1
1 x3 1
Z
2 x3
I= xe dx = e = (e − 1).
0 3 0 3
(We converted the antiderivative to the original variable, x, before plugging in the original
endpoints.)
1
Z
3. I = dx. Let u = x + 1, then du = dx so we have
(x + 1)2 + 1
1
Z
I= 2
du = arctan(u) = arctan(x + 1) + C.
u +1
Z √
4. I = (x + 3) x2 + 6x + 10 dx. Let u = x2 + 6x + 10. Then du = (2x + 6) dx = 2(x + 3) dx.
With this substitution we get
√ du 1 1 u3/2 1 1
Z Z
I= u = u1/2 du = = u3/2 = (x2 + 6x + 10)3/2 + C.
2 2 2 3/2 3 3
Z π
5. I = cos3 (x) sin(x) dx. Let u = cos(x). Then du = − sin(x) dx. Here we use method 1 for
0
handling endpoints. For x = 0, u = cos 0 = 1 and for x = π, u = cos π = −1, so changing the
integral and endpoints to u leads to
−1
u4
Z −1
1
I= u (−du) = − = − ((−1)4 − 14 ) = 0.
3
1 4 1 4
Here we plugged in the new endpoints that are relevant to the variable u.
1 1 1
Z Z
6. I = dx = dx. This can be brought to the form of an arctan type
b + ax2 b 1 + (a/b)x2 p p
integral as follows: Let u2 = (a/b)x2 , so u = a/b x and du = a/b dx. Now substituting
these, we get
1 1 du 1 1
Z p Z
I= 2
= b/a du
1 + u2
p
b 1+u a/b b
1 1 p
I = √ arctan(u) du = √ arctan( a/b x) + C.
ba ba
Not every integral can be handled by simple substitution. Let us see what could go wrong:
u = (1 + x2 ).
Then
du = 2x dx
and dx = du/2x. Attempting to convert the integral to the form containing u would lead to
√ du
Z
I= u .
2x
We have not succeeded in eliminating x entirely, so the expression obtained contains a mixture of
two variables. We can proceed no further. This substitution did not simplify the integral and we
must try some other technique.
Finding an antiderivative can be tricky. (To a large extent, methods described in this chapter are
a “collection of tricks”.) However, it is always possible (and wise) to check for correctness, by
differentiating the result. This can help uncover errors.
For example, suppose that (in the previous example) we had guessed that the antiderivative of
Z
(1 + x2 )1/2 dx
could possibly be
1
Fguess (x) = (1 + x2 )3/2 .
3/2
This is actually incorrect, as the following check demonstrates: Differentiate Fguess (x) to obtain
1
′
Fguess (x) = (3/2)(1 + x2 )(3/2)−1 · 2x = (1 + x2 )1/2 · 2x
3/2
The result is clearly not the same as (1+x2)1/2 , since an “extra” factor of 2x appears from application
of the chain rule: this means that the trial function Fguess (x) was not the correct antiderivative.
(We can similarly check to confirm correctness of any antiderivative found by following steps of
methods here described. This can help to uncover sign errors and other algebraic mistakes.)
In some cases, rearrangement is needed before the form of an integral becomes apparent. We give
some examples in this section. The idea is to reduce each one to the form of an elementary integral,
whose antiderivative is known.
However, finding which of these forms is appropriate in a given case will take some ingenuity and
algebra skills. Integration tends to be more of an art than differentiation, and recognition of patterns
plays an important role here.
6.4.1 Example
Solution
We observe that the denominator of the integrand is a perfect square, i.e. that x2 −6x+9 = (x−3)2 .
Replacing this in the integral, we obtain
1 1
Z Z
I= 2
dx = dx.
x − 6x + 9 (x − 3)2
Now making the substitution u = (x − 3), and du = dx leads to a power type integral
1 1
Z Z
−2 −1
I= du = u du = −u = − + C.
u2 (x − 3)
6.4.2 Example
A small change in the denominator will change the character of the integral, as shown by this
example:
1
Z
I= 2
dx.
x − 6x + 10
Solution
Here we use “completing the square” to express the denominator in the form x2 − 6x + 10 =
(x − 3)2 + 1. Then the integral takes the form
1
Z
I= dx.
1 + (x − 3)2
Now a substitution u = (x − 3) and du = dx will result in
1
Z
I= du = arctan(u) = arctan(x − 3) + C.
1 + u2
Remark: in cases where completing the square gives rise to a constant other than 1 in the de-
nominator, we use the technique illustrated in example 6 of the previous section to simplify the
problem.
6.4.3 Example
A change in one sign can also lead to a drastic change in the antiderivative. Consider
1
Z
I= dx.
1 − x2
In this case, we can factor the denominator to obtain
1
Z
I= dx.
(1 − x)(1 + x)
We will show shortly that the integrand can be simplified to the sum of two fractions, i.e. that
1 A B
Z Z
I= dx = + dx,
(1 − x)(1 + x) (1 − x) (1 + x)
where A, B are constants. The algebraic technique for finding these constants, and hence of forming
the simpler expressions, called Partial fractions, will be discussed in an upcoming section. Once
these constants are found, each of the resulting integrals can be handled by substitution.
Trigonometric functions provide a rich set of interconnected functions that show up in many prob-
lems. It is useful to remember three very important trigonometric identities that help to simplify
many integrals. These are:
In the special case that A = B = x, the last two identities above lead to:
From these, we can generate a variety of other identities as special cases. We list the most useful
below. The first two are obtained by combining the double-angle formula for cosines with the
identity sin2 (x) + cos2 (x) = 1.
6.5.1 Example
Solution
This integral can be computed by a simple substitution, similar to example 5 of Section 6.3. We
let u = cos(x) and du = − sin(x)dx to get the integral into the form
We need none of the trigonometric identities in this case. Simple substitution is always the easiest
method to use. It should be the first method attempted in each case.
6.5.2 Example
Solution
This is an example in which the “useful trigonometric identity” 1 leads to a simpler integral. We
write
1 + cos(2x) 1
Z Z Z
2
I = cos (x) dx = dx = (1 + cos(2x)) dx.
2 2
Then clearly,
1 sin(2x)
I= x+ + C.
2 2
6.5.3 Example
Solution
Now using the trigonometric identity sin2 (x) + cos2 (x) = 1, leads to
Z
I = (1 − cos2 (x)) sin(x) dx.
The first part is elementary, and the second was shown in a previous example. Therefore we end
up with
cos3 (x)
I = − cos(x) + + C.
3
Note that it is customary to combine all constants obtained in the calculation into a single constant,
C at the end.
Aside from integrals that, themselves, contain trigonometric functions, there are other cases
in which use of trigonometric √identities, though at first seemingly
√ unrelated, is crucial. Many
2 2
expressions involving the form 1 ± x or the related form a ± bx will be simplified eventually
by conversion to trigonometric expressions !
6.5.4 Example
Solution
The simple substitution u = 1 − x2 will not work, (as shown by a similar example in Section 6.3).
However, converting to trigonometric expressions will do the trick. Let
(In Figure 6.3, we show this relationship on a triangle. This diagram is useful in reversing the
conversions after the integration step.) Then 1 − x2 = 1 − sin2 (u) = cos2 (u), so the substitutions
lead to Z p Z
I= cos (u) cos(u) du = cos2 (u) du.
2
From a previous example we already know how to handle this integral. We find that
1 sin(2u) 1
I= u+ = (u + sin(u) cos(u)) + C.
2 2 2
(In the last step, we have used the double angle trigonometric identity. We will shortly see why
this simplification is relevant.)
We now desire to convert the result back to a function of the original variable, x. We note that
x = sin(u) implies u = arcsin(x). To convert the term cos(u) back to an expression depending on
x we can use the relationship 1 − sin2 (u) = cos2 (u), to deduce that
q √
cos(u) = 1 − sin2 (u) = 1 − x2 .
It is sometimes helpful to use a Pythagorean triangle, as shown in Figure 6.3, to rewrite the
antiderivative in terms of the variable x. The idea is this: We construct the triangle in such a
way that its side lengths are related to the “angle” u according to the substitution rule. In this
example, x = sin(u) so the sides labeled x and 1 were chosen so that their ratio (”opposite over
hypotenuse coincides with the sine of the indicated angle, u, thereby satisfying x = sin(u). We
can then determine the length of the third leg of the triangle (using the Pythagorean formula) and
thus all other trigonometric
√ functions of√u. For example, we note that the ratio of “adjacent over
hypotenuse” is cos(u) = 1 − x2 /1 = 1 − x2 . Finally, with these reverse substitutions, we find
that, Z √
1 √
I= 2
1 − x dx = 2
arcsin(x) + x 1 − x + C.
2
Remark: In computing a definite integral of the same type, we can circumvent the need for
the conversion back to an expression involving x by using the appropriate method for handling
1
x
u
1−x 2
Figure 6.3: This triangle helps to convert the (trigonometric) functions of u to the original variable
x in example 6.5.4.
can be transformed to
Z π/2 p
I= cos2 (u) cos(u) du
0
by observing that x = sin(u) implies that u = 0 when x = 0 and u = π/2 when x = 1. Then
this means that the integral can be evaluated directly (without changing back to the variable x) as
follows:
π/2 π/2
1 sin(2u) 1 π sin(π) π
Z p
I= cos2 (u) cos(u) du = u+ = + =
0 2 2
0 2 2 2 4
6.5.5 Example
Solution
We aim for simplification by the identity 1 + tan2 (u) = sec2 (u), so we set
This integral will require further work, and will be partly calculated by Integration by Parts later
in this chapter. In this example, the triangle shown in Figure 6.4 shows the relationship between x
and u and will help to convert other trigonometric functions of u to functions of x.
2
1+x
x
u
1
Figure 6.4: As in Figure 6.3 but for example 6.5.5.
6.6.1 Example
1 = −2A
1 = 2B
Thus B = 1/2, A = −1/2, so the integral can be written in the simpler form
Z
1 −1 1
Z
I= dx + dx
2 (x + 1) (x − 1)
(A common factor of (1/2) has been taken out.) Now a simple substitution will work for each
component. (Let u = x + 1 for the first, and u = x − 1 for the second integral.) The result is
1 1
Z
I= 2
= (− ln |x + 1| + ln |x − 1|) + C.
x −1 2
6.6.2 Example
6.6.3 Example
i.e. Z Z
uv = v du + u dv.
Example 1
Compute Z 2
I= ln(x) dx.
1
Solution
Example 2
Compute Z 1
I= xex dx.
0
Solution
At first, it may be hard to decide how to assign roles for u and dv. Suppose we try u = ex and
dv = xdx. Then du = ex dx and v = x2 /2. This means that we would get the integral in the form
x2 x
Z 2
x x
I= e − e dx.
2 2
This is certainly not a simplification, because the integral we obtain has a higher power of x, and is
consequently harder, not easier to integrate. This suggests that our first attempt was not a helpful
one. (Note that integration often requires trial and error.)
Let u = x and dv = ex dx. This is a wiser choice because when we differentiate u, we reduce
the power of x (from 1 to 0), and get a simpler expression. Indeed, du = dx, v = ex so that
Z Z
xe dx = xe − ex dx = xex − ex + C.
x x
To find a definite integral of this kind on some interval (say 0 ≤ x ≤ 1), we compute
Z 1 1
xe dx = (xe − e ) = (1e1 − e1 ) − (0e0 − e0 ) = 0 + e0 = e0 = 1.
x x x
I=
0 0
Note that all parts of the expression are evaluated at the two endpoints.
Example 2b
Compute Z
In = xn ex dx
Solution
We can calculate this integral by repeated application of the idea in the previous example. Letting
u = xn and dv = ex dx leads to du = nxn−1 and v = ex . Then
Z Z
In = x e − nx e dx = x e − n xn−1 ex dx.
n x n−1 x n x
Each application of integration by parts, reduces the power of the term xn inside an integral by
one. The calculation is repeated until the very last integral has been simplified, with no remaining
powers of x. This illustrates that in some problems, integration by parts is needed more than once.
Example 3
Compute Z
I= arctan(x) dx.
Solution
We obtain, as a result
1
I = x arctan(x) − ln(1 + x2 ).
2
Example 3b
Compute Z
I= tan(x) dx.
Solution
We might try to fit this into a similar pattern, i.e. let u = tan(x) and dv = dx. Then du = sec2 (x) dx
and v = x, so we obtain Z
I = x tan(x) − x sec2 (x) dx.
This is not really a simplification, and we see that integration by parts will not necessarily work,
even on a seemingly related example. However, we might instead try to rewrite the integral in the
form
sin(x)
Z Z
I = tan(x) dx = dx.
cos(x)
Now we find that a simple substitution will do the trick, i.e. that w = cos(x) and dw = − sin(x) dx
will convert the integral into the form
1
Z
I= (−dw) = − ln |w| = − ln | cos(x)|.
w
This example illustrates that we should always try substitution, first, before attempting other
methods.
Example 4
Compute Z
I1 = ex sin(x) dx.
We refer to this integral as I1 because a related second integral, that we’ll call I2 will appear in the
calculation.
Solution
We now have another integral of a similar form to tackle. This seems hopeless, as we have not
simplified the result, but let us not give up! In this case, another application of integration by parts
will do the trick. Call I2 the integral
Z
I2 = cos(x)ex dx,
so that
I1 = −ex cos(x) + I2 .
Repeat the same procedure for the new integral I2 , i.e. Let u = ex and dv = cos(x) dx. Then
du = ex dx and v = sin(x) dx. Thus
Z
I2 = e sin(x) − sin(x)ex dx = ex sin(x) − I1 .
x
This appears to be a circular argument, but in fact, it has a purpose. We have determined that the
following relationships are satisfied by the above two integrals:
I1 = −ex cos(x) + I2
I2 = ex sin(x) − I1 .
We can eliminate I2 , obtaining
I1 = −ex cos(x) + I2 = −ex cos(x) + ex sin(x) − I1 .
that is,
I1 = −ex cos(x) + ex sin(x) − I1 .
Rearranging (taking I1 to the left hand side) leads to
2I1 = −ex cos(x) + ex sin(x)
and thus, the desired integral has been found to be
1 1
Z
I1 = ex sin(x) dx = (−ex cos(x) + ex sin(x)) = ex (sin(x) − cos(x)) + C.
2 2
(At this last step, we have included the constant of integration.) Moreover, we have also found that
I2 is related, i.e. using I2 = ex sin(x) − I1 we now know that
1
Z
I2 = cos(x)ex dx = ex (sin(x) + cos(x)) + C
2
This integral can be simplified to some extent by integration by parts as follows: Let u = sec(x), dv =
sec2 (x) dx. Then du = sec(x) tan(x)dx while v = sec2 (x) dx = tan(x). The integral can be
R
transformed to Z
I = sec(x) tan(x) − sec(x) tan2 (x) dx.
We are now in need of an antiderivative for sec(x). No “obvious substitution” or further integration
by parts helps here, but it can be checked by differentiation that
Z
sec(x) dx = ln | sec(x) + tan(x)| + C
1
I= (sec(x) tan(x) + ln | sec(x) + tan(x)|) + C
2
6.8 Summary
In this chapter, we explored a number of techniques for computing antiderivatives. We here sum-
marize the most important results:
1. Substitution is the first method to consider. This method works provided the change of
variable results in elimination of the original variable and leads to a simpler, more elementary
integral.
2. When using substitution on a definite integral, endpoints can be converted to the new variable
(Method 1) or the resulting antiderivative can be converted back to its original variable before
plugging in the (original) endpoints (Method 2).
Z Z
u dv = uv − v du.
Integration by parts is useful when u is easy to differentiate (but not easy to integrate). It
is also helpful when the integral contains a product of elementary functions such as xn and a
trigonometric or an exponential function. Sometimes more than one application of this method
is needed. Other times, this method is combined with substitution or other simplifications.
4. Using integration by parts on a definite integral means that both parts of the formula are to
be evaluated at the endpoints.
√
5. Integrals involving 1 ± x2 can be simplified by making a trigonometric substitution.
7. Algebraic tricks, and many associated manipulations are often applied to twist and turn a
complicated integral into a set of simpler expressions that can each be handled more easily.
8. Even with all these techniques, the problem of finding an antiderivative can be very compli-
cated. In some cases, we resort to handbooks of integrals, use symbolic manipulation software
packages, or, if none of these work, calculate a given definite integral numerically using a
spreadsheet.