Skip to content
Hub Nexus

No author yetClaim it

Version 1Updated 11 min read

Support

We've translated the first section's results about solution sets into
geometric terms for insight into how those sets look.
But we must watch out not to be mislead by our own terms; labeling subsets of
{ℝ}^{k} of the forms
\{ \overset{→}{p} + t \overset{→}{v} \ | \ t ∈ ℝ \} and
\{ \overset{→}{p} + t \overset{→}{v} + s \overset{→}{w} \ | \ t , s ∈ ℝ \}
as "lines" and "planes" doesn't make them act like the lines
and planes of our prior experience.
Rather, we must ensure that the names suit the sets.
While we can't prove that the sets satisfy our intuition— we can't
prove anything about intuition— in this subsection we'll observe that
a result familiar from {ℝ}^{2} and {ℝ}^{3}, when generalized to
arbitrary {ℝ}^{k}, supports the idea that a line is straight
and a plane is flat.
Specifically, we'll see how to do Euclidean geometry in a "plane" by giving
a definition of the angle between two {ℝ}^{n} vectors in the plane that they
generate.

Definition 2.1

The length of a vector
\overset{→}{v} ∈ {ℝ}^{n} is this.

| \overset{→}{v} \ | = \sqrt{{v}_{1}^{2} + ⋯ + {v}_{n}^{2}}

Remark 2.2

This is a natural generalization of the Pythagorean Theorem.
A classic discussion is in (Pólya 1954).

We can use that definition to derive a formula
for the angle between two vectors.
For a model of what to do, consider two vectors in {ℝ}^{3}.

Put them in canonical position
and, in the plane that they determine, consider the triangle formed by
\overset{→}{u}, \overset{→}{v}, and \overset{→}{u} − \overset{→}{v}.

Apply the Law of Cosines,
| \overset{→}{u} − \overset{→}{v} \ {|}^{2} = | \overset{→}{u} \ {|}^{2} + | \overset{→}{v} \ {|}^{2} − 2 \ | \overset{→}{u} \ | \ | \overset{→}{v} \ | cos ⁡ θ,
where θ is the angle between the vectors.
Expand both sides

( {u}_{1} − {v}_{1} {)}^{2} + ( {u}_{2} − {v}_{2} {)}^{2} + ( {u}_{3} − {v}_{3} {)}^{2}

= ( {u}_{1}^{2} + {u}_{2}^{2} + {u}_{3}^{2} ) + ( {v}_{1}^{2} + {v}_{2}^{2} + {v}_{3}^{2} ) − 2 \ | \overset{→}{u} \ | \ | \overset{→}{v} \ | cos ⁡ θ

and simplify.

θ = arccos ⁡ ( \ \frac{{u}_{1} {v}_{1} + {u}_{2} {v}_{2} + {u}_{3} {v}_{3}}{| \overset{→}{u} \ | \ | \overset{→}{v} \ |} \ )

In higher dimensions no picture suffices but we can make the same argument
analytically.
First, the form of the numerator is clear— it comes from the middle terms
of the squares ( {u}_{1} − {v}_{1} {)}^{2}, ( {u}_{2} − {v}_{2} {)}^{2}, etc.

Definition 2.3

The dot product (or inner product, or scalar product)
of two n-component
real vectors is the linear combination of their components.

\overset{→}{u} ⋅ \overset{→}{v} = {u}_{1} {v}_{1} + {u}_{2} {v}_{2} + ⋯ + {u}_{n} {v}_{n}

Note that the dot product of two vectors is a real number, not a vector, and
that the dot product of a vector from {ℝ}^{n} with a vector
from {ℝ}^{m} is defined only when n equals m.
Note also this relationship between dot product and length: dotting a
vector with itself gives its length squared
\overset{→}{u} ⋅ \overset{→}{u} = {u}_{1} {u}_{1} + ⋯ + {u}_{n} {u}_{n} = | \overset{→}{u} \ {|}^{2}.

Remark 2.4

The wording in that definition allows one or both of the two to be a
row vector instead of a column vector.
Some books require that the first vector be a row vector and that the
second vector be a column vector.
We shall not be that strict.

