M233F05ES4R8.mws

Math 233  Fall 2005 Final Exam

 

1. The vector  `<`*a, 1, `>`  is tangent to the surface   x^2-y^8-3*z^4 = 0  at the point (2,1,1).  
     What is  
a ?

a)  -4           b)  -3             c)   -2          d)  -1           e)  0                    

f)   1            g)   2              h)   3           i)  4             j)   5

Solution: (j)

> F := (x,y,z) -> x^2-y^8-3*z^4;

F := proc (x, y, z) options operator, arrow; x^2-y^8-3*z^4 end proc

> v := grad(F(x,y,z),[x,y,z]);

v := VECTOR([2*x, -8*y^7, -12*z^3])

> NORMAL := subs({x=2,y=1,z=1}, evalm(v) );  #Normal to surface

NORMAL := VECTOR([4, -8, -12])

> solve(dotprod(NORMAL,[a,1,1])=0,a);
#Tangent vector is perpendicular to Normal vector

5

2.  For t <= 1 a particle follows the curve C  that is parameterized by proc (t) options operator, arrow; [t, t^2, t^3] end proc .  
For
1 < t  the particle follows the line that is tangent to C  at the point (1,1,1).  
The linear part of the trajectory carries the particle through the point (a, 7, c).  

What is  c - a ?

a)  1          b)  2          c)  3           d)  4             e)  5         
f)   6          g)  7          h) 8             i)  9             j)  10
     

Solution:  (f)

> r1 := t -> [t,t^2,t^3];

r1 := proc (t) options operator, arrow; [t, t^2, t^3] end proc

> r2 := s -> [seq(r1(1)[j]+s*map(z->subs(t=1,diff(z,t)), r1(t))[j],j=1..3)];

Warning, `j` in call to `seq` is not local

r2 := proc (s) options operator, arrow; [seq(r1(1)[j]+s*map(proc (z) options operator, arrow; subs(t = 1, diff(z, t)) end proc, r1(t))[j], j = 1 .. 3)] end proc

> s0 := solve(r2(s)[2] = 7, s);

s0 := 3

> r2(s0)[3] - r2(s0)[1];

6

3.  A particle's position in space at time  t  is   r(t) .  At time  t = 13  the particle is at point (1,2,3)
   and has velocity
`<`*4, 6, 7*`>` .   Calculate  g*`'`(13) if   f(x, y, z) = 6*x^2-y^2-3*z  
   and
g(t) = f(r(t)) .

a)  1            b)  2            c)   3         d)  4           e)  5
                    

f)   6           g)  72           h)   8         i)  9            j)  10

Solution: (c)

> f := (x,y,z) -> 6*x^2-y^2-3*z;

f := proc (x, y, z) options operator, arrow; 6*x^2-y^2-3*z end proc

> u := subs({x=1,y=2,z=3},grad(f(x,y,z),[x,y,z]));    

u := VECTOR([12, -4, -3])

> v := vector([4,6,7]);

v := VECTOR([4, 6, 7])

> dotprod(u,v);

3

4.  A plane passes through the three points  (1, 0, 1),  (0, 2, 1),  and (2, 3, 2).

Its equation is   Ax + y + Cz = D.   What is   D?

a) -4            b) -3           c)  -2         d) -1          e) 0  
f)   1            g)   2          h)  3           i)  4           j)  5

Solution:  (b)

> OP := vector([1,0,1]);
OQ := vector([0,2,1]);  

OR := vector([2,3,2]);

OP := VECTOR([1, 0, 1])

OQ := VECTOR([0, 2, 1])

OR := VECTOR([2, 3, 2])

> v := evalm(OP-OQ);

v := VECTOR([1, -2, 0])

> w := evalm(OR-OQ);

w := VECTOR([2, 1, 1])

> cp := crossprod(v,w);

cp := VECTOR([-2, -1, 5])

> cp := map(z->-z,cp);

