The Integral: The Accumulation of Change
The Integral: The Accumulation of Change
The integral
8.1 The accumulation of change
8.1.1 Change that accumulates in discrete steps a / Adding the numbers from
1 to 7.
A schoolboy plays a trick
Toward the end of the eighteenth century, a German elementary
school teacher decided to keep his pupils busy by assigning them a
long, boring arithmetic problem: to add up all the numbers from
one to a hundred.1 The children set to work on their slates, and the
teacher lit his pipe, confident of a long break. But almost imme-
diately, a boy named Carl Friedrich Gauss brought up his answer:
5,050.
Figure a suggests one way of solving this type of problem. The
filled-in columns of the graph represent the numbers from 1 to 7,
and adding them up means finding the area of the shaded region.
Roughly half the square is shaded in, so if we want only an approx-
imate solution, we can simply calculate 72 /2 = 24.5.
But, as suggested in figure b, it’s not much more work to get b / A trick for finding the sum.
an exact result. There are seven sawteeth sticking out out above
the diagonal, with a total area of 7/2, so the total shaded area is
(72 + 7)/2 = 28. In general, the sum of the first n numbers will be
(n2 + n)/2, which explains Gauss’s result: (1002 + 100)/2 = 5, 050.
There is a tantalizing hint here of a link with diÆerential calculus,
because the derivative of a real function f (n) = (n2 +n)/2 is almost,
but not quite, equal to n.
173
pile of refuse grows more quickly every year.
Sigma notation
There is a convenient way of notating sums like the ones we’ve
been doing, which involves ß, called “sigma,” the capital Greek
letter “S.” Here the “S” stands for “sum.” The sigma notation
looks like this:
X100
i = 5, 050 (1)
i=1
This is read as “the sum of i for i from 1 to 100 equals 5,050.” The
version without the sigma notation is much more cumbersome to
write:
1 + 2 + 3 + . . . + 100 = 5, 050 (2)
In equation (1), i is a dummy variable. We could have written
100
X
j = 5, 050
j=1
and it would have meant exactly the same thing. We’ve already
seen some examples of dummy variables. In set notation (box 1.1,
p. 15),
S = {x|x2 > 0} and T = {y|y 2 > 0}
describe exactly the same set, and S=T. Similarly, the function f
defined by f (u) = u2 and the function g defined by g(v) = v 2 are
the same function, f = g.
lim R,
¢x!0
g / Example 1.
A triangle Example 1
Let f (x) = x. Then the integral of f from 0 to 1 represents the
area of a triangle with height 1 and a base of width 1. We know
from elementary geometry that this shape has an area equal to
1 1
2 (base)(height) = 2 , so we don’t need integral calculus to deter-
mine it. But let’s see how this works out if we do it as an integral,
in order to get comfortable with the tool and see if it works in a
case where we already know the answer.
When we split up the interval [0, 1] into n parts, we have ¢x = 1/n.
The first subinterval is [0, ¢x], and its center is the first sample
point, x1 = (1/2)¢x. Continuing in this way, we have xk = (k °
1/2)¢x, for k running from 1 to n. Since our function is just f (x) =
n
X
R= f (xk )¢x
k=1
n ∑µ
X ∂ ∏
1
= k° ¢x ¢x
2
k=1
Xn µ ∂
2 1
= (¢x) k°
2
k=1
"√ n ! √ n !#
X X1
= (¢x)2 k °
2
k=1 k=1
"√ n ! #
X n
= (¢x)2 k °
2
k=1
The sum over k is the same one that we encountered in our pre-
vious study of the “staircase” sum; it equals (n2 + n)/2. The result
is:
Ω∑ ∏ æ
2 n2 + n n
R = (¢x) °
2 2
n2
= (¢x)2
2
as expected geometrically.
A rectangle Example 3
. Evaluate Z 4
1 dx.
0
Most people would write it with the dx on top, which makes it more
compact.
The integral of . . . what? Example 5
How should we interpret this expression?
Z 4
dx
0
Z 4
1 dx
0
Z b
p(t) dt.
a
R
The integral sign is a kind of sum, and the units of a sum are the
same as the units of each term. Since d means “a little bit of . . . ,”
dt stands for a little bit of time, and it therefore also has units of
years. The units of the terms in the sum are
tons
£ years = tons,
year
RWe
1 2
can now see three independent
R 1 2 reasons why an integral such
as 0 x dx can’t be written like 0 x , without the dx:
with the question mark above the equals sign to show that this is
what we are hoping to prove. For the same reasons as in example
18 on p. 66, it is not quite valid to cancel the factors of dx, but we’ll
do it anyway because this is only meant to be a pseudo-proof.
Z f (b)
?
df = f (b) ° f (a) (6)
f (a)
f 0 (x) = x
Antiderivatives
The function f is called an antiderivative of the function f 0 . Al-
though there are various tricks and methods for finding antideriva-
tives, in general the only way to find them is to guess and check.
One way to approach this one is to think of x as x1 . We know that
when we diÆerentiate a power, the power rule tells us to knock down
1 1 1
x x+1 x°2
7 7 7
DiÆerentiating any one of these with respect to x gives 1/7.
Example 6
. Evaluate Z
x 6 dx
Work Example 9
. In each of the examples in figure n, the tractor exerts a force
while traveling from position x1 to position x2 , a distance ¢x = x2 °
x1 . If the force F is constant, then the quantity W = F ¢x, called
mechanical work, measures the amount of energy expended. If
W is the same in all three cases in the figure, then the amount of
gas the tractor burns is identical in all three cases. How should
this definition of mechanical work be generalized to the case where
the force is varying?
. To generalize multiplication to a case where one of the factors
isn’t constant, we use an integral.
Z x2
W = F dx
x1
• v — a function of t
• a — a constant
dI
w =
|{z} dt
|{z}
day°1
unitless
days
Z
I =
|{z} w |{z}
|{z} dt
unitless day°1 days
8.5 Linearity
The most important and basic properties of the derivative (p. 16)
are that it adds, (f + g)0 = f 0 + g 0 , and scales vertically, (cf )0 = cf 0 ,
where c is a constant. When an operation has these properties, we
say that it is linear. Since the indefinite integral is defined as the
and by the fundamental theorem the same is true for the definite
integral.
Example 14
. Evaluate the definite integral
Z 1
(1 + x) dx
0
p / Each tree ring adds ¢r to the radius of the tree. The ¢r values
are not all the same.
¢fi
f 0 (si ) = ,
¢x
Section 8.7 The definite integral as a function of its integration bounds 195
and therefore
Z x
d d° ¢
f (t) dt = F (x) ° F (a) = F 0 (x) = f (x),
dx a dx
i.e. Z x
d
f (t) dt = f (x).
dx a
A similar calculation gives
Z b
d
f (t) dt = °f (x).
dx x
Problems 197
P3 1 P3 1
p
c1 (a) Compute k=1 k . (b) Compute m=1 m .
Problems c3-c6.
. Solution, p. 241
Z µ ∂
x2 x3 x4 p
e6 1+x+ + + dx
2 6 24
Z
2 dq p
e7 [q > 0]
q
Z
ea ° e°a p
e8 da
2
Z
ea + e°a p
e9 da
2
Z
p
e10 sin y dy
Z
p
e11 cos y dy
Z
p
e12 cos 2r dr
Z
p
e13 sin(r ° º/3) dr
Z
p
e14 (sin x + sin 2x) dx
Problems 199
In problems i1-i4, find the antiderivatives. All letters other than the
variable of integration are constants. These problems can be done
by first rewriting the given integrand in a form that you know how
to integrate.
Z q
p
i1 Bx x dx . Solution, p. 242
Z
p
i2 ez+Ø dz
Z
p2 + k p
i3 p dp
p
Z
pw ° q p
i4 p
3
dw
w2
Problems k1-k4.
p
k1 f (x) = cos x
p
k2 f (x) = sin x
1 p
k3 f (x) = ex
3
p p
k4 f (x) = x
Problems 201
n4 See the instructions on p. 201. In a gasoline-burning car
engine, the exploding air-gas mixture makes a force on the piston,
and the force tapers oÆ as the piston expands, allowing the gas to
expand. A not-so-bad approximation is that the force is given by
F = k/x, where x is the position of the piston. (a) Infer the units
of k. (b) Find the work done on the piston as it travels from x = a
to x = b. (c) Show that the result of part b can be reexpressed so
that it depends only on the ratio b/a. This ratio is known as the
compression ratio of the engine. (d) Check that the units of p your
result in part c make sense.
Problems 203
204 Chapter 8 The integral
Chapter 9
Basic techniques of
integration
9.1 Doing integrals symbolically on a
computer
The quaint little town of Carmel, California, has a touristy business
district that specializes in quaint little shops. I once went into a yarn
store there with my mother, who picked out two skeins of yarn for
a sweater. The business ran on paper and pen, which was arguably
sensible, since there was little room on the cramped counter for a
cash register. The following math problem resulted:
$5.60
£ 2
integrate(cos(x),x);
sin(x)
1
To use it through a web browser go to maxima-online.org. To download it
to your computer, go to maxima.sourceforge.net.
205
9.2 Substitution
Here’s an example of an integral that introduces a useful technique
of integration, and that also demonstrates what can go wrong if you
become completely dependent on computers to do integrals that you
should be able to do by hand.
Z 2
(x ° 1)1000000 dx
1
I tested this on three CAS programs, and although two were able to
do it, one froze up indefinitely. My point is not that a certain CAS
is better than some other one.2 The point is that computers, unlike
humans, can’t step back and say, “Hey, what I’m doing isn’t working
so well. Maybe I should try something else.” The one that failed
presumably started grinding away to multiply out the polynomial
— all million and one terms of it: x1000000 ° 1000000x999999 + . . .
This is certainly a strategy that would work, in theory, because it
would reduce the problem to one that we already know how to solve:
integrating a polynomial.
But there’s a better way to approach this, as suggested in figure
a. Geometrically, what we’re trying to calculate is the very small
area that is only visible at the corner of the figure. (Although the
limits of integration run from 1 to 2, the value of the integrand is
too small to matter except when x gets very close to 2.) Let’s shift
the graph to the left by one unit, as shown in the figure, and define
a new variable u = x ° 1. The shift to the left doesn’t change the
amount of area under the curve; it simply relocates that area to a
new place. In terms of this variable, the integrand is u1000000 , which
is a function that we know how to integrate. Expressed as an integral
a / Integrating (x ° 1)1000000 with respect to u, the limits of integration are from u = 1 ° 1 = 0
by using a change of variable. to u = 2 ° 1 = 1. Do we need to do anything to the dx other
The function is not drawn realisti- than change it to a du? Not in this case; implicit diÆerentiation of
cally; the rounded edge has been u = x ° 1 gives du = dx. The result is that we can calculate the
exaggerated in order to make
same area using the following easier integral.
the shaded area under the curve
visible. Z 1
u1000000 du
0
= ° cos(x 2 + 3) + c
d ≥ ¥
° cos(x 2 + 3) + c = sin(x 2 + 3) · 2x
dx
dF (G(x))
= F 0 (G(x)) · G0 (x),
dx
so that
Z
F 0 (G(x)) · G0 (x) dx = F (G(x)) + c.
d 2
In example 3, we had 2x = dx (x + 3). So let’s call G(x) = x2 + 3,
and F (u) = ° cos u. Then
F (G(x)) = ° cos(x2 + 3)
and
dF (G(x))
= sin(x2 + 3) · 2x = f (x),
dx | {z } |{z}
F 0 (G(x)) G0 (x)
so that
Z
2x sin(x2 + 3) dx = ° cos(x2 + 3) + c.
Z
2
e°x dx
Z
xx dx
Z
sin x
dx
x
Z
ex tan x dx
Z 1
sin x dx c / The integrand of example
. 6.
°1 1 + ex 2
Z 2º
sin2 µ dµ.
0
R Example 8
. Evaluate 3x dx.
.
Z Z
3x dx = ex ln 3 dx [using ab = eb ln a ]
Z
1
= eu du [substituting u = x ln 3]
ln 3
eu
=
ln 3
ex ln 3
=
ln 3
3x
= [ab = eb ln a again]
ln 3
Z
p
a5 cs ds [c > 0]
Z
p
a6 10a+± d±
Z
dt p
a7
a2 + t2
Z
dv p
a8 ° v ¢2
k +1
Z
d¡ p
a9 p [A > 0]
A2 ° ¡ 2
Z
a10 cosn ≥ sin ≥ d≥
[ n 6= °1; ≥ is lowercase Greek zeta, which makes the “z” sound.]
p
Z
∏
a11 ee e∏ d∏
p
(∏ is lowercase Greek lambda, which makes the “l” sound.)
Z
p
a12 esin p cos p dp
Problems 213
In c1-c6, use a substitution to evaluate the indefinite integrals.
Z µ ∂ Z
º+x p sin 2x dx p
c1 sin dx c4
5 1 + sin x
Z
Z 2 p
sin 2x dx p c5 Æe°Æ dÆ
c2 p
1 + cos 2x Z 1/t
e p
Z c6 2
dt
sin 2x dx p t
c3 Z
2
1 + cos x p p
c7 (z+3) z ° 1 dz
Normalization
Suppose that we are able to exhaustively list all of the possible
outcomes A, B, C, . . . of some situation, and that these outcomes are b / The earth’s surface is 30%
mutually exclusive. Then exactly one of these outcomes must occur, land and 70% water. If we spin
a globe and pick a random
so the probabilities must add up to one. For example, suppose that
point, the probabilities of hitting
we flip a coin, and A is the event that the coin comes up heads, land and water are 0.3 and 0.7.
B tails. Then PA + PB = 12 + 12 = 1. This property is called Normalization requires that these
normalization. two probabilities add up to 1.
215
10.1.2 Continuous random variables
When numerical values are assigned to outcomes, the result is
called a random variable. The sum of the rolls of two dice is a
random variable, and we can assign probabilities to the diÆerent
results. For example, the probability of rolling 2 is 1/36, since the
probability of getting a 1 on the first die is 1/6, and similarly for
the second die. All of the relevant information about probabilities
can be summarized by the discrete function shown in figure d.
But when a random variable is continuous rather than discrete,
we usually cannot make a useful graph of the probabilities, because
c / The sum of the two dice
the probability of any particular real number is typically zero. For
is a random variable with possible
values running from 2 to 12. example, there is zero probability that a person’s height h will be
160 cm, since there are infinitely many possible results that are close
to that value, such as 159.999999999999996876876587658465436 cm.
What is useful to talk about is the probability that h will be less
than a certain value. The probability of h < 160 cm is about 0.5. In
general, we define the cumulative probability distribution P (x) of a
random variable to be the probability that the variable is less than
or equal to x. We can then define the probability distribution of the
variable to be
D(x) = P 0 (x). (1)
Figure e shows an approximate probability distribution for human
d / The histogram shows the height. Suppose we want to know the probability that our random
probabilities of the various out- variable lies within the range from a to b. This is P (b) ° P (a). By
comes when rolling two dice. the fundamental theorem of calculus, this can be calculated from
the definite integral of the distribution,
Z b
P (b) ° P (a) = D(x) dx. (2)
a
Daniel Kahneman, on the other hand, won the Nobel prize for his
work showing that humans often violate the VNM definition of ratio-
nality, but in ways that can be described scientifically. For instance,
he showed in experiments that subjects were willing to pay one price
for a trinket such as a mug, but that if they were given the mug,
they demanded a diÆerent and systematically higher price to sell
it. This violates axiom 1. Axiom 1 was implicitly assumed in the
description of the indiÆerence curve in example 2, p. 18.
1
According to Einstein’s famous E = mc2 , mass and energy are equivalent or
interconvertible, so they aren’t separately conserved. Their separate conserva-
tion is however a good approximation in ordinary life, where relativistic eÆects
are negligible.
2
Food calories are actually kilocalories, 1 kcal=1000 cal. The SI unit is not
the calorie but the joule.
Problems 223