Docsity

Douuble integration for engineering, Exams of Calculus for Engineers

Partial preview of the text

Download Douuble integration for engineering and more Exams Calculus for Engineers in PDF only on Docsity!

Double integrals

Notice: this material must not be used as a substitute for attending

the lectures

0.1 What is a double integral?

Recall that a single integral is something of the form

∫ (^) b

a

f (x) dx

A double integral is something of the form ∫ ∫

R

f (x, y) dx dy

where R is called the region of integration and is a region in the (x, y) plane. The double integral gives us the volume under the surface z = f (x, y), just as a single integral gives the area under a curve.

0.2 Evaluation of double integrals

To evaluate a double integral we do it in stages, starting from the inside and working out, using our knowledge of the methods for single integrals. The easiest kind of region R to work with is a rectangle. To evaluate ∫ ∫

R

f (x, y) dx dy

proceed as follows:

  • work out the limits of integration if they are not already known
  • work out the inner integral for a typical y
  • work out the outer integral

0.3 Example

Evaluate (^) ∫ 2 y=

∫ (^3)

x=

(1 + 8xy) dx dy

Solution. In this example the “inner integral” is

∫ (^3) x=0(1 + 8xy)^ dx^ with^ y^ treated as a constant.

integral =

∫ (^2)

y=

   

∫ (^3)

x=

(1 + 8xy) dx ︸ ︷︷ ︸ work out treating y as constant

   

dy

∫ (^2)

y=

[ x +

8 x^2 y 2

] 3

x=

dy

∫ (^2)

y=

(3 + 36y) dy

0.6 Example

Evaluate (^) ∫ (^2)

0

∫ (^) x

x^2

y^2 x dy dx

Solution.

integral =

∫ (^2)

0

∫ (^) x

x^2

y^2 x dy dx

∫ (^2)

0

[ y^3 x 3

]y=x

y=x^2

dx

∫ (^2)

0

( x^4 3

x^7 3

) dx =

[ x^5 15

x^8 24

] 2

0

0.7 Example

Evaluate (^) ∫ π π/ 2

∫ (^) x 2

0

x

cos

y x

dy dx

Solution. Recall from elementary calculus the integral

∫ cos my dy = (^) m^1 sin my for m independent of y. Using this result,

integral =

∫ (^) π

π/ 2

  1 x

sin yx 1 x

 

y=x^2

y=

dx

∫ (^) π

π/ 2

sin x dx = [− cos x]πx=π/ 2 = 1

0.8 Example

Evaluate (^) ∫ 4 1

∫ √y

0

ex/

√y dx dy

Solution.

integral =

∫ (^4)

1

[ ex/

√y

1 /

y

]x=√y

x=

dy

∫ (^4)

1

ye −

y) dy = (e − 1)

∫ (^4)

1

y^1 /^2 dy

= (e − 1)

[ y^3 /^2 3 / 2

] 4

y=

(e − 1)(8 − 1)

(e − 1)

0.9 Evaluating the limits of integration

When evaluating double integrals it is very common not to be told the limits of integration but simply told that the integral is to be taken over a certain specified region R in the (x, y) plane. In this case you need to work out the limits of integration for yourself. Great care has to be taken in carrying out this task. The integration can in principle be done in two ways: (i) integrating first with respect to x and then with respect to y, or (ii) first with respect to y and then with respect to x. The limits of integration in the two approaches will in general be quite different, but both approaches must yield the same answer. Sometimes one way round is considerably harder than the other, and in some integrals one way works fine while the other leads to an integral that cannot be evaluated using the simple methods you have been taught. There are no simple rules for deciding which order to do the integration in.

0.10 Example

Evaluate ∫ ∫

D

(3 − x − y) dA [dA means dxdy or dydx]

where D is the triangle in the (x, y) plane bounded by the x-axis and the lines y = x and x = 1. Solution. A good diagram is essential.

Method 1 : do the integration with respect to x first. In this approach we select a typical y value which is (for the moment) considered fixed, and we draw a horizontal line across the region D; this horizontal line intersects the y axis at the typical y value. Find out the values of x (they will depend on y) where the horizontal line enters and leaves the region D (in this problem it enters at x = y and leaves at x = 1). These values of x will be the limits of integration for the inner integral. Then you determine what values y has to range between so that the horizontal line sweeps the entire region D (in this case y has to go from 0 to 1). This determines the limits of integration for the outer integral, the integral with respect to y. For this particular problem the integral becomes ∫ ∫

