Skip to main content
Logo image

Discover Linear Algebra

Discovery guide 13.1 Discovery guide

Discovery 13.1.

(a)

Draw the vector \(\uvec{u} = (3,2)\) in the \(xy\)-plane, then draw a representation of the decomposition \(\uvec{u} = 3 \uvec{e}_1 + 2 \uvec{e}_2\text{,}\) where \(\uvec{e}_1\) and \(\uvec{e}_2\) are the standard basis vectors in \(\R^2\text{.}\)
Then call on the help of some dead Greek dude to help you compute the length of \(\uvec{u}\text{.}\)

(b)

Does the same method work to determine the length of \(\uvec{w} = (3,-2)\text{?}\) (And what is the point of checking this case?)

(c)

In general, the formula for the length of a two-dimensional vector \(\uvec{v} = (v_1,v_2)\) is:
\(\ell = \fillinmath{XXXXXXXXXXXX} \text{.}\)

(d)

The same sort of formula works for in three or more dimensions. Fill in the general formulas below.
  • The length of \(\uvec{v} = (v_1,v_2,v_3)\) is \(\ell = \fillinmath{XXXXXXXXXXXX} \text{.}\)
  • The β€œlength” of \(\uvec{v} = (v_1,v_2,v_3,v_4)\) is \(\ell = \fillinmath{XXXXXXXXXXXX} \text{.}\)
  • The β€œlength” of \(\uvec{v} = (v_1,v_2,\dotsc,v_n)\) is \(\ell = \fillinmath{XXXXXXXXXXXX} \text{.}\)
We will universally refer to the algebraic formulas in TaskΒ 13.1.d as the norm of the vector \(\uvec{v}\text{,}\) and denote this concept by \(\unorm{v}\text{.}\) For two- and three-dimensional vectors the norm of a vector computes its geometric length. In higher dimensions where we cannot visualize the geometry directly, we turn this around and instead define the geometric length of a vector to be the numeric result of computing the vector’s norm.

Discovery 13.2.

(a)

Rewrite your last, general formula from TaskΒ d of DiscoveryΒ 13.1:
\begin{equation*} \text{for } \uvec{v} = (v_1,v_2,\dotsc,v_n)\text{,} \quad \unorm{v} = \fillinmath{XXXXXXXXXXXX}\text{.} \end{equation*}
Now square this formula:
\begin{equation*} \text{for } \uvec{v} = (v_1,v_2,\dotsc,v_n)\text{,} \quad \unorm{v}^2 = \fillinmath{XXXXXXXXXXXX}\text{.} \end{equation*}

(b)

Describe the pattern of your formula for \(\unorm{v}^2\) in words without using any letter variables:
\begin{equation*} \textit{the square of the norm of a vector is equal to} \quad \fillinmath{XXXXXXXXXXXXXXX}\text{.} \end{equation*}

Discovery 13.3.

In this activity, make sure you can answer the questions for all dimensions, and make sure you can justify your answer using the formula for norm from DiscoveryΒ 13.2, not just geometrically.

(b)

What is \(\unorm{0}\text{?}\) Is \(\zerovec\) the only vector that has this value for its norm?

(c) Complete the formulas.

\begin{align*} \norm{ 2 \uvec{v}} \amp = \fillinmath{XX} \unorm{v} \amp \norm{-2 \uvec{v}} \amp = \fillinmath{XX} \unorm{v} \amp \norm{ k \uvec{v}} \amp = \fillinmath{XX} \unorm{v} \end{align*}

Discovery 13.4.

A unit vector is one whose norm is equal to \(1\text{.}\)

(a)

Verify that the standard basis vectors are all unit vectors, in all dimensions.

(b)

Fill in the blanks with an appropriate scalar multiple.
  • If \(\unorm{u} = 1/2\text{,}\) then \(\fillinmath{XX}\uvec{u}\) is a unit vector.
  • If \(\unorm{w} = 2\text{,}\) then \(\fillinmath{XX}\uvec{w}\) is a unit vector.
  • For every nonzero \(\uvec{v}\text{,}\) \(k\uvec{v}\) is a unit vector for both \(k = \fillinmath{XXX}\) and \(k = \fillinmath{XXX}\text{.}\)

Discovery 13.5.

