L9-SurfArea.mws

Calculus IV with Maple
Copyright 2002, Dr. Jack Wagner
j.wagner@intelligentsearch.com

Lesson 9: Surface Area

Topics: T he surface area is calculated five different ways including  the use of the first fundamental form,  the image of the coordinate plane under the map defining the surface and surfaces of rotation.

We compute the area of a surface by dividing it up into small parallelograms, and taking the limit of the sum of their areas as the parallelograms are made progressively smaller.  One way to look at this is to recognize that the area of a parallelogram of sides a  and b  with included angle gamma , is absin(gamma) .  Consider a surface known by a function, phi(u,v)  .  The area of a small rectangle in the u-v plane is Delta*u*Delta*v  .  The area of the image of this rectangle on the surface is

phi[u](u,v)*Delta*u*phi[v](u,v)*Delta*v sin(gamma[p])  , where phi[u](u,v) = diff(phi(u,v),u)   and gamma[p]   is the image of gamma . Then,

phi[u](u,v)*Delta*u*phi[v](u,v)*Delta*v sin(gamma[p])  = phi[u](u,v)*phi[v](u,v) sin(gamma[p]) Delta*u Delta*v  = | phi[u](u,v) x phi[v](u,v) | Delta*u*Delta*v

and the limit of the Riemann  sum will be int(int(abs(phi[u](u,v)*x*phi[v](u,v)),u = u[0] .. u[1]),v = v[0] .. v[1])  .                                                                

Example 9.1

Find the area of the surface defined by:

phi(u,v) = u^2-v^3 ,   { -1 <= u , v <= 1 }

>    restart: with(plots): with(LinearAlgebra): with(VectorCalculus):

>    f := <u, v, u^2-v^3>;

f := Vector(%id = 19236436)

>    plot3d(f, u=-1..1, v=-1..1, axes=framed, color=blue, style=wireframe);

[Maple Plot]

Maple's plotting function makes very concrete the idea of a surface composed of parallelograms that are the images of rectangles in the u-v plane.

>    df[u] := diff(f, u);

df[u] := Vector(%id = 19356984)

>    df[v] := diff(f, v);

df[v] := Vector(%id = 19348744)

>    areaElementVector := df[u] &x df[v];

areaElementVector := Vector(%id = 19357144)

>    dA := Norm( areaElementVector, 2 );

dA := (1+4*abs(u)^2+9*abs(v)^4)^(1/2)

>    dA := simplify( dA ) assuming real;

dA := (1+4*u^2+9*v^4)^(1/2)

>    int(int(dA, u=-1..1), v=-1..1);

