Chap 28 Exercises

WebR Status

🟑 Loading...

Loading webR...

Exercise 1 Note: The radio-button multiple choice questions don’t allow us to display a column vector as such. Instead, we use the notation involving a superscript T. For instance, (2,βˆ’3)T is a column vector which we would ordinarily write (2βˆ’3) A vector written like (2,βˆ’3), without the T, is a row vector.

Suppose u→≑(2βˆ’3)  and  v→≑(41) Compute the following linear combinations (arithmetically) …

  1. βˆ’uβ†’βˆ’8vβ†’

(βˆ’34,βˆ’5)T

(βˆ’34,βˆ’5)

(βˆ’34,15)

(34,15)T

Invalid combination

question id: beech-iron-clock-1

  1. 2.1uβ†’βˆ’1.3vβ†’

(βˆ’1,βˆ’7.6)T

(0.8)

(βˆ’1,βˆ’7.6)

(2.1,βˆ’1.3)T

Invalid combination

question id: beech-iron-clock-2

  1. βˆ’0.5uβ†’+3.2vβ†’

(11.8,4.7)T

(2.7)

(13.8,1.7)

(34,16)T

Invalid combination

question id: beech-iron-clock-3

  1. 7u→+5v→

(34,βˆ’16)T

(32,βˆ’14)T

(34,βˆ’14)T

(32,βˆ’16)T

Invalid combination

question id: beech-iron-clock-4

Exercise 2 Here are some vectors to use in answering the following questions.

u→≑[βˆ’100 98 9βˆ’81 90]   v→≑[ 21 37 93βˆ’41βˆ’93]   w→≑[βˆ’97βˆ’11 33βˆ’49 91]

Calculate the length of each of these vectors in the corresponding interactive R chunk.

  1.         2uβ†’
  1.       βˆ’2uβ†’
  1.         4uβ†’
  1.         17vβ†’
  1.      βˆ’1.5wβ†’

Exercise 3 Using R/mosaic and the %dot% and sqrt() functions, calculate the length of each of these vectors:

  1. u→≑[ 35βˆ’93βˆ’99]
  1. v→≑[βˆ’59 41βˆ’41]
  1. w→≑[βˆ’76βˆ’71βˆ’48]
  1. x→≑[βˆ’96 83 35]

Exercise 4 Consider this set of vectors

Figure 1: Vectors to use for this exercise
  1. Find the lengths of each of these vectors. Assume that the vectors begin and end exactly on the graph-paper intersections.

Which one of these is not a length of the vectors in ?

2       4       5       6      

question id: girl-send-scarf-1

  1. Two pairs of vectors in this set are orthogonal within each pair. Which one of these is not one of those pairs?
A and B       B and C       C and D       All of these are orthogonal pairs.      

question id: girl-send-scarf-2

  1. Just using your eye, say whether the dot product between every pair of vectors is positive, zero, or negative.
  1. A & B
positive       zero       negative      

question id: girl-send-scarf-c1

  1. A & C
positive       zero       negative      

question id: girl-send-scarf-c2

  1. A & D (hover to see again.)
positive       zero       negative      

question id: girl-send-scarf-c3

  1. A & E
positive       zero       negative      

question id: girl-send-scarf-c4

  1. B & C (hover to see again.)
positive       zero       negative      

question id: girl-send-scarf-c5

  1. B & D
positive       zero       negative      

question id: girl-send-scarf-c6

  1. B & E
positive       zero       negative      

question id: girl-send-scarf-c7

  1. C & D (hover to see again.)
positive       zero       negative      

question id: girl-send-scarf-c8

  1. C & E
positive       zero       negative      

question id: girl-send-scarf-c9

  1. D & E
positive       zero       negative      

question id: girl-send-scarf-c10

Exercise 5 Consider this vector x→≑[ 470 210βˆ’430] . For each of the following vectors, calculate the scalar multiplier Ξ± such that Ξ±xβ†’ equals the vectors.

Hint: Try componentwise division.

  1. a→≑[ 282 126βˆ’258]
1       2       3       4       6       8       10       12       14       No such multiplier      

question id: tiger-run-futon-1

  1. b→≑[βˆ’376βˆ’169 344]
1       2       3       4       6       8       10       12       14       No such multiplier      

question id: tiger-run-futon-2

  1. c→≑[ 752 336βˆ’688]
1       2       3       4       6       8       10       12       14       No such multiplier      

question id: tiger-run-futon-3

  1. d→≑[βˆ’1128βˆ’504 1032]
1       2       3       4       6       8       10       12       14       No such multiplier      

question id: tiger-run-futon-4

Exercise 6 Here are four vectors.

