Chap 30 Exercises

\[ \newcommand{\dnorm}{\text{dnorm}} \newcommand{\pnorm}{\text{pnorm}} \newcommand{\recip}{\text{recip}} \]

Exercise 1 Here is a direction, \(\vec{\mathbf D}\):

\[\vec{\mathbf D} \equiv \left(\begin{array}{c}2\\5\end{array}\right)\] Find the projection of \(\vec{\mathbf V} \equiv (1, 3)^T\) onto \(\vec{\mathbf D}\).

\(0.59 \vec{\mathbf D}\)

\(\left(5, 6\right)^T\)

\(\vec{\mathbf V} - \left(5, 6\right)^T\)

question id: kangaroo-light-bowl-1

Find the residual vector \(\vec{\mathbf R}\) from the projection of \(\vec{\mathbf V} \equiv (1, 3)^T\) onto \(\vec{\mathbf D}\).

\(\vec{\mathbf R} = \left(0.83, 2.07\right)\)

\(\vec{\mathbf R} = \left(0.31, 1.28\right)\)

\(\vec{\mathbf R} = \left(1.28, 0.31\right)^T\)

\(\vec{\mathbf R} = \left(0.83, 0.31\right)\)

question id: kangaroo-light-bowl-2

Find the projection of \(\vec{\mathbf V} \equiv (3, 1)^T\) onto \(\vec{\mathbf D}\).

\(0.379 \vec{\mathbf D}\)

\(\left(5, 6\right)^T\)

\(\vec{\mathbf V} - \left(5, 6\right)^T\)

question id: kangaroo-light-bowl-3

Find the residual vector \(\vec{\mathbf R}\) from the projection of \(\vec{\mathbf V} \equiv (3, 1)^T\) onto \(\vec{\mathbf D}\).

\(\vec{\mathbf R} = \left(-0.17, 0.07\right)^T\)

\(\vec{\mathbf R} = \left(-0.17, 0.07\right)\)

\(\vec{\mathbf R} = \left(0.07, -0.17\right)^T\)

\(\vec{\mathbf R} = \left(0.07, -0.17\right)\)

question id: kangaroo-light-bowl-4

Exercise 2 The text gives a formula for the scalar multiplier \(\alpha\) such that \(\alpha \vec{a} = \modeledby{\vec{b}}{\vec{a}}\):

\[\alpha = \frac{\vec{b} \bullet \vec{a}}{\vec{a} \bullet \vec{a}}\ .\] For a <- rbind(5, -2, 3, 7) calculate the scalar multiplier \(\alpha\) for each of these \(\vec{b}\) vectors. (Answers have been rounded to 3 decimal places.)

  1. b1 <- rbind(1, 0, 0, 0)
-0.057       -0.287       -0.023       0.023       0.287
      0.057      

question id: child-dig-shoe-1

  1. b2 <- rbind(0, 1, 0, 0)
-0.057       -0.287       -0.023       0.023       0.287
      0.057
     

question id: child-dig-shoe-2

  1. b3 <- rbind(0, 1, 2, 3)
-0.057       -0.287       -0.023       0.023       0.287       0.057
     

question id: child-dig-shoe-3

  1. b4 <- rbind(-4, 1, 2, 3)
-0.057       -0.287       -0.023       0.023       0.287
      0.057      

question id: child-dig-shoe-4

Exercise 3 Here are twelve labeled vectors, A through M. There is a thirteenth vector, labeled “Null vector,” that is a vector of length zero, so it cannot be drawn as an arrow. Note that the direction of the null vector does not matter since the vector length is zero.

Each of the following statements is of the form, “\(\vec{v}\) projected onto \(\vec{u}\) gives \(\vec{w}\). Say whether the statement is true or false.

  1. \(\vec{A}\) projected onto \(\vec{D}\) gives \(\vec{K}\)

True

False

question id: beech-build-shirt-1

  1. \(\vec{D}\) projected onto \(\vec{E}\) gives \(\vec{L}\)

True

False

question id: beech-build-shirt-2

  1. \(\vec{J}\) projected onto \(\vec{E}\) gives the null vector.

True

False

question id: beech-build-shirt-3

  1. \(\vec{H}\) projected onto \(\vec{A}\) gives the null vector
True       False      

question id: beech-build-shirt-4

  1. \(\vec{J}\) projected onto \(\vec{K}\) gives \(\vec{D}\)
True       False      