D

(3 − x − y) dA =

∫ (^1)

0

∫ (^1)

y

(3 − x − y) dx dy

∫ (^1)

0

[ 3 x −

x^2 2

− yx

]x=

x=y

dy

∫ (^1)

0

(( 3 − 12 − y

) −

( 3 y −

y^2 2

− y^2

)) dy

∫ (^1)

0

− 4 y +

y^2

) dy =

[ 5 y 2

− 2 y^2 +

y^3 2

]y=

y=

Method 2 : Integrate first with respect to y and then x, i.e. draw a vertical line across D at a typical x value. Such a line enters D at y = x^2 and leaves at y = 2x. The integral becomes ∫ ∫

D

(4x + 2) dA =

∫ (^2)

0

∫ (^2) x

x^2

(4x + 2) dy dx

∫ (^2)

0

[4xy + 2y]yy=2=xx 2 dx

=

∫ (^2)

0

(( 8 x^2 + 4x

) −

( 4 x^3 + 2x^2

)) dx

∫ (^2)

0

(6x^2 − 4 x^3 + 4x) dx =

[ 2 x^3 − x^4 + 2x^2

] 2 0

The example we have just done shows that it is sometimes easier to do it one way than the other. The next example shows that sometimes the difference in effort is more considerable. There is no general rule saying that one way is always easier than the other; it depends on the individual integral.

0.12 Example

Evaluate ∫ ∫

D

(xy − y^3 ) dA

where D is the region consisting of the square {(x, y) : − 1 ≤ x ≤ 0 , 0 ≤ y ≤ 1 } together with the triangle {(x, y) : x ≤ y ≤ 1 , 0 ≤ x ≤ 1 }.

Method 1 : (easy). integrate with respect to x first. A diagram will show that x goes from −1 to y, and then y goes from 0 to 1. The integral becomes ∫ ∫

D

(xy − y^3 ) dA =

∫ (^1)

0

∫ (^) y

− 1

(xy − y^3 ) dx dy

∫ (^1)

0

[ x^2 2

y − xy^3

]x=y

x=− 1

dy

∫ (^1)

0

(( y^3 2

− y^4

) − (^12 y + y^3 )

) dy

∫ (^1)

0

( −

y^3 2

− y^4 − 12 y

) dy =

[ −

y^4 8

y^5 5

y^2 4

] 1

y=

Method 2 : (harder). It is necessary to break the region of integration D into two sub- regions D 1 (the square part) and D 2 (triangular part). The integral over D is given by ∫ ∫

D

(xy − y^3 ) dA =

∫ ∫

D 1

(xy − y^3 ) dA +

∫ ∫

D 2

(xy − y^3 ) dA

which is the analogy of the formula

∫ (^) c a f^ (x)^ dx^ =^

∫ (^) b a f^ (x)^ dx^ +^

∫ (^) c b f^ (x)^ dx^ for single integrals. Thus ∫ ∫

D

(xy − y^3 ) dA =

∫ (^0)

− 1

∫ (^1)

0

(xy − y^3 ) dy dx +

∫ (^1)

0

∫ (^1)

x

(xy − y^3 ) dy dx

∫ (^0)

− 1

[ xy^2 2

y^4 4

] 1

y=

dx +

∫ (^1)

0

[ xy^2 2

y^4 4

] 1

y=x

dx

∫ (^0)

− 1

( 1 2 x^ −^

) dx +

∫ (^1)

0

(( x 2

) −

( x^3 2

x^4 4

)) dx

[ x^2 4

x 4

] 0

− 1

[ x^2 4

x 4

x^4 8

x^5 20

] 1

0 = −^12 −

In the next example the integration can only be done one way round.

0.13 Example

Evaluate (^) ∫ ∫

D

sin x x

dA

where D is the triangle {(x, y) : 0 ≤ y ≤ x, 0 ≤ x ≤ π}. Solution. Let’s try doing the integration first with respect to x and then y. This gives

∫ ∫

D

sin x x

dA =

∫ (^) π

0

∫ (^) π

y

sin x x

dx dy

but we cannot proceed because we cannot find an indefinite integral for sin x/x. So, let’s try doing it the other way. We then have

∫ ∫

D

sin x x

dA =

∫ (^) π

0

∫ (^) x

0

sin x x

dy dx

∫ (^) π

0

[ sin x x

y

]x

y=

dx =

∫ (^) π

0

sin x dx

= [− cos x]π 0 = 1 − (−1) = 2