cp := VECTOR([2, 1, -5])

> eqn1 := cp[1]*(x-OP[1])+cp[2]*(y-OP[2])+cp[3]*(z-OP[3])=0;

eqn1 := 2*x+3+y-5*z = 0

> eqn2 := map(u->u-3, eqn1);

eqn2 := 2*x+y-5*z = -3

> D = rhs(eqn2);

D = -3

5. Let N  be the number of saddle points that the function  f(x, y) = x^2*y-12*x-x*y^2  has.
Let
[x[1], y[1]], [x[2], y[2]], `...`, [x[N], y[N]]  denote the saddle points.   

What is     
abs(y[1])+abs(y[2])+`...`+abs(y[N]) ?   

Note: If you determine that
N = 0 , then answer  0  because,  by convention, an empty sum is 0.  

a)  0             b)  1           c)   2          d)  3          e) 4  
f)   5            g)   6           h)  7           i)  8           j)  9

Solution: (e)

> f := (x,y) -> x^2*y-12*x-x*y^2:

> solve({diff(f(x,y),x) = 0 , diff(f(x,y),y) = 0}, {x,y} ); #step-by-step below

{y = 2*RootOf(_Z^2+3), x = 0}, {x = 4, y = 2}, {y = -2, x = -4}

> solns := [[4,2],[-4,-2]];

solns := [[4, 2], [-4, -2]]

> discr := (x,y) -> subs( {u=x,v=y} , diff(f(u,v),u$2)*diff(f(u,v),v$2)-(diff(f(u,v),u,v))^2);

discr := proc (x, y) options operator, arrow; subs({u = x, v = y}, (diff(f(u, v), `$`(u, 2)))*(diff(f(u, v), `$`(v, 2)))-(diff(f(u, v), u, v))^2) end proc

> discr(x,y);

-4*x*y-(2*x-2*y)^2

> for n from 1 to 2 do
discr(op(solns[n]));

od;

-48

-48

> abs(solns[1][2])+abs(solns[2][2]);

4

---------------------------------------------------------------

Step-by-step location of critical points

> eqn[1] := diff(f(x,y),x) = 0 ;
eqn[2] := diff(f(x,y),y) = 0;

eqn[1] := 2*x*y-12-y^2 = 0

eqn[2] := x^2-2*x*y = 0

From the first equation, observe that there is no real solution for y when x = 0. We may therefore divide by x.

> eqn[3] := map(z -> simplify(z/x), eqn[2]);

eqn[3] := x-2*y = 0

> eqn[4] := subs( x = 2*y , eqn[1] );

eqn[4] := 3*y^2-12 = 0

> solve(eqn[4],y);

2, -2

6. A particle is accelerating so that its speed at time t  is equal to t^2+1 .  At time t = 1  the
    acceleration of the particle is  8
i + 6j + 2k.  What is the curvature of the particle's path at t = 1 ?

a)  1/4             b)  1/2             c) 3/4            d) 1                e)  5/4

f)   3/2            g)  7/4              h) 2               i)  9/4             j)  5/2    

Solution: (j)

> a := [8,6,2];  #acceleration at t = 1

a := [8, 6, 2]

> speed := t -> t^2+1;

speed := proc (t) options operator, arrow; t^2+1 end proc

> a_T := t -> D(speed)(t);

a_T := proc (t) options operator, arrow; 2*t end proc

> a_N := t -> kappa(t) *speed(t)^2;

a_N := proc (t) options operator, arrow; kappa(t)*speed(t)^2 end proc

> eqn := a_T(1)^2 + a_N(1)^2 = a[1]^2+a[2]^2+a[3]^2;

eqn := 4+16*kappa(1)^2 = 104

> kappa(1) = [solve(eqn,kappa(1))];  #pick positive root

kappa(1) = [5/2, (-5)/2]

