06.09.2021 Views

A First Course in Linear Algebra, 2017a

A First Course in Linear Algebra, 2017a

A First Course in Linear Algebra, 2017a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

168 R n<br />

Therefore, the cos<strong>in</strong>e of the <strong>in</strong>cluded angle equals<br />

cosθ =<br />

9<br />

√<br />

26<br />

√<br />

6<br />

= 0.7205766...<br />

With the cos<strong>in</strong>e known, the angle can be determ<strong>in</strong>ed by comput<strong>in</strong>g the <strong>in</strong>verse cos<strong>in</strong>e of that angle,<br />

giv<strong>in</strong>g approximately θ = 0.76616 radians.<br />

♠<br />

Another application of the geometric description of the dot product is <strong>in</strong> f<strong>in</strong>d<strong>in</strong>g the angle between two<br />

l<strong>in</strong>es. Typically one would assume that the l<strong>in</strong>es <strong>in</strong>tersect. In some situations, however, it may make sense<br />

to ask this question when the l<strong>in</strong>es do not <strong>in</strong>tersect, such as the angle between two object trajectories. In<br />

any case we understand it to mean the smallest angle between (any of) their direction vectors. The only<br />

subtlety here is that if ⃗u is a direction vector for a l<strong>in</strong>e, then so is any multiple k⃗u, and thus we will f<strong>in</strong>d<br />

complementary angles among all angles between direction vectors for two l<strong>in</strong>es, and we simply take the<br />

smaller of the two.<br />

Example 4.33: F<strong>in</strong>d the Angle Between Two L<strong>in</strong>es<br />

F<strong>in</strong>d the angle between the two l<strong>in</strong>es<br />

⎡<br />

L 1 :<br />

⎣<br />

x<br />

y<br />

z<br />

⎤<br />

⎡<br />

⎦ = ⎣<br />

1<br />

2<br />

0<br />

⎤<br />

⎡<br />

⎦ +t ⎣<br />

−1<br />

1<br />

2<br />

⎤<br />

⎦<br />

and<br />

L 2 :<br />

⎡<br />

⎣<br />

x<br />

y<br />

z<br />

⎤<br />

⎡<br />

⎦ = ⎣<br />

0<br />

4<br />

−3<br />

⎤<br />

⎡<br />

⎦ + s⎣<br />

2<br />

1<br />

−1<br />

⎤<br />

⎦<br />

Solution. You can verify that these l<strong>in</strong>es do not <strong>in</strong>tersect, but as discussed above this does not matter and<br />

we simply f<strong>in</strong>d the smallest angle between any directions vectors for these l<strong>in</strong>es.<br />

To do so we first f<strong>in</strong>d the angle between the direction vectors given above:<br />

⎡<br />

⃗u = ⎣<br />

−1<br />

1<br />

2<br />

⎤<br />

⎡<br />

⎦, ⃗v = ⎣<br />

2<br />

1<br />

−1<br />

In order to f<strong>in</strong>d the angle, we solve the follow<strong>in</strong>g equation for θ<br />

⃗u •⃗v = ‖⃗u‖‖⃗v‖cosθ<br />

to obta<strong>in</strong> cosθ = − 1 2 and s<strong>in</strong>ce we choose <strong>in</strong>cluded angles between 0 and π we obta<strong>in</strong> θ = 2π 3 .<br />

Now the angles between any two direction vectors for these l<strong>in</strong>es will either be 2π 3<br />

or its complement<br />

φ = π − 2π 3 = 3 π . We choose the smaller angle, and therefore conclude that the angle between the two l<strong>in</strong>es<br />

is<br />

3 π .<br />

♠<br />

We can also use Proposition 4.31 to compute the dot product of two vectors.<br />

⎤<br />

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

Saved successfully!

Ooh no, something went wrong!