M233F02ES4R8.mws

Math  233  Fall 2002 Final Exam

 

1. If   u  and v  are vectors and  u = lambda*v    for some scalar  lambda  then which of the following  must  be true?

a)   u    has the same direction as v     
b)   
u    is opposite in direction to  v     
c)   
u    is perpendicular to  v          
d)   
u    is parallel to   v    
e)   
u    has the same length as  v
f)   
u    has magnitude greater than  v  

g)  u   has magnitude less than v           
h)    
v = lambda^(-1)*u               
i)   
lambda = u/v   
j)  
u and   v  determine a unique plane through the origin   

Solution: (d)

2.  If the vectors  -`<`*3, b, b*`>` and  `<`*2, 1, 2*b*`>` are perpendicular then what might b  be?  

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

Solution: (f)

We need the dot product - it is in the  linalg  package.

> with(linalg):

> eqn_for_b := dotprod([-3, b, b],[2, 1, 2*b]) = 0;

eqn_for_b := 2*b^2+b-6 = 0

> solve(eqn_for_b, b);

3/2, -2

Only one of these is in the answer list.

3. The line through the points ( 3, -1, 2) and (5, 2, -1) passes through a point (a, b, -4). What is  b  ?

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

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

Solution: (j)

> OP := vector([3,-1,2]);
OQ := vector([5,2,-1]);   

OP := VECTOR([3, -1, 2])

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

> v := evalm(OQ-OP);

v := VECTOR([2, 3, -3])

> line := evalm(OP + scalarmul(v,t));

line := VECTOR([3+2*t, -1+3*t, 2-3*t])

> eqn := t = solve(line[3] = -4, t);

eqn := t = 2

> b = subs(eqn, line[2]);

b = 5

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

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

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

Solution: (g)

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

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

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

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

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

> v := evalm(OP-OQ);

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

> w := evalm(OR-OQ);

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

> cp := crossprod(v,w);

cp := VECTOR([-6, -3, 5])

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

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

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

eqn2 := 6*x-6+3*y-5*z = 0

> eqn3 := map(u->u+6, eqn2);

eqn3 := 6*x+3*y-5*z = 6

> D = rhs(eqn3);

D = 6

5. The function   f(x, y) = 2*x^2*y-3*x*y^2-6*x*y  has one critical point P = (a,b) with ab  <  0.  Choose the ordered list [a,what] where a is the abscissa of the critical point P = (a,b) and "what" describes the behavior of  f  at P.

a) [1,local minimum]      b) [-1,local minimum]        c) [-2,local minimum]          
d)  
[1,local maximum]     e) [-1,local maximum]         f) [-2,local maximum]       
g)  
[1,saddle point]             h) [-1,saddle point]                i) [-2,saddle point]    
j) [2,local maximum]

Solution: (d)

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

> solve({diff(f(x,y),x) = 0 , diff(f(x,y),y) = 0}, {x,y} );

{y = 0, x = 0}, {y = -2, x = 0}, {x = 3, y = 0}, {y = (-2)/3, x = 1}

> diff(f(x,y),x$2)*diff(f(x,y),y$2)-(diff(f(x,y),x,y))^2;

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

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

12

> subs({x=1,y=-1},diff(f(x,y),x$2));

-4

6. At an instant of time a particle's acceleration is  `<`*2, 1, -3*`>`  and its principal unit normal is
  
N = 2*i/3+2*j/3-k/3 .    What is its normal component of acceleration  a[N] ?

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

f)   5/3          g)  2              h) 7/3            i)  8/3              j)  3    

Solution: (j)

> a := [2,1,-3]:  N := [2/3,2/3,-1/3]:

> dotprod(a,N);

3

7.  The maximum value of f(x, y) = x+2*y   on the unit circle   x^2+y^2 = 1  
occurs at  
(a,b).   What is the value of  a ?