7.  By changing the order of integration, express

          Int(Int(psi(x, y), y = 0 .. 8*x), x = 0 .. 1)+Int(Int(psi(x, y), y = 0 .. 9-x^2), x = 1 .. 3)

 in the form   
    Int(Int(psi(x, y), x = f(y) .. g(y)), y = c .. d) .  What is  d+f(16)+g(5) ?


a)  10          b)  11          c)  12           d)  13             e)  14         

f)   15          g)  16          h) 17            i)  18              j)  19
     

Solution: (c)

> eqn := Int(Int(13*x+17*y,y=0..8*x),x=0..1)+Int(Int(13*x+17*y,y=0..9-x^2),x=1..3) = Int(Int(13*x+17*y,x=y/8..sqrt(9-y)),y=0..8);  Test proposed formula with weird function

eqn := Int(Int(13*x+17*y, y = 0 .. 8*x), x = 0 .. 1)+Int(Int(13*x+17*y, y = 0 .. 9-x^2), x = 1 .. 3) = Int(Int(13*x+17*y, x = 1/8*y .. (9-y)^(1/2)), y = 0 .. 8)

> c := 0;  d := 8; f := y -> y/8; g := y -> sqrt(9-y);

c := 0

d := 8

f := proc (y) options operator, arrow; 1/8*y end proc

g := proc (y) options operator, arrow; sqrt(9-y) end proc

> d + f(16) + g(5);

12

8. If   x^3+y^2-z-2*x*z^2 = -16   then calculate   diff(z, x)   at     ``(1, 2, 3) .

a) -27/13             b) -23/13             c)  -19/13           d) -15/13            e) -11/13               
f)  -7/13               g) -3/13               h)  1/13               i)  5/13               j) 9/13

Solution: (d)

By implicit differentiation:

> eqn1 := x^3 + y^2 - z - 2*x*z^2 = -16;

eqn1 := x^3+y^2-z-2*x*z^2 = -16

> eqn2 := subs(z = z(x,y), eqn1);

eqn2 := x^3+y^2-z(x, y)-2*x*z(x, y)^2 = -16

> eqn3 := map( u -> diff(u,x), eqn2);

eqn3 := 3*x^2-(diff(z(x, y), x))-2*z(x, y)^2-4*x*z(x, y)*(diff(z(x, y), x)) = 0

> eqn4 := diff(z(x,y),x) = solve(eqn3 , diff(z(x,y),x));

eqn4 := diff(z(x, y), x) = (3*x^2-2*z(x, y)^2)/(1+4*x*z(x, y))

> eqn5 := lhs(eqn4) = subs(z(x,y) = z, rhs(eqn4));

eqn5 := diff(z(x, y), x) = (3*x^2-2*z^2)/(1+4*x*z)

> subs({x=1, y=2, z=3} , rhs(eqn5));

(-15)/13

Alternatively:

> F := (x,y,z) -> x^3 + y^2 - z - 2*x*z^2;

F := proc (x, y, z) options operator, arrow; x^3+y^2-z-2*x*z^2 end proc

> expr := -diff(F(x,y,z),x)/diff(F(x,y,z),z);

expr := -(3*x^2-2*z^2)/(-1-4*x*z)

> subs({x=1, y=2, z=3} , expr);

(-15)/13

9.  Calculate   int(2*y*dx+x*dy+2*z, z = C .. ``) .   where  C   is the oriented curve parameterized by  
    
r(t) = `<`*cos(t), sin(t), sqrt(t)*`>`               0 <= t `` <= 2*Pi

      

a)  0                b)  Pi/4               c)  Pi/2                d)  Pi                 e) 2*Pi     
f)   
Pi/3             g)   Pi/6               h)  2*Pi/3             i)  3*Pi/2              j)  3*Pi/4    

Solution: (d)

> r := t -> [cos(t),sin(t),sqrt(t)];

r := proc (t) options operator, arrow; [cos(t), sin(t), sqrt(t)] end proc

