You are on page 1of 12

16

Integration
16.1 The antiderivative function or the indenite integral
The linearization process of dierential calculus derives for function f (x) the linear dif-
ferential relationship dy = f  (x0 )dx. We will be concerned here with the inverse problem
of solving the dierential equation dy = f  (x)dx for function y(x). Function F (x) such
that F  (x) = f (x) is called an antiderivative or a primitive function of f (x). For example,
dy = 2xdx is derived from f (x) = x2 since (x2 ) = 2x. Yet not only x2 solves the dierential
equation y  = x2 but any other function of the form x2 + c, where c is a constant, and
the converse is also generally true, namely, if F and G are the antiderivatives of the same
function, then F G = c.
We state it formally.
Theorem: If F (x) is a primitive function of f (x), namely, F  (x) = f (x) on some interval,
then the function G(x) is also a primitive function of f (x), if and only if, constant c exists
such that for each x in the interval G(x) = F (x) + c.
The anti-dierentiation statement is written in the form

f (x)dx = F (x) + c, F  (x) = f (x).

in which the elongated S (for sum) is the integral sign, f (x) the integrand, F (x) any an-
tiderivative function of f (x), and c the constant of integration. Because c is arbitrary, the
act of nding F is called indenite integration, and the totality of the primitive functions of
f (x) is said to be the indenite integral of f (x).
For example
   
a 1 a 2 a a a a 1 2
e xdx = e x + c, e xda = xe + c, dx = a ln x + c, da = a + c.
2 x x 2x

If we think about x as time and about f (x) as velocity, then F (x) is the distance traveled,
which can be determined with certainty only with knowledge of the time traveled.
16.2 Some indenite integrals
Below are listed the integrals of some common functions.

0dx = c

1dx = x + c

1
xn dx = xn+1 + c, n = 1
n+1

1
dx = ln x + c, x > 0

x
1 x
ax dx = a + c, a > 0
ln a
1
Chapter 16
 
1 1 x
ex dx = ex + c dx = arctan +c
x2 + a2 a a
 
1 x
sin xdx = cos x + c dx = arcsin + c
a x
2 2 a
    
1 1
cos xdx = sin x + c a2 x2 dx = x a2 x2 ln(x + a2 x2 ) + c
2 2
16.3 Basic properties of the indenite integral
It results from the denition of the indenite integral that
    
cf (x)dx = c f (x)dx, and [f (x) g(x)]dx = f (x)dx g(x)dx.

But there is no product rule and no quotient rule for the indenite integral. The (indenite)
integrals  
f
f gdx and dx
g
can not be evaluated in terms of the integrals of f and g. For example
   
1 3 1+x 1
(1 x)(1 + x)dx = (1 x )dx = x x + c,
2
dx = ( + 1)dx = ln x + x + c
3 x x
in which each integrand was rst broken down into a sum and then integrated term wise.
Examples.
  2  2   
x2 x 1+1 x 1 1 1
1. dx = dx = dx + dx = (x 1)dx + dx
1+x 1+x 1+x 1+x 1+x
  4  2 
x4 x 1+1 x 1 1
2. 2
dx = 2
dx = 2
dx + dx =
1+x 1+x 1+x 1 + x2
 
1 1
= (x2 1)dx + 2
dx = x3 x + arctan x + c.
1+x 3
  2 2  
1 sin x + cos x 1 1
3. 2 dx = 2 dx = 2 dx + dx = cot x + tan x + c
sin x cos2 x sin x cos2 x sin x cos2 x
Lack of these rules makes the evaluation of the integral uncertain. Whereas the derivative
function of complicated functions comprising of elementary functions can be routinely written
in terms of elementary functions, the integral may be dicult or even impossible to express
in terms of elementary
functions. No function F (x) consisting of elementary functions exists