Plot points \(P(1,3)\) and \(Q(4,-1)\) in the \(xy\)-plane. Now draw in the vectors \(\uvec{u}\) and \(\uvec{v}\) that correspond to \(\abray{OP}\) and \(\abray{OQ}\text{.}\) Complete the triangle by drawing a vector between \(P\) and \(Q\text{.}\) Do you remember how to express this vector as a combination of \(\uvec{u}\) and \(\uvec{v}\text{?}\) Now compute the distance between \(P\) and \(Q\) by computing the norm of this third vector.
Recall that in math we measure angles in radians. Here are some common conversions.
Degrees \(\degree{30} \) \(\degree{45} \) \(\degree{60} \) \(\degree{90} \) \(\degree{180}\)
Radians \(\pi/6\) \(\pi/4\) \(\pi/3\) \(\pi/2\) \(\pi \)

Discovery 13.6.

(a)

In the \(xy\)-plane, what is the angle between \(\uvec{e}_1\) and \(\uvec{e}_2\text{?}\) … between \(\uvec{e}_1\) and \(\uvec{u} = (1,1)\text{?}\) … between \(\uvec{e_1}\) and \(2\uvec{e}_1\text{?}\) … between \(\uvec{e_1}\) and \(-\uvec{e}_2\text{?}\) … between \(\uvec{e}_1\) and \(\uvec{v} = (1,-1)\text{?}\) … between \(\uvec{e_1}\) and \(-\uvec{e}_1\text{?}\)

(b) Fill in the blanks.

\(\fillinmath{XX} \le \theta \le \fillinmath{XX} \) for angle \(\theta\) between a pair of two-dimensional vectors

Discovery 13.7.

Consider the vectors in the diagram to be two-dimensional. There is a version of Pythagoras that applies here even though \(\theta\) may not be a right angle, called the law of cosines:
\begin{equation} a^2 + b^2 - c^2 = 2 a b \cos\theta \text{.}\tag{✢} \end{equation}
Vector diagram for the law of cosines.
A diagram to assist in exploring the law of cosines via vector geometry. Three directed line segments are arranged in a triangular configuration. One directed line segment representing a vector labelled \(\uvec{u} \) extends steeply upwards and slightly rightwards from a point in the lower-left corner to a point at the top of the diagram. A second directed line segment representing a vector labelled \(\uvec{v} \) extends rightwards and slightly upwards from the same initial point as \(\uvec{u} \) in the lower-left corner to a point at the right edge of the diagram. A third directed line segment representing an unnamed vector compeletes the triangle, extending from the terminal point of \(\uvec{v} \) to the terminal point of \(\uvec{u} \text{.}\) Finally, the angle formed by \(\uvec{u} \) and \(\uvec{v} \) in the lower-left corner is labelled \(\theta \text{.}\)
Applied to our diagram, \(a \) represents the length of \(\uvec{u} \text{,}\) \(b \) represents the length of \(\uvec{v} \text{,}\) and \(c \) represents the length of the β€œhypotenuse” \(\uvec{w} \text{.}\) (If \(\theta\) is \(\degree{90}\text{,}\) the right-hand side of this equality equals zero and this law β€œcollapses” to the same equality as Pythagoras.)
We will write the components of these two-dimensional vectors as
\begin{align*} \uvec{u} \amp = (u_1,u_2) \text{,} \amp \uvec{v} \amp = (v_1,v_2) \text{,} \amp \uvec{w} \amp = (w_1,w_2) \text{.} \end{align*}

(a)

Using the formulas from DiscoveryΒ 13.2:
\begin{align*} a^2 \amp = {\unorm{u}}^2 = \fillinmath{XXXXXXXX} \text{,} \\ b^2 \amp = {\unorm{v}}^2 = \fillinmath{XXXXXXXX} \text{,} \\ c^2 \amp = {\unorm{w}}^2 = \fillinmath{XXXXXXXX} \text{.} \end{align*}
(These should be formulas in the components \(u_1, u_2, v_1, v_2, w_1, w_2 \text{.}\))

(b)

Similar to DiscoveryΒ 13.5, the relationship between \(\uvec{u} \text{,}\) \(\uvec{v} \text{,}\) and \(\uvec{w} \) is
\begin{equation*} \uvec{w} = \fillinmath{XXXXXXXX} \text{.} \end{equation*}
Therefore:
\begin{align*} w_1 \amp = \fillinmath{XXXXXXXX} \text{,} \amp w_2 \amp = \fillinmath{XXXXXXXX} \text{,} \end{align*}
\begin{equation*} c^2 = \fillinmath{XXXXXXXXXXXX} \text{.} \end{equation*}
(These last three should be formulas in the components \(u_1, u_2, v_1, v_2 \) only.)

(c)