a)  1/sqrt(5)            b) 2/sqrt(5)             c) 1/sqrt(6)                  d) 2/sqrt(6)           e) 1/sqrt(2)     
f)  
1/sqrt(3)            g) 1/3                 h) 2/3                     i) 1                 j)  0

Solution: (a)

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

> eqn1 := diff(f(x,y),x) = lambda*diff(phi(x,y),x);

eqn1 := 1 = 2*lambda*x

> eqn2 := diff(f(x,y),y) = lambda*diff(phi(x,y),y);

eqn2 := 2 = 2*lambda*y

> eqn3 := phi(x,y) = 1;

eqn3 := x^2+y^2 = 1

> solve( {eqn1,eqn2,eqn3}, {x,y,lambda});

{lambda = 5/2*RootOf(5*_Z^2-1), x = RootOf(5*_Z^2-1), y = 2*RootOf(5*_Z^2-1)}

> with(plots):

> levelCurve[1] := implicitplot( f(x,y)=f(sqrt(5)/5,2*sqrt(5)/5), x = -3/2..3/2,y=-3/2..3/2,color=pink,thickness=2):

> levelCurve[2] := implicitplot( x^2+y^2=1, x = -3/2..3/2,y=-3/2..3/2,color=plum,thickness=2):

> levelCurve[3] := contourplot(f(x,y), x = -3/2.. 3/2, y= -3/2..3/2, contours=10,color=COLOR(RGB,0.75,0.7,0.7)):

> display(seq(levelCurve[j],j=1..3));

[Plot]

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

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

Solution: (a)

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

eqn1 := x^2+y^3-z(x, y)^4 = 2*x*y*z(x, y)+4

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

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

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

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

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

(3-2*z(3, 2))/(2*z(3, 2)^3+6)

> subs(z(3,2)=1,");

1/8

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

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

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


Solution
: (c)

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

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

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

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

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

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

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

-3

10. Calculate   int(y*dx+2*x*dy+(z-x*y+3), z = C .. ``) .   where  C   is the oriented curve parameterized by r(t) = [t, t^2, t^3] ,   t = 0 .. 1 .

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

f)   2             g)   8/3              h)   3           i)  4             j)  14/3


Solution
: (j)

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

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

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

Int(14*t^2, t = 0 .. 1)

> value(");

14/3

11. The vector field  

                 [Inserted Image]

  is the gradient field of some function f(x,y).  Calculate f(1,2) - f(0,1).

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

f)  12            g)  14            h)  16           i) 18          j)  Cannot be calculated from given information.  

Solution: (i)

> F := vector([y^2+7,2*x*y+3*y^2]);

F := VECTOR([y^2+7, 2*x*y+3*y^2])

> curl(vector([y^2+7,2*x*y+3*y^2,0]),[x,y,z]); #F is conservative

VECTOR([0, 0, 0])

> eqn := u(x,y) = int(y^2+7,x) + g(y);

eqn := u(x, y) = (y^2+7)*x+g(y)

> diff(eqn,y);

diff(u(x, y), y) = 2*x*y+(diff(g(y), y))

> F[2] = rhs(");

2*x*y+3*y^2 = 2*x*y+(diff(g(y), y))

> diff(g(y),y) = solve(",diff(g(y),y));

diff(g(y), y) = 3*y^2

> eqn2 := subs(g(y)=y^3+C,eqn);

eqn2 := u(x, y) = (y^2+7)*x+y^3+C

> subs( {x=1,y=2}, rhs(eqn2)) - subs({x=0,y=1}, rhs(eqn2));

18

12.  Calculate   int((y+z)*dx+(x+1)*dy+(2*z+x), z = C .. ``)    where  C   is the oriented curve parameterized by r(t) = [sqrt(t), sin(Pi*t^2/2), t*exp(t-1)] ,   t = 0 .. 1 .   

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), sin(Pi/2*t^2), t*exp(t-1)]:

> r(0);

[0, 0, 0]

> r(1);

[1, 1, 1]

> with(linalg):

> F := vector([y+z,x+1,2*z+x]);