> Int( 2*r(t)[2]*diff(r(t)[1],t) +  r(t)[1]*diff(r(t)[2],t)+ 2*r(t)[3]*diff(r(t)[3],t),t=0..2*Pi);

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

> value(");

Pi

10.  The vector field  F( x , y ) = (y + 1) i + (x + 2) j  is the gradient field of some
scalar-valued function
U(x,y)   with   U( 1 , -1 )  = 2.    Calculate    U( 2 , 2 ).

a)  2              b)  4             c)   5            d)  8          e)  10                     

f)  12            g)  14            h)  16           i) 18          j)   20  

Solution: (g)

> M := y+1;   N := x + 2;

M := y+1

N := x+2

> testeq(diff(M,y) = diff(N,x)); #F is conservative

true

> eqn1 := U(x,y) = int(M,x) + g(y);

eqn1 := U(x, y) = (y+1)*x+g(y)

> eqn2 := N = diff(rhs(eqn1),y);

eqn2 := x+2 = x+(diff(g(y), y))

> eqn3 := diff(g(y),y) = solve(eqn2,diff(g(y),y));

eqn3 := diff(g(y), y) = 2

> eqn4 := g(y) = int(rhs(eqn3),y) + C;

eqn4 := g(y) = 2*y+C

> eqn5 := subs(eqn4,eqn1);

eqn5 := U(x, y) = (y+1)*x+2*y+C

> eqn6 := C = solve(2 = subs({x=1,y=-1}, rhs(eqn5)), C);

eqn6 := C = 4

> eqn7 := subs(eqn6, eqn5);

eqn7 := U(x, y) = (y+1)*x+2*y+4

> subs( {x=2,y=2}, rhs(eqn7) );

14

11.  Calculate   int((y+1)*dx+(x+2), y = C .. ``)    where  C   is the oriented curve parameterized by the
vector-valued function    
r(t) = [sqrt(t/2)*` `, `  `*t*(t^3+6)/(t^2+24)] ,    0 <= t `` <= 2 .   

(Although this integration can be done independently of problem 10, you may wish to note

that the integrand is constructed using the vector field of problem 10.)


 a)
 0             b)  1             c)   2          d)  3           e)  4  
  f )  5            g)  6             h)  7            i) 8             j)  9
 

Solution: (e)

> r := (t) -> [sqrt(t/2),t*(t^3+6)/(t^2+24)]:

> r(0); r(2);

[0, 0]

[1, 1]

> subs( {x=1,y=1} , (y+1)*x+2*y+4 ) - subs( {x=0,y=0} , (y+1)*x+2*y+4 );

4

12.

     [Inserted Image]

   

     (Answers a through d signify that only one of the four sets is simply connected.)     

Solution: (g)

13. Consider a vector field

   [Inserted Image]

in the region  G  that is shown. (G is a subset of the plane  z = 0 in xyz-space.)  Suppose that  F  is twice-continuously differentiable.  

               

Consider the following properties that   F   may have.

I )     F   is path-independent.

II )    F   is the gradient of a scalar-valued function.

III )   curl( F ) = 0  

IV )   [Inserted Image]

Write  "A implies B"   as   "A => B".


At least one
of the implications stated in the answers is not correct.
Choose  
any
  incorrect statement as your answer.

a)  I => II           b)  II => III            c)   III => IV         d)  IV => I             e)  I => III                    
f)  II => I            g)  I => IV             
h)  II => IV           i)  IV => III            j)  IV => II

Solution: (c)

Properties I, II, and IV are equivalent. They all imply property III. However, G is not simply connected so

property III does not imply any of the others.

14.  Calculate Int(-y^3*dx+x^3, y = C .. ``)  where C is the unit circle traversed counter-clockwise.
a)  
0                b)  Pi/4               c)  Pi/2                d)  Pi                 e) 2*Pi     
f)   
Pi/3             g)   Pi/6               h)  2*Pi/3             i)  3*Pi/2              j)  3*Pi/4    

