Artificial Intelligence 🤖
Area integrals

Area integrals

In the previous section we defined line integrals over a curve, C\mathcal{C}. Here, we consider an integral of a function, f(x,y)f(x, y) over a region R\mathcal{R} in the xyx y-plane:

I=Rf(x,y)dA\mathcal{I}=\iint_{\mathcal{R}} f(x, y) d A

Area integrals are computed by converting them into repeated integrals. To do this, we need the region R\mathcal{R} to be enclosed from below and above by curves y=p(x)y=p(x) and y=q(x)y=q(x), respectively, as follows:

Rf(x,y)dA=x=ab(p(x)q(x)f(x,y)dy)dx.\iint_{\mathcal{R}} f(x, y) d A=\int_{x=a}^{b}\left(\int_{p(x)}^{q(x)} f(x, y) d y\right) d x .

When carrying out the inner integral (i.e. with respect to yy ), the variable xx is treated as a constant. What we are really doing here, is dividing up the region R\mathcal{R} into small rectangles using a closely spaced mesh of vertical and horizontal lines and then taking the sum over all rectangles in the subdivision of R\mathcal{R}.

The order in which the terms are added (i.e. adding up rectangles in the vertical lines first and adding up the rectangles in the horizontal lines second or vice-versa) does not really matter provided that the function f(x,y)f(x, y) is continuous in the region of interest (see Fubini's theorem). So, in Eq. (2.75), we integrate with respect to yy first from a lower bounding curve y=p(x)y=p(x) to an upper bounding curve y=q(x)y=q(x) and then integrate over xx from x=ax=a to x=bx=b. Similarly, we can have the region R\mathcal{R} be bounded by curves x=a(y)x=a(y) and x=b(y)x=b(y) on the left and right, respectively and then integrating with respect to yy from y=py=p to y=qy=q. This is given by:

Rf(x,y)dA=y=pq(a(y)b(y)f(x,y)dx)dy.\iint_{\mathcal{R}} f(x, y) d A=\int_{y=p}^{q}\left(\int_{a(y)}^{b(y)} f(x, y) d x\right) d y .

Fubini's theorem

If f(x,y)f(x, y) is continuous on the region given by the rectangle R=[a,b]×[p,q]\mathcal{R}=[a, b] \times[p, q] then,

Rf(x,y)dA=ab(pqf(x,y)dy)dx=pq(abf(x,y)dx)dy.\iint_{\mathcal{R}} f(x, y) d A=\int_{a}^{b}\left(\int_{p}^{q} f(x, y) d y\right) d x=\int_{p}^{q}\left(\int_{a}^{b} f(x, y) d x\right) d y .

We note the following properties: (a) R[f(x,y)+g(x,y)]dxdy=Rf(x,y)dxdy+Rg(x,y)dxdy\iint_{\mathcal{R}}[f(x, y)+g(x, y)] d x d y=\iint_{\mathcal{R}} f(x, y) d x d y+\iint_{\mathcal{R}} g(x, y) d x d y;

(b) Rcf(x,y)dxdy=cRf(x,y)dxdy\iint_{\mathcal{R}} c f(x, y) d x d y=c \iint_{\mathcal{R}} f(x, y) d x d y, where cc is a constant;

(c) If the region R\mathcal{R} is complicated, the integral can usually be carried out by splitting the region into into two (or more) subregions R1\mathcal{R}_{1} and R2\mathcal{R}_{2}, then:

Rf(x,y)dxdy=R1f(x,y)dxdy+R2f(x,y)dxdy.\iint_{\mathcal{R}} f(x, y) d x d y=\iint_{\mathcal{R}_{1}} f(x, y) d x d y+\iint_{\mathcal{R}_{2}} f(x, y) d x d y .

Example 2.10 Evaluate the following integral:

I=Rxydxdy\mathcal{I}=\iint_{\mathcal{R}} \frac{x}{y} d x d y

where R\mathcal{R} is the shaded region given in Fig. 2.74,

Solution Figure 2.74 shows a semicircle of radius 2 (recall the equation of a circle of radius 2 is given in implicit form by y2+x2=22y^{2}+x^{2}=2^{2} ) and the shaded region, R\mathcal{R} is defined by:

R:1y2,0x4y2.\mathcal{R}: 1 \leq y \leq 2, \quad 0 \leq x \leq \sqrt{4-y^{2}} .

These inequalities may be substituted in Eq. (2.105) to give the following double integral:

Rxydxdy=y=12x=04y2xydxdy.\iint_{\mathcal{R}} \frac{x}{y} d x d y=\int_{y=1}^{2} \int_{x=0}^{\sqrt{4-y^{2}}} \frac{x}{y} d x d y .

We first evaluate the inner integral treating yy as a constant:

x=04y2xydx=[x22y]04y2=4y22y=2yy2\begin{aligned} \int_{x=0}^{\sqrt{4-y^{2}}} \frac{x}{y} d x & =\left[\frac{x^{2}}{2 y}\right]_{0}^{\sqrt{4-y^{2}}} \\ & =\frac{4-y^{2}}{2 y} \\ & =\frac{2}{y}-\frac{y}{2} \end{aligned}

Next, we evaluate the outer integral which gives the result of the double integral:

Rxydxdy=12(2yy2)dy=[2lnyy24]12,=2ln234.\begin{aligned} \iint_{\mathcal{R}} \frac{x}{y} d x d y & =\int_{1}^{2}\left(\frac{2}{y}-\frac{y}{2}\right) d y \\ & =\left[2 \ln y-\frac{y^{2}}{4}\right]_{1}^{2}, \\ & =2 \ln 2-\frac{3}{4} . \end{aligned}

Figure 2.6: Integration over part of a semicircle (see Example 2.10).

Higher order integrals

Triple integrals can be calculated by the same limiting process by subdividing the volume V\mathcal{V} into a mesh of small boxes using planes parallel to the coordinate planes. Similarly to Eq. (2.75) [or Eq. (2.76)], we have:

Vf(x,y,z)dxdydz=x=ab[y=h1(x)h2(x)(z=g1(x,y)g2(x,y)f(x,y,z)dz)dy]dx.\iiint_{\mathcal{V}} f(x, y, z) d x d y d z=\int_{x=a}^{b}\left[\int_{y=h_{1}(x)}^{h_{2}(x)}\left(\int_{z=g_{1}(x, y)}^{g_{2}(x, y)} f(x, y, z) d z\right) d y\right] d x .

Quadruple and higher integrals can be evaluated by similar repetitive techniques.

Change of variables

In single-variable calculus, sometimes we find that it is convenient to express an integral through a change of variable. For example, let us say we want to integrate abf(x)dx\int_{a}^{b} f(x) d x and we find that it is more convenient to do so by changing the xx 's into a different variable, say uu, through x=g(u)x=g(u). Then, by the substitution rule, we find that we can express the integral as:

abf(x)dx=cdf(g(u))dgdudu\int_{a}^{b} f(x) d x=\int_{c}^{d} f(g(u)) \frac{d g}{d u} d u

note of course, that in going from xx 's to uu 's, we also need to change the limits of integration. In Eq. (2.81), we find cc and dd through c=g1(a)c=g^{-1}(a) and d=g1(b)d=g^{-1}(b), respectively. We want to do something similar in the case of double integrals (and higher order integrals). Usually, the reason for changing variables is so that we can obtain an integral that we can carry out with the new variables. Another reason that is related to the area and surface integrals we looked at in the previous sections, is to convert the given region into a nicer region that we can work with. For example, if the given region is an ellipse, we might want to use a change of variable to transform the region into a disk (which is much nicer to deal with) or, if we have a scalene or an obtuse triangle, we might want to transform it into a right-angle triangle. Before we move on, let us do an example in which we use a transformation to change a region given in xyx y-coordinates to uvu v-coordinates.

Example 2.13 Apply the transformation x=u/2x=u / 2 and y=3vy=3 v on the ellipse x2+y236=1x^{2}+\frac{y^{2}}{36}=1 to obtain a new region in uvu v-coordinates.

Solution All we need to do here is plug the transformation into the equation for the ellipse:

(u2)2+136(3v)2=1u24+v24=1u2+v2=4.\begin{aligned} \left(\frac{u}{2}\right)^{2}+\frac{1}{36}(3 v)^{2} & =1 \\ \frac{u^{2}}{4}+\frac{v^{2}}{4} & =1 \\ u^{2}+v^{2} & =4 . \end{aligned}

The new region is given by a disk of radius 2 .

In order to change variables in a double integral we need the Jacobian of the transformation. We use transformations x=g(u,v)x=g(u, v) and y=h(u,v)y=h(u, v) to go from the xyx y-coordinate space to uvu v-coordinate space. Let us relate back to Eq. (2.81); in using the substitution rule to change from xx - to uu-variable space in the single-variable case through the transformation x=g(u)x=g(u), we made use of the change of x=g(u)x=g(u) with uu using dg/dud g / d u. In the case of two variables we need to compute the following quantity:

(x,y)(u,v)=xuxvyuyv\frac{\partial(x, y)}{\partial(u, v)}=\left|\begin{array}{ll} \frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} \\ \frac{\partial y}{\partial u} & \frac{\partial y}{\partial v} \end{array}\right|