F := VECTOR([y+z, x+1, 2*z+x])

> curl(F,[x,y,z]); #F is conservative

VECTOR([0, 0, 0])

> eqn := u(x,y,z) = int(y+z,x) + g(y,z);

eqn := u(x, y, z) = (y+z)*x+g(y, z)

> diff(eqn,y);

diff(u(x, y, z), y) = x+(diff(g(y, z), y))

> x + 1 = rhs(");

x+1 = x+(diff(g(y, z), y))

> diff(g(y,z),y) = solve(",diff(g(y,z),y));

diff(g(y, z), y) = 1

> eqn2 := subs(g(y,z)=y+h(z),eqn);

eqn2 := u(x, y, z) = (y+z)*x+y+h(z)

> 2*z+x = diff(rhs(eqn2),z);

2*z+x = x+(diff(h(z), z))

> diff(h(z),z) = solve( " , diff(h(z),z));

diff(h(z), z) = 2*z

> eqn3 := subs(h(z)=z^2 + C, eqn2);

eqn3 := u(x, y, z) = (y+z)*x+y+z^2+C

> evalm( grad(rhs(eqn3),[x,y,z]) - F );  #Check

VECTOR([0, 0, 0])

> subs( {x=1,y=1,z=1}, rhs(eqn3)) - subs({x=0,y=0,z=0}, rhs(eqn3));

4

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   has a potential 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 may be incorrect. 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 by 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. If    f(x, y, z) = x^2-2*y^2+3*z^2  then calculate div(grad(f(x,y,z)).

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

f)   8          g)   12         h)  15          i)  16          j)  20

Solution: (d)

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

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

> grad(f(x,y,z),[x,y,z]);

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

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

4

17. Calculate the surface integral of f(x, y, z) = x+z  over that part of  the plane x+y+z = 1   
that lies in the first octant.

a)  0           b) 1               c)  
sqrt(2)/2           d)  sqrt(3)/3         e)  1/2  
f)  
sqrt(2)        g)    2*sqrt(3)/3      h)    2*sqrt(2)       i)   sqrt(3)          j)  3/2

Solution: (d)

> with(linalg):

> vectorLength := v -> sqrt(sum(v[i]^2,i=1..vectdim(v)));

vectorLength := proc (v) options operator, arrow; sqrt(sum(v[i]^2, i = 1 .. vectdim(v))) end proc

> r := (x,y) -> vector([x,y,1-(x+y)]); #surface parameterization

r := proc (x, y) options operator, arrow; vector([x, y, 1-x-y]) end proc

> rx := map(z->diff(z,x),r(x,y));

rx := VECTOR([1, 0, -1])

> ry := map(z->diff(z,y),r(x,y));

ry := VECTOR([0, 1, -1])

> crossprod(rx,ry);

VECTOR([1, 1, 1])

> surfaceAreaFactor := vectorLength(");

surfaceAreaFactor := 3^(1/2)

> f := (x,y,z) -> x + z;

f := proc (x, y, z) options operator, arrow; x+z end proc

> Int(Int(f(x,y,z)*surfaceAreaFactor,y=0..1-x),x=0..1);

Int(Int((x+z)*3^(1/2), y = 0 .. 1-x), x = 0 .. 1)

> subs(z=1-(x+y),");

Int(Int((1-y)*3^(1/2), y = 0 .. 1-x), x = 0 .. 1)

> value(");

1/3*3^(1/2)

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)

Using the Divergence Theorem


> 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):

> 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);

[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)  0           b)  Pi/12               c)  Pi/8               d)  Pi/6               e) Pi/4     
f)   
Pi/3              g)   Pi/2             h)  Pi              i)  2*Pi              j)  3*Pi    

Solution: (i)

Using the Divergence Theorem


> with(linalg):

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

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

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

1+2*z

> int(int(r*int(diverge(F,[x,y,z]),z=0..1),r=0..1),theta=0..2*Pi);

2*Pi