Chapter B
Answers to the Exercises
I believe that every human has a finite number of heart-beats.
I don't intend to waste any of mine running around doing exercises.
— Buzz Aldrin (1930–)

B.1Chapter 1

  1. a =(2.5,3) b =(1,2) c =(2.5,2)
    [4pt] d =(1,1) e =(0,0) f =(2,0.5)
    [4pt] g =(0.5,1.5) h =(0,2) i =(3,2)
  2. a =(1,2,4) b =(3,3,5) c =(3,6,2.5) d =(3,0,1) e =(0,0,0) f =(0,0,3) g =(3.5,4,0) h =(5,5,1.5) i =(4,1,5)
  3. See the table below.

    Left-handed Right-handed
    East Up North East Up North East Up North East Up North
    +x +y +z x y +z x y z +x +y z
    +x y z x +y z x +y +z +x y +z
    +x +z y x z y x z +y +x +z +y
    +x z +y x +z +y x +z y +x z y
    +y +z +x y z +x y z x +y +z x
    +y z x y +z x y +z +x +y z +x
    +y +x z y x z y x +z +y +x +z
    +y x +z y +x +z y +x z +y x z
    +z +x +y z x +y z x y +z +x y
    +z x y z +x y z +x +y +z x +y
    +z +y x z y x z y +x +z +y +x
    +z y +x z +y +x z +y x +z y x

  4. (a) Right-handed.     (b) Swap y and z .     (c) Swap y and z .
    1. (a)Right-handed.
    2. (b) x us y aero ,     y us z aero ,     z us x aero
    3. (c) x aero z us ,     y aero x us ,     z aero y us
  5. (a) CW     (b) CCW     (c) CCW     (d) CW
  6. (a) 15     (b) 30     (c) 3840     (d) 2016840     (e) 5050
  7. (a) π / 6 (b) π / 4 (c) π / 3 (d) π / 2 (e) π
    (f) 5π / 4 (g) 3π / 2 (h) 2.923 (i) 9.198 (j) 6π
  8. (a) 30 o (b) 120 o (c) 270 o (d) 240 o (e) 360 o
    (f) 1 o (g) 10 o (h) 900 o (i) 1800 o (j) 36 o
  9. The scarecrow should have said:
    The sum of the squares of the legs of a right triangle is equal to the square of the remaining side.
    since the Pythagorean theorem is c2=a2+b2 , where a and b are the legs of the right triangle and c is the hypotenuse.
    1. (a) (sin(α) / csc(α))+(cos(α) / sec(α))=sin2(α)+cos2(α)=1
    2. (b) (sec2(θ)1) / sec2(θ)=1(1 / sec2(θ))=1cos2(θ)=sin2(θ)
    3. (c) 1+cot2(t)=1+(cos2(t) / sin2(t))=(sin2(t) / sin2(t))+(cos2(t) / sin2(t))=(sin2(t)+cos2(t)) / sin2(t)=1 / sin2(t)=csc2(t)
    4. (d) cos(ϕ)(tan(ϕ)+cot(ϕ))=sin(ϕ)+(cos2(ϕ) / sin(ϕ))=(sin2(ϕ)+cos2(ϕ)) / sin(ϕ)=1 / sin(ϕ)=csc(ϕ)