int(-1/4*(1+9*v^4)^(1/2)/Pi^(1/2)/(1/(1+9*v^4))^(1/2)*(-8*Pi^(1/2)/(1+9*v^4)+(-4*ln(2)-1-ln(1/(1+9*v^4)))*Pi^(1/2)-1/4*Pi^(1/2)/(1/4+9/4*v^4)*(-9-9*v^4)-2*Pi^(1/2)/(1/4+9/4*v^4)*(5/4+9/4*v^4)^(1/2)-2*P...

If you attempt to explicitly integrate this expression, both you and Maple will fail.  Numerical evaluation is necessary.

>    evalf(%);

7.728998291

Example 9.2

   

Find the surface area of phi(u,v) = sin(u)-cos(v)  , { -1 <= u , v <= 1 }

>    restart: with(plots): with(LinearAlgebra): with(VectorCalculus):

>    f := <u, v, sin(u)-cos(v)>;

f := Vector(%id = 21006696)

>    plot3d(f, u=-1..1, v=-1..1, axes=framed, color=blue, style=wireframe, labels=[u, v, z]);

[Maple Plot]

Now consider two vectors, v[1]  and   v[2]   that form two sides of a parallelogram on a surface. Form a matrix with the vectors as columns.   D = matrix([[v[1], v[2]], [%?, %?]])     Take the product,   D^T  = matrix([[v[1], %?], [v[2], %?]])   matrix([[v[1], v[2]], [%?, %?]])  = matrix([[abs(v[1])^2, v[1]*v[2]], [v[1]*v[2], abs(v[2])^2]])  

Compute the determinant of this product. Det(D^T*D)  = abs(v[1])^2*abs(v[2])^2-(v[1]*v[2])^2  = abs(v[1])^2*abs(v[2])^2-abs(v[1])^2*abs(v[2])^2*cos(v[1],v[2])^2

= abs(v[1])^2*abs(v[2])^2*(1-cos(v[1],v[2])^2)  = abs(v[1])^2*abs(v[2])^2*sin(v[1],v[2])^2  =   abs(v[1]*x*v[2])^2  = dA^2  

Letting   v[1] = f[v]  and v[2] = f[u] , this yields another formula for surface area. A = Int(Int(sqrt(det(J[f]^T*J[f])),u),v)  where J[f]   is the Jacobian matrix of f .

Jacobian

>    J := Jacobian(f, [u, v, w]);

J := Matrix(%id = 22199468)

>    J := DeleteColumn(J, [3]);

J := Matrix(%id = 22457172)

>    S := Transpose(J).J;

S := Matrix(%id = 23179752)

>    Determinant(S);

1+sin(v)^2+cos(u)^2

>    Int(Int(sqrt(Determinant(S)), u=-1..1), v=-1..1);

Int(Int((1+sin(v)^2+cos(u)^2)^(1/2),u = -1 .. 1),v = -1 .. 1)

>    evalf(%);

5.638950021

Now recollect  that the principal parts of the tangent vectors to a surface, F(u,v) , in the coordinate directions, are F[u]   and F[v] .  Also recollect the definitions; E = anglebracket(F[u],F[u]) , F = anglebracket(F[u],F[v]) , G = anglebracket(F[v],F[v]) . Then, from

  abs(v[1])^2*abs(v[2])^2-(v[1]*v[2])^2   =   abs(v[1]*x*v[2])^2  , we obtain yet another formula for surface area,

Int(Int(sqrt(E*G-F^2),u),v)   This is an important relation because the area is expressed in terms that are intrinsic  to the surface.

Example 9.3

Find the surface area defined by:    f(u,v) = [u^2+v^2, sin(u), cos(v)]  , 0 <= u , v <= Pi/2

>    restart: with(plots): with(LinearAlgebra): with(VectorCalculus):

>    f := <u^2+v^2, sin(u), cos(v)>;

f := Vector(%id = 17059984)

>    plot3d(f, u=0..Pi/2, v=0..Pi/2, axes=framed, color=blue, style=wireframe, labels=[u, v, z]);

[Maple Plot]

>    df[u] := diff(f, u);

df[u] := Vector(%id = 17063344)

>    df[v] := diff(f, v);

df[v] := Vector(%id = 17316496)

>    E := df[u].df[u];

E := 4*u^2+cos(u)^2

>    F := df[v].df[u];

F := 4*u*v

>    G := df[v].df[v];

G := 4*v^2+sin(v)^2

>    Int(Int(sqrt(E*G-F^2), u=0..Pi/2), v=0..Pi/2);

Int(Int(((4*u^2+cos(u)^2)*(4*v^2+sin(v)^2)-16*u^2*v^2)^(1/2),u = 0 .. 1/2*Pi),v = 0 .. 1/2*Pi)

>    evalf(%);

4.103609734

Example 9.4

Consider the surface of revolution resulting from revolving the curve whose parametric equation is f(t) = [x(t), y(t)]  , around the x axis.

          F(t,theta) = [x(t), y(t)*cos(theta), y(t)*sin(theta)]  

We wish to calculate its surface area.

>    restart: with(plots): with(LinearAlgebra): with(VectorCalculus):

>    f := <x(t), y(t)>;

f := Vector(%id = 19114936)

>    F := <f[1], f[2]*cos(theta), f[2]*sin(theta)>;

F := Vector(%id = 2580244)

>    dF[t] := diff(F, t);

dF[t] := Vector(%id = 2709136)

>    dF[theta] := diff(F, theta);


dF[theta] := Vector(%id = 19166424)

>    XP := dF[t] &x dF[theta];

XP := Vector(%id = 2723572)

>    Nsq := simplify(XP.XP, trig);

Nsq := y(t)^2*(diff(y(t),t)^2+diff(x(t),t)^2)

>    dA := sqrt(factor(Nsq), symbolic);

dA := y(t)*(diff(y(t),t)^2+diff(x(t),t)^2)^(1/2)

A very pretty result.  Continuing in the same spirit;

>    df[t] := diff(f, t);

df[t] := Vector(%id = 17040540)

>    ds := Norm(df[t], 2);

ds := (abs(diff(x(t),t))^2+abs(diff(y(t),t))^2)^(1/2)

From which we conclude that dA = y(t)*ds  .  Therefore, we find the area as,

>    Area := Int(Int(y(t)*ds, t=a..b), theta=0..2*Pi);

Area := Int(Int(y(t)*(abs(diff(x(t),t))^2+abs(diff(y(t),t))^2)^(1/2),t = a .. b),theta = 0 .. 2*Pi)

>    value(%);

2*int(y(t)*(abs(diff(x(t),t))^2+abs(diff(y(t),t))^2)^(1/2),t = a .. b)*Pi

A result familiar from the calculus of a single variable.

Example 9. 5

 

Find the area of the surface formed by rotating the graph of   f(t) = [sqrt(t)/(1+t), sin(t)]  ,   t = 0 .. 10

>    restart: with(plots): with(LinearAlgebra): with(VectorCalculus):

>    f := <sqrt(t)/(1+t), sin(t)>;

f := Vector(%id = 2847868)

>    plot([f[1], f[2], t=0..10]);

[Maple Plot]

Here we see one of Maple's advantages.  By plotting the curve before we start, we immediately know that there is a problem of self intersection when t>1.0.  To find the area of such a solid of rotation we need to break it up into simple (non self intersecting) surfaces.  We will separately compute the area of the surface formed by rotating the curve around the x axis from t=0 to t=1 and from t=1 to t=10.

>    plot([f[1], f[2], t=0..1]);

[Maple Plot]

>    plot([f[1], f[2], t=1..10]);

[Maple Plot]

>    F := [f[1], f[2]*cos(theta), f[2]*sin(theta)];

F := [t^(1/2)/(t+1), sin(t)*cos(theta), sin(t)*sin(theta)]

>    plot3d(F, t=0..10, theta=0..2*Pi, axes=normal, grid=[50,50], orientation=[80,60]);

[Maple Plot]

>    df[t] := diff(f, t);

df[t] := Vector(%id = 17364640)

>    ds[t] := Norm(df[t], 2);

ds[t] := (abs(1/(2*t^(1/2)*(t+1))-t^(1/2)/(t+1)^2)^2+abs(cos(t))^2)^(1/2)

>    2*Pi*Int(f[2]*ds[t], t=0..1);

2*Pi*Int(sin(t)*(abs(1/(2*t^(1/2)*(t+1))-t^(1/2)/(t+1)^2)^2+abs(cos(t))^2)^(1/2),t = 0 .. 1)

>    A[1] := evalf(%);

A[1] := 2.325193746

>    A[2] := evalf(2*Pi*Int(f[2]*ds[t], t=1..10));

A[2] := 3.146686220

>    Area := A[1]+A[2];

Area := 5.471879966

           From the equation, Area = int(int(abs(phi[u](u,v)*x*phi[v](u,v)),u = u[0] .. u[1]),v = v[0] .. v[1])   we may derive yet another expression for area.  Let a surface be known by an equation of the form, z = f(x,y)  or phi(x,y) = [x, y, f(x,y)]   

A = Int(Int(phi[x]*x*phi[y],x),y)  = Int(Int(abs([1, 0, f[x]]*x*[0, 1, f[y]]),x),y)  = Int(Int(sqrt(1+f[x]^2+f[y]^2),x),y)  = Int(Int(sqrt(1+abs(grad(f))^2),x),y)

Example 9. 6

>    restart: with(plots):with(LinearAlgebra): with(VectorCalculus):

>    Z := log(x+y);

Z := ln(x+y)

>    p1 := implicitplot3d({x=.5, x=1.5, y=.5, y=1.5}, x=.5..1.5, y=.5..1.5, z=
-1..1.5, axes=framed, color=red, style=wireframe):

>    p2 := plot3d(Z, x=0..2, y=0..2, axes=framed, labels=[x, y, z], color=blue):

>    display(p1, p2);

[Maple Plot]

>    gZ := Gradient(Z, [x, y]);

gZ := Vector(%id = 17152400)

>    dA := sqrt(1+gZ.gZ);

dA := (2/(x+y)^2+1)^(1/2)

>    evalf(Int(Int(dA, y=.5..1.5), x=0.5..1.5));

1.250768861

We now have five expressions for surface area. Unfortunately, most surfaces yield integrals which are difficult or impossible to evaluate in closed or series form. Even numerical evaluation may be extraordinarily difficult. However, the use of the definition of the definite integral may succeed when all else fails. We construct upper and lower Riemann sums and examine a sequence of values for convergence.

Example 9.7

Find the area of the surface described by  f(x, y)=[sin(x), sin(y), sin(x+y)].

>    restart: with(plots): with(LinearAlgebra): with(VectorCalculus):

>    f := <sin(x), sin(y), sin(x+y)>;

f := Vector(%id = 19597768)

>    plot3d(f, x=-Pi..Pi, y=-Pi..Pi, axes=framed, grid=[70,70], style=patchnogrid, lightmodel=light2);

[Maple Plot]

>    J := Jacobian(f, [x, y, z]);

J := Matrix(%id = 19618088)

>    J := DeleteColumn(J, [3]);

J := Matrix(%id = 19618912)

>    dA := sqrt(Determinant(Transpose(J).J));

dA := (cos(x)^2*cos(y)^2+cos(x)^2*cos(x+y)^2+cos(x+y)^2*cos(y)^2)^(1/2)

>    Int(Int(dA, x=0..2*Pi), y=0..2*Pi);

Int(Int((cos(x)^2*cos(y)^2+cos(x)^2*cos(x+y)^2+cos(x+y)^2*cos(y)^2)^(1/2),x = 0 .. 2*Pi),y = 0 .. 2*Pi)

Maple has difficulty  integrating this expression or even producing a numerical answer.
First,  let's see what dA looks like.

>    plot3d(dA, x=0..2*Pi, y=0..2*Pi, axes=framed, color=aquamarine);

[Maple Plot]

Noting the symmetry of the problem we need only evaluate the integral for 0 <= x , y <= Pi .    

We create Reimann sums using intervals over x and y of   Pi/(10*s)  where s increases from 1 to 8.  This gives a progression from 100 to 6400 cells, each with an area of Pi^2/((10*s)^2)   over which to evaluate and sum dA.  First the lower Reimann sums.

>    for s from 1 to 8 do
  F := (k, t)->subs({x=k*Pi/(10*s), y=t*Pi/(10*s)}, dA):
  A||s := evalf((Pi/(10*s))^2*sum(sum(F(p, q), p=0..10*s-1), q=0..10*s-1)):
  print(A||s);
end do:

7.408455386

7.427471278

7.429353777

7.429810706

7.429973260

7.430045039

7.430081592

7.430102033

           Now the upper Reimann sums.

>    for s from 1 to 8 do
  F := (k, t)->subs({x=k*Pi/(10*s), y=t*Pi/(10*s)}, dA):
  A||s := evalf((Pi/(10*s))^2*sum(sum(F(p, q), p=1..10*s), q=1..10*s)):
  print(A||s)
end do:

7.408455387

7.427471282

7.429353778

7.429810712

7.429973256

7.430045059

7.430081585

7.430102031

Convergence of both sequences to 7.43 seems apparent.

>    Area := 4*7.43;

Area := 29.72

Practice

1. Find the area of the plane defined by
2*x-3*y+4*z = 10  enclosed in the elliptic cylinder over,
 .  
y^2/4+x^2/5 = 20

2. Find the area of the surface defined by
z = exp(x+y)  , that lies over the lozenge
 defined by:  
{y = x+1/2, y = x-1/2, y = -x+1/2, y = -x-1/2}
3. Find the area of the surface obtained by rotating, around the x axis, the curve
parametrized by:  
f(t) = [t/sqrt(1+t^2), t^2/sqrt(1+t)]

4. Find the area of the surface parametrized by  
f(t) = [t*cos(theta), t*sin(theta), t^2] , and
enclosed in the unit sphere centered at the origin.

5. Find the surface area of the surface parameterized by:
[(phi+2*cos(theta))*cos(phi), (phi+2*cos(theta))*sin(phi), 2*sin(theta)]

     phi = Pi .. 4*Pi ,   theta = 0 .. 2*Pi