Note that Eq. (2.82) is the Jacobian determinant of the transformation x=x= g(u,v)g(u, v) and y=h(u,v)y=h(u, v). Definition 2.7 Suppose we want to integrate f(x,y)f(x, y) over the region R\mathcal{R}. Under the transformation, x=g(u,v)x=g(u, v) and y=h(u,v)y=h(u, v), the region becomes S\mathcal{S} and the integral becomes:

Rf(x,y)dxdy=Sf(x(u,v),y(u,v))Jdudv\iint_{\mathcal{R}} f(x, y) d x d y=\iint_{\mathcal{S}} f(x(u, v), y(u, v))|J| d u d v

where JJ is the Jacobian determinant given by Eq. (2.82). Note that J|J| denotes the absolute value of JJ. Example 2.14 Evaluate the following integral

I=Rx+ydA\mathcal{I}=\iint_{\mathcal{R}} x+y d A

where R\mathcal{R} is the trapezoidal region with vertices (0,0),(5,0),(5/2,5/2)(0,0),(5,0),(5 / 2,5 / 2) and (5/2,5/2)(5 / 2,-5 / 2), using the transformation x=2u+3vx=2 u+3 v and y=2u3vy=2 u-3 v.

Solution Figure 2.7 shows the region R\mathcal{R}. Each one of the equations of the lines (the lines corresponding to different equations are shown in different colours) was found using 2 points connected by the line. Now let us use the transformation on each line. For y=xy=x, we have:

2u3v=2u+3v,v=0.2 u-3 v=2 u+3 v, \rightarrow v=0 .

For y=xy=-x, we have:

2u3v=(2u+3v),u=0.2 u-3 v=-(2 u+3 v), \rightarrow u=0 .

For y=x+5y=-x+5, we have:

2u3v=(2u+3v)+5,u=5/4.2 u-3 v=-(2 u+3 v)+5, \rightarrow u=5 / 4 .

For y=x5y=x-5, we have:

2u3v=(2u+3v)5,v=5/6.2 u-3 v=(2 u+3 v)-5, \rightarrow v=5 / 6 .

The new region, S\mathcal{S} is given by a rectangle whose sides are given by the four equations v=0,u=0,u=5/4v=0, u=0, u=5 / 4 and v=5/6v=5 / 6. It follows that uu and vv are defined within:

0u54,0v56.0 \leq u \leq \frac{5}{4}, \quad 0 \leq v \leq \frac{5}{6} .

We will be using Eq. (2.83) to carry out the double integral so the next step is to compute the Jacobian of the transformation:

J=2323=12J=\left|\begin{array}{cc} 2 & 3 \\ 2 & -3 \end{array}\right|=-12

Finally, the integral is given by:

RdA=05/605/4[(2u+3v)+(2u3v)]12dudv=1254\begin{aligned} \iint_{\mathcal{R}} d A & =\int_{0}^{5 / 6} \int_{0}^{5 / 4}[(2 u+3 v)+(2 u-3 v)]|-12| d u d v \\ & =\frac{125}{4} \end{aligned}

Figure 2.7: The trapezoidal region R\mathcal{R} in Example 2.14.

Consider now a situation in which instead of having a transformation involving x=g(u,v)x=g(u, v) and y=h(u,v)y=h(u, v), we have

u=g(x,y),v=h(x,y).u=g(x, y), \quad v=h(x, y) .

In this case, we define JJ, in an analogous manner to Eq. (2.82):

J=(u,v)(x,y)=uxuyvxvyJ=\frac{\partial(u, v)}{\partial(x, y)}=\left|\begin{array}{ll} \frac{\partial u}{\partial x} & \frac{\partial u}{\partial y} \\ \frac{\partial v}{\partial x} & \frac{\partial v}{\partial y} \end{array}\right|

Then, the transformation from (u,v)(u, v) to (x,y)(x, y) becomes