such that F (x) = 1 + x3 , or F (x) = sin x/x. The ubiquity of these, and similar, integrals
in applied mathematics led to the introduction of a good number of new such integral-dened
functions.
Crafty computer programs such as Mathematica or Maple, designed for doing symbolic
(as opposed to numerical) mathematics, have the capacity to do integration, and they do
it well. They are highly successful in expressing a given integral in terms of elementary, or
other, devised, functions, lifting from us the burden of an otherwise tedious, and often futile,
paper-and-pencil search.
2
Chapter 16
As an example to indenite integration we will prove the
Theorem: The only plane curves of constant curvature are the line and the circle.
Proof. The curvature of the plane curve y = y(x) is give by

y 
= .
(1 + y 2 )3/2

If = 0, then y  = 0 and we have


  
y(x) = ( 0dx)dx = c1 dx = c1 x + c2

for constants c1 , c2 , which is the equation of a line. Assume that the curvature is a non zero
constant and put z = y  to have it in the form

z 1 1
= 2 3/2
or dx = dz
(1 + z ) (1 + z 2 )3/2

and
1 1 1 z
x= 2 3/2
dz = + c.
(1 + z ) 1 + z2
We select the constant of integration c = 0, and have, after some algebra

 x x 1
z=y = then y = dx = 1 2 x2 + c.
1 2 x2 1 2 x2

We take c = 0, square y, and are left with x2 + y 2 = 1/2 , which is the equation of a circle
specically centered at the origin.
Exercises. 

1. Show that x ln x dx = pxq (ln x p) + c. Find numbers p and q.

x 1
2. Show that
dx = A(1 + x) 2 (x + B) + c. Find numbers A and B.
1+x

3. Show that x2 1 + x dx = A(1 + x)p + B(1 + x)q + C(1 + x)r + d.
Find numbers A, B, C, p, q, r.

4. Evaluate ex ex dx.

5. Show that ex sin(x) dx = ex (A cos(2x) + B sin(2x)) + c. Find numbers A, B.

1
6. Show that ln x dx = p(ln x)q + c. Find numbers p, q.
 x
7. Show that (ln x)2 dx = x(A + B ln x + C(ln x)2 ) + d. Find numbers A, B, C.

8. Show that ln x dx = x ln x + f (x) + c. Find function f (x).

3
Chapter 16

1
9. Show that x ln x dx = x2 ln x + f (x) + c. Find function f (x).
 2
10. Show that xex ds = xex + f (x) + c. Find function f (x).

11. Show that x sin x dx = x cos x + f (x) + c. Find function f (x).

 1
12. Knowing that (arcsin x) = show that arcsin x dx = x arcsin x + f (x) + c.
1 x2
Find function f (x).

x3
13. Show that dx = Ax3 + Bx2 + Cx + D ln(1 + x) + E. Find numbers A, B, C, D.
1+x

x
14. Show that dx = A x + B arctan( x) + C. Find numbers A, B.
1 + x
x
15. Show that dx = pxq + Ax + B x + C ln(1 + x) + D. Find numbers p, q,
1+ x
A, B, C.

1
16. Show that dx = A ln(x 1) + B x + C ln(1 + x) + D ln(1 + x) + E.
1+ x

17. Show that if p(x) is a polynom, then p(x)ex dx = ex (p p + p p + ) + c.
16.4 Integration techniques
At rst we will look at integration by algebraic reformations to bring the integrand into
a form from which its antiderivative can be directly deduced. This will give us a taste of the
clever algebraic rearrangements that are often needed with integrals.
Examples.
1. To nd the antiderivative of x2 /(1 + x2 ) we write
  2   
x2 x +11 x2 1 1 1
dx = dx = ( )dx = (x 1)dx dx
1+x 1+x 1+x 1+x 1+x
1
= x2 x + ln(1 + x) + c.
2
2. To nd the antiderivative of 1/(1 x2 ) we write
 
1 1 1 1 1 1 1 1
dx = dx = ( + )dx = ln(1 + x) ln(1 x) + c.
1x 2 1+x1x 2 1+x 1x 2 2

Substitutions or change of variables may also simplify an integral. Consider the integral
and the substitution u = u(x)

x2
dx, u = 1 x3 , du = 3x2 dx
1 x3
that becomes
1 1
du = ln u + c.
3 u
4
Chapter 16
3. Consider the integral

x 1 1
dx, u = 1 + 2x, x = (u 1), dx = du
1 + 2x 2 2
that becomes by the indicated transformation