0.14 Example

Find the volume of the tetrahedron that lies in the first octant and is bounded by the three coordinate planes and the plane z = 5 − 2 x − y. Solution. The given plane intersects the coordinate axes at the points (^52 , 0 , 0), (0, 5 , 0) and (0, 0 , 5). Thus, we need to work out the double integral

∫ ∫

D

(5 − 2 x − y) dA

The variables u and v in the general description above are r and θ in the polar coordinates context and the Jacobian for polar coordinates is

J =

∂x ∂r

∂y ∂θ

∂x ∂θ

∂y ∂r = (cos θ)(r cos θ) − (−r sin θ)(sin θ) = r(cos^2 θ + sin^2 θ) = r

So |J| = r and the change of variables rule (0.1) becomes ∫ ∫

D

f (x, y) dx dy =

∫ ∫

D∗

f (r cos θ, r sin θ) r dr dθ

0.17 Example

Use polar coordinates to evaluate ∫ ∫

D

xy dx dy

where D is the portion of the circle centre 0, radius 1, that lies in the first quadrant. Solution. For the portion in the first quadrant we need 0 ≤ r ≤ 1 and 0 ≤ θ ≤ π/2. These inequalities give us the limits of integration in the r and θ variables, and these limits will all be constants. With x = r cos θ, y = r sin θ the integral becomes

∫ ∫

D

xy dx dy =

∫ (^) π/ 2

0

∫ (^1)

0

r^2 cos θ sin θ r dr dθ

∫ (^) π/ 2

0

[ r^4 4

cos θ sin θ

] 1

r=

dθ

∫ (^) π/ 2

0

sin θ cos θ dθ =

∫ (^) π/ 2

0

sin 2θ dθ

[ −

cos 2θ 2

]π/ 2

0

0.18 Example

Evaluate ∫ ∫

D

e−(x

(^2) +y (^2) ) dx dy

where D is the region between the two circles x^2 + y^2 = 1 and x^2 + y^2 = 4. Solution. It is not feasible to attempt this integral by any method other than trans- forming into polars. Let x = r cos θ, y = r sin θ. In terms of r and θ the region D between the two circles is described by 1 ≤ r ≤ 2, 0 ≤ θ ≤ 2 π, and so the integral becomes

∫ ∫

D

e−(x (^2) +y (^2) ) dx dy =

∫ (^2) π

0

∫ (^2)

1

e−r 2 r dr dθ

∫ (^2) π

0

[ −^12 e−r

2 ]^2 r= dθ

∫ (^2) π

0

( −^12 e−^4 + 12 e−^1

) dθ

= π(e−^1 − e−^4 )

0.19 Example: integrating e−x

2

The function e−x 2 has no elementary antiderivative. But we can evaluate

∫ (^) ∞ −∞ e −x^2 dx

by using the theory of double integrals.

(∫ (^) ∞

−∞

e−x

2 dx

) 2

(∫ (^) ∞

−∞

e−x

2 dx

) (∫ (^) ∞

−∞

e−x

2 dx

)

(∫ (^) ∞

−∞

e−x

2 dx

) (∫ (^) ∞

−∞

e−y

2 dy

)

∫ (^) ∞

−∞

e−y

2 ∫^ ∞ −∞

e−x

2 dx dy

=

∫ (^) ∞

−∞

∫ (^) ∞

−∞

e−(x (^2) +y (^2) ) dx dy

Now transform to polar coordinates x = r cos θ, y = r sin θ. The region of integration is the whole (x, y) plane. In polar variables this is given by 0 ≤ r < ∞, 0 ≤ θ ≤ 2 π. Thus (∫ (^) ∞

−∞

e−x

2 dx

) 2

∫ (^) ∞

−∞

∫ (^) ∞

−∞

e−(x

(^2) +y (^2) ) dx dy

∫ (^2) π

0

∫ (^) ∞

0

e−r

2 r dr dθ

∫ (^2) π

0

[ −^12 e−r

2 ]r=∞ r=0 dθ

=

∫ (^2) π

0

1 2 dθ^ =^ π

We have shown that (^) (∫ ∞ −∞

e−x

2 dx

) 2 = π

Hence (^) ∫ (^) ∞

−∞

e−x

2 dx =

π.

The above integral is very important in numerous applications.

0.20 Other substitutions

So far we have only illustrated how to convert a double integral into polars. We will now illustrate some examples of double integrals that can be evaluated by other substitutions. Unlike single integrals, for a double integral the choice of substitution is often dictated not only by what we have in the integrand but also by the shape of the region of integration.