Solution: (i)

> r := t -> [cos(t),sin(t)]:

> Int( -r(t)[2]^3*diff(r(t)[1],t) + r(t)[1]^3*diff(r(t)[2],t),t=0..2*Pi);

Int(sin(t)^4+cos(t)^4, t = 0 .. 2*Pi)

> value(");

3/2*Pi

More easily, using Green's Theorem:

> Int(Int(r*(diff(x^3,x)-diff(-y^3,y)),r=0..1),theta=0..2*Pi);

Int(Int(r*(3*x^2+3*y^2), r = 0 .. 1), theta = 0 .. 2*Pi)

> subs(x^2=r^2-y^2,");

Int(Int(3*r^3, r = 0 .. 1), theta = 0 .. 2*Pi)

> value(");

3/2*Pi

15. Let  G  be a solid region in space. Suppose that the boundary  S  of  G  is an orientable closed surface with outward unit normal n. Vector calculus tells us that

        
[Inserted Image]

for some function   f.  If  

        [Inserted Image]

then what is  f(1,2,3) ?

a)  0           b)  1             c)   2          d)  3           e)  4                     

f)  5            g)  6             h)  7           i) 8             j)  9  

Solution: (g)

> with(linalg):

> diverge([x*y,2*y*z,x^2+x^2*y^3-y*z],[x,y,z]);

2*z

> subs({x=1,y=2,z=3},");

6

16.  Suppose that   F (x, y, z)  = 2z i - xz j +  y^2 k . Let  G (x, y, z)  = x curl(F )(x,y,z) .
Calculate
div(G)(x, y, z).

a)  x + y            b)  x + 2y          c)  2x + y          d)  x + z           e)  x + 2z

f)   2x + z          g)   y + z            h)  y + 2z          i)  2y + z           j)  
x + y + z

Solution: (b)

> F := (x,y,z) -> [2*z, -x*z, y^2];

F := proc (x, y, z) options operator, arrow; [2*z, -x*z, y^2] end proc

> expr := curl(F(x,y,z), [x,y,z] );

expr := VECTOR([2*y+x, 2, -z])

> G := (x,y,z) -> map(w ->x*w, curl(F(x,y,z), [x,y,z] ));

G := proc (x, y, z) options operator, arrow; map(proc (w) options operator, arrow; x*w end proc, curl(F(x, y, z), [x, y, z])) end proc

> G(x,y,z);

VECTOR([x*(2*y+x), 2*x, -x*z])

> diverge(G(x,y,z),[x,y,z]);

2*y+x

17.

[Inserted Image]


(Orient
 S  by the unit normal  n  that is upward at the point for
which  
u =1/2 and v = 1/2.)

a)  2/3           b)  5/6            c)  1            d)  4/3         e)  5/3
f)   2             g)   7/6            h)  3/2         i)  8/3           j)  
3

Solution: (a)

> with(linalg):

> r := (u,v) -> [2*u+v, u+v^2,u^2+v];

r := proc (u, v) options operator, arrow; [2*u+v, u+v^2, u^2+v] end proc

> F := (x,y,z) -> [0,0,x-z];

F := proc (x, y, z) options operator, arrow; [0, 0, x-z] end proc

> F(op(r(u,v)));

[0, 0, 2*u-u^2]

> r_u := (u,v) -> subs({s=u,t=v},map(z->diff(z,s),r(s,t)));

r_u := proc (u, v) options operator, arrow; subs({t = v, s = u}, map(proc (z) options operator, arrow; diff(z, s) end proc, r(s, t))) end proc

> r_v :=  (u,v) -> subs({s=u,t=v},map(z->diff(z,t),r(s,t)));

r_v := proc (u, v) options operator, arrow; subs({t = v, s = u}, map(proc (z) options operator, arrow; diff(z, t) end proc, r(s, t))) end proc