1 u1 1 1
du = (1 )du = u ln u + c.
4 u 4 u
Such u-transformation shows the integral in the form
 
f [u(x)]u (x)dx = f (u)du.

For example 
2 1 2 1 2
xex dx = 2xex dx = ex + c.
2 2
4. An integral may be guessed up to some numerical factors, as for example

xex dx = Axex + Bex + c

with undetermined coecients A and B that are obtained from

xex = (Axex + Bex + c) = Axex + (A + B)ex

as A = 1, B = 1 so that A + B = 0.
Integrating the derivative of the product given by the rule (f g) = f  g + f g  we obtain
    
  
(f g) dx = gf dx + f g dx or f g = gdf + f dg

which is known as integration by parts. Consider once more



xex dx.

For the choice f = x, g  = ex we have f  = 1, g = ex , and


  
xex = 1 ex dx + xex dx, so that xex dx = xex ex + c.

Integrating repeatedly by parts we obtain the interesting and useful integral identities
 
y 2 dx = y  y dx + yy 

and  
2
y dx = y  y dx + y  y  y  y.

5
Chapter 16
Exercises.
1. Let Mathematica or Maple try to evaluate
    x 
1 + ex dx 1 + xex dx 1 + x sin x dx xe dx 1 + ex dx
    
sin x dx 1 + tan x dx tan x2 dx ln(1 + x3 ) dx 1 + xex dx
    
ln x dx 1 + ln x dx 1 + sin x dx 1 + sin x3 dx tan x dx.
    
x tan x dx ln sin x dx ln tan x dx tan ln x dx tan x dx
16.5 The existence of the indenite integral
The mathematical wizardry needed, the formidable expressions construed, and the im-
posibilities encountered with integrals stems from our insistence on expressing them in terms
of a limited number of essential functions. A simple function compounded of some elemen-
tary functions can often hardly, if at all, be integrated in terms of elemntary functions, to
wit, the integral of 1/x requires the novel function ln x. Yet there is no reason to doubt that
an anti derivative can be computed for any continuous function to any degree of accuracy.
Thinking about a traveling car this means that given the speed of the car as a function of
time, its distance from some starting point at any moment can be accurately computed.
One way of doing this is to divide the time interval between the start and the present into
small time subintervals in which the velocity of the car may be assumed constat, which it
nearly is by virtue of the continuity of speed function. The distance covered in each time
subinterval is easily computed, and when we add up all these sections we have the total
distance, approximately. In a more general mathematical context this method is known as
the Riemann mid-point method, and we prove its validity shortly.
Geometrically speaking what we are claiming is that if the slope function of a curve
passing through a xed point is given, then any point on the curve can be computed to
within any prescribed accuracy. How this is may be systematically achieved is illustrated in
the gure below. Let the given continuous function f (x) be the slope function of function
F (x), F  (x) = f (x). Let also the initial value of F (x) at x = a, F (a) be given.
F(x) F(x)

F(a) F(a)

h h h h/2
a x a x
In the gure above F (x) happens to be depicted increasing and concave, namely, such

6
Chapter 16
that it is above any of its tangent lines. Moving on the tangent line from x = a to x = a + h
we end at a point that we consider being on the integral of f (x) but for a lower constant
of integration. Continuing stepping forward along the rest of the tangent lines we construct
the approximation
F (a) + f (a)h + f (a + h)h + f (a + 2h)h
to F (x). As seen in the gure the approximating polygonal function is an uder estimation
of F (x)the initial value F (a) plus the (here three) increments sum falls short of F (x).
Cutting the step size h in half and executing twice as many steps improves the accuracy
of the sum approximating F (x) as in the gure above to the right. Taking still smaller
(and many more) steps we achieve an even greater accuracy. Thus, we may consider the
antiderivative function F (x) to the slope function f (x) as existing by dint of the fact that
we may compute it to any degree of approximation.
If function f (x), for which we seek an anti derivative, is not only continuous but also
dierentiable, then the accuracy of the approximating increment can be enhenced by com-
puting it for an arc of the osculating parabola, instead of the osculating (tangent) line. For
the rst step the parabolic rise would be
1
F (a) + f (a)h + f  (a)h2
2
and so on for all subsequent steps carried out to reach an approximation to F (x).
A function may be dened by a dierential equation that relates the function to its
derivatives plus initial conditions, rather than in the form y  (x) = f (x) for a given f (x). For

