## Surface Integrals

### Surface Area and Surface Integrals

In this notebook, we will study integrals over parametrized surfaces. Recall that a surface is an object in 3-dimensional space that locally looks like a plane.  In other words, the surface is given by a vector-valued function P (encoding the x, y, and z coordinates of points on the surface) depending on two parameters, say u and v.  The key idea behind all the computations is summarized in the formula . Since P is vector-valued,  and   are vectors, and their cross-product is a vector with two important properties:  it is normal to the surface parametrized by P, and its length gives the scale factor between area in the parameter space and the corresponding area on the surface. Thus, taking lengths on both sides of the above formula above gives , which enables us to compute the area of a parametrized surface, or to integrate any function along the surface with respect to surface area.

## Example 1:

To see how this works, let us compute the surface area of the ellipsoid whose equation is . We may parametrize this ellipsoid as we have done in the past, using modified spherical coordinates:

syms x y z p t

ellipsoid=[2*sin(p)*cos(t),3*sin(p)*sin(t),cos(p)]

ellipsoid =

[ 2*sin(p)*cos(t), 3*sin(p)*sin(t),          cos(p)]

To check that this really is a parametrization, we verify the original equation:

ans =

1

And we can also draw a picture with ezsurf:

This is as it should be.  Now we compute the surface area factor:

surffactor =

(-(5*cos(t)^2*cos(p)^2-32*cos(p)^2-5*cos(t)^2-4)*sin(p)^2)^(1/2)

This is going to be too complicated to integrate symbolically, so we do a numerical integration, using the numerical integration toolbox.

area =

48.8822

To integrate a function, such as , over the surface, we must express it in terms of the parameters and insert the result as a factor in the integrand.

func =

4*sin(p)^2*cos(t)^2+2*cos(p)^2

integral =

100.5002

## Example 2:

Here's another example: suppose we want the surface area of the portion of the cone z2  = x2 + y2  between z = 0 and z = 4.  The equation of the cone in cylindrical coordinates is just z = r, so we can take as our parameters r and t (representing q).

cone =

[ r*cos(t), r*sin(t),        r]

The picture is:

conesurffactor =

2^(1/2)*csgn(r)*r

Since r is positive, we can ignore the sign csgn(r), and the surface area is

conesurf =

16*2^(1/2)*pi

This is right since we can also "unwrap" the cone to a sector of a circular disk, with radius 4 and outer circumference 8p (compared to 8pfor the whole circle), so the surface area is p(4)2 / , or indeed 16p.

## (a)Compute the surface area of the portion of the paraboloid z  = 9 - x2 - y2  that lies above the xy-plane.

(b) Evaluate , where  is the surface whose area you found in part (a).

### Flux Integrals

The formula   also allows us to compute flux integrals over parametrized surfaces.

## Example 3:

Let us compute  where the integral is taken over the ellipsoid of Example 1, F  is the vector field defined by the following input line, and n is the outward normal to the ellipsoid.

F =

[ x, y, z]

ndS =

[                                 3*sin(p)^2*cos(t),                                 2*sin(p)^2*sin(t), 6*sin(p)*cos(t)^2*cos(p)+6*sin(p)*sin(t)^2*cos(p)]

We can check that we have the outward normal by setting p= and t=0, giving us the point of the ellipsoid that is on the positive x-axis. The outward normal should point in the positive x direction.

ans =

3.0000         0    0.0000

Before we can evaluate the integral, we must evaluate F in terms of the parameters.

Fpar =

[ 2*sin(p)*cos(t), 3*sin(p)*sin(t),          cos(p)]

flux =

24*pi

## Problem 2:Evaluate , where is the surface of  Problem 1 and G is defined by the input line below.

G =

[ 2*x,   y, z-2]

## Example 4: The Divergence Theorem predicts that we can also evaluate the integral in Example 3 by integrating the divergence of the vector field F over the solid region bounded by the ellipsoid. But one caution: the Divergence Theorem only applies to closed surfaces.  That's OK here since the ellipsoid is such a surface.  To facilitate the calculation we have written a short M-file div.m.  Although the computation of the divergence is trivial in the present case, we illustrate the syntax:

divF =

3

We must now parametrize the solid ellipsoid. We can do this most easily by adding a radial factor r that takes values between 0 and 1.  Note that since ellipsoid is a vector, all we have to do is "scalar multiply" it by r:

syms r

solid=r*ellipsoid

solid =

[ 2*r*sin(p)*cos(t), 3*r*sin(p)*sin(t),          r*cos(p)]

Recall that to integrate in the coordinates r, p, and t, we are going to have to insert a scale factor, the absolute value of the determinant of the Jacobian matrix of the change of variables.  As we indicated is last week's session, it's usually easiest to leave off the absolute value at first, and then change the sign if the scale factor comes out negative.

scale =

6*sin(p)*r^2

That's clearly positive, and it's simple enough to make a symbolic integration feasible.

24*pi

This agrees with our calculation of the flux.  The numerical value is:

ans =

75.3982

## Problem 3: With G and  as in Problems 1 and 2, integrate the divergence of G over the solid region bounded above by and below by the xy-plane. Why is your answer not the same as the answer to Problem 2?

1. Check the accuracy of the computation in Example 1 above by repeating the integration over the ellipsoid, using x and y as the parameters and solving for z as a function of x and y.  (Hint: since there are two solutions for z, but the surface is symmetric, just integrate over the top half of the ellipsoid and then double the result.)

2. Let  f = 2x2 + 3y2 +6z2  . Compute the flux of the gradient of f through the ellipsoid

x2 + 4y2 + 9z2 = 36, both directly and by using the Divergence Theorem.

3. Let T be the torus with equation z2 + (r-2)2 = 1 in cylindrical coordinates.  Parametrize the torus and use the answer to compute the surface area.

4. Let T be the same torus as in Additional Problem 3 just above.  Compute the volume enclosed by the torus two ways: by triple integration, and by computing the flux of the vector field F = (x, y, z) through T and by using the Divergence Theorem.  Check that the results agree, and also that they agree with the prediction of Pappus's Theorem (Ellis and Gulick, p. 531): the volume of a solid obtained by rotating a region R in the x-z plane around the z-axis is the area of R times the circumference of the circle traced out by the center of mass of R as it rotates around the z-axis.