B.2Chapter 2

    1. a is a 2D row vector. b is a 3D column vector. c is a 4D column vector.
    2. b y + c w + a x + b z =0+6+(3)+5=8
    1. “How much do you weigh?” Your weight is a scalar quantity. But the force of gravity, which pulls you downwards, is a vector, and so if you said that weight was a vector for that reason, you are also correct. (“My weight is 150 lbs of force in the downward direction.”)
    2. “Do you have any idea how fast you were going?” The officer is probably referring to the speed of your vehicle, which is a scalar quantity.
    3. “It's two blocks north of here.” Vector quantity.
    4. “We're cruising from Los Angeles to New York at 600 mph, at an altitude of 33,000 ft.” The speed “600 mph” is a scalar quantity. Since New York is east of Los Angeles, you could reasonably infer an eastward direction, so “600 mph eastward” is a velocity, which is a vector quantity. Likewise, “33,000 ft” is a scalar quantity, although if you're a stickler, you might say that a direction of “up” is implied, in which case “33,000 ft up” is a vector quantity.
  1. a =[0,2] b =[0,2] c =[0.5,2]
    [4pt] d =[0.5,2] e =[0.5,3] f =[2,0]
    [4pt] g =[2,1] h =[2.5,2] i =[6,1]
    1. The size of a vector in a diagram doesn't matter; we just need to draw it in the right place. False. This is reversed; for vectors, size matters (meaning the length of the vector), position doesn't.
    2. The displacement expressed by a vector can be visualized as a sequence of axially aligned displacements. True.
    3. These axially aligned displacements from the previous question must occur in order. False. We can apply them in any order and get the same end result.
    4. The vector [x,y] gives the displacement from the point (x,y) to the origin. False. This is reversed; the vector [x,y] gives the displacement from the origin to the point (x,y) .
    1. [ 3 7 ] = [ 3 7 ]
    2. [ 12 5 ] =(12)2+52=169=13
    3. [ 8 3 1 / 2 ] =82+(3)2+(1 / 2)2=64+9+(1 / 4)=293 / 48.56
    4. 3 [ 4 7 0 ] = [ (3)(4) (3)(7) (3)(0) ] = [ 12 21 0 ]
    5. [ 4 5 ] / 2= [ 2 5 / 2 ]
    1. [ 12 5 ] norm = [ 12 5 ] [ 12 5 ] = [ 12 5 ] 13= [ 1213 513 ] [ 0.923 0.385 ]
    2. [ 0 743.632 ] norm = [ 0 743.632 ] [ 0 743.632 ] = [ 0 743.632 ] 02+743.6322= [ 0 743.632 ] 743.632= [ 0 1 ]
    3. [ 8 3 1 / 2 ] norm = [ 8 3 1 / 2 ] [ 8 3 1 / 2 ] [ 8 3 1 / 2 ] 8.56 [ 0.935 0.350 0.058 ]
    4. [ 12 3 4 ] norm = [ 12 3 4 ] [ 12 3 4 ] = [ 12 3 4 ] (12)2+32+(4)2= [ 12 3 4 ] 13= [ 12 13 313 4 13 ]
    5. [ 1 1 1 1 ] norm = [ 1 1 1 1 ] [ 1 1 1 1 ] = [ 1 1 1 1 ] 12+12+12+12= [ 1 1 1 1 ] 2= [ 0.5 0.5 0.5 0.5 ]
    1. [ 7 2 3 ] + [ 6 6 4 ] = [ 7+6 2+6 3+(4) ] = [ 13 4 7 ]
    2. [ 2 9 1 ] + [ 2 9 1 ] = [ 2+(2) 9+(9) 1+1 ] = [ 0 0 0 ]
    3. [ 3 10 7 ] [ 8 7 4 ] = [ 38 10(7) 74 ] = [ 5 17 3 ]
    4. [ 4 5 11 ] [ 4 5 11 ] = [ 4(4) 5(5) 1111 ] = [ 8 10 22 ]
    5. 3 [ a b c ] 4 [ 2 10 6 ] = [ 3a 3b 3c ] [ 8 40 24 ] = [ 3a8 3b40 3c+24 ]
    1. distance ( [ 10 6 ] , [ 14 30 ] ) =(10(14))2+(630)2=242+(24)2=576+576=115233.94
    2. distance ( [ 0 0 ] , [ 12 5 ] ) =(0(12))2+(05)2=122+(5)2=144+25=169=13
    3. distance ( [ 3 10 7 ] , [ 8 7 4 ] ) =(38)2+(10(7))2+(74)2=(5)2+172+32=25+289+9=32317.97
    4. distance ( [ 2 4 9 ] , [ 6 7 9.5 ] ) =(6(2))2+(7(4))2+(9.59)2=82+(3)2+(0.5)2=64+9+0.25=73.258.56
    5. distance ( [ 4 4 4 4 ] , [ 6 6 6 6 ] ) =(64)2+(6(4))2+(6(4))2+(64)2=(10)2+(10)2+(10)2+(10)2=100+100+100+100=400=20
    1. [ 2 6 ] [ 3 8 ] =(2)(3)+(6)(8)=6+48=42
    2. 7 [ 1 2 ] [ 11 4 ] = [ 7 14 ] [ 11 4 ] =(7)(11)+(14)(4)=21
    3. 10+ [ 5 1 3 ] [ 4 13 9 ] =10+((5)(4)+(1)(13)+(3)(9))=10+(20+(13)+27)=10+(6)=4
    4. 3 [ 2 0 4 ] ( [ 8 2 3 / 2 ] + [ 0 9 7 ] ) = [ 6 0 12 ] [ 8 7 17 / 2 ] =(6)(8)+(0)(7)+(12)(17 / 2)=54
  2. v = n ^ v n ^ n ^ 2= n ^ v n ^ 1= n ^ ( v n ^ ) = [ 2 / 2 2 / 2 0 ] ( [ 4 3 1 ] [ 2 / 2 2 / 2 0 ] ) = [ 2 / 2 2 / 2 0 ] (22+ 32 2+0) = [ 2 / 2 2 / 2 0 ] 72 2= [ 7 / 2 7 / 2 0 ]
    v = v v = [ 4 3 1 ] [ 7 / 2 7 / 2 0 ] = [ 47 / 2 37 / 2 10 ] = [ 1 / 2 1 / 2 1 ]
  3. Define a triangle using the vectors a , b , and a b , and let θ be the angle between a and b . Then the squared length of the edge a b is:
    a b 2= ( a b ) ( a b ) = a a 2 a b + b b = a a + b b 2 a b = a 2+ b 22 a b cos θ
    which is the law of cosines.
  4. First, let's obtain some information about the vector components.

    From the figure, we have
    a x = a cos θa , a y = a sin θa , b x = b cos θb , b y = b sin θb .
    Now we can proceed with the algebraic definition of the dot product and the cosine difference identity:
    a b = a x b x + a y b y = a cos θa b cos θb + a sin θa b sin θb = a b (cos θa cos θb +sin θa sin θb ) = a b cos (θbθa) = a b cos θ .
    1. [ 0 1 0 ] × [ 0 0 1 ] = [ (1)(1)(0)(0) (0)(0)(0)(1) (0)(0)(1)(0) ] = [ 10 00 00 ] = [ 1 0 0 ]
      [ 0 0 1 ] × [ 0 1 0 ] = [ (0)(0)(1)(1) (1)(0)(0)(0) (0)(1)(0)(0) ] = [ 0(1) 00 00 ] = [ 1 0 0 ]
    2. [ 2 4 1 ] × [ 1 2 1 ] = [ (4)(1)(1)(2) (1)(1)(2)(1) (2)(2)(4)(1) ] = [ 4(2) 12 44 ] = [ 2 1 0 ]
      [ 1 2 1 ] × [ 2 4 1 ] = [ (2)(1)(1)(4) (1)(2)(1)(1) (1)(4)(2)(2) ] = [ 2(4) 21 44 ] = [ 2 1 0 ]
    3. [ 3 10 7 ] × [ 8 7 4 ] = [ (10)(4)(7)(7) (7)(8)(3)(4) (3)(7)(10)(8) ] = [ 40(49) 5612 2180 ] = [ 89 44 101 ]
      [ 8 7 4 ] × [ 3 10 7 ] = [ (7)(7)(4)(10) (4)(3)(8)(7) (8)(10)(7)(3) ] = [ 4940 1256 80(21) ] = [ 89 44 101 ]
  5. Let a = [ a x a y a z ] and b = [ b x b y b z ] . Then a b = a b cos θ and a × b =
    [ a y b z a z b y a z b x a x b z a x b y a y b x ] . From a × b , we have:
    a × b =( a y b z a z b y )2+( a z b x a x b z )2+( a x b y a y b x )2= a y 2 b z 22 a y a z b y b z + a z 2 b y 2+ a z 2 b x 22 a x a z b x b z + a x 2 b z 2+ a x 2 b y 22 a x a y b x b y + a y 2 b x 2.
    If we now consider a b sin θ , we find that:
    a b sin θ = a b 1cos2θ= a x 2+ a y 2+ a z 2  b x 2+ b y 2+ b z 2 1 ( a x b x + a y b y + a z b z a x 2+ a y 2+ a z 2 b x 2+ b y 2+ b z 2 ) 2
    = ( a x 2+ a y 2+ a z 2) ( b x 2+ b y 2+ b z 2) (1 ( a x b x + a y b y + a z b z )2 ( a x 2+ a y 2+ a z 2) ( b x 2+ b y 2+ b z 2) ) = ( a x 2+ a y 2+ a z 2) ( b x 2+ b y 2+ b z 2) ( a x b x + a y b y + a z b z )2= a y 2 b z 22 a y a z b y b z + a z 2 b y 2+ a z 2 b x 22 a x a z b x b z + a x 2 b z 2+ a x 2 b y 22 a x a y b x b y + a y 2 b x 2.
    Starting from both ends, we have met in the middle, proving that
    a × b = a b sin θ .
    1. (a)
      1. (1) [ 3 4 ] 1= | 3 | + | 4 | =7 [ 3 4 ] 2= | 3 | 2+ | 4 | 2=5 [ 3 4 ] 3= | 3 | 3+ | 4 | 3 3=9134.498 [ 3 4 ] =max ( | 3 | , | 4 | ) =4
      2. (2) [ 5 12 ] 1= | 5 | + | 12 | =17 [ 5 12 ] 2= | 5 | 2+ | 12 | 2=13 [ 5 12 ] 3= | 5 | 3+ | 12 | 3 3=1853312.283 [ 5 12 ] =max ( | 5 | , | 12 | ) =12
      3. (3) [ 2 10 7 ] 1= | 2 | + | 10 | + | 7 | =19 [ 2 10 7 ] 2= | 2 | 2+ | 10 | 2+ | 7 | 2=15312.369 [ 2 10 7 ] 3= | 2 | 3+ | 10 | 3+ | 7 | 3 3=1351311.055 [ 2 10 7 ] =max ( | 2 | , | 10 | , | 7 | ) =10
      4. (4) [ 6 1 9 ] 1= | 6 | + | 1 | + | 9 | =16 [ 6 1 9 ] 2= | 6 | 2+ | 1 | 2+ | 9 | 2=11810.863 [ 6 1 9 ] 3= | 6 | 3+ | 1 | 3+ | 9 | 3 3=94639.817 [ 6 1 9 ] =max ( | 6 | , | 1 | , | 9 | ) =9
      5. (5) [ 2 2 2 2 ] 1= | 2 | + | 2 | + | 2 | + | 2 | =8 [ 2 2 2 2 ] 2= | 2 | 2+ | 2 | 2+ | 2 | 2+ | 2 | 2=4 [ 2 2 2 2 ] 3= | 2 | 3+ | 2 | 3+ | 2 | 3+ | 2 | 3 3=3233.175 [ 2 2 2 2 ] =max ( | 2 | , | 2 | , | 2 | , | 2 | ) =2
    2. (b)
      1. (1)The unit circle for the L1 norm is a square with sides of length 2 rotated by 45 .
      2. (2)The unit circle for the L2 norm is the well-known unit circle we all know and love.
      3. (3)The unit circle for the infinity norm is a square with sides of length 2 .
      Note that all three unit circles include the vectors [1,0] , [0,1] , [1,0] , [0,1] .
  6. The man buys a box or has a piece of luggage that is 2 feet long, 2 feet wide, and 2 feet tall. If the object is very thin, such as a sword, then he can put the object diagonally in the box or luggage. The longest such object he could carry on is 22+22+223.46 feet.
  7. Let s = a + b + c + d + e + f . From inspection of Figure 2.11 we see that
    s = [ 5 3 ] .
    We confirm this numerically using the above equation and the values of the other vectors, also obtained from inspection of Figure 2.11:
    s = a + b + c + d + e + f = [ 1 3 ] + [ 1 3 ] + [ 3 2 ] + [ 1 2 ] + [ 6 4 ] + [ 1 3 ] = [ (1)+1+3+(1)+(6)+(1) 3+3+(2)+(2)+4+(3) ] = [ 5 3 ]
  8. Left-handed.
    1. Let c = [ c x c y ] and r = [ r x r y ] . Then
      p UpperLeft = [ c x r x c y + r y ] , p UpperRight = [ c x + r x c y + r y ] , p LowerLeft = [ c x r x c y r y ] , p LowerRight = [ c x + r x c y r y ] .
    2. Let c = [ c x c y c z ] and r = [ r x r y r z ] . Then
      p FrontUpperLeft = [ c x r x c y + r y c z + r z ] , p FrontUpperRight = [ c x + r x c y + r y c z + r z ] , p FrontLowerLeft = [ c x r x c y r y c z + r z ] , p FrontLowerRight = [ c x + r x c y r y c z + r z ] ,
      p BackUpperLeft = [ c x r x c y + r y c z r z ] , p BackUpperRight = [ c x + r x c y + r y c z r z ] , p BackLowerLeft = [ c x r x c y r y c z r z ] , p BackLowerRight = [ c x + r x c y r y c z r z ] .
    1. Use the sign of the dot product between v and x p to determine whether the point x is in front of or behind the NPC. This follows from the geometric interpretation of the dot product,
      v ( x p )= v x p cosθ,
      where θ is the angle between v and x p .
      Both v and x p are always positive, leaving the sign of the dot product entirely up to the value of cosθ . If cosθ>0 then θ is less than 90 and x is in front of the NPC. Similarly, if cosθ<0 then θ is greater than 90 and x is behind the NPC.
      The special case of v ( x p )=0 means that x lies either directly to the left or right of the NPC. If this case does not need to be handled explicitly, it can arbitrarily be assigned to mean either in front of or behind.
      1. (1) x is in front of the NPC.
        [ 5 2 ] ( [ 0 0 ] [ 3 4 ] ) = [ 5 2 ] [ 3 4 ] =(5)(3)+(2)(4)=23
      2. (2) x is in front of the NPC.
        [ 5 2 ] ( [ 1 6 ] [ 3 4 ] ) = [ 5 2 ] [ 4 2 ] =(5)(4)+(2)(2)=16
      3. (3) x is behind the NPC.
        [ 5 2 ] ( [ 6 0 ] [ 3 4 ] ) = [ 5 2 ] [ 3 4 ] =(5)(3)+(2)(4)=7
      4. (4) x is behind the NPC.
        [ 5 2 ] ( [ 4 7 ] [ 3 4 ] ) = [ 5 2 ] [ 1 3 ] =(5)(1)+(2)(3)=11
      5. (5) x is in front of the NPC.
        [ 5 2 ] ( [ 5 5 ] [ 3 4 ] ) = [ 5 2 ] [ 8 1 ] =(5)(8)+(2)(1)=38
      6. (6) x is in front of the NPC.
        [ 5 2 ] ( [ 3 0 ] [ 3 4 ] ) = [ 5 2 ] [ 0 4 ] =(5)(0)+(2)(4)=8
      7. (7) x can be either in front of or behind the NPC, depending on how we've decided to handle this special case.
        [ 5 2 ] ( [ 6 3.5 ] [ 3 4 ] ) = [ 5 2 ] [ 3 7.5 ] =(5)(3)+(2)(7.5)=0
    1. To determine whether the point x is visible to the NPC, compare cosθ to cos(ϕ / 2) . If cosθcos(ϕ / 2) , then x is visible to the NPC.
      The value of cos(ϕ / 2) can be obtained from the FOV angle. To get cosθ use the dot product
      cos θ = v ( x p ) v x p .
    2. The NPC's FOV is 90 , so the value we are interested in is cos(45 )0.707 .
      1. (1) x is visible to the NPC.
        cosθ= [ 5 2 ] ( [ 0 0 ] [ 3 4 ] ) [ 5 2 ] [ 0 0 ] [ 3 4 ] =23 (29)((25) 0.8540.707
      2. (2) x is not visible to the NPC.
        cosθ= [ 5 2 ] ( [ 1 6 ] [ 3 4 ] ) [ 5 2 ] [ 1 6 ] [ 3 4 ] =16 (29)(20) 0.664<0.707
      3. (3) x is not visible to the NPC.
        cosθ= [ 5 2 ] ( [ 6 0 ] [ 3 4 ] ) [ 5 2 ] [ 6 0 ] [ 3 4 ] = 7 (29)(25) 0.260<0.707
      4. (4) x is not visible to the NPC.
        cosθ= [ 5 2 ] ( [ 4 7 ] [ 3 4 ] ) [ 5 2 ] [ 4 7 ] [ 3 4 ] = 11 (29)(10) 0.646<0.707
      5. (5) x is visible to the NPC.
        cosθ= [ 5 2 ] ( [ 5 5 ] [ 3 4 ] ) [ 5 2 ] [ 5 5 ] [ 3 4 ] =38 (29)(65) 0.8750.707
      6. (6) x is not visible to the NPC.
        cosθ= [ 5 2 ] ( [ 3 0 ] [ 3 4 ] ) [