u→≑[ 18 79 33βˆ’41]    v→≑[βˆ’35βˆ’62βˆ’32βˆ’7]    w→≑[βˆ’44 81 74βˆ’4]    x→≑[βˆ’9 71βˆ’69 33]

is provided for any calculations you need to do.

Active R chunk 1
  1. Which one of the above vectors is orthogonal to this one? z→≑[βˆ’1βˆ’10 11βˆ’4]
uβ†’       vβ†’       wβ†’       xβ†’       None of them      

question id: kangaroo-have-closet-1

  1. Which one of the above vectors is orthogonal to this one? z→≑[ 4 1 1 1]
uβ†’       vβ†’       wβ†’       xβ†’       None of them      

question id: kangaroo-have-closet-2

  1. Which one of the above vectors is almost exactly orthogonal to this one? z→≑[βˆ’1βˆ’2 1.3333333 3]
uβ†’       vβ†’       wβ†’       xβ†’       None of them      

question id: kangaroo-have-closet-3

Exercise 7  

  1. One of the following defines correctly a function that calculates the cosine of the angle between two vectors a→ and b→. Which is it?

cang <- makeFun((a %dot% b)/ (sqrt(a %dot% b)*sqrt(b %dot% a)) ~ a + b)

cang <- makeFun((a %dot% b)/ ((a %dot% a)*(b %dot% b)) ~ a + b)

cang <- makeFun((a %dot% b)/ (a %dot% a) * (b %dot% b) ~ a + b)

cang <- makeFun((a %dot% b)/ (sqrt(a %dot% a)*sqrt(b %dot% b)) ~ a + b)

cang <- makeFun((a %dot% a)/ (sqrt(a %dot% a)*sqrt(b %dot% b)) ~ a + b)

question id: lamb-throw-candy-1

  1. Calculate the cosine of the angle between this vector z→≑[βˆ’1βˆ’10 20 5] and each of the following vectors:

u→≑[ 99 35βˆ’25 92]   v→≑[βˆ’49βˆ’92 84βˆ’65]   w→≑[βˆ’13βˆ’39βˆ’55 65]   x→≑[βˆ’35 73 33 14]

Active R chunk 2
  1. What is the cosine of the angle between z→ and w→?
0.01723633       -0.1715463       0.6809192       -0.1503336       None of these      

question id: lamb-throw-candy-2

Use to translate each of the cosines from part (2) into degrees of the angle. (Round to the nearest degree.)

Active R chunk 3
  1. What is the angle (in degrees) between v→ and z→?
1∘       15∘       23∘       40∘       47∘       None of these      

question id: lamb-throw-candy-3

Exercise 8 Here are several vectors:

  1. Remembering that mathematical vectors have only two propertiesβ€”length and directionβ€”how many mathematically different vectors are being shown.
Answer

Five. Color is not a property of a mathematical vector. Orientation, however, is.

  1. Measure the length of each vector. (Hint: Use a ruler! You can round to the nearest millimeter.)

  2. Find the included angle between the blue and brown vectors. (Your answer should be correct to within ±15∘.)

Answer

About 135 degrees. Note that the orientation makes a difference. The angle is measured with the vectors placed tail to tail.

  1. Find the included angle between the magenta and blue vectors.
Answer

Magenta points in the same direction as brown, so the answer is the same as in the previous question.

  1. Find the included angle between 0.7 times the blue vector and -11.3 times the brown.
Answer

The scaling does not matter except that the negative sign for the brown vector means that its orientation will be reversed. This means that the included angle will be 45 degrees, not 135 degrees as in the previous two questions.

Exercise 9 Collision course?

Consider the diagram showing two straight-line tracks, a dot on each track, and a vector.

Let’s imagine that dot 1 is an aircraft and that the black vector attached to it is the aircraft’s velocity. We will call this vβ†’1, Similarly for dot 2, where the velocity vector will be called vβ†’2.

There is a third vector drawn in red: the difference in position of the two aircraft at the exact moment depicted in the drawing.

The question we want to address is whether the aircraft are on a collision course. Obviously, the two courses cross. So we know that the two aircraft will cross the same point. For a collision, the aircraft have to cross that point at the same time.

Copy over the drawing to your own piece of paper. You don’t need to get the vectors and positions exactly right; any reasonable approximation will do.

Now you will do visual vector addition and subtraction to answer the collision question.

  1. The relative velocity of the two planes is the difference between their velocities. Subtract v→2 from v→1 and draw the resulting vector. Pay attention to both the length and direction of the relative velocity.

  2. The displacement between the two planes is the red vector: the position of dot 2 subtracted from dot 1. Compare the directions of the relative velocity vector and the displacement vector. If they are aligned, then the planes are on a collision course.

  3. In the picture as drawn, the relative velocity vector and the displacement vector are not aligned. Figure out how much you would need to change the length of vβ†’2 so that the relative velocity does align with the displacement. (Keep the direction the same.) Draw this new vector and label it β€œvector for intercept.”

  4. In (3) you changed the length of v→2 keeping the direction the same. Now you will keep v→2 at the original length, but change its direction so that the new relative velocity is aligned with the displacement vector.

