Académique Documents
Professionnel Documents
Culture Documents
1 / 158
I
I
2 / 158
1. Histograms
2. Integrals and area
3. Approximation methods
4. Applications of integration
5. Antiderivatives, Fundamental Theorem of Calculus
6. Integration techniques
3 / 158
Section 1
Histograms
4 / 158
A. Displaying data
DEFINITION
A histogram is a graphical representation providing a visual impression
of the distribution of data. It consists of adjacent rectangles, erected over
given intervals, with areas equal to the proportion of the observations in
each interval.
Density
A Histogram
We will sometimes also think of the intervals as bins into which our data
points are distributed.
5 / 158
Density
0.025
0.020
0.015
0.010
0.005
0.000
60
80
100
120
140
160
180
160
180
Density
0.020
0.015
0.010
0.005
0.000
60
80
100
120
140
6 / 158
(area of Rk ) =
m
X
nk
k=1
= 1.
7 / 158
Bin width
8 / 158
0.020
Density
0.015
0.010
0.005
0.000
60
80
100
120
140
160
180
9 / 158
We see that 8.68% of mothers who smoked had a child weighing less
than 90 ounces (5.63 lbs).
The red lines represent the 25th, 50th (median), and 75th
percentiles.
10 / 158
B. Partitioning an interval
When we decide upon the intervals/bins into which to sort our data
points for a histogram, we are in effect creating a partition of an interval.
DEFINITION
If a = x0 < x1 < < xm1 < xm = b, we call P = {x0 , x1 , ..., xm } a
partition of an interval [a, b].
The partition P divides the interval [a, b] into the m closed subintervals
I1 = [x0 , x1 ], I2 = [x1 , x2 ], ..., Im = [xm1 , xm ].
11 / 158
Example 1.3
Let Y = {1.2, 1.5, 1.5, 2.2, 2.2, 2.7, 5.5, 5.7} be the data we want to
graph. The minimum is 1.2 and the maximum is 5.7. We round 1.2 down
to the nearest integer and round 5.7 up to the nearest integer.
We choose our partition of [1, 6] to be P = {1, 2, 3, 5, 6}.
12 / 158
C. Step functions
if x0 x x1
s 1
s 2
if x1 < x x2
s(x) = .
..
sm if xm1 < x xm ,
where sk is the height of the rectangle over the kth subinterval.
13 / 158
Example 1.4
For our data, the percentages in the intervals (areas of the rectangles)
are 37.5, 37.5, 0, and 25. We divide each of these percentages by
100(width of the interval).
The function is then defined as
0.375
0.375
s(x) =
0.25
if
if
if
if
1x
2<x
3<x
5<x
2
3
5
6
14 / 158
DEFINITION
Let P = {x0 , x1 , ..., xm } be a partition of [a, b]. A step function is a
function s : [a, b] R that is constant on the open subintervals of P.
Denote sk as the constant value that s takes in the kth open subinterval
Ik :
s(x) = sk if xk1 < x xk , (k = 1, 2, ..., m).
0.4
0.3
0.2
0.1
0.0
0.4
0.3
0.3
Percent
0.2
0.2
0.1
0.1
0.0
0.0
As we collect more data, we might make the partition of [a, b] finer and
finer. What happens then?
16 / 158
Section 2
Integrals and area
17 / 158
if a x b.
x1
x1
b a
x2
b a
x2
DEFINITION
The common refinement of P1 and P2 is the union P = P1 P2 .
18 / 158
DEFINITION
The integral of a step function s from a to b is the number
Z
s(x) dx :=
a
m
X
sk (xk xk1 ).
k=1
s4
s2
s5
s1
s6
s3
x1
x2
x3
x4
x5
If each sk 0, the integral is the area between the graph of the step
function and the xaxis.
19 / 158
Z
s(x) + t(x) dx =
Z
s(x) dx +
t(x) dx
a
s+t
x1
b a
x2
b a
x2
x1
20 / 158
Z
c s(x)dx = c
s(x)dx
a
2s
x1
x1
21 / 158
THEOREM (Linearity)
Z
Z
c1 s(x) + c2 t(x) dx = c1
Z
s(x) dx + c2
t(x) dx
a
b+c
s(x c) dx
s(x) dx =
a
a+c
s(x)
s(xc)
x1+c
b+c
x1
b a+c
22 / 158
THEOREM (Comparison)
If s(x) t(x) for every x [a, b] then
Z
Z
s(x) dx
t(x) dx.
a
kb
s
ka
x
k
Z
dx = k
s(x) dx
23 / 158
B. Riemann integrals
Our next goal is finding the area under a curve:
A=?
24 / 158
x0
x1
x2
25 / 158
x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10
10
X
k=1
26 / 158
Notation
Suppose P is a partition, dividing our interval [a, b] into m subintervals
I1 , . . . , Im .
(i) Let
xk = xk xk1
denote the length of the k-th subinterval Ik .
(ii) Let xk be any point in the k-th subinterval Ik .
We will build a rectangle of height f (xk ) above Ik . The area of this
rectangle is f (xk )xk ; and so the total area is
m
X
k=1
f (xk )xk =
m
X
k=1
27 / 158
To find the actual area, we want to let m get bigger and bigger and xk
get smaller and smaller. If we then send m , we should get the
actual area.
DEFINITION
The Riemann integral of f from a to b is
Z
f (x) dx = lim
a
m
X
f (xk )xk ,
k=1
provided this limit exists, irrespective of the choice of the partition or the
choice of the points xk .
For nonnegative functions f , the integral
f between a and b.
Rb
a
28 / 158
A useful fact is that the Riemann integral always exists for continuous
functions:
THEOREM
If f : [a, b] R is continuous, then the limit on the previous slide exists;
and thus
Z b
f (x) dx is defined.
a
Rb
Remark: It can also be shown that a f (x) dx is defined if f is
piecewise continuous, meaning that we can subdivide [a, b] into finitely
many subintervals I1 , . . . , Im , such that f restricted to each interval
lk = [xk1 , xk ] is continuous (after possibly being redefined at the
endpoints).
But how can we actually compute integrals?
29 / 158
m
X
i=1
m
X
i=
m(m + 1)
2
i2 =
m(m + 1)(2m + 1)
6
i3 =
m2 (m + 1)2
4
ri =
r m+1 1
r 1
i=1
I
m
X
i=1
m
X
i=0
(r 6= 1).
30 / 158
Example 2.1
Find
R2
0
x 2 dx.
SOLUTION:
For simplicity, lets choose our m subintervals to all be the same size.
2
Then xk = 20
m = m.
Also for simplicity, lets choose xk to be the left endpoint of our
subintervals. Then x1 = 0, x2 = m2 , x3 = 2 m2 , . . . , xk = (k 1)
2
m
i=0
and for this will use formulas from the previous slide.
31 / 158
Z
0
m1
2 X 2 4
i 2
m m
m
x 2 dx = lim
i=0
m1
8 X 2
i
m m3
= lim
i=0
8 (m 1)m(2m 1)
= lim
m m3
6
8 m3 (1 m1 )(2 m1 )
= lim
m m3
6
8(1 0)(2 + 0)
=
6
16
8
=
= .
6
3
A=8 3
32 / 158
Integrals of powers of x
x j dx =
b j+1 aj+1
j +1
33 / 158
Example
2.2
Z
10
e x dx.
Find
2
10
e x dx = lim
= lim
m
X
102
m
e 2+(k1)8/m
and xk = 2 + (k 1) m8 .
m1
8
8 X 2 8i/m
e e
= lim
m m m
i=0
k=1
8 2
e
m
8
m
m1
X
e 8/m
i
i=0
8/m
e 8/m 1
8/m
= (e 10 e 2 ) lim 8/m
= e 10 e 2 .
m e
1
|
{z
}
= e 2 lim (e 8 1)
m
=1
34 / 158
8/n
= 1.
e 8/n 1
h
8/n
= lim
e 8/n 1 h0 e h 1
1
=
h
limh0 e h1
1
= 0
e
= 1,
since (e x )0 = e x .
35 / 158
THEOREM (Linearity)
If the functions f , g : [a, b] R have integrals and if c1 , c2 are constants,
then
Z
Z
c1 f (x) + c2 g (x) dx = c1
Z
f (x)g (x)dx 6=
But in general,
a
Z
f (x)dx
g (x) dx ,
f (x) dx + c2
g (x)dx
a
36 / 158
b+c
f (x c) dx
f (x) dx =
a
a+c
THEOREM (Comparison)
If f (x) g (x) for every x [a, b], then
Z
Z
f (x) dx
g (x) dx.
a
kb
f
ka
x
k
Z
dx = k
f (x) dx
37 / 158
Z
f (x) dx +
Z
f (x) dx =
f (x) dx
a
38 / 158
Negative area
When f < 0, then we regard the area above the graph of f and below the
x-axis as negative.
Example 2.3
Z
x 2 dx =
8
3
A=
39 / 158
Z
f (x) dx =
f (x) dx
a
40 / 158
C. Improper Integrals
If the function f is integrable on [a, b] for each real number b > a, then
we define:
Z +
Z b
f (x) dx = lim
f (x) dx
a
Z
f (x) dx = lim
f (x) dx
a
41 / 158
Finally, we define
Z
f (x) dx =
Z
f (x) dx +
f (x) dx
c
42 / 158
Example 2.4
We will learn later that
Z
Rb
1
a x2
dx =
1
dx = lim
b
x2
1
a
1
b
1
1
= 1.
dx = lim 1
b
x2
b
Example 2.5
Using the rule
Rb
a
x j dx =
b j+1 aj+1
j+1
b4
0 = ,
b 0
b
4
0
Z 0
Z 0
a4
3
3
x dx = lim
x dx = lim
0
= ,
a a
a
4
Z
Z 0
Z
x 3 dx =
x 3 dx +
x 3 dx is undefined.
Z
x 3 dx = lim
x 3 dx = lim
43 / 158
44 / 158
Section 3
Approximation methods
45 / 158
ba
.
n
Let
ba
n
denote the left endpoint of each subinterval.
xk = a + (k 1)
DEFINITION
The left endpoint rule approximates the integral
n
ba X
Ln =
f
n
k=1
Rb
a
ba
a + (k 1)
n
46 / 158
Example 3.1
Fix n = 5. The step size is x = 31
5 = 0.4. The left endpoints are
x0 = 1, x1 = 1.4, x2 = 1.8, x3 = 2.2, x4 = 2.6.
1.0
Z
1
e x dx L5 =
1.4
1.8
2.2
2.6
3.0
2
(f (1) + f (1.4) + f (1.8) + f (2.2) + f (2.6))
5
47 / 158
ba
.
n
DEFINITION
Rb
The right endpoint rule approximates the integral a f (x) dx by the
sum
n
ba X
ba
Rn =
f a+k
.
n
n
k=1
48 / 158
Example 3.2
For our example
R3
1
1.0
Z
1
e x dx R5 =
1.4
1.8
2.2
2.6
3.0
2
(f (1.4) + f (1.8) + f (2.2) + f (2.6) + f (3))
5
49 / 158
If we compare the formulas for Ln and Rn , we see they only differ in two
terms out of the entire sum:
ba
(f (x0 ) + f (x1 ) + f (x2 ) + + f (xn1 )
)
n
ba
Rn =
(
f (x1 ) + f (x2 ) + + f (xn1 ) + f (xn ))
n
Ln =
50 / 158
Example 3.3
R3
2
For the particular example of 1 e x dx, we can see graphically that the
left endpoint rule gives an overestimate and the right endpoint rule gives
an underestimate:
1.0
1.8
2.6
1.0
1.8
2.6
51 / 158
DEFINITION
The midpoint rule approximates the integral
Rb
a
f (x) dx by
Mn =
ba X
f a + (k 12 )
n
ba
n
k=1
52 / 158
53 / 158
Trapezoid rule
Another way to improve the accuracy is not to approximate by a
rectangle in each subinterval, but rather to approximate by a trapezoid,
gotten by drawing a diagonal line from (xk1 , f (xk1 )) to (xk , f (xk )):
1.0
1.4
1.8
2.2
2.6
3.0
54 / 158
h1
h2
x
DEFINITION
The trapezoid rule approximates the integral
n
Tn =
ba X
f
2n
k=1
a + (k 1)
ba
n
Rb
a
f (x) dx by
+f
a+k
ba
n
.
55 / 158
f (x0 ) + f (x1 )
f (x1 ) + f (x2 )
f (xn1 ) + f (xn )
+ x
+ + x
2
2
2
x
( f (x0 ) + f (x1 ) + f (x1 ) + f (x2 ) + + f (xn1 ) + f (xn ) )
2
x
=
( f (x0 ) + 2f (x1 ) + 2f (x2 ) + + 2f (xn1 ) + f (xn ) )
2
=
Notice also
Tn =
1
(Ln + Rn ).
2
The trapezoid rule is thus the average of the left and right endpoint
rules. We will see that this averaging process makes the errors for Tn
much smaller than for either Ln or Rn !
56 / 158
Example 3.4
1.0
T5 =
1.4
1.8
2.2
2.6
3.0
2
f (1) + 2f (1.4) + 2f (1.8) + 2f (2.2) + 2f (2.6) + f (3)
25
57 / 158
Error bounds
Relatively straightforward calculus methods, omitted in these notes, let
us estimate the accuracy of our approximations:
(a x b)
Z
b
C (b a)3
f dx Tn
a
12n2
58 / 158
Interpretation
We say that midpoint and trapezoid rules are of order n12 . Since the
step size is x = ba
n , we can equivalently say that these methods are of
order (x)2 . This means, loosely speaking, that if we double the number
of points from n to 2n the error should drop by at least 14 .
It turns out that the left- and right-endpoint rules are only of order n1
(equivalently, of order x). Since n12 is much, much smaller than n1 for
large n, the midpoint and trapezoid rules are much more accurate.
More sophisticated approximations are of even higher order:
59 / 158
Simpsons rule
DEFINITION
If n is an even integer, Simpsons rule approximates the integral
Rb
f (x) dx by
a
Sn =
x
(f (x0 ) + 4f (x1 ) + 2f (x2 ) + 4f (x3 ) + + 4f (xn1 ) + f (xn )) .
3
4Tn T n2
,
3
1
n4 .
60 / 158
Section 4
Applications of integration
61 / 158
1
dt
t
(x > 0);
and then to prove that the natural log, so defined, really does satisfy
ln(xy ) = ln x + ln y . When we have later developed the relevant calculus
skills, we will do this.
62 / 158
t x1 e t dt.
63 / 158
B. Length of curves
If f : [a, b] R is a function given by some explicit formula, then all the
geometric properties of the curve determined by graph of f must
somehow be contained within the formula. How can we extract this
information?
One important use of calculus is providing ways for us to to compute
various geometric properties, for instance the length of curves:
p
1 + (f 0 )2 dx
64 / 158
n
X
f (k) (a)
k=0
k!
(x a)k ,
One very useful idea is to use integrals to measure the error of our
approximations
For this, let us assume that f : [a, b] R is given, and define then the
integral error function
E (a0 , a1 , . . . ,an1 , an )
Z b
=
(f (x) g (x))2 dx
a
Z
=
D. Integrating densities
Example 4.4 (Chemical concentration)
Suppose that some chemical (say, an insecticide) is spread unevenly along
a thin strip of land. We may for simplicity assume the region to be
one-dimensional, lying along the x axis. Let
(x) = concentration of the chemical at x.
What is the total amount of insecticide spread in the region a x b?
The total amount of the chemical between a and b is
Z b
(x) dx.
a
( = rho.)
67 / 158
(x) dx.
a
These two examples illustrate the point that the total amount of any
quantity between the points a and b is the integral of its density over the
interval [a, b].
68 / 158
To see why this is true, look at the pictures on the next slide, which show
geometrically that
X
k=1
Z
ak
f (x) dx
1
ak .
k=2
69 / 158
graph of y = f(x)
a1
a1
a2
a2
a3
a3
a4
a4
4
70 / 158
Example 4.6
Show that
X
1
kp
k=1
converges if p > 1.
SOLUTION: We will learn later that if b > a > 0, then
Z b
1
a1p b 1p
dx
=
.
p
p1
a x
Therefore
Z
1
1
dx = lim
b
xp
Z
1
1
1 b 1p
1
dx = lim
=
p
b p 1
x
p1
71 / 158
In this section we will learn how integration can help us compute the
probabilities of certain random events.
We provide first some introductory motivation for the idea that areas
(and therefore integration) are somehow related to probabilities.
72 / 158
0.06
0.04
0.02
0.00
Density
0.08
0.10
80
90
100
110
120
Number of Heads
73 / 158
Histogram for number of heads in 200 coin tosses repeated 1,000 times:
0.03
0.02
0.01
0.00
Density
0.04
0.05
0.06
80
90
100
110
120
Number of Heads
74 / 158
Histogram for number of heads in 200 coin tosses repeated 10,000 times:
0.03
0.02
0.01
0.00
Density
0.04
0.05
80
90
100
110
120
Number of Heads
75 / 158
0.03
0.00
0.01
0.02
Density
0.04
0.05
80
90
100
110
120
Number of Heads
This function in blue looks like a smooth version of our step function!
What is this function?
76 / 158
DEFINITION
A Gaussian function is a function having the formula
f (x) =
(x)2
1
e 22 .
2
77 / 158
0.04
f(x)
0.03
0.02
0.01
0.00
70
80
90
100
110
120
130
1 e
2
(x)2
2 2
78 / 158
Examples
Gaussian Functions
= 0, = 0.5
0.8
0.6
0.4
0.2
0.0
15
10
10
15
20
79 / 158
Gaussian Functions
= 0, = 0.5
0.8
0.6
0.4
= 0, = 1
0.2
0.0
15
10
10
15
20
80 / 158
Gaussian Functions
= 0, = 0.5
0.8
0.6
0.4
= 0, = 1
0.2
= 0, = 7
0.0
15
10
10
15
20
81 / 158
Gaussian Functions
= 0, = 0.5
0.8
0.6
0.4
= 0, = 1
0.2
= 8, = 3
= 0, = 7
0.0
15
10
10
15
20
82 / 158
0.3
0.2
Area = 1
0.1
0.0
4
83 / 158
DEFINITION
The standard normal distribution has mean = 0, standard deviation
= 1 and is therefore
2
1
f (x) = e x /2 .
2
0.3
0.2
0.2
0.3
0.4
Standard
Normal Distribution
0.4
Standard
Normal Distribution
0.0
0.0
0.1
Area = 0.5
0.1
Area = 0.5
84 / 158
0.3
0.2
0.3
0.4
Standard
Normal Distribution
0.4
Standard
Normal Distribution
0.2
Area
=
0.95
0.1
Area
=
0.68
0.0
0.1
0.0
85 / 158
0.3
0.2
Shaded area
=
.5*0.32
0.0
0.1
Shaded area
=
10.68
0.0
0.1
0.2
0.3
0.4
Standard
Normal Distribution
0.4
Standard
Normal Distribution
86 / 158
We can use the standard normal to calculate areas under the curve for
any Gaussian distribution.
Example 4.8
Suppose we have a normal distribution with = 50 and = 5. What is
the area under the curve to the left of 40?
SOLUTION: We first convert 40 to standard units, by subtracting the
mean and dividing by the standard deviation:
40
40 50
=
= 2.
5
We now need to find the area to the left of 2 for the standard normal
distribution.For this, we can use an online applet 1 from the UC Berkeley
Statistics Department to evaluate numerically areas under the curve of
the standard normal (with = 0, = 1).
1 http://statistics.berkeley.edu/
~stark/Java/Html/NormHiLite.htm
87 / 158
Using the applet, we learn that the area under the curve of the standard
normal between -2 and 0 is approximately .477.
Since the total area under the curve to the left of 0 is .5, it follows that
the area to the left of 2 is approximately
.5 .477 = .023
88 / 158
3
Using the online applet we learn that the area under the standard normal
curve between 0 and 1 is approximately .341. Hence the area to the right
of 1 is about
.5 .341 = .159
So about 16% of women are taller than 66 inches.
89 / 158
Interpretation
More precise definitions will appear later, but for now think of the
probability space as some sort of mathematical model for random
occurrences, for which P means the probability. And think of X as
giving the random outcomes of experiments or measurements.
90 / 158
DEFINITION
The cumulative distribution function (cdf) of a random variable X is
the function
F (x) = P(X x) ,
defined for < x < . In other words,
F (x) is the probability that X x.
F maps real numbers to a probability value in [0, 1]:
F : R [0, 1].
The cumulative distribution function is increasing and satisfies
lim F (x) = 0, lim F (x) = 1
91 / 158
DEFINITION
The probability density function (pdf) of a random variable X is a
nonnegative function f that has the following properties:
R
I
f (x) dx = 1
The probability that X falls in the interval (a, b) is the area under
the density function between a and b:
Z
P(a X b) =
f (x) dx.
a
92 / 158
Example 4.10
As noted earlier, the normal distribution has as its probability density
function the Gaussian function
f (x) =
(x)2
1
e 22 .
2
0.4
0.3
0.2
0.1
0.0
4
+ 2
+ 3
+ 4
93 / 158
Example 4.11
The uniform distribution gives probabilities for a continuous random
variable that takes values in the interval (a, b) and each value is equally
likely. The probability density function is
(
1
if a < x < b
.
f (x) = ba
0 otherwise
Uniform Distribution for (3,3)
0.15
0.10
0.05
0.00
4
94 / 158
Normal Distribution
0.4
0.3
f(x)
0.2
F(1)
0.1
0.0
4
95 / 158
Normal Distribution
0.4
F(1)F(1)
0.3
f(x)
0.2
0.1
0.0
4
96 / 158
and
Z
f (y ) dy = F (b) F (a)
a
97 / 158
Section 5
Antiderivatives, Fundamental Theorem of
Calculus
98 / 158
A. Antiderivatives
I
When you learn how to add, you then learn how undo the addition
via subtraction.
When you learn how to multiply, you then learn how to undo
multiplication via division.
Example 5.1
Input: f (x) = x 2
Input: f (x) =
1
+ sin x
x
Output: F (x) =
1 3
x .
3
99 / 158
DEFINITION
Given the function f , a function F is called an antiderivative of f on the
interval (a, b) if
F 0 (x) = f (x)
for all x in (a, b).
Example 5.2
If f is a function which describes how some quantity is changing over
time t, an antiderivative F determines the amount of the quantity at any
time, up to an additive constant.
The location of a car is an antiderivative of its velocity.
The velocity of a car is an antiderivative of its acceleration.
100 / 158
THEOREM
If F is an antiderivative of f and G is an antiderivative of g , then F + G
is an antiderivative of f + g .
Proof.
This follows directly from the corresponding property for derivatives, since
(F + G )0 = F 0 + G 0 = f + g .
THEOREM
If F is an antiderivative of f and c is a constant, then c F is an
antiderivative of c f .
Proof.
By the constant multiple rule for differentiation,
c F )0 = c F 0 = c f
101 / 158
Example 5.3
2
x3
3
is an
x5
x2 x3
=
2 3
6
Similarly,
F
f
is generally NOT an antiderivative of .
G
g
102 / 158
Proof.
If F 0 = f , then
(F + C )0 = F 0 + (C )0 = F 0 = f .
Consequently, if F is an antiderivative of f , then so is F + C .
Conversely, if F is an antiderivative of f on (a, b), then any other
antiderivative G must satisfy
(G F )0 = G 0 F 0 = f f = 0.
This means that G F = C is constant.
103 / 158
x 1
x +1
and
G (x) =
2
x +1
Differentiate:
x1
x+1
2
x+1
0
0
(x+1)(x1)0 (x1)(x+1)0
(x+1)2
(x+1)(x1)
(x+1)2
2
(x+1)2
(2)(x + 1)1
0
2
(x+1)2
F (x) G (x) =
x 1
2
x 1+2
=
= 1.
x +1 x +1
x +1
104 / 158
(x)2
1
e 2 2 .
2
F (x) = P(X x) =
f (y ) dy
105 / 158
Example 5.6
2
106 / 158
Z
f (x) dx = F (x) + C
f (x) dx
a
Example 5.7
Find all the antiderivatives of f (x) = x1 on the domain
R\{0} =R (, 0) (0, ). In other words, determine the indefinite
integral x1 dx.
SOLUTION: The domain consists of two intervals, which we will
analyze separately.
The interval (0, ). We need to think of a function F such that
F 0 (x) =
1
.
x
108 / 158
1
on the interval
x
(0, ) are the functions of the form ln x + C1 on that interval.
The interval (, 0). We want to use the same idea as before, but we
cant use the function ln x because we cant take logs of negative
numbers. If x is negative, then x is positive, so consider:
0
0
ln(x)
=
ln(x)
1
x
1
x
1
x
(x)0
109 / 158
ln x + C1
if x is in (0, )
ln(x) + C2
if x is in (, 0)
F (x) =
1
dx = ln |x| + C .
x
110 / 158
x p+1
+ C.
p+1
111 / 158
Example 5.9
There exists a unique function F on the interval (, ) such that
F (1) = 7 and F is an antiderivative of x 2 . Find F .
Z
x3
+ C.
SOLUTION: We know that F (x) = x 2 dx =
3
To find C , we plug in x = 1:
F (1) =
1
+C =7
3
This implies
C =7
1
20
=
.
3
3
x3
20
+ .
3
3
112 / 158
Example 5.10
Find all antiderivatives of f (x) = ln x.
SOLUTION: After playing around with this for a while, we make the
guess
F (x) = x ln x x.
Thereafter, we simply check its derivative:
0
0
x ln x x
=
x ln x (x)0
0
=
x ln x + ln x(x)0 1 (product rule)
=
x( x1 ) + ln x 1
ln x
Important antiderivatives
You should learn the following antiderivatives:
Z
x p dx =
Z
x p+1
+C
p+1
if p 6= 1
1
dx = ln |x| + C
x
e x dx = e x + C
Z
sin x dx = cos x + C
Z
cos x dx = sin x + C
114 / 158
Example 5.11
1
x 2
+C = 2 +C
2
2x
Z
3x 2
5x 4
+C
5x 3 3x dx =
4
2
Z
Z
x 3/2
x dx = x 1/2 dx =
+ C.
3/2
Z
1
dx =
x3
x 3 dx =
115 / 158
or
Antiderivative Calculator
sin x
dx
ex +
cos x
2 e x ln(cos x) + C .
Next try
sqrt(e^x) * sin(x)/cos(x),
and also
e^(-x^2)
116 / 158
k=1
Even for very simple functions, calculating these definite integrals using
the Riemann sum definition can be very difficult.
We now introduce the Fundamental Theorem of Calculus, which ties
together integration and differentiation.
This will allow us to compute the area under the curve by the formula
Z
117 / 158
f (t) dt = f (x).
a
118 / 158
Area as a function
We can view the area under the curve y = f (x) between 0 and b as a
function of the unknown b:
F(b)
Let F (b) equal the shaded area under y = f (x) between 0 and b
as a function of b, as shown. The formula for that function is
Z b
F (b) =
f (x) dx.
0
119 / 158
h0
F (b + h) F (b)
.
h
b+h
F (b + h) F (b) =
f (x) dx
0
Z
=
Z
=
Z
f (x) dx
f (x) dx +
0
f (x) dx
0
b+h
f (x) dx
0
b+h
f (x) dx.
b
Now, divide this by h and make h smaller and smaller. What do you get?
120 / 158
Example 5.12
Lets consider a concrete example with f (x) = x 2 .
R b+h
We can estimate b f (x) dx using a single rectangle. The left endpoint
rule gives an underestimate and the right endpoint rule gives an
overestimate:
L1 F (b + h) F (b) R1
b+h
121 / 158
F (b + h) F (b)
(b + h)2
h
h0
F (b + h) F (b)
= b2
h
122 / 158
x 2 dx =
x3
+ C.
3
a3
b3
.
3
3
0.4
1.0
F(1)
0.8
0.3
0.6
F(0)
f(x)
0.2
0.4
F(1)
0.1
0.2
0.0
0.0
4
124 / 158
Example 5.15
R2
(x 5 x 3 ) dx.
Z
x p+1
SOLUTION: Since x p dx =
+ C,
p+1
x4
x6
is an antiderivative of f (x) = x 5 x 3 .
the function F (x) =
6
4
Compute
Z
1
2
x6
x 4
6
4 1
6
6
24
1
14
2
=
6
4
6
4
64 16
1 1
=
6
4
6 4
27
=
4
(x 5 x 3 )dx =
125 / 158
Notation
We will often write
b
F (x)a = F (b) F (a).
126 / 158
Example 5.16
Compute
R
0
sin x dx.
Z
0
= ( cos()) ( cos(0))
= (1) (1) = 2.
1
127 / 158
Example 5.17
Compute
R1
1
x 3 dx.
1
3
x dx =
1
1
x 4
4 1
x4
4
is an antiderivative of x 3 .
14
(1)4
=
4
4
= 0.
128 / 158
ExampleZ 5.18
Find
d
dx
sin(t 2 ) dt.
ExampleZ 5.19
Find
d
dx
sin(t 2 ) dt.
Z
x
sin(t 2 ) dt =
Z x
d
sin(t 2 ) dt
dx
3
= sin(x 2 ).
129 / 158
Example 5.20
d
Find
dx
x2
f (t) dt.
x
Z
x
x2
d
f (t) dt =
dx
Z
f (t)dt +
x2
!
f (t)dt
Z x2
d
f (t)dt +
f (t)dt
dx 0
0
d 2
f (x) + f (x 2 )
x
dx
| {z }
d
=
dx
=
Chain Rule
= f (x) + f (x ) (2x) = 2x f (x 2 ) f (x).
2
130 / 158
Section 6
Integration techniques
131 / 158
Rb
Weve now seen that in order to compute a f (x) dx, we need only
find an antiderivative of f .
Recall that every continuous function f has an antiderivative,
Z x
F (x) =
f (t) dt.
0
ex
dx
x
sin x
dx
x
cos x
dx
x
132 / 158
F (g (x))0 dx
= F (g (b)) F (g (a))
Z g (b)
=
f (u) du.
g (a)
f (g (x))g 0 (x)dx =
g (b)
f (u) du.
g (a)
133 / 158
134 / 158
135 / 158
Example
6.1
Z
Find
x e x dx.
136 / 158
Example
6.2
Z
Find
cos(ln x)
dx
x
Z
cos(ln x)
dx = cos u du
x
= sin u + C
= sin(ln x) + C .
137 / 158
Example 6.3
For example, we can find
x
x 2 +1
dx =
2
u
x2 + 1
Z
1
u 1/2 du
=
2
p
1 u 1/2
+C =
x2 + 1 + C .
=
2 1/2
Method 2. Set u =
Z
x
x2 + 1
x 2 + 1. Then du =
2x
dx,
2 x 2 +1
Z
dx =
du = u + C =
and we get
p
x2 + 1 + C .
Example
6.4
Z
Find
x5
p
1 + x 2 dx
(1 + x 2 )7/2
2(1 + x 2 )5/2
(1 + x 2 )3/2
+
+ C.
7
5
3
139 / 158
Example
6.5
Z
e
Find
1
ln x
dx
x
dx
x .
ln x
dx =
x
Z
0
1
u 2
1
1
= 0= .
u du =
2 0
2
2
140 / 158
1 ln x
.
Z
x
f (x) dx = 1.
1
Equivalently,
1
Z
Z
1
ln x
dx = 1.
x
141 / 158
Example 6.7
Find
R5
dx
.
3 (23x)2
1
1
dx =
(2 3x)2
3
13
1
du
u2
13
1 1
=
3 u 7
1
1
1
2
=
=
.
3 13 7
91
142 / 158
ln x =
1
1
dt
t
(x > 0).
dt
x .
143 / 158
(x > 0, y R).
144 / 158
DEFINITION
I
I
The terms even and odd come from the power functions: x 2 , x 3 , x 4 , etc.
Even: f (x) = f (x)
Ra
Ra
It looks like we should have a f (x)dx = 2 0 f (x) dx for even functions
Ra
and a f (x) dx = 0 for odd functions. This is true.
145 / 158
Proof.
Z
f (x) dx =
a
f (x) dx +
a
Z
=
f (x) dx
0
Z
f (x) dx +
f (x) dx
Z a
Z a
f (u)(1) du +
f (x) dx
=
0
0
Z a
Z a
=
f (u) du +
f (x) dx = 0.
0
Ra
a
(u = x, du = dx)
f (x) dx = 2
Ra
0
Example Z6.9
2
Calculate
2
sin x
dx.
4 + 3x 2 + 2x 4
sin x
dx = 0.
4 + 3x 2 + 2x 4
147 / 158
C. Integration by parts
Recall from the Product Rule that
(fg )0 = f 0 g + fg 0 .
Now integrate and use the Fundamental Theorem of Calculus, to learn
that
Z b
Z b
Z b
0
0
f (x)g (x) dx +
f (x)g (x) dx =
(fg )0 (x) dx
a
= (fg )|a .
Rearranging gives the formula for integration by parts:
Z
b
0
f (x)g (x) dx =
a
b
(fg )|a
f (x)g 0 (x) dx
148 / 158
Let us now write u = g (x) and v = f (x). Recalling the useful (but
mathematically imprecise) expressions
du = g 0 dx, dv = f 0 dx,
we can rewrite the integration by parts formula as
Z
Z
u dv = uv
v du.
149 / 158
Example 6.10
Find
x sin x dx.
Z
x sin x dx = x cos x
( cos x)dx
Z
= x cos x +
cos x dx
= x cos x + sin x + C
We should check our work:
d
(x cos x + sin x + C ) = cos x x( sin x) + cos x = x sin x.
dx
150 / 158
Example 6.11
Find
ln x dx.
1
dx and v = x. Consequently,
x
Z
Z
1
ln x dx = x ln x x dx
x
Z
= x ln x 1 dx
= x ln x x + C
151 / 158
Example 6.12
Find
x ln x dx.
x2
, and therefore
2
Z
1
dx,
x
Z 2
x 1
x2
dx
2
2 x
Z
x 2 ln x
x
=
dx
2
2
x2
x 2 ln x
=
+ C.
2
4
x ln x dx = ln x
152 / 158
Example
6.13
Z
Find
x 2 e 3x dx.
+
+C
Question: why not
?
3
9
27
9
153 / 158
I
I
154 / 158
e x cos x dx.
e x cos x dx =
e x cos x + e x sin x
+C
2
155 / 158
THEOREM
(i) The Gamma function satisfies
(x + 1) = x(x)
156 / 158
Proof.
To prove this, we use integration by parts:
Z
u dv =
a
b
(uv )|a
v du.
a
= e a ax e b b x + x
t x1 e t dt.
Now take the limit a 0 and b . Then the left hand side converges
to (x + 1), and the right hand side becomes x (x). Since
Z
(1) =
e t dt = e t 0 = 1,
0
Certain other values of the Gamma function will turn out to be important
in statistics. In particular,
= = 1.77245 . . . ;
2
although this calculation requires tools beyond Math 10. (Take Math 53!)
It follows from the rule (x + 1) = x(x) that
1
5
3
7
15
3
=
,
=
,
=
, ...
2
2
2
4
2
8
158 / 158