Combine what we have so far to rewrite the left-hand side of the law of cosines in terms of the components \(u_1, u_2, v_1, v_2 \) only:
\begin{equation*} a^2 + b^2 - c^2 = \fillinmath{XXXXXXXXXXXXXXXXXXXXXXXX} \text{.} \end{equation*}
Then use high school algebra to simplify this formula until you have
\begin{equation*} a^2 + b^2 - c^2 = 2 \times (\fillinmath{XXXXXXXXXX}) \text{.} \end{equation*}
The formula in the components of vectors \(\uvec{u} \) and \(\uvec{v} \) that fills in the last blank of TaskΒ c of DiscoveryΒ 13.7 is a simple but important one. It is called the Euclidean inner product or standard inner product (or just simply the dot product) of \(\uvec{u}\) and \(\uvec{v}\text{,}\) and written
\begin{equation*} \udotprod{u}{v} \text{.} \end{equation*}
The importance of this formula is that it is a bridge between geometry and algebra. Replacing the left-hand side of the law of cosines (✢) with our final, simplified expression from the previous discovery activity and then dividing both sides by \(2 a b \text{,}\) we obtain
\begin{equation*} \cos\theta = \frac{\udotprod{u}{v}}{\unorm{u}\unorm{v}} \text{.} \end{equation*}
(Remember that \(a\) and \(b\) are the lengths of \(\uvec{u}\) and \(\uvec{v}\text{,}\) respectively.)

Discovery 13.8.

Let’s extend the computational pattern from DiscoveryΒ 13.7. In the two-dimensional case in TaskΒ a below, you should just enter the formula for the dot product that you discovered in TaskΒ c of DiscoveryΒ 13.7 (but without the β€œ\(2 \) times”). In the subsequent tasks in higher dimensions, use the pattern from the two-dimensional case to create a similar higher-dimensional formula.

(a) In two dimensions.

For \(\uvec{u} = (u_1,u_2)\text{,}\) \(\uvec{v} = (v_1,v_2)\text{:}\)
\(\quad \udotprod{u}{v} = \fillinmath{XXXXXXXXXX} \text{.}\)

(b) In three dimensions.

For \(\uvec{u} = (u_1,u_2,u_3)\text{,}\) \(\uvec{v} = (v_1,v_2,v_3)\text{:}\)
\(\quad \udotprod{u}{v} = \fillinmath{XXXXXXXXXX} \text{.}\)

(c) In four dimensions.

For \(\uvec{u} = (u_1,u_2,u_3,u_4)\text{,}\) \(\uvec{v} = (v_1,v_2,v_3,v_4)\text{:}\)
\(\quad \udotprod{u}{v} = \fillinmath{XXXXXXXXXX} \text{.}\)

(d) Arbitrary dimension.

For \(\uvec{u} = (u_1,u_2,\dotsc,u_n)\text{,}\) \(\uvec{v} = (v_1,v_2,\dotsc,v_n)\text{:}\)
\(\quad \udotprod{u}{v} = \fillinmath{XXXXXXXXXX} \text{.}\)

Discovery 13.9.

What is the formula for the dot product of a vector with itself?
For \(\uvec{v} = (v_1,v_2,\dotsc,v_n)\text{,}\) \(\udotprod{v}{v} = \fillinmath{XXXXXXXXXXXX}\text{.}\)
Compare your answer with DiscoveryΒ 13.2.

Discovery 13.10.

Using the formula for the dot product for two-dimensional vectors, verify that it has the following properties.

Aside: Remember.

(c)

\(k(\udotprod{u}{v}) = \dotprod{(k\uvec{u})}{\uvec{v}} = \dotprod{\uvec{u}}{(k\uvec{v})}\text{.}\)
Do you think all these properties will still be true for higher-dimensional vectors?

Discovery 13.11.

(a)

For two-dimensional column vectors \(\uvec{u} = \left[\begin{smallmatrix}u_1\\u_2\end{smallmatrix}\right]\) and \(\uvec{v} = \left[\begin{smallmatrix}v_1\\v_2\end{smallmatrix}\right]\text{,}\) compute the matrix product \((\utrans{\uvec{u}})\uvec{v}\text{.}\)
What do you notice? Do you think the same will happen for higher-dimensional column vectors?

(b)

Suppose \(\uvec{u}\) and \(\uvec{v}\) are \(n\)-dimensional column vectors and \(A\) is an \(n\times n\) matrix. Use what you discovered in TaskΒ a to fill in the blank:
\begin{equation*} \dotprod{(A\uvec{u})}{\uvec{v}} = \dotprod{\uvec{u}}{(\fillinmath{XX}\uvec{v})} \text{.} \end{equation*}