question id: beech-build-shirt-5

  1. \(\vec{C}\) projected onto \(\vec{D}\) gives \(\vec{L}\)
True       False      

question id: beech-build-shirt-6

  1. \(\vec{L}\) projected onto \(\vec{B}\) gives the null vector
True       False      

question id: beech-build-shirt-7

  1. \(\vec{E}\) projected onto \(\vec{C}\) gives \(\vec{E}\)
True       False      

question id: beech-build-shirt-8

  1. \(\vec{G}\) projected onto \(\vec{C}\) gives the null vector.
True       False      

question id: beech-build-shirt-9

  1. \(\vec{E}\) projected onto \(\vec{D}\) gives \(\vec{J}\)
True       False      

question id: beech-build-shirt-10

  1. \(\vec{A}\) projected onto \(\vec{B}\) gives \(\vec{K}\)
True       False      

question id: beech-build-shirt-11

  1. \(\vec{H}\) projected onto \(\vec{A}\) gives the null vector
True       False      

question id: beech-build-shirt-12

  1. \(\vec{F}\) projected onto \(\vec{C}\) gives \(\vec{H}\)
True       False      

question id: beech-build-shirt-13

  1. \(\vec{C}\) projected onto \(\vec{E}\) gives \(\vec{E}\)
True       False      

question id: beech-build-shirt-14

  1. \(\vec{E}\) projected onto \(\vec{G}\) gives the null vector
True       False      

question id: beech-build-shirt-15

  1. \(\vec{G}\) projected onto \(\vec{B}\) gives \(\vec{C}\)
True       False      

question id: beech-build-shirt-16

Exercise 4 Vectors \(\vec{A}, \vec{B}, \cdots, \vec{H}\) have are defined as A, B, …, H in ?lst-puppy-dream-spoon you can use them in the sandbox. (To see one of these vectors, give a command in the sandbox consisting of just the vector name.)

Active R chunk 1 has commands of the sort used in solving the target problem.

Active R chunk 1

Use such commands to answer the following questions.

  1. Solve \((\vec{A}, \vec{C}) \cdot \vec{x} = \vec{B}\) for \(\vec{x}\). What is the length of \(\vec{x}\)?

Exactly 0

About 1.6

About 2.5

About 3.43

About 12

Can’t be solved

question id: puppy-dream-spoon-1

  1. Solve \((\vec{A}) \cdot \vec{x} = \vec{B}\) for \(\vec{x}\). What’s the length of the residual?

Exactly 0

About 0.3

About 1.6

About 2.5

About 3.43

About 12

Can’t be solved

question id: puppy-dream-spoon-2

  1. Solve \((\vec{D}, \vec{E}) \cdot \vec{x} = \vec{F}\) for \(\vec{x}\). What is the length of the residual?

Exactly 0

About 0.3

About 1.6

About 2.5

About 3.43

About 12

Can’t be solved

question id: puppy-dream-spoon-3

  1. Solve \((\vec{D}, \vec{E}, \vec{F}) \cdot \vec{x} = \vec{G}\) for \(\vec{x}\). What is the length of the residual?

Exactly 0

About 0.3

About 1.6

About 2.5

About 3.43

About 12

Can’t be solved

question id: puppy-dream-spoon-4

  1. Solve \((\vec{D}, \vec{E}, \vec{F}, \vec{G}) \cdot \vec{x} = \vec{H}\) for \(\vec{x}\). What is the length of the residual?

Exactly 0

About 0.3

About 1.6

About 2.5

About 3.43

About 12

Can’t be solved

question id: puppy-dream-spoon-5

Activities

Exercise 5

Refer to the vectors \(\vec{a}\), \(\vec{b}\), \(\vec{c}\), and \(\vec{d}\) above. Carry out the following projections graphically. You should show not only the result of the projection, but also the original vector being projected and the original vector being projected onto.

  1. Project \(\vec{a}\) onto \(\vec{b}\)
  2. Project \(\vec{c}\) onto \(\vec{a}\)
  3. Project \(\vec{b}\) onto itself.

Go back to your diagrams and add on to each diagram the residual vector from the projection. Make sure to use a different color ink or some other device to distinguish the residuals from the vectors you had already drawn.

Exercise 6 Construct a random 4-by-4 matrix named A whose columns are mutually orthogonal. Here’s the process:

  1. Construct a vector with four elements that has random elements. A command to do so is

    This will be the first column of the matrix.

  2. Construct a new vector with random elements.

    w will not be orthogonal to v1 as you can confirm by calculating the dot product between v1 and w. However, you can construct from the two vectors a new one that will be perpendicular to v1.

  3. Take the mutually orthogonal vectors you already have and package them into a matrix M. Then construct a new random vector w and project it onto M.