We will need x and y in terms of u and v. By multiplying the above equations we get y^2 = u^2 v^2. Hence y = uv and x = u/v. In the (u, v) variables the region D is described by 1 ≤ u ≤ 3 , 1 ≤ v ≤ 2.

The Jacobian is

J =

∣∣ ∣∣ ∣

∂x ∂u

∂x ∂y ∂v ∂u

∂y ∂v

∣∣ ∣∣ ∣ =

∣∣ ∣∣ ∣

1 v −^

u v^2 v u

∣∣ ∣∣ ∣ =^

u v

u v

2 u v

Therefore ∫ ∫

D

(√ y x

xy

) dx dy

∫ ∫ (v + u)|J| du dv =

∫ (^2)

1

∫ (^3)

1

(v + u)

( 2 u v

) du dv

∫ (^2)

1

∫ (^3)

1

( 2 u +

2 u^2 v

) du dv =

∫ (^2)

1

[ u^2 +

2 u^3 3 v

]u=

u=

dv

∫ (^2)

1

{( 9 +

v

) −

( 1 +

3 v

)} dv =

[ 8 v +

ln v

] 2

1

ln 2.

0.23 Application of double integrals: centres of gravity

We will show how double integrals may be used to find the location of the centre of gravity of a two-dimensional object. Mathematically speaking, a plate is a thin 2-dimensional distribution of matter considered as a subset of the (x, y) plane. Let

σ = mass per unit area

This is the definition of density for two-dimensional objects. If the plate is all made of the same material (a sheet of metal, perhaps) then σ would be a constant, the value of which would depend on the material of which the plate is made. However, if the plate is not all made of the same material then σ could vary from point to point on the plate and therefore be a function of x and y, σ(x, y). For some objects, part of the object may be made of one material and part of it another (some currencies have coins that are like this). But σ(x, y) could quite easily vary in a much more complicated way (a pizza is a simple example of an object with an uneven distribution of matter).

The intersection of the two thin strips defines a small rectangle of length δx and width δy. Thus mass of little rectangle = (mass per unit area)(area) = σ(x, y) dx dy

Therefore the total mass of the plate D is

M =

∫ ∫

D

σ(x, y) dx dy.

Suppose you try to balance the plate D on a pin. The centre of mass of the plate is the point where you would need to put the pin. It can be shown that the coordinates

(¯x, y¯) of the centre of mass are given by

x¯ =

∫ ∫

D

x σ(x, y) dA ∫ ∫

D

σ(x, y) dA

, y¯ =

∫ ∫

D

y σ(x, y) dA ∫ ∫

D

σ(x, y) dA

0.24 Example

A homogeneous triangle with vertices (0, 0), (1, 0) and (1, 3). Find the coordinates of its centre of mass. [‘Homogeneous’ means the plate is all made of the same material which is uniformly distributed across it, so that σ(x, y) = σ, a constant.] Solution. A diagram of the triangle would be useful. With σ constant, we have

x¯ =

∫ ∫

D

σx dA ∫ ∫

D

σ dA

σ

∫ (^1)

0

∫ (^3) x

0

x dy dx

σ

∫ (^1)

0

∫ (^3) x

0

dy dx

∫ (^1)

0

[xy]yy=3=0x dx ∫ (^1)

0

[y]yy=3=0x dx

∫ (^1)

0

3 x^2 dx ∫ (^1)

0

3 x dx

and

y¯ =

∫ ∫

D

σy dA ∫ ∫

D

σ dA

σ

∫ (^1)

0

∫ (^3) x

0

y dy dx

σ

∫ (^1)

0

∫ (^3) x

0

dy dx

∫ (^1)

0

[ y^2 2

]y=3x

y=

dx ∫ (^1)

0

[y]yy=3=0x dx

∫ (^1)

0

9 x^2 2

dx ∫ (^1)

0

3 x dx

So the centre of mass is at (¯x, y¯) = (^23 , 1).

0.25 Example

Find the centre of mass of a circle, centre the origin, radius 1, if the right half is made of material twice as heavy as the left half. Solution. By symmetry, it is clear that the centre of mass will be somewhere on the x-axis, and so ¯y = 0. In order to model the fact that the right half is twice as heavy, we can take

σ(x, y) =

{ 2 σ x > 0 σ x < 0

with the σ in the right hand side of the above expression being any positive constant.