Professional Documents
Culture Documents
Chapter7 Integration
Chapter7 Integration
Integration
We can think of integration in two ways, either as being the area
under a curve or as being the opposite operation to differentiation.
We consider both possibilities.
ti i s i
s ti 73
Si Ee Ai f x
1
2 3
i ti is
fun
fit for
x0 x1 x2 x3 xN x
a b
Figure 38: Sketch of integration as a sum.
( xi xi 1 ) f ( i )
and the total area of all the rectangles is the Riemann sum
N
SN ( xi xi 1 ) f ( i ) . (154)
infinite i 1
partitionThis is all shown in figure 38. If the Riemann sum has a finite limit
as N9 irrespective of how we chose the xi and i , provided all
xi xi 0 , the limit is the Riemann integral
what the Riemann
1
b N
sum tends to
f ( x) dx lim S N lim ( xi xi 1 ) f ( i ) , (155)
a N N
i 1
and is the area between the curve y f ( x) and the x axis in the
range a x b . This form of integral, where there is a specified
range of x to be integrated over, is referred to as a definite integral.
If the integrand f x is singular in a x b then it is not
contains immediately clear whether the definite integral
b
f ( x) dx exists.
a
1 1 1
dx 2 x1 2 2
0
x 0
1 1
but dx does not exist.
0 x
Properties:
a b
f ( x) dx f ( x) dx
b a
b c b
f ( x) dx f ( x) dx f ( x) dx
a a c
If k is a constant then
b b
kf ( x) dx k f ( x) dx
a a
foul du
df f
© Stuart Dalziel (Michaelmas, 2021) 238
. Integration Basics of integration
Fcat St
74
fordF F (x x) F ( x)
lim
ÉÉÉÉÉ dx x
TÉ x 0
s x x x
f (u ) du f (u ) du
a lim a a
x 0 x
Tx lim
x
x
x
f (u ) du
(157)
x 0 x
Now as x 0 we can see that
x x
f (u ) du x f ( x) (158)
x
dF f ( x) x
lim f ( x) .
dx x 0 x
Integration of f ( x) followed by differentiation gets back to f ( x) ,
i.e. integration is the opposite of differentiation.
F ( x)
Fox
f (u ) du or F ( x)
f four du
f ( x) dx .
x
Fun du
fi f
foul or Gut du
x foul
Fet Gent Cleftfear
A definite integral can be expressed as the difference between the
primitives evaluated at the ends of the range being integrated,
du
b
f ( x) dx F (b) F (a)
a
Infinite integrals
If one (or both) of the limits of the integral are infinite, we need to
define the integral slightly more carefully.
x 1 b 1
then e dx lim I (b) lim 1 e provided 0.
0 b b
I
to as
e o as
Improper integrals
I
If f ( x) is singular at x x* with a x* b , then the
improper integral is defined as
b x* b
f ( x) dx lim f ( x) dx f ( x) dx
a 0 a x*
1 1
12
Let I ( ) x dx 2 x1 2 2 2
1
12
then x dx lim I ( ) lim 2 2 2
0 0 0
Let J ( )
1
operation after
x 1 dx ln x
1
ln
is still
integration at o
undefined undefined
1
then x 1 dx lim J ( ) lim ln
0 0 0
Discontinuous integrands
y y
x
y f ( x) y f (u ) du
a
faster
a b x a
rate
x
of
x* x*
change
Figure 39: A discontinuous integrand (left) leads to a kink in the corresponding
integral.
suddenly
dx n n 1 m xm 1
nx x dx c, m 1
dx m 1
d 1 1
ln x dx ln x c
dx x x
d 1
exp ax a exp ax exp bx dx exp bx c
dx b
d 1
sin ax a cos ax cos bx dx sin bx c
dx b
d 1
cos ax a sin ax sin bx dx cos bx c
dx b
d 1
tan ax a sec2 ax sec2 bx dx tan bx c
dx b
We can do something similar with the hyperbolic functions
introduced in Chapter 3. Differentiating (82) we see that
d 1 d
cosh x exp( x) exp( x)
dx 2 dx
(160)
1
exp( x) exp( x) sinh x
2
and similarly differentiating (83) yields
d
sinh x cosh x (161)
dx
To differentiate tanh x we use the quotient rule (102) together with
the new results (160) and (161):
d d sinh x
tanh x
dx dx cosh x
d d
cosh x sinh x sinh x cosh x
dx dx
cosh 2 x
cosh 2 x sinh 2 x 1
2 2
sech 2 x,
cosh x cosh x
where the last step has been accomplished using identity (88).
These results lead us to the following standard integrals for
hyperbolic functions:
cosh x dx sinh x c ,
sinh x dx cosh x c ,
sech 2 x dx tanh x c .
d d x
sinh y ,
dx dx a
dy 1
cosh y ,
dx a
dy 1
dx a cosh y
1
a 1 sinh 2 y
1
2 2
, same method
a x
as normal
d
sinh 1
x 1
.
trig
(162)
dx a a2 x2 functions
In a similar way we can show that
d x 1
cosh 1 . (163)
dx a x 2
a 2
dx x
2 2
cosh 1
a
c. It a2 (165)
x a
The integrals (164) and (165) should be contrasted with the
corresponding result for circular functions
dx 1 x
sin c. (166)
a 2
x 2 a at y
d for non
cost t Cr complex
© Stuart Dalziel (Michaelmas, 2021) 245
. Integration Methods of integration
f ear f
df
en df 1 1
f x dx f x c, (167)
dx 1
when 1 . Instead, when 1 , we have an analogy with
integrating 1 x and replace (167) by
df 1
dx ln f x c.
from dx f x
f ta chafacts de fix
Example 70: Integration of functions to a power
Compute the following: (a) cos x sin 3 x dx , (b) tan 6 x sec 2 x dx ,
(c) x exp x 2 dx , (d) x x2 a dx , (e) tanh x dx .
d 1 d
cos x sin 3 x dx sin x sin 3 x dx sin 4 x dx
dx 4 dx
(a)
1 4
sin x c
4
d 1 d
tan 6 x sec 2 x dx tan 6 x tan x dx tan 7 x dx
dx 7 dx
(b)
1 7
tan x c
7
1 d
x exp x 2 dx exp x 2 dx
2 dx
(c) .
1
c exp x 2
2
1 d 2
x x2 a dx x a x2 a dx
2 dx
(d)
1
ln x 2 a c
2
sinh x 1 d
tanh x dx dx cosh x dx
(e) cosh x cosh x dx
ln cosh x c
I cos 4 t t cosy
. Integration Methods of integration
gee 1 2 1 1
sin 4 x dx x sin 2 x sin 4 x x c
4 2 2 4
3x 1 1
sin 2 x sin 4 x c .
8 4 32
odd
Odd powers can be handled in a similar way:
1
(a) cos 4 x dx . Recalling that cos 2 x 1 cos 2 x , then
2
2
1
cos 4 x dx 1 cos 2 x dx
2
1
1 2 cos 2 x cos 2 2 x dx
4
1 1
1 2 cos 2 x 1 cos 4 x dx
4 2
1 2 1 1
x sin 2 x x sin 4 x c
4 2 2 4
3 1 1
x sin 2 x sin 4 x c
8 4 32
(b) tan 5 x dx
1 2 1 1 1
I du ln u c
u5 u3 u 4u 4 u 2
1 1
ln cos x c
4cos 4 x cos 2 x
4
4 sec x
1
sec 2 x ln cos x c
Is this the same as we had before?
L 1
4 tan 4 x 1
2 tan 2 x ln cos x c
sin 4 x 2sin 2 x cos 2 x
4
ln cos x c
4cos x
Remembering sin 2 x 1 cos 2 x
2
1 cos 2 x 2 1 cos 2 x cos 2 x
L ln cos x c
4cos 4 x
1 4cos 2 x 3cos 4 x
ln cos x c
4cos 4 x
L 1
4 sec4 x sec2 x ln cos x 3
4 c
So the results are the same since we can take c 3
4 c arbitrarily.
( x 1) ( x) x( )
x x 1 x( x 1) x( x 1)
and then comparing the numerator of the final expression in (172)
with the integrand in (171), we see that 0 and 1
(implying 1), so that
For today 1 1 1
Vos V A V2 are
x( x 1) x x 1
distinct
The integral (171) then becomes
1 1 1 1
dx dx dx
x2 x x x 1 x x 1
Alternatively
x
ln x ln x 1 c ln c
x 1
for IS II ot In
aot aint az x2
foxy Ca ro
can ca ne
botch Vol Eat
set A Vo
at a ©not
Stuart Dalziel 32
an (Michaelmas, 2021) 251
Do
No N Cro ray
. Integration Methods of integration
x 1 1 x
dx dx
1 x x 2 x3 1 x 1 x2
1
ln 1 x ln 1 x 2 C
2
a0 a1 x a2 x 2 an x n
f x
x r0 x r1 x r2 x rn
For b0 - x r0 term in f x
a0 a1 x a2 x 2 an x n
x r0 x r1 x r2 x ri x rn
b1 b2 bn a0 a1 x a2 x 2 an x n
b0 x r0
x r1 x r2 x rn x r1 x r2 x ri x rn
then setting x r0 so that all the terms on the left-hand side vanish
except for the b0 term.
a0 a1 x a2 x 2 an x n
x r0 x r1 x r2 x ri x rn
the substitute in x ri :
a0 a1ri a2 ri 2 an ri n
bi
ri r0 ri r1 ri r2 x ri ri rn
For example, if
1 2 x 3x 2 a b c
f x
x x 1 x 2 x x 1 x 2
1 2 x 3x 2
x x 1 x 2
1 2(0) 3(0) 2 1
a .
x 0 1 0 2 2
1 2 x 3x 2 1 2(1) 3(1) 2 6
x 1
b 6
x x 1 x 2 (1) x 1 1 2 1
1 2 x 3x 2 1 2(2) 3(2) 2 17
x 2
c .
x x 1 x 2 (2) 2 1 x 2 2
Thus we have
1 2 x 3x 2 1 6 17
f x
x x 1 x 2 2x x 1 2 x 2
a c 0, a b 1, b 1 a 2, b 1, c 2.
a 2.
As any other value (excluding the roots of the denominator) will
give the same, e.g.
1 1 a 1 2
x 1: 0 a 2 a 2
22 2 1 1 1
2
2
1
2
dx .
1 x
a tan u
H tant u see u try
This is actually a very common example, and the substitution to use
is to write x tan u , so differentiating
dx
sec2 u ,
du
which allows the replacement of dx in the integral with
dx sec2 u du .
Again it looks like we have treated the derivative as a quotient to
split the dx and du . The subtlety of why this is not quite the case
is covered next term.
In this way,
1 1
dx sec2 u du 1 du u c,
1 x2 2
1 tan u
where we have used the identity 1 tan 2 u sec2 u . All we need to
do now is recall that x tan u so u tan 1 x to construct the
solution
1
dx tan 1 x c . (173)
1 x2
substitute a values
to
Half u
A useful trick when dealing with integrals of awkward trig.
functions is to use half-angle formula. If we start with the
angle substitution
formula tan( x 2) t ,
angle formula
75
Using
the half G
seen IE A
dt I see c I do
ICH tai I dt
2
I CH t I da
f seen de
JEFE EI at
a
f fr dt
J t at
L I ht t Wl t t I t c
L IEEE le c
Common substitutions
Denominator involves Substitution Comments
a2 x2 x a tan
(a 2 x2 ) x a sin or Need x a
a a co so
(x 2 2
a ) x a cosh Need x a
(a 2 x2 ) x a sinh u
a2 x2 x a tanh u Need x a
a2 x2 x a coth u Need x a
Complete the
I
a bx cx 2 or
a bx cx 2 square
or
r2 c
2qr b q 1
2 br 1
2 b c
p q2 a p a q2 a 1
4 b2 c
if g fig t
fg
Rearranging
fg cfp fig
Integrating
Sfg ffg f's
© Stuart Dalziel (Michaelmas, 2021) 260
fg f fig
. Integration Methods of integration
Write ln x dx 1 ln x dx
and identify f ln x f 1x
and g 1 g x.
ln x dx fg f g dx
1
Hence x ln x x dx
x
x ln x x c
f x f 1
g sec2 x g tan x
x sec 2 x dx fg f g dx
x tan x tan x dx
sin x
x tan x dx
cos x
d cos x dx
x tan x dx
cos x
x tan x ln cos x c
i ( a b) 1 a b i
a i
2 , b i
2
1
i2 i2
x2 1 x i x i
(We could have done this using the cover-up rule.)
Recall tanh n EL IA
Complex variable is more useful when dealing with mixes of
exponential and trigonometric functions.
feat cosa de
beefeater da
Defeatist do
W
cat
Relate t c
t c
Rec gin etc costtisiut
acosttsiut
art
em t c
Can
get
Im
feasiut da fam c
function
1
to 2
20 10 10 20
20 10 10 20
1
1
2 2
Figure 40: Sketch of an even function (left) and an odd function (right).
The reason for this is that the integrand in (176) is an odd function
of x , so that the area under the curve in 0 x 4 exactly cancels
out with the area under the curve in 4 x 0 , to give a total area
of zero. Another example, this time involving infinite limits, is
sin x
dx 0
1 x2
while
a
cos x cos x
ad
dx 2 dx (178)
even 1 x2 0 1 x2
In (177) the integral on the right hand side can be calculated using
the substitution x tan y , to give
x2
1 4 tan 2 y 4
2 dx 2 2
sec y dy 2 tan 2 y dy
0 1 x2 0 1 tan y2 0
4
2
2 sec y 1 dy
0
4
2 tan y y 0
2 .
2
Unfortunately, the integral on the right hand side in (178) requires
more advanced methods beyond the scope of this course.
I 2n
0
2
sin 2 n x dx NE at (179)
g f
and then use integration by parts from equation (174) (with
f sin 2 n 1 x and g sin x ) to see that
2 0
I 2n sin x sin 2 n 1 x dx
1
0
/2 /2
sin 2 n 1 x cos x 2n 1 sin 2 n 2 x cos x cos x dx
0 0
/2
2n 1 sin 2 n 2 x cos 2 x dx
0
2n 1 I 2 n 2 I 2n
(2n 1)
I 2n I 2n 2 ,
2n
(2n 1) (2n 3)
I 2n 4 ,
2n 2n 2
(2n 1) (2n 3) (2n 5)
I 2n 6 ,
2n 2n 2 2n 4
Note how the index on the integral goes down by 2 each time. If we
do this operation n times then the index of the integral goes down
2 rather than
to zero and we end up with interval of
(2n 1)(2n 3)(2n 5) 3 1
I 2n I0 (181)
(2n)(2n 2)(2n 4) 4 2
and putting this back into (181) gives us the final result
(2n 1)!!
I 2n . (182)
A
(2n)!! 2
ft
e.g Lct dt
Similarly
h h ( x, y y ) h ( x, y )
lim
y y 0 y
Example: h( x, y) 4 x 2 ( x 1
2 ) y2
h
2x y2 ,
x
h
(2 x 1) y .
y
Chain rule
Suppose we want to consider how h( x, y) changes if we follow a
path given parametrically by x( s), y( s) . Clearly, we could write
For example, if
x s 1, y 1
2 (s 2 4) ,
da fegan
day In
h x(s), y(s)
h( x, y)
s
h ( s) h x( s ), y ( s ) 4 x( s ) 2 ( x( s ) 1
2 ) y( s) 2
2
s2 4
4 ( s 1) ( s 1 1
2 )
2
5 2s 2s 2 2s 3 1
8 s4 1
4 s5
h ( s)
The alternative is to use the chain rule. For function of more than
one variable, such as h( x, y) h x(s), y(s) , we need to extend the
chain rule we have used previously. As a starting point, we consider
the two partial derivatives (as calculated above),
h
2x y2 ,
x
h in Sh due to
(2 x 1) y . change
y in a
a change
If we were to move by a small amount x, y , then by analogy with
earlier, we would expect h to change by
h
h
y
x
h
y.
x y
h dx h dy
h s.
x ds y ds
dh h dx h dy
.
ds x ds y ds
3 4s 6s 2 1
2 s3 5
4 s4
as before.
7.5.2 Differentiation with respect to the parameter
We will consider the three ways in which the parameter comes in
separately, before combining their contributions.
Janek
Integrand depends on parameter original
Consider I (q )
b
a
f ( x; q) dx valve
and how this changes as we change q :
fafcxiqtsqi
fafgltfasg. i
b dI
I (q q) f ( x; q q) dx I (q) q
a dq
f
y f ( x; q q) f ( x; q) q
f
dI b f q
q q dx
dq a q y f ( x; q)
AYEEE
b
I (q) f ( x; q) dx
a
a
4
b
addition
vale
Here,
f
q
is the partial derivative of f ( x; q) with respect to q : of y
f ( x; q) f ( x; q q) f ( x; q)
lim .
q q 0 q
b(q q)
I (q q) f ( x) dx F (b(q q)) F (a )
a
db dF
F (b(q )) q F (a)
dq dx x b(q)
change
small
da db
b(q) q b(q) b(q) q
dq
f ( x) dx f ( x) dx dq
f ( x) dx
in integral
a a b(q)
dI
I (q) q
dq
q
q
dI
q
db a
f (b(q ))
heightdb dF
q
Oc sq
dq dq dq dx x b(q) y f ( x; q)
in b
change
b(q)
I (q) f ( x) dx F (b(q)) F (a)
a
a b
b( q
ca
q ) b( q ) q
db
dq
linear
Hence,
approximation
dI db
f b( q ) .
dq dq
b
I (q q) f ( x) dx F b F a(q q)
a(q q)
da dF
F (b) F a(q) q
dq dx x a(q)
da
b b a(q) q
da f ( x) dx f ( x) dx dq
f ( x ) dx
a(q) q a(q) a(q)
dq
dI
I (q) q
dq
dI da da dF
q q f (a (q )) q
dq dq dq dx x a(q) y f ( x; q)
T I (q)
b
f ( x) dx F (b) F (a(q))
feacqil a(q)
I
a(q) b
da
a(q q) a(q) q
dq
dI da
f a(q) .
dq dq
t
ve because lover limit
u
Combining parameterized eg
b(q)
For I (q) f ( x; q) dx
a(q)
dI b(q ) f
dx b(q) f b(q); q a(q) f a(q); q .
dq a(q) q x x
db
y
y dg
f ( x; q)
dog
b(q ) f ( x; q)
dx
a(q) q
da y f ( x; q q)
f (a; q)
dq db
f (b; q )
dq
a(q) b( q ) x
a(q q) b(q q)
Figure 41: Differentiating an integral with respect to a parameter.
Different perspective
x
Define primitive F ( x, q ) f (u, q) du
Chain rule
dI F db F F da F
dq x x b(q) dq q x b(q)
x x a(q) dq q x a(q)
F x F x
f b ( q ),q f ( u ,q ) du f a ( q ),q f ( u ,q ) du
b q a q
b(q) f ( x; q) db da
dx f b(q); q f a(q); q
a(q) q dq dq
dI 2 / d d 2
d 0
J d
cos( t ) 1 dt
d
cos( t ) 1
t 2 /
doo city
2 / 2
t sin( t ) dt 2
[cos( t ) 1]
0
t 2 /
1
Integrate by parts ( f t, g sin( t ) f 1, g cos( t )
dI 2 / 2
t sin( t ) dt 2
[cos( t ) 1]
d 0
t 2 /
2 /
t 2 / 1 4
cos( t ) cos( t ) dt 2
0
0
2 2 / 4
2
sin( t ) 0 2
2
2
generateConsider I ( x
integer
1 x 1
) e dx e for 0.
0
0
ptarameter
Differentiate with respect to :
both
dI e x
x
equating
d 1 1
dx xe dx 2
d 0 0 d
Differentiating again
d 2I x d 1 2
xe dx x 2e x
dx .
d 2 0 0 d 2 3
r
Repeating n times
n!
xne x
dx n 1
. u
0
( n) x n 1e x
dx (n 1)! ,
0
Msingularities
undefined
df x
ae t t a 1 x ( a 1)
dt e x x 1
dx 0
ax 1 f ( x) e x x 1
dx 2 dx
ax 2 f ( x) ax 1 ax 1 f ( x ) e x x 1
e xx 1
e xx 2
a (1 a) x 2 f ( x) (1 a) x 2e x
x 1e x
dx dx
(1 a x) ax 1 f e xx 1
a(1 a) x 1 f (1 a) x 1e x
e x
ax 1 f e xx 1
a2 x 1 f ae x x 1
x
af e
af
and thus the ODE is satisfied.
h(t ) x
(b) The integrand of g ( x) dt is singular when x t but
0
x t
integrable, so we can define an improper integral. However, we
cannot apply the above method, where we are relying on the
differentiating the upper limit as that term ( (dx dx) h( x) x x ) is
now singular.
as required.
(d) Find expression for dg dx . The integrand is no longer singular,
so we can differentiate with respect to parameter x :
dg d x
2 xh(0) 2 h (t ) x t dt
dx dx 0
h(0) dx x h (t )
2 h ( x) x x dt
x dx 0
x t
h(0) x h (t )
dt
x 0
x t
Example 82
Find an approximation for ln n! for large n .
Start by noting
ln n! ln(1 2 3 n)
ln1 ln 2 ln 3 ln n
n
ln k
k 1
for n , n 1.
l
y
text
y ln x
one
if
1 2 3 4 n x
n ln n n 1 ln n! (n 1)ln(n 1) n
For n 1 giving approximation
dunt
ln n! n ln n n n(ln n 1) . en
This is a good approximation with a fractional error
ln n! n(ln n 1)
1n as n .
ln n!
xn
We can use Stirling s approximation to demonstrate that 0 as
n!
n for any x . Specifically, we note that
can
be very
n
x ve
ln n ln x ln n!
n! a
n ln x n(ln(n) 1) n tht Leng
So, for any x 0 , we can find n such that ln n 1 ln x ln e ln x
xn
and hence
n!
0 for n e1 x . I lug
e y ell
© Stuart Dalziel (Michaelmas, 2021) 285
et
. Integration
7.7
77
Recall p9 121191 cost
R
E 191 191
Ip q1 S
I p 91 E 125 1912 Cp p q q
f a guy da
real . Then
q q q
2
E f 2 ( x) dx 2 f ( x) g ( x) dx g 2 ( x) dx 0
p p p
possibilities
Since true for all , the left-hand-side, which is quadratic in ,
p
must not have to distinct roots (or the sign would swap).
Considering the form
2
a b c 0
implies b2 4ac , then
q 2 q q
4 f ( x) g ( x) dx 4 f 2 ( x) dx g 2 ( x) dx .
p p p
We have equality
q 2 q q
f ( x) g ( x) dx f 2 ( x) dx g 2 ( x) dx
p p p
related
q
the scalar product as f ( x) g ( x) dx for an infinite vector space of
just
p
constant
real (square-integrable) functions.
by
quantum physics.
square integrase
I fail do is
finite
f
© Stuart Dalziel (Michaelmas, 2021) 287
. Integration
tf tf tf tf 2 tf 2
2 2 2
v dt 1 dt (t f ti ) v dt v 1 dt v dt .
ti ti ti ti ti
dtr It
Changing variables ( t
tf
x)
tf dx
let ve
xf
dy v
v 2 dt v dt v dx putf Af
transition from ti ti dt xi
xf tf 2
pus
time to (t f ti ) v dx v dt ,
spare xi ti
tf
need to
and noting
ti
v dt xf xi
just
the result
xf tf 2 apply
t f
(t f ti ) v dx v dt (x f xi ) v dt
xi ti ti
1 xf 1 tf
Vx v dx v dt Vt
xf xi xi tf ti ti
since x f xi 0 and t f ti 0.
They are equal if and only if v is constant. LHS
RHS I
As a sum
We could approximate this by dividing the region into P elements
of area Ai.
double R
region
Ap E SA
E
Ai
A sa
p
da
for
© Stuart Dalziel (Michaelmas, 2021) 289
. Integration Multiple integration
8A
Volume Up Egham gi 78
V
somewhere within Ai
where to
one
yo
Earlier ID Riemann Integral p
Jafar da
Lisse che ti i
fossil
there
differential element
of men
H
p
Sai
phimgkhcxi.gs
v ffphctiglda
9 double integral
2
integration signs N
tune over the 207
literary
Rectangular region
In the simplest case, we could consider the area A as the rectangular
region a x b and c y d .
your
Integrate over R qhcx.gl
Rectangular grid
8 a boy
Sy dnt
St
a t Ty
Sai Sy b
C
g
We could then divide this region into M divisions of size
x (b a) M in the x direction, and N divisions of size
y (d c) N in the y direction. The area of each of the
P M N elements is then A x y and we can rewrite the sum
as
P M N
VMN h xi , yi Ai h xi , y j y x
i 1 i 1 j 1
where a (i 1) x xi a i x and c ( j 1) y yj c j y.
heat gist Lexi
EY Chai gist t
you
Note that the order ofGage sums can1betoreversed:
the two from me
Sys
M N N M
VMN h( xi , y j ) y x h( xi , y j ) x y .
i 1 j 1 j 1 i 1
Van
JJ handy
© Stuart Dalziel (Michaelmas, 2021) 291
. Integration Multiple integration
d
We compute the inner integral, h x, y dy first treating x as a
c
constant parameter. The result of the inner integral is independent of
y , but still depends on x . Hence the outer integral is identical to
the normal integration procedure.
As with the order of summation, the order in which we integrate can
be interchanged
b d d b
Hiya
V h x, y dy dx h x, y dx dy
a c c a
with
V h x, y dA
A
R
shows clearly that dA dy dx and the area A corresponds to that
given by the limits a , b , c and d .
R a Gta 67 A
Jr da Jaff dyda
Ete de
y
© Stuart Dalziel (Michaelmas, 2021)
ffpI 1 day
292
ay ed c
. Integration Multiple integration
(a) (b)
Lexi grist Sy
3
g
(c)
Figure 42: Approximations of double integral as sums of single integrals (a) & (b),
or double sum of function values (c).
Other notations
We will often write the integral without the brackets as
b d
V h x, y dy dx .
a c
Non-rectangular region
We may readily extend these ideas if the region to be integrated
over is not rectangular.
Yet tolyltreys
to
you
X
go
A
fogies gourdes
L t.ly tolyldy
© Stuart Dalziel (Michaelmas, 2021) 295
. Integration Multiple integration
ex
region you Eye yo
79
or
Integrate I
to stet
for A
Area
f y ca
you da
join
your
dy
da
me L
J fyi
da
his.gr dy F
f your
Lune hea c treat a as
y dy though it's
O
constant
Then outer integral
ti
V
f to
I can do
x1
y1 x y0 x dx
x0
V h x, y dx dy .
y0 x0 y
Making this change in order may make the integration simpler, but
can only be done analytically if the expressions describing the
boundary can be inverted.
Jj h dy da
f handy
y1 ( x) y1 x2 ( y )
y2 x3 ( y )
S S
x0
y0 ( x)
x1
y0 x0 ( y) x1 ( y )
x1 y1 ( x )
h( x, y ) dA h( x, y ) dy dx
S x0 y0 ( x )
y2 x1 ( y )
h( x, y ) dx dy
y0 x0 ( y )
y1 x2 ( y ) y1 x1 ( y )
h( x, y ) dx dy h( x, y ) dx dy
y2 x0 ( y ) y2 x3 ( y )
If are
I f x, y dy dx in the calculations
constants a c
I xy dA xy dx dy xy dy dx
T T T
y=2 2x
I xy dA xy dx dy
T 0 0
1
2 x 1 y 2
1 2 2
1
dy
2
x y dx 1 1
2 y y dx
2 2
0
2
x 0
dy 0
1
2 y 1
2 y2 1
8 y 3 dy ay
0
2
1 2 1 3 1 4 4 1 6 8 3
y y y 1
4 6 32 0 3 2 6
1
6
y = (a2 x2)1/2
y = (a2 x2)1/2
I dA dx dy dy dx
C C
12
a a2 x2
a 12 a
a2 x2 12
y 2 12
dx 2 a2 x2 dx
a2 x
a a
when 2a 2
cos 2 d a2
integral to
substituent a /2
original
tch cos EO
© Stuart Dalziel (Michaelmas, 2021) 301
. Integration Integration in 2D polar coordinates
SA St 80
so far used try Sy S
da da
dy
dA ahcx.gl dady
hexing B
Jfa
v
O is easier
But for some
region wing
r
than try
y eat da x2
T you date
SA Sa Sy SA r so fr
V
Is fern
If
Up On 8A EM 8 so
fevi Oj tri w
Sr re So it
R
V for on da
fff
on order do
Jf
Jiff
do
for on
© Stuart Dalziel (Michaelmas, 2021) rdr
302
. Integration Integration in 2D polar coordinates
I x2 y 2 dx dy .
r cost
C
r since
Now in polar coordinates, r 2 x2 y2 g
f ( x, y) r 2 f (r , )
and
I x2 y 2 dx dy r 2 r dr d
C C
These two integrals are just different ways of writing the same
thing. We have the freedom to choose either; obviously choosing
the second will be easier!
a
3
I r dr d r 3 dr d
C 0
4 a a4
1
4 r d d
0 4
a4
2
Alternatively, we could have performed the integrations in the
opposite order:
a a
3 3
I r dr d r d dr r3 d dr
C 0 0
a a
3 4
0
2 r dr
2
r
0
separable
a4
2
In the above we have made use of the fact that the integrand is
independent of over the region (i.e. the integrand is circularly
symmetric). If computing the volume as a sum, then we could have
used many small circles of radius r, thickness dr and area 2 rdr and
started from
a a
2 2 3 a4
I r dA r 2 rdr 2 r dr .
C 0 0
2
I f x, y, z dV f x, y, z dx dy dz
V V
17ft
Cylindrical polar coordinates
Youth
fticyiz f
nocy
Y
7
dadydz
In cylindrical polar coordinates, we replace ( x, y, z ) with (r , , z )
and replace dV dx dy dz with dV r dr d dz . Note the similarity
with two-dimensional polar coordinates. Also note that r 0 and
select .
Tsar z
y
I r
sat O
8th x
gu sour 8 Sz
© Stuart Dalziel (Michaelmas, 2021) 305 durdrdodz
. Integration Triple integrals
z r
sin of
0
r
since
y I
Iso
y
x Sr
Strategy
1 Choose the coordinate system taking into account the shape of the
volume V and the form of the integrand f ( x, y, z ) to make the
calculation as simple as possible;
2 Determine limits, e.g. y0 ( x) y y1 ( x) and x0 x x1 , or
0 r a and 0 2;
3 Rewrite the integrals (including integrand) in terms of the selected
coordinate system;
4 Look to see if the integrand is separable and the limits
independent of each other;
5 Decide on order in which to integrate;
6 Integrate with respect to one variable at a time, working our way
outward through all variables. Each integration eliminates one of
the variables.
Since the limits are all independent, and the integrand can be
factorised into parts containing no more than one of the
independent variables, then we can rewrite this as
a
M 0 r 2 dr sin d d
0
3 a
0r cos
1
3 0 0
1
3 0 a3 2 2
4
0 a3
3
Not surprisingly, the mass is just the product of the density and the
volume.
We could have evaluated the integral in Cartesian coordinates by
noting that the sphere is the region
(a 2 y2 z 2 )1/2 x (a 2 y2 z 2 )1/2 ,
(a 2 z 2 )1/2 y (a 2 z 2 )1/2 ,
a z a.
z
2 2
x0 r y
a2 z2 y2 x1 r2 y2
a2 z2 y2
r a2 z2
y
r a
Thus
1/ 2 1/ 2
a a2 z 2 a2 y2 z 2
M 0 dV 0 dx dy dz
V
a 2 1/ 2 2 1/ 2
a2 z a2 y2 z
1/ 2
a a2 z 2 1/ 2
a2 y2 z 2
0 x 1/ 2 dy dz
a2 y2 z 2
a 2 1/ 2
a2 z
1/ 2
a a2 z 2
1/2
0 2 a2 y2 z2 dy dz
a 2 1/ 2
a2 z
a 4
0 a2 z 1
3 z3 0 a3
a 3
a roost
due rdrdodz
OE sa
2h Tra s t
h s z eh
M dV x, y, z dx dy dz .
V V
M dV 1 c x2 z 2 dx dy dz
V V
z h r a
1 cx 2 cz 2 rdr d dz
z h r 0
z h r a
1 cr 2 cos 2 cz 2 rdr d dz
z h r 0
z h
a
1
2 r2 1
4 cr 4 cos 2 1
2 cr 2 z 2 d dz
0
z h
z h
1
2 a2 1
4 ca 4 cos 2 1
2 ca 2 z 2 d dz
z h
z h
a2 1
4 ca 4 ca 2 z 2 dz
z h
h
a2 z 1
4 ca 4 z 1
3 ca 2 z 3
h
2 a2h 1 1
4 ca 2 1
3 ch 2
In the special case of c 0 this recovers the expected result of the
volume of the cylinder 2 a 2 h .
Note that the integrations above could have been performed in
any order.
We could also have performed the integration in Cartesian
coordinates, but it would have been more difficult.
How?
It
© Stuart Dalziel (Michaelmas, 2021) 310
. Integration The Gaussian integral
Let Ia
fait de limit as as 81
consider cat
If e do I t is
dummy
variable
tan
Jae Lfa toy e I
J fjaé
é
dy on
Safia EY dy da
mga
let Jean
JI f é dree
watch in
fifty é do I é
or
therefore As a 30 I a
Jca
Is Indo f
© Stuart Dalziel (Michaelmas, 2021) é't 311
ar a e I
Is NE e TU
. Integration The Gaussian integral
Error function
You do not need to know the details of this for NST1A.
The frequency in which Gaussians need to be integrated has led to a
special function being defined in terms of the integral, the error
function
z
2 x2
erf z e dx ;
0
n
2 z x4 x6 1 x2n
1 x2 dx
0 2! 3! n!
n
2 1 3 z5 z7 1 z 2n 1
z z
3 5(2!) 7(3!) (2n 1)( n!)
2 3x 2 5 x 1 2 1 1 32
dx dx
1 x( x 1)( x 2) 1 2x x 1 x 2
2
1 3
ln x ln x 1 ln x 2
2 2 1
1 3 3 4
ln 2 ln ln
2 2 2 3
1 4 3 4
ln 2 ln ln ln
2 3 2 3
3 1 4
ln 2 ln
2 2 3
1 4
ln 8 ln
2 3
1 32
ln
2 3
4 1
(b) d
0 1 cos 2
Noting the identity 1 cos 2 2cos 2 ,
4 1 /4 1
d d
0 1 cos 2 0 2 cos 2
1 /4 1 /4 1
sec 2 d tan 0
1 0
2 0 2 2
1
2
2 1
(c) d .
0 1 sin
Want to transform into a similar form for that in (b).
Noting that sin A 2 cos A and consider A 2 .
Let 2 2 2 4 d 2d
Transform limits: 0 4, 2 4 4 0
2 1
I d
0 1 sin
0 2d
integration /4 1 sin 2 1
2
via substitution 0 1
2 d
/4 1 cos 2
0 4
As integrand even then
4 0
1 /4
I 2 d
0 1 cos 2
1
2 b 2
2
1
(c) Sketch the function ln x for 1 x e and use your sketch to put
the following integrals in ascending order of numerical value:
e e e
I1 lnx dx I2 ln( x 2 ) dx I3 (lnx) 2 dx [6]
1 1 1
b x 1
(a) dx
a x( x 1)
By cover-up rule
x 1 p q 1 2
x x 1 x x 1 x x 1
b x 1 b 1 2
dx dx
a x x 1 a x x 1
b
ln x 2 ln x 1 a
2
a b 1
ln 2
a 1 b
(b) tan 2 x dx
x 1 x e
y 0
The integrand is positive over the range for all three integrals and
monotonically increasing with x .
As x 2 x , then ln x 2 2ln x ln x and I 2 I1 .
Since the integrand is less than unity (except at the upper bound)
2
for I1 and I 2 , then ln x ln x , except at the boundaries. Hence
I 3 I1 . Thus we have the order
I3 I1 I2 .
Find also the distance d of the centre of mass of the cone from its
base, using the formula
Md z dV . [10]
C
OE r E all EW
Te LO EN
O E z Sh
© Stuart Dalziel (Michaelmas, 2021) 317
. Integration Worked examples
82
T
o
W
0
S
a
c
A
t
h
d
T
r
t
W
c
T
p
A
c
w
b as
interpret (
city
2
JJ L
W
e
clyde u
My petty
try
so faster than
increases
try
as
foxy try
so as
N
0
let arcoso dardrdle d
using
ye
I
sinocosoréirdrdo
J
N
f
If sinocotodoliffé'd i
d
0 1 0
© Stuart Dalziel (Michaelmas, 2021) 322
t
by pats
. Integration Worked examples
for let
f pé dr
u r u I
T
v ret v ter
i
o
w
integrate uv
fur nu
Fret ft é or
o
If é or
EE
Recall
fgé or E
I
t.IE TE I