06.09.2021 Views

Linear Algebra, 2020a

Linear Algebra, 2020a

Linear Algebra, 2020a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section II. <strong>Linear</strong> Geometry 43<br />

For any nonzero ⃗v, the vector ⃗v/|⃗v| has length one. We say that the second<br />

normalizes ⃗v to length one.<br />

We can use that to get a formula for the angle between two vectors. Consider<br />

two vectors in R 3 where neither is a multiple of the other<br />

⃗v<br />

⃗u<br />

(the special case of multiples will turn out below not to be an exception). They<br />

determine a two-dimensional plane — for instance, put them in canonical position<br />

and take the plane formed by the origin and the endpoints. In that plane consider<br />

the triangle with sides ⃗u, ⃗v, and ⃗u − ⃗v.<br />

Apply the Law of Cosines: |⃗u − ⃗v | 2 = |⃗u | 2 + |⃗v | 2 − 2 |⃗u ||⃗v | cos θ where θ is the<br />

angle between the vectors. The left side gives<br />

(u 1 − v 1 ) 2 +(u 2 − v 2 ) 2 +(u 3 − v 3 ) 2<br />

=(u 2 1 − 2u 1 v 1 + v 2 1)+(u 2 2 − 2u 2 v 2 + v 2 2)+(u 2 3 − 2u 3 v 3 + v 2 3)<br />

while the right side gives this.<br />

(u 2 1 + u 2 2 + u 2 3)+(v 2 1 + v 2 2 + v 2 3)−2 |⃗u ||⃗v | cos θ<br />

Canceling squares u 2 1 , ..., v2 3<br />

and dividing by 2 gives a formula for the angle.<br />

θ = arccos( u 1v 1 + u 2 v 2 + u 3 v 3<br />

|⃗u ||⃗v |<br />

In higher dimensions we cannot draw pictures as above but we can instead<br />

make the argument analytically. First, the form of the numerator is clear; it<br />

comes from the middle terms of (u i − v i ) 2 .<br />

2.3 Definition The dot product (or inner product or scalar product) oftwo<br />

n-component real vectors is the linear combination of their components.<br />

)<br />

⃗u • ⃗v = u 1 v 1 + u 2 v 2 + ···+ u n v n

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!