Items (3) and (4) are two different ways of designing an intercept of plane 1 by plane 2.

Bonus) You can figure out how long it takes for each plane to reach the intersection point by finding out how many multiples of the velocity vector will cover the line segment between the plane’s position and the intersection point. For example, in the original drawing 4vβ†’1 will bring the plane to the intersection point, so it takes 4 β€œtime units” for the plane to reach the point. (What is the time unit? If velocity is in miles/hour, then the time unit is hours. If the velocity is in feet/second, then the time unit is seconds.) Your task: Figure out where aircraft 2 will be in 4 time units. This will tell you the separation between aircraft 2 and aircraft 1 when 1 reaches the intersection point. Draw and label this vector.

Exercise 10 In physics and engineering, there is a very important operation called the cross product and written u→×v→. The operation is only defined for vectors in 3-dimensional space. The output of the cross product is another 3-dimensional vector which can be calculated arithmetically as:

(abc)Γ—(efg)≑(bgβˆ’cfceβˆ’agafβˆ’be)

Make up coordinates for two three-dimensional vectors u→ and v→ that point in different directions.

Calculate the cross product w→≑uβ†’Γ—vβ†’.

  1. Find the angle between w→ and u→.
  2. Find the angle between w→ and v→.

Other than this brief description, we will not use cross products at all in this course. But keep them in mind for your upcoming physics and engineering courses.

Activities

Exercise 11 Collision course?

Consider the diagram showing two straight-line tracks, a dot on each track, and a vector.

Let’s imagine that dot 1 is an aircraft and that the black vector attached to it is the aircraft’s velocity. We will call this vβ†’1, Similarly for dot 2, where the velocity vector will be called vβ†’2.

There is a third vector drawn in red: the difference in position of the two aircraft at the exact moment depicted in the drawing.

The question we want to address is whether the aircraft are on a collision course. Obviously, the two courses cross. So we know that the two aircraft will cross the same point. For a collision, the aircraft have to cross that point at the same time.

Copy over the drawing to your own piece of paper. You don’t need to get the vectors and positions exactly right; any reasonable approximation will do.

Now you will do visual vector addition and subtraction to answer the collision question.

  1. The relative velocity of the two planes is the difference between their velocities. Subtract v→2 from v→1 and draw the resulting vector. Pay attention to both the length and direction of the relative velocity.

  2. The displacement between the two planes is the red vector: the position of dot 2 subtracted from dot 1. Compare the directions of the relative velocity vector and the displacement vector. If they are aligned, then the planes are on a collision course.

  3. In the picture as drawn, the relative velocity vector and the displacement vector are not aligned. Figure out how much you would need to change the length of vβ†’2 so that the relative velocity does align with the displacement. (Keep the direction the same.) Draw this new vector and label it β€œvector for intercept.”

  4. In (3) you changed the length of v→2 keeping the direction the same. Now you will keep v→2 at the original length, but change its direction so that the new relative velocity is aligned with the displacement vector.

Items (3) and (4) are two different ways of designing an intercept of plane 1 by plane 2.

Bonus) You can figure out how long it takes for each plane to reach the intersection point by finding out how many multiples of the velocity vector will cover the line segment between the plane’s position and the intersection point. For example, in the original drawing 4vβ†’1 will bring the plane to the intersection point, so it takes 4 β€œtime units” for the plane to reach the point. (What is the time unit? If velocity is in miles/hour, then the time unit is hours. If the velocity is in feet/second, then the time unit is seconds.) Your task: Figure out where aircraft 2 will be in 4 time units. This will tell you the separation between aircraft 2 and aircraft 1 when 1 reaches the intersection point. Draw and label this vector.

Exercise 12 Write (or draw) your answers on a sheet of paper. You can do the any calculations you need using . Make sure to write column vectors in a correct column format. Use for numerical calculations.

Active R chunk 4
  1. What is 5.42(7.38.9βˆ’2.4)?
  2. What is βˆ’2.67(βˆ’19.340.2314.82)?
  3. Draw a vector of your own choice. Next to it, draw the vector which is 2.5 times your vector.
  4. Take your original vector from (c) and draw the vector which is -3 times it.
  5. Write down the R code to create a vector named w that is (2515)
No answers yet collected
Γ—

R History Command Contents

Download R History File