```{webr-r}
M <- cbind(v1, v2)
w <- cbind(rnorm(4))
v3 <- w - (w %onto% M)
```

Continue the process of step (iii) until you have 4 mutually orthogonal vectors, and collect them into the matrix `A`.

Use dot products to verify that v1, v2, v3, and v4 are mutually orthogonal.

Exercise 7  

  1. Place a dot on a piece of paper. Hold a pencil perpendicular to the paper with the eraser on the dot. Now, (using a pen!) draw a vector on the paper that is perpendicular to the pencil. Now draw 5 more vectors, each different from the other, that are all perpendicular to the pencil.

  2. Draw a vector \(\vec{c}\) on the paper. Now draw another vector on the paper that is perpendicular to the first. Label it \(\vec{a}\). Find another vector, to be labeled \(\vec{b}\) that lies on the paper, is orthogonal to \(\vec{c}\), and has a different direction from \(\vec{a}\). It will turn out that \(\vec{a} = k \vec{b}\). Write down the numerical value of the scalar \(k\) for your \(\vec{a}\) and \(\vec{b}\).

  3. Consider the vector \(\vec{w} \equiv (2, 5)^T\). Using only arithmetic, find some other vector \(\vec{z}\) that is perpendicular to \(\vec{w}\). (Hint: To be perpendicular, \(\vec{z}^T \cdot \vec{w}\) must be zero. So make up two numbers such \(a\) and \(b\) such that \(2 a + 5 b = 0\).) Write \(\vec{z}\) on your paper.

  4. Repeat (c) and create another vector \(\vec{z}_2\) that is different from \(\vec{z}\). Write \(\vec{z}_2\) on your paper. In addition, find the scalar \(k\) such that \(\vec{z}_2 = k \vec{z}\).

In the following exercises, you are asked to find numerical vectors that are perpendicular (“orthogonal”) to the stated vector. This is equivalent to finding a new vector whose dot product with the stated vector is zero. (Except … the new vector cannot be all zeros! The all-zero vector is exceptional and has no direction.) One effective strategy is to write down a vector consisting of a 1 in any position you like and zeros elsewhere. Find the dot product, calling it \(d\). Then select one of the zeros to turn it non-zero. What value should it have? Just enough so that when included in the dot product it contributes \(-d\).

  1. Consider the vector \(\vec{w} \equiv (1, 2, -3, 2)^T\).

    1. Find a vector \(\vec{a}\) that is perpendicular to \(\vec{w}\).
    2. Find another vector \(\vec{b}\) that is perpendicular both to \(\vec{w}\) and to \(\vec{a}\). (Hint: It can be done.)
    3. Create yet another vector \(\vec{c}\) that is a linear combination of \(\vec{a}\) and \(\vec{b}\). (You can choose whatever combination you like, but both coefficients should be non-zero.) What is the angle between \(\vec{c}\) and \(\vec{w}\)?
  2. You have been sent on a mission to 5-dimensional space. Your task is to find a vector that is perpendicular to \(\vec{w} \equiv (2,1,3,3,-4)^T\). Do so.

  3. BONUS. Find as many vectors as you can that are perpendicular to \(\vec{w} \equiv (2,1,3,3,-4)^T\) and to each other. The arithmetic will not necessarily be easy. When you give up (with honor!), figure out how many mutually perpendicular vectors there can be in 5-dimensional space. How about 10-dimensional space?

Exercise 8 In physics and engineering, there is a very important operation called the cross product and written \(\vec{u}\times\vec{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:

\[\left(\begin{array}{c}a\\b\\c\end{array}\right) \times \left(\begin{array}{c}e\\f\\g\end{array}\right) \equiv \left(\begin{array}{c}b\, g - c\, f\\c\, e - a\, g\\a\, f - b\, e\end{array}\right)\]

Make up coordinates for two three-dimensional vectors \(\vec{u}\) and \(\vec{v}\) that point in different directions.

Calculate the cross product \(\vec{w} \equiv \vec{u} \times \vec{v}\).

  1. Find the angle between \(\vec{w}\) and \(\vec{u}\).
  2. Find the angle between \(\vec{w}\) and \(\vec{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.

No answers yet collected