Professional Documents
Culture Documents
Multiple Integrals
Laurenz Wiskott
Institut fur Neuroinformatik
Ruhr-Universitat Bochum, Germany, EU
4 February 2017
Contents
1 Introduction 2
2.1 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
3.1 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
4.1 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Teaching/Material/, where you can also find other teaching material such as programming exercises. The table of contents of
the lecture notes is reproduced here to give an orientation when the exercises can be reasonably solved. For best learning effect
I recommend to first seriously try to solve the exercises yourself before looking into the solutions.
1
4.1.4 Exercise: Area integral . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5.1 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1 Introduction
2.1 Exercises
Integrate the function f (x, y) = xy over the region between the curves y = x and y = x2 for 0 x 2.
Solution: One has to be a bit careful here. Sketching the two functions x and x2 shows that x > x2 for
0 < x < 1 and x > x2 for x > 1. Thus, we have to split the integral I into two parts, because otherwise one
part would yield a negative contribution.
2
Z1 Zx Z2 Zx
I= xy dy dx + xy dy dx (1)
0 x2 1 x
Z1 Z2
2
= x[y 2 /2]xx2 dx + x[y 2 /2]xx dx (2)
0 1
Z1 Z2
2 4
= x(x /2 x /2) dx + x(x4 /2 x2 /2) dx (3)
0 1
Z1 Z2
1 3 5 1
= (x x ) dx + (x5 x3 ) dx (4)
2 2
0 1
= ([x4 /4]10 [x6 /6]10 )/2 + ([x6 /6]21 [x4 /4]21 )/2 (5)
= ((1/4 0/4) (1/6 0/6))/2 + ((64/6 1/6) (16/4 1/4))/2 (6)
= 1/8 1/12 + 63/12 15/8 (7)
= 62/12 14/8 (8)
= 62/12 21/12 (9)
= 41/12 (10)
= 3.416 . (11)
2
3 Changing the order of integration
3.1 Exercises
Sketch the integration region and solve the following integral in the opposite order (first x then y):
2 2
y2
Z Z
dy dx . (1)
1 x x2
Solution: The integration region is the upper left triangle of the square with x [1, 2] and y [1, 2] (Sketch
not available!). Integrating in the opposite order yields
2 y 2 y
y2
Z Z Z Z
1
dx dy = y2 dx dy (2)
1 1 x2 1 1 x2
Z 2
= y 2 [1/x]y1 dy (3)
1
Z 2
= y 2 (1/y (1/1)) dy (4)
1
Z 2 Z 2
= y 2 dy y dy (5)
1 1
= [y /3]21 [y 2 /2]21
3
(6)
3 3 2 2
= (2 /3 1 /3) (2 /2 1 /2) (7)
= (8/3 1/3) (4/2 1/2) (8)
= 7/3 3/2 (9)
= 5/6 . (10)
Sketch the integration region and solve the following integral in the opposite order (first x then y):
Z 2 Z +x
x y 2 dy dx . (1)
0 x
Solution: The integration region is a symmetric triangle (D: gleichschenkliges Dreieck) pointing to the left
within the rectangle with x [0, 2] and y [2, +2] (Sketch not available!). It can equally well be integrated
3
over with
Z +2 Z 2 Z 0 Z 2 Z +2 Z 2
x y 2 dx dy = y2 x dx dy + y2 x dx dy (2)
2 |y| 2 y 0 y
Z 2 Z 2
=2 y2 x dx dy (3)
0 y
Z 2
=2 y 2 [x2 /2]2y dy (4)
0
Z 2
=2 y 2 (22 y 2 )/2 dy (5)
0
Z 2
= 4y 2 y 4 dy (6)
0
= 4[y 3 /3]20 [y 5 /5]20 (7)
3 3 5 5
= 4(2 0 )/3 (2 0 )/5 (8)
= 32/3 32/5 (9)
= 160/15 96/15 (10)
= 64/15 . (11)
4.1 Exercises
Consider the following nonlinear coordinate transformation between variables x and y and variables u and
v (a and b are parameters):
x = u + a cos(u) (1)
y = v + b sin(u) . (2)
with D indicating the disc in the xy-plane around (0, 0) with radius 1.
5
Solution:
ZZ p
I = 1 x2 + y 2 dx dy (2)
D
Z1 Z2
x x
r
= 1 r2 d
dr (3)
y y
r
0 0 | {z }
r cos cos +
r sin sin =r
Z2 Z1
= 1 d (r r2 ) dr (4)
0 0
= 2([r2 /2]10 [r3 /3]10 ) (5)
= 2((1/2 0/2) (1/3 0/3)) (6)
= 2(3/6 2/6) (7)
= /3 (8)
= 1.047... . (9)
(a) Calculate the integral of the function f (x, y) = 1 over the dashed area of the figure. Give a geometric
interpretation for this integral.
p p
CC BY-SA 4.0
1
Hint: The integral of 1 y is 2 (y 1 y 2 + arcsin(y)).
2
Solution:
The easiest way is to realize that the area is the difference between a quarter unit circle of area /4
minus half a unit square of area 1/2.
6
The most direct way is to simply calculate the integral.
Z 1 Z 1y2 Z 1 h i1y2
1 dx dy = x dy (1)
0 1y 0 1y
Z 1 p
= 1 y 2 (1 y) dy (2)
0
Z 1 p Z 1 Z 1
= 1 y 2 dy 1 dy + y dy (3)
0 0 0
h i1 1 1 1
1 p
= (y 1 y 2 + arcsin(y)) y + y2 (4)
2 0 0 2 0
1 1
= [arcsin(1) arcsin(0)] 1 + (5)
2 | {z } | {z } 2
/2 0
1
= (6)
4 2
Another way is to split the integral up into the difference of the integral over the quarter circle (in
polar coordinates) and the integral over the triangle (in x-y-coordinates).
ZZ Z /2 Z 1
x x
Z 1 Z 1y
r
1 dx dy = 1
y y
dr d 1 dx dy (7)
0 0
r
0 0
A | {z }
r cos cos +
r sin sin =r
Z /2 1 Z 1 h i1y
1 2
= r d x dy (8)
0 2 0 0 0
Z /2 Z 1
1
= d 1 y dy (9)
0 2 0
/2 1
1 1 2
= y +y (10)
2 0 2 0
1
= /4 (1/2 + 1) = (11)
4 2
(b) Calculate the integral of the function f (x, y) = 1/(x2 +y 2 )3/2 over the same area. Use polar coordinates
(r, ) with x = r cos , y = r sin .
Solution: First determine the boundaries of the area in polar coordinates: Since we look only at the upper
right quadrant we have angles from 0 to 90. This means [0, /2]. The upper bound of the radius is
just the radius 1. The lower bound is given by the function y = 1 x. If x and y are substituted by polar
coordinates we get r sin = 1 r cos and therefore r [1/(cos + sin ), 1].
7
Z 1 Z 1y2
A = 1/(x2 + y 2 )3/2 dx dy (12)
0 1y
Z /2 Z 1 x x
1
r
=
dr d (13)
3 y y
1/(cos +sin ) r
r
0
| {z }
r cos cos +
r sin sin =r
Z /2 Z 1
1
= dr d (14)
0 1/(cos +sin ) r2
Z /2 1
1
= d (15)
0 r 1/(cos +sin )
Z /2
= 1 + (cos + sin ) d (16)
0
h i/2
= + sin cos (17)
0
= (/2 + sin(/2) cos(/2)) (0 + sin 0 cos 0) (18)
= /2 + 1 + 1 = 2 /2 (19)
Figure (left): (Wiskott group, 2017) unclear.; Figure (right): (Wiskott group, 2017) unclear.
(b) Calculate the area of the shape for general a and n.
Hint: First apply a very simple geometrical transformation that makes the task much easier.
Solution: First we compress everything in the y-direction by a factor of 1/3 to get a more symmetric
boundary with only 1/3 of the area.
x = (1 + a cos(n)) cos() (3)
y = (1 + a cos(n)) sin() . (4)
8
The integral is then best written in polar coordinates.
Z2 (1+aZcos(n))
I/3 = r dr d (5)
0 0
Z2
(1+a cos(n))
= [r2 /2]0 d (6)
0
Z2
= ((1 + a cos(n))2 /2 0/2) d (7)
0
Z2
1
1 + 2a cos(n) + a2 cos(n)2 d
= (8)
2
0
Z2 Z2 Z2
1 a2
= 1 d + a cos(n) d + cos(n)2 d (9)
2 2
0 0 0
| {z } | {z }
=0 =
2
= + 0 + a /2 (10)
= (1 + a2 /2) (11)
I = 3(1 + a2 /2) . (12)
R 2 R 2
The last integral in (9) equals , because 2 = 0
1 d = 0
(sin()2 + cos()2 ) d and for symmetry
reasons.
5.1 Exercises
9
Solution:
f1 f2
T f (x) = + (2)
x1 x2
(1) x1 x2
= + (3)
x1 x2
= 1+1 (4)
= 2. (5)
(c) Calculate the integral over the divergence over the area of a disc of radius r centered at the origin.
Solution: Since the divergence is 2 everywhere the integral is simply twice the area of the disc, i.e.
2r2 .
(d) Calculate the flow of the vector field through the boundary of the disc with radius r centered at the
origin.
Hint: By Gauss theorem the result should be identical to the integral over the divergence.
Solution: At radius r the vectors of the vector field have length r and point strictly outwards, away
from the origin, i.e. they are orthogonal to the boundary of the disc. Thus the flow through the
boundary is simply r times the circumference, i.e. r2r, which is the same as the integral over the
divergence over the disc, see above.
(e) Calculate the integral over the divergence over the area of a disc of radius r centered at an arbitrary
point xc .
Solution: Since the divergence is 2 everywhere in any case the integral is still simply twice the area
of the disc, i.e. 2r2 .
(f) Calculate the flow of the vector field through the boundary of the disc with radius r centered at xc .
Hint: Because of the linearity of the integral, the flow through a volume boundary of a sum of two vector
fields equals the sum of the flows through the volume boundary of the two vector fields individually.
Solution: First consider the flow through the boundary of the disc for the vector field f (x) xc . This
vector field looks identical to f (x) itself except that it is centered at xc . Thus its flow through the
boundary is exactly the one we have calculated for f (x) and the disc at the origin. Next we realize
that the flow of the constant vector field xc through the boundary of any closed volume is zero for
symmetry reasons. Thus the flow of f (x) through the disc centered at xc is again r2r.
Hint: There is actually not much to calculate here. Use symmetry arguments and Gedankenexperiments
instead.
10