dudvJdxdyd u d v \rightarrow|J| d x d y

and the transformation from (x,y)(x, y) back (u,v)(u, v) is given by

dxdyJdudvd x d y \rightarrow\left|J^{\prime}\right| d u d v

hence,

J=1J\left|J^{\prime}\right|=\frac{1}{|J|}

Thus, we can now write down something analogous to Definition 2.7, expressed by Eq. (2.83) above:

Rf(x,y)dxdy=Sf(x(u,v),y(u,v))Jdudv=Sf(x(u,v),y(u,v))1Jdudv\begin{aligned} \iint_{\mathcal{R}} f(x, y) d x d y & =\iint_{\mathcal{S}} f(x(u, v), y(u, v))\left|J^{\prime}\right| d u d v \\ & =\iint_{\mathcal{S}} f(x(u, v), y(u, v)) \frac{1}{|J|} d u d v \end{aligned}

As an example, consider the integral

R(x2+y2)exp(x2y2)dxdy\iint_{\mathcal{R}}\left(x^{2}+y^{2}\right) \exp \left(x^{2}-y^{2}\right) d x d y

If u=xyu=x y and v=x2y2v=x^{2}-y^{2}, then JJ is given by

J=uxuyvxvy=yx2x2y=2y22x2\begin{aligned} J & =\left|\begin{array}{cc} \frac{\partial u}{\partial x} & \frac{\partial u}{\partial y} \\ \frac{\partial v}{\partial x} & \frac{\partial v}{\partial y} \end{array}\right|=\left|\begin{array}{cc} y & x \\ 2 x & -2 y \end{array}\right| \\ & =-2 y^{2}-2 x^{2} \end{aligned}

Thus, J=2(x2+y2)|J|=2\left(x^{2}+y^{2}\right) from which it follows that

J=1J=12(x2+y2).\left|J^{\prime}\right|=\frac{1}{|J|}=\frac{1}{2\left(x^{2}+y^{2}\right)} .

The integral can then be expressed as follows

R(x2+y2)exp(x2y2)dxdy=S(x2+y2)exp(x2y2)Jdudv=S(x2+y2)exp(x2y2)1Jdudv=S(x2+y2)exp(v)12(x2+y2)dudv=S12exp(v)dudv,\begin{aligned} \iint_{\mathcal{R}}\left(x^{2}+y^{2}\right) \exp \left(x^{2}-y^{2}\right) d x d y & =\iint_{\mathcal{S}}\left(x^{2}+y^{2}\right) \exp \left(x^{2}-y^{2}\right)\left|J^{\prime}\right| d u d v \\ & =\iint_{\mathcal{S}}\left(x^{2}+y^{2}\right) \exp \left(x^{2}-y^{2}\right) \frac{1}{|J|} d u d v \\ & =\iint_{\mathcal{S}}\left(x^{2}+y^{2}\right) \exp (v) \frac{1}{2\left(x^{2}+y^{2}\right)} d u d v \\ & =\iint_{\mathcal{S}} \frac{1}{2} \exp (v) d u d v, \end{aligned}

where SS is a region in (u,v)(u, v) space.

We can generalise these ideas to changing variables in higher integrals. For example, the 3×33 \times 3 Jacobian determinant of the transformation x=x(u,v,w)x=x(u, v, w), y=y(u,v,w)y=y(u, v, w) and z=z(u,v,w)z=z(u, v, w) is given by:

J=xuxvxwyuyvywzuzvzwJ=\left|\begin{array}{lll} \frac{\partial x}{\partial u} & \frac{\partial x}{\partial v} & \frac{\partial x}{\partial w} \\ \frac{\partial y}{\partial u} & \frac{\partial y}{\partial v} & \frac{\partial y}{\partial w} \\ \frac{\partial z}{\partial u} & \frac{\partial z}{\partial v} & \frac{\partial z}{\partial w} \end{array}\right|

By making use of Eq. (2.95), the variables in the triple integral are changed as follows:

Vf(x,y,z)dxdydz=Wf(x(u,v,w),y(u,v,w),z(u,v,w))Jdudvdw\iiint_{\mathcal{V}} f(x, y, z) d x d y d z=\iiint_{\mathcal{W}} f(x(u, v, w), y(u, v, w), z(u, v, w))|J| d u d v d w

where W\mathcal{W} is the volume in the uvwu v w-space corresponding to the volume V\mathcal{V} in xyzx y z-space.