example the function y = ex is dened by y  = y, y(0) = 1; the function y = x is dened
by y  y = 1/2, y(1) = 1; the function y = ln x is dened by y  = y 2 , y(1) = 0, y  (1) = 1;
and the function y = sin x is dened by y  = y, y(0) = 0, y  (0) = 1.
Exercises.
1. Consider the IVP y  = y 2 , y(0) = 0, y  (0) = 1. Repeatedly dierentiate the dierential
equation, then substitute the initial conditions to obtain the higher derivatives of y at x = 0,
and consrquently the polynomial approximation
1 x x2 x3 x4 x5 x6
y(x) = y(0) + y  (0) + y  (0) + y  (0) + y  (0) + y (5) (0) + y (6) (0).
0! 1! 2! 3! 4! 5! 6!
Theorem (The fundamental theorem of calculus:) The integral of a continuous func-
tion exists. In other words, a continuous function is the derivative function of some dier-
entiable function on some interval.
Of course, the derivative function can not experience a jump discontinuity, and hence
the indenite integral does not exist for such functions.
Proof. We will give a constructive proof to this theorem for an increasing integrand f (x).
Extension of the proof to decreasing functions or to continuous functions, in general, is
straightforward. Let F (x) be the dierentiable function we are seeking to construct, being
such that F  (x) = f (x) in the interval of interest. Then
F (x + h) = F (x) + hF  (), x < < x + h

7
Chapter 16
if h > 0. Being continuos on [x, x + h], f (x) reaches its highest value, and its lowest value
in the interval. If f (x) is, as we have assumed it to be, increasing, then it is minimal at x
and maximal at x + h. With F  (x) = f (x) it results that

F (x) + hf (x) < F (x + h) < F (x) + hf (x + h)

Thus, F (x + h) is located in the interval I1 = (F (x) + hf (x), F (x) + hf (x + h)) which we


call the full step interval in the gure below. Because f (x) is continuous, I1 0 as h 0.
If point x + h is reached in two half steps, then
h h h h
F (x + ) = F (x) + f (1 ), and F (x + h) = F (x + ) + f (2 )
2 2 2 2
where 1 is in the rst interval, and 2 in the second. Now F (x + h) is in the interval
h h h h h h
F (x) + f (x) + f (x + ) < F (x + h) < F (x) + f (x + ) + f (x + h)
2 2 2 2 2 2
which we call a half step in the gure below. We denote the half step interval by I2 , and it
is nested inside I1 . See the gure below.

F(x+h) full step


half step

h/2 h/2
x x+h

Say we are interested in the interval [a, x]. We may set F (a) = 0, reach point x by n steps
of size h = (x a)/n, and obtain the interval In by the procedure we have just described
for the two half steps. Function F (x) is located in In . If we repeat this stepping-ahead
procedure with smaller steps, say with h/2, then we produce at x an interval I2n In that
contains F (x). A succession of nested intervals is thus created with ner steps and F (x)
is trapped (and thus dened) by these ever shrinking intervals. In other words, F (x) can
be computed to any prescribed accuracy with a suciently large number of steps. End of
Proof.
The gure below shows the end points of the intervals created for

sin x
dx = Si(x) + c
x
8
Chapter 16
that can not be expressed in terms of elementary functions (the proof is not elementary,
though,) and which denes therefore a novel function denoted by Si x. The + sign on the
graphs marks the point of the exact Si(3).

2 F(x) 2 F(x)
1.8 1.8
1.6 1.6
1.4 1.4
1.2 1.2
1 1
0.8 F'(x)= sinx 0.8 F'(x)= sinx
x x
0.6 h=0.2 0.6 h=0.1
0.4 0.4
0.2 x 0.2 x
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3

Looking at the above curves suggests the possibly better approximation