> N := (u,v) -> convert(crossprod(r_u(u,v),r_v(u,v)),list):  
N(u,v)[3];

N(1/2,1/2);

dotprod(F(op(r(u,v))), N(u,v));

4*v-1

[0, -1, 1]

(2*u-u^2)*(4*v-1)

> int(int(dotprod(F(op(r(u,v))), N(u,v)),u=0..1),v=0..1);

2/3

18. Let S  be the surface formed by the four triangular sides of the pyramid whose vertex is at (0,0,1) and whose base is the square with vertices (1,1,0), (-1,1,0), (-1,-1,0), and (1,-1,0).

         

If  n  denotes the outward pointing unit normal on  S  then calculate

         

a)  0             b)  2             c)  4            d)  6           e) 8
f)   10          g)   12          h)  14           i)  16          j)  20

 

Solution: (c)

Using Stokes's Theorem the required surface integral can be calculated by the line integral

       Int(z*dx+x*dy+y^3, z)


integrated counterclockwise over the boundary of the square in the xy plane. Since   
z = dz = 0  on all four sides and dy = 0 on the two sides parallel to the x-axis we have

> int(1,y=-1..1)+int(-1,y=1..-1);

4

19.
[Inserted Image]

a)  0                  b)  Pi/4               c)  Pi/2              d)  Pi                e) 2*Pi     
f)   
-Pi/3           g)   -Pi/2           h)  -Pi            i)  -3*Pi/2          j)  -2*Pi    

Solution: (h)

Directly:


> with(linalg):

> F := vector([x,0,-z]);

F := VECTOR([x, 0, -z])

> surface_eqn := z + x^2 + y^2 = 2;

surface_eqn := z+x^2+y^2 = 2

> N := grad(lhs(surface_eqn),vector([x,y,z]));

N := VECTOR([2*x, 2*y, 1])

> dotprod(F,N);

2*x^2-z

> Integrand := subs(z=2-x^2-y^2, " );

Integrand := 3*x^2-2+y^2

> Integrand := subs({x=r*cos(theta),y=r*sin(theta)},Integrand);

Integrand := 3*r^2*cos(theta)^2-2+r^2*sin(theta)^2

> int(int(r*Integrand,r=0..1), theta = 0 .. 2*Pi);

-Pi

Alternative calculation using the Divergence Theorem

> with(plots):

Warning, the name changecoords has been redefined

> parab := plot3d(2-x^2-y^2, y = -sqrt(1-x^2)..sqrt(1-x^2),x=-1..1,color=aquamarine):

> disk := plot3d([r*cos(theta),r*sin(theta),1],r=0..1,theta=0..2*Pi,color=plum):

> display(parab,disk,orientation=[35,120]);

[Plot]

> diverge(F,[x,y,z]);

0

Therefore the sum of the required integral (integrated over the aquamarine paraboloid) and the flux integral through the bottom plum disk is equal to 0.

On the plum disk the unit outward normal is  - k   and

> dotprod(F,vector([0,0,-1]));

z

But on the plum disk   z = 1.  Therefore:

> required_integral = -int(int(1*r,r=0..1),theta=0..2*Pi);

required_integral = -Pi

20.

[Inserted Image]

a)  -4*Pi           b)  -Pi              c)  0                d)  2*Pi             e)  5*Pi     
f)     
6*Pi           g)   9*Pi             h)  12*Pi          i)  15*Pi             j)  18*Pi    

Solution: (i)

Using the Divergence Theorem


> with(linalg):

Warning, new definition for norm

Warning, new definition for trace

> F := vector([0,2*y,z^3]);

F := VECTOR([0, 2*y, z^3])

> divergence := diverge(F,[x,y,z]);

divergence := 2+3*z^2

> int(int(int(r*divergence,z=-1..2),r=0..1),theta=0..2*Pi);

15*Pi