Still reasoning with letters, but guided by the pictures,
we use the next theorem to argue that the triangle formed by
\overset{→}{u}, \overset{→}{v}, and \overset{→}{u} − \overset{→}{v} in {ℝ}^{n}
lies in the planar subset of {ℝ}^{n} generated by \overset{→}{u} and
\overset{→}{v}.

Theorem 2.5 (Triangle Inequality)

For any \overset{→}{u} , \overset{→}{v} ∈ {ℝ}^{n},

| \overset{→}{u} + \overset{→}{v} \ | ≤ | \overset{→}{u} \ | + | \overset{→}{v} \ |

with equality if and only if one of the vectors is a nonnegative scalar
multiple of the other one.

This inequality is the source of the familiar saying,
"The shortest distance between two points is in a straight line."

Proof

(We'll use some algebraic properties of dot product
that we have not yet checked, for instance that
\overset{→}{u} ⋅ ( \overset{→}{a} + \overset{→}{b} ) = \overset{→}{u} ⋅ \overset{→}{a} + \overset{→}{u} ⋅ \overset{→}{b}
and that \overset{→}{u} ⋅ \overset{→}{v} = \overset{→}{v} ⋅ \overset{→}{u}.
See Problem 8.)
The desired inequality holds if and only if its square holds.

\begin{matrix}| \overset{→}{u} + \overset{→}{v} \ {|}^{2} & ≤ ( \ | \overset{→}{u} \ | + | \overset{→}{v} \ | \ {)}^{2} \\ ( \ \overset{→}{u} + \overset{→}{v} \ ) ⋅ ( \ \overset{→}{u} + \overset{→}{v} \ ) & ≤ | \overset{→}{u} \ {|}^{2} + 2 \ | \overset{→}{u} \ | \ | \overset{→}{v} \ | + | \overset{→}{v} \ {|}^{2} \\ \overset{→}{u} ⋅ \overset{→}{u} + \overset{→}{u} ⋅ \overset{→}{v} + \overset{→}{v} ⋅ \overset{→}{u} + \overset{→}{v} ⋅ \overset{→}{v} & ≤ \overset{→}{u} ⋅ \overset{→}{u} + 2 \ | \overset{→}{u} \ | \ | \overset{→}{v} \ | + \overset{→}{v} ⋅ \overset{→}{v} \\ 2 \ \overset{→}{u} ⋅ \overset{→}{v} & ≤ 2 \ | \overset{→}{u} \ | \ | \overset{→}{v} \ |\end{matrix}

That, in turn, holds if and only if
the relationship obtained by multiplying both sides by the nonnegative numbers
| \overset{→}{u} \ |
and | \overset{→}{v} \ |

{}2 \ ( \ | \overset{→}{v} \ | \ \overset{→}{u} \ ) ⋅ ( \ | \overset{→}{u} \ | \ \overset{→}{v} \ ) ≤ 2 \ | \overset{→}{u} \ {|}^{2} \ | \overset{→}{v} \ {|}^{2}

and rewriting

{}0 ≤ | \overset{→}{u} \ {|}^{2} \ | \overset{→}{v} \ {|}^{2} − 2 \ ( \ | \overset{→}{v} \ | \ \overset{→}{u} \ ) ⋅ ( \ | \overset{→}{u} \ | \ \overset{→}{v} \ ) + | \overset{→}{u} \ {|}^{2} \ | \overset{→}{v} \ {|}^{2}

is true.
But factoring

{}0 ≤ ( \ | \overset{→}{u} \ | \ \overset{→}{v} − | \overset{→}{v} \ | \ \overset{→}{u} \ ) ⋅ ( \ | \overset{→}{u} \ | \ \overset{→}{v} − | \overset{→}{v} \ | \ \overset{→}{u} \ )

shows that this certainly is true since it only says that the
square of the length of the vector
$| \overset{→}{u} \ | \ \overset{→}{v} − | \overset{→}{v} \ | \ \overset{→}{u} $ is
not negative.