h
F (x + h) = F (x) + hf (x + )
2
for the stepwise integration of the initial value problem, IVP in short, F  (x) = f (x), F (a) =
0. The graph of Si shown below for the interval 0 x 14 was computed by this method.

2 Si(x)
p/2

h=0.05 x
0 2 4 6 8 10 12 14

We will not dwell any longer on this interesting function but will press ahead with other
important issues of the integral
16.6 Dierentiation of an integral with respect to a parameter
Consider the integral 
f (x, a)dx = F (x, a) + c
of which we seek F/a and which we denote, as before, Fa . Obviously, F/x = Fx =
f (x, a). Wherever Fxa and Fax are continuous, Fxa = Fax holds. If this is the case, then
F F f
= = .
x a a x a
Integration with respect to x yields then

f F 
dx = +C = f dx + C
a a a
9
Chapter 16
which means that we are conditionally allowed to dierentiate under the integral sign.
Examples.
1. We seek to approximate in the interval [0, 1] the cubic f (x) = x3 by a linear y = ax,
optimally, in the least squares sense. Or, we look for a such that

1 3
(x ax)2 dx = 0.
a 0

Dierentiating under the integral sign we obtain


 1
1 a
2 (x3 ax)(x)dx = 2( + ) = 0
0 5 3

and a = 3/5.
2. With the knowledge that

1 1
dx = ln(1 + ax) + c
1 + ax a

we nd, by dierentiating both sides with respect to a



x 1 1 x
2
dx = 2 ln(1 + ax) + c.
(1 + ax) a a 1 + ax

3. We know that 
1
eax dx = eax + c.
a
Dierentiating both sides with respect to a we obtain

1 ax x ax
xeax dx = e + e + c.
a2 a

3. From 
1
xn dx = xn+1 + c
n+1
we obtain by dierentiation with respect to n

1 1
xn ln x dx = xn+1 (ln x )+c
n+1 n+1

which we verify to be correct.


16.7 Power series representation
Consider the integral  x
1
F (x) = dt
1 t
10
Chapter 16
for which we know that F (x) = ln(x). Otherwise we can attempt to generate the power
series representation
1 1
F (x) = F (1) + (x 1)F  (1) + (x 1)2 F  (0) + (x 1)3 F  (0) +
2! 3!
for the integral. Here
1 1 2! 3!
F  (x) = , F  (x) = 2 , F  (x) = 3 , F  (x) = 4
x x x x
and with F (1) = 0 the power series representation for F (x) becomes
1 1 1
F (x) = (x 1) (x 1)2 + (x 1)3 (x 1)4
2 3 4
converging for any 1 x 2 and hence actually dening function F (x). Replacing x 1 by
x we obtain
1 1 1
ln(x + 1) = x x2 + x3 x4
2 3 4
good for any 0 x 1. In particular
1 1 1 1 1
ln 2 = 1 + +
2 3 4 5 6
which we have seen before.
We dene the function


sin x
x = 0
f (x) = x

1 x=0
and consider the integral  x
sin t
F (x) = dt.
0 t
that is known not to be expressible in terms of elementary functionsthe function F (x)
dened by the integral is a novel function denoted as Si(x). In order to express F (x) in as
a power series we will need the higher order derivatives of f (x) for x 0. We have that
F (0) = 0 and F  (x) = f (x) so that F  (0) = 1. Also

x cos x sin x F  (h) F  (0) 1 sin h


F  (x) = 2
and F 
(0) = lim = lim ( 1) = 0
x h0 h h0 h h
obtained using LHopitals rule. In the same manner we obtain
1 1 1
F  (0) = , F  (0) = 0, F (5) (0) = , F (6) (0) = 0, F (7) (0) = ...
3 5 7
and
1 3 1 5 1 7
F (x) = x x + x x
3!3 5!5 7!7
11
Chapter 16
with the general term
1 m
an = x , m = 2n 1
m!m
such that an 0 as n . The condition an an+1 occurs if

2n
(2n + 1) x
2n 1

and the power series converges for any x. The graph of Si(x) is shown in section 12.x

12

You might also like