As for equality, it holds when, and only when,
| \overset{→}{u} \ | \ \overset{→}{v} − | \overset{→}{v} \ | \ \overset{→}{u} is \overset{→}{0}.
The check that
$| \overset{→}{u} \ | \ \overset{→}{v} = | \overset{→}{v} \ | \ \overset{→}{u} $ if and only if
one vector is a nonnegative real scalar multiple of the other is easy.

This result supports the intuition that even in higher-dimensional
spaces, lines are straight and planes are flat.
For any two points in a linear surface,
the line segment connecting them is contained in that surface
(this is easily checked from the definition).
But if the surface has a bend then that would allow
for a shortcut
(shown here grayed, while the segment from P to Q that is contained in
the surface is solid).

Because the Triangle Inequality says that in any {ℝ}^{n}, the shortest cut
between two endpoints is simply the line segment connecting them,
linear surfaces have no such bends.

Back to the definition of angle measure.
The heart of the Triangle Inequality's proof is the
"\overset{→}{u} ⋅ \overset{→}{v} ≤ | \overset{→}{u} \ | \ | \overset{→}{v} \ |"
line.
At first glance, a reader might wonder if some pairs of vectors
satisfy the inequality in this way: while \overset{→}{u} ⋅ \overset{→}{v}
is a large number, with absolute value bigger than the right-hand side,
it is a negative large number.
The next result says that no such pair of vectors exists.

Corollary 2.6 (Cauchy-Schwarz Inequality)

For any \overset{→}{u} , \overset{→}{v} ∈ {ℝ}^{n},

| \ \overset{→}{u} ⋅ \overset{→}{v} \ | ≤ | \ \overset{→}{u} \ | \ | \overset{→}{v} \ |

with equality if and only if one vector is a scalar multiple of
the other.

Proof

The Triangle Inequality's proof shows that
\overset{→}{u} ⋅ \overset{→}{v} ≤ | \overset{→}{u} \ | \ | \overset{→}{v} \ | so
if \overset{→}{u} ⋅ \overset{→}{v} is positive or zero then we are done.
If \overset{→}{u} ⋅ \overset{→}{v} is negative then this holds.

| \ \overset{→}{u} ⋅ \overset{→}{v} \ | = − ( \ \overset{→}{u} ⋅ \overset{→}{v} \ ) = ( − \overset{→}{u} \ ) ⋅ \overset{→}{v} ≤ | − \overset{→}{u} \ | \ | \overset{→}{v} \ | = | \overset{→}{u} \ | \ | \overset{→}{v} \ |

The equality condition is Problem 9.

The Cauchy-Schwarz inequality assures us that the next definition makes sense
because the fraction has absolute value less than or equal to one.

Definition 2.7

The angle between two nonzero vectors \overset{→}{u} , \overset{→}{v} ∈ {ℝ}^{n} is

θ = arccos ⁡ ( \ \frac{\overset{→}{u} ⋅ \overset{→}{v}}{| \overset{→}{u} \ | \ | \overset{→}{v} \ |} \ )

(the angle between the zero vector and any other vector is defined to be a
right angle).

Thus vectors from {ℝ}^{n} are
orthogonal (or perpendicular) if and only if their dot product is zero.

Example 2.8

These vectors are orthogonal.

The arrows are shown away from canonical position
but nevertheless the vectors are orthogonal.

Example 2.9

The {ℝ}^{3} angle formula given at the start of this subsection
is a special case of the definition.
Between these two

the angle is

arccos ⁡ ( \frac{( 1 ) ( 0 ) + ( 1 ) ( 3 ) + ( 0 ) ( 2 )}{\sqrt{{1}^{2} + {1}^{2} + {0}^{2}} \sqrt{{0}^{2} + {3}^{2} + {2}^{2}}} ) = arccos ⁡ ( \frac{3}{\sqrt{2} \sqrt{13}} )

approximately {}0.94 \text{radians}.
Notice that these vectors are not orthogonal.
Although the y z-plane may appear to be perpendicular to the
x y-plane, in fact the two planes are that way only in the weak sense that
there are vectors in each orthogonal to all vectors in the other.
Not every vector in each is orthogonal to all vectors in the other.

Exercises

This exercise is recommended for all readers.

Problem 1

Find the length of each vector.

  • ( \begin{matrix}3 \\ 1\end{matrix} )
  • ( \begin{matrix}− 1 \\ 2\end{matrix} )
  • ( \begin{matrix}4 \\ 1 \\ 1\end{matrix} )
  • ( \begin{matrix}0 \\ 0 \\ 0\end{matrix} )
  • ( \begin{matrix}1 \\ − 1 \\ 1 \\ 0\end{matrix} )

This exercise is recommended for all readers.

Problem 2

Find the angle between each two, if it is defined.

( \begin{matrix}1 \\ 2\end{matrix} ) , ( \begin{matrix}1 \\ 4\end{matrix} )

( \begin{matrix}1 \\ 2 \\ 0\end{matrix} ) , ( \begin{matrix}0 \\ 4 \\ 1\end{matrix} )

( \begin{matrix}1 \\ 2\end{matrix} ) , ( \begin{matrix}1 \\ 4 \\ − 1\end{matrix} )

This exercise is recommended for all readers.

Problem 3

During maneuvers preceding the Battle of Jutland,
the British battle cruiser Lion moved as follows (in nautical
miles): 1.2 miles north, 6.1 miles 38 degrees
east of south, 4.0 miles at 89 degrees east of
north, and 6.5 miles at 31 degrees east of north.
Find the distance between starting and ending positions (O'Hanian 1985).

Problem 4

Find k so that these two vectors are perpendicular.

( \begin{matrix}k \\ 1\end{matrix} ) \ ( \begin{matrix}4 \\ 3\end{matrix} )

Problem 5

Describe the set of vectors in {ℝ}^{3} orthogonal to this one.

( \begin{matrix}1 \\ 3 \\ − 1\end{matrix} )

This exercise is recommended for all readers.

Problem 6

  • Find the angle between the diagonal of the unit square in
    {ℝ}^{2} and one of the axes.
  • Find the angle between the diagonal of the unit cube in

{ℝ}^{3} and one of the axes.

  • Find the angle between the diagonal of the unit cube in
    {ℝ}^{n} and one of the axes.
  • What is the limit, as n goes to ∞,

of the angle between the diagonal of the unit cube in {ℝ}^{n}
and one of the axes?

Problem 7

Is any vector perpendicular to itself?

This exercise is recommended for all readers.

Problem 8

Describe the algebraic properties of dot product.

  • Is it right-distributive over addition:
    ( \overset{→}{u} + \overset{→}{v} ) ⋅ \overset{→}{w} = \overset{→}{u} ⋅ \overset{→}{w} + \overset{→}{v} ⋅ \overset{→}{w}?
  • Is is left-distributive (over addition)?
  • Does it commute?
  • Associate?
  • How does it interact with scalar multiplication?

As always, any assertion must be backed by either a proof or an example.

Problem 9

Verify the equality condition in Corollary 2.6,
the Cauchy-Schwarz Inequality.

  • Show that if \overset{→}{u} is a negative scalar multiple of
    \overset{→}{v} then \overset{→}{u} ⋅ \overset{→}{v} and
    \overset{→}{v} ⋅ \overset{→}{u} are less than or equal to zero.
  • Show that | \overset{→}{u} ⋅ \overset{→}{v} | = | \overset{→}{u} \ | \ | \overset{→}{v} \ |

if and only if one vector is a scalar multiple of the other.

Problem 10

Suppose that \overset{→}{u} ⋅ \overset{→}{v} = \overset{→}{u} ⋅ \overset{→}{w}
and \overset{→}{u} ≠ \overset{→}{0}.
Must \overset{→}{v} = \overset{→}{w}?

This exercise is recommended for all readers.

Problem 11

Does any vector have
length zero except a zero vector?
(If "yes", produce an example.
If "no", prove it.)

This exercise is recommended for all readers.

Problem 12

Find the midpoint of the line segment connecting
( {x}_{1} , {y}_{1} ) with ( {x}_{2} , {y}_{2} ) in {ℝ}^{2}.
Generalize to {ℝ}^{n}.

Problem 13

Show that if \overset{→}{v} ≠ \overset{→}{0} then
\overset{→}{v} / | \overset{→}{v} \ | has length one.
What if \overset{→}{v} = \overset{→}{0}?

Problem 14

Show that if r ≥ 0 then
r \overset{→}{v} is r times as long
as \overset{→}{v}.
What if r < 0?

This exercise is recommended for all readers.

Problem 15

A vector \overset{→}{v} ∈ {ℝ}^{n} of length one is a
unit vector.
Show that the dot product of two unit vectors has absolute value
less than or equal to one.
Can "less than" happen?
Can "equal to"?

Problem 16

Prove that
| \overset{→}{u} + \overset{→}{v} \ {|}^{2} + | \overset{→}{u} − \overset{→}{v} \ {|}^{2} = 2 | \overset{→}{u} \ {|}^{2} + 2 | \overset{→}{v} \ {|}^{2} .

Problem 17

Show that if \overset{→}{x} ⋅ \overset{→}{y} = 0 for every \overset{→}{y}
then \overset{→}{x} = \overset{→}{0}.

Problem 18

Is
| {\overset{→}{u}}_{1} + ⋯ + {\overset{→}{u}}_{n} | ≤ | {\overset{→}{u}}_{1} | + ⋯ + | {\overset{→}{u}}_{n} |?
If it is true then it would generalize the Triangle Inequality.

Problem 19

What is the ratio between the sides in the Cauchy-Schwarz inequality?

Problem 20

Why is the zero vector defined to be perpendicular to every vector?

Problem 21

Describe the angle between two vectors in {ℝ}^{1}.

Problem 22

Give a simple necessary and sufficient condition to determine
whether the angle between two vectors is acute, right, or obtuse.

This exercise is recommended for all readers.

Problem 23

Generalize to {ℝ}^{n} the converse of the Pythagorean
Theorem, that
if \overset{→}{u} and \overset{→}{v} are
perpendicular then
| \overset{→}{u} + \overset{→}{v} \ {|}^{2} = | \overset{→}{u} \ {|}^{2} + | \overset{→}{v} \ {|}^{2}.

Problem 24

Show that | \overset{→}{u} \ | = | \overset{→}{v} \ |
if and only if \overset{→}{u} + \overset{→}{v} and
\overset{→}{u} − \overset{→}{v} are perpendicular.
Give an example in {ℝ}^{2}.

Problem 25

Show that if a vector is perpendicular to each of two others then
it is perpendicular to each vector in the plane they generate.
(Remark.
They could generate a
degenerate plane— a line or a point— but
the statement remains true.)

Problem 26

Prove that, where \overset{→}{u} , \overset{→}{v} ∈ {ℝ}^{n} are nonzero vectors,
the vector

\frac{\overset{→}{u}}{| \overset{→}{u} \ |} + \frac{\overset{→}{v}}{| \overset{→}{v} \ |}

bisects the angle between them.
Illustrate in {ℝ}^{2}.

Problem 27

Verify that the definition of angle is dimensionally correct:
(1) if k > 0 then the cosine of the angle between k \overset{→}{u}
and \overset{→}{v} equals the cosine of the angle between \overset{→}{u}
and \overset{→}{v}, and (2) if k < 0 then the cosine of the angle
between k \overset{→}{u} and \overset{→}{v} is the negative of the cosine
of the angle between \overset{→}{u} and \overset{→}{v}.

This exercise is recommended for all readers.

Problem 28

Show that the inner product operation is linear: for
\overset{→}{u} , \overset{→}{v} , \overset{→}{w} ∈ {ℝ}^{n} and k , m ∈ ℝ,
\overset{→}{u} ⋅ ( k \overset{→}{v} + m \overset{→}{w} ) = k ( \overset{→}{u} ⋅ \overset{→}{v} ) + m ( \overset{→}{u} ⋅ \overset{→}{w} ).

This exercise is recommended for all readers.

Problem 29

The geometric mean
of two positive reals x , y is \sqrt{x y}.
It is analogous to the arithmetic mean
( x + y ) / 2.
Use the Cauchy-Schwarz inequality to show that
the geometric mean of any x , y ∈ ℝ is less
than or equal to the arithmetic mean.

? Problem 30

A ship is sailing with speed and direction {\overset{→}{v}}_{1}; the wind blows
apparently (judging by the vane on the mast) in the direction of a vector
\overset{→}{a}; on changing the direction and speed of the ship from
{\overset{→}{v}}_{1} to {\overset{→}{v}}_{2} the apparent wind is in the direction
of a vector \overset{→}{b}.

Find the vector velocity of the wind (Ivanoff & Esty 1933).

Problem 31

Verify the Cauchy-Schwarz inequality by first proving
Lagrange's identity:

{( {∑}_{1 ≤ j ≤ n} {a}_{j} {b}_{j} )}^{2} = ( {∑}_{1 ≤ j ≤ n} {a}_{j}^{2} ) ( {∑}_{1 ≤ j ≤ n} {b}_{j}^{2} ) − {∑}_{1 ≤ k < j ≤ n} ( {a}_{k} {b}_{j} − {a}_{j} {b}_{k} {)}^{2}

and then noting that the final term is positive.
(Recall the meaning

{∑}_{1 ≤ j ≤ n} {a}_{j} {b}_{j} = {a}_{1} {b}_{1} + {a}_{2} {b}_{2} + ⋯ + {a}_{n} {b}_{n}

and

{∑}_{1 ≤ j ≤ n} {{a}_{j}}^{2} = {{a}_{1}}^{2} + {{a}_{2}}^{2} + ⋯ + {{a}_{n}}^{2}

of the Σ notation.)
This result
is an improvement over Cauchy-Schwarz because it gives a formula for
the difference between the two sides.
Interpret that difference in {ℝ}^{2}.

Solutions

References

  • O'Hanian, Hans (1985), Physics, vol. 1, W. W. Norton
  • Ivanoff, V. F. (proposer); Esty, T. C. (solver) (1933), "Problem 3529", American Mathematical Monthly, 39 (2): 118 {{citation}}: Unknown parameter |month= ignored (help)
  • Pólya, G. (1954), Mathematics and Plausible Reasoning: Volume II Patterns of Plausible Inference, Princeton University Press

Where this page came from

This page was imported from Wikibooks. From “Linear Algebra” on Wikibooks, by its contributors, under CC BY-SA 4.0. Changed here: set as a page; navigation and edit links left out; each image under its own licence, credited in its caption.

Nobody has written it yet — it is the source material at a new address, which is why search engines are asked to skip it and why no one earns from it. It is up for grabs: take it on, and it is yours to rewrite and to earn from.

Comments

Spinner Logo

Next in Linear Algebra

CC BY-SA 4.0
After developing the mechanics of Gauss' method, we observed that it can be done in more than one way. One example is that we sometimes have to swap rows and there can be more than one row to choose from. Another example is that from this matrix $( \begin{matrix}2 & 2 \\ 4 & 3\end{matrix} )$ Gauss'
CC BY-SA 4.0
Gaussian elimination coupled with back-substitution solves linear systems, but it's not the only method possible. Here is an extension of Gauss' method that has some advantages. Example 1.1 To solve $\begin{matrix}x & + & y & − & 2 z & = & − 2 \\ & & y & + & 3 z & = & 7 \\ x & & & − & z & = & − 1\en
CC BY-SA 4.0
We will close this section and this chapter by proving that every matrix is row equivalent to one and only one reduced echelon form matrix. The ideas that appear here will reappear, and be further developed, in the next chapter. The underlying theme here is that one way to understand a mathematical
CC BY-SA 4.0
The linear systems in this chapter are small enough that their solution by hand is easy. But large systems are easiest, and safest, to do on a computer. There are special purpose programs such as LINPACK for this job. Another popular tool is a general purpose computer algebra system, including both
CC BY-SA 4.0
An economy is an immensely complicated network of interdependences. Changes in one part can ripple out to affect other parts. Economists have struggled to be able to describe, and to make predictions about, such a complicated object. Mathematical models using systems of linear equations have emerged
CC BY-SA 4.0
Gauss' method lends itself nicely to computerization. The code below illustrates. It operates on an $n \ × \ n$ matrix a, pivoting with the first row, then with the second row, etc. for (pivot_row = 1; pivot_row <= n - 1; pivot_row++) { for (row_below = pivot_row + 1; row_below <= n; row_below++) {