Video Transcript
In this lesson, we’ll learn how to
find the angle between two straight lines in three dimensions. To do this, we’ll use the formula
for the cos of the angle between the lines which comes from the definition of the
scalar or dot product. Straight lines can be defined in
different ways, and we’ll see how to find the angle between two lines which are
defined in different forms. You should already be familiar with
finding equations of straight lines in space and calculating the scalar product of
two vectors.
The line shown has direction vector
𝐝 and passes through the point 𝐴, which has coordinates 𝑥 one, 𝑦 one, 𝑧
one. If 𝑃 𝑥, 𝑦, 𝑧 is any point on
this line and 𝐫 is the position vector of 𝑃, then the vector equation of the line
can be written as 𝐫 is equal to 𝑥 one 𝐢 plus 𝑦 one 𝐣 plus 𝑧 one 𝐤 plus 𝜆
times 𝑎𝐢 plus 𝑏𝐣 plus 𝑐𝐤, where 𝐢, 𝐣, and 𝐤 are the unit vectors in the
𝑥-, 𝑦-, and 𝑧-directions and 𝜆 is a scalar. Each value of 𝜆 gives the position
vector of one point on the line. And this is equivalent to the
parametric form where 𝑥 is equal to 𝑥 one plus 𝜆𝑎, 𝑦 is equal to 𝑦 one plus
𝜆𝑏, and 𝑧 is 𝑧 one plus 𝜆𝑐. And these are both equivalent to
the Cartesian form where 𝑥 minus 𝑥 one over 𝑎 is 𝑦 minus 𝑦 one over 𝑏 is equal
to 𝑧 minus 𝑧 one over 𝑐.
The point with coordinates 𝑥 one,
𝑦 one, and 𝑧 one is one of an infinite number of points on the line. The vector 𝑎𝐢 plus 𝑏𝐣 plus 𝑐𝐤
is the direction vector 𝐝, and 𝑎, 𝑏, and 𝑐 are the direction ratios. Alternatively, for a line passing
through two known fixed points as in diagram two, where the coordinates of point 𝐴
are 𝑥 one, 𝑦 one, and 𝑧 one and the coordinates of point 𝐵 are 𝑥 two, 𝑦 two,
and 𝑧 two and the line is parallel to the direction vector 𝐝 — where 𝐝 is 𝑥 two
minus 𝑥 one 𝐢 plus 𝑦 two minus 𝑦 one 𝐣 plus 𝑧 two minus 𝑧 one 𝐤 and the
direction ratios are 𝑥 two minus 𝑥 one, 𝑦 two minus 𝑦 one, and 𝑧 two minus 𝑧
one — using either 𝐴 or 𝐵 as our fixed point, we can again write our line in one
of the three forms previously given, that is, vector, parametric, or Cartesian
form.
Now suppose we have two lines in
space 𝐿 one and 𝐿 two, where 𝐿 one is parallel to the direction vector 𝐝 one, 𝐿
two is parallel to the direction vector 𝐝 two, and 𝜃 is the angle between the two
lines. We can write these two lines in
vector form with the equations shown, where 𝐫 one is the position vector of any
point on 𝐿 one and 𝐫 two is the position vector of any point on 𝐿 two. We can write these in the most
succinct vector notation. And the most important components
of these, for our purposes, are the direction vectors 𝐝 one and 𝐝 two. 𝐝 one is the vector 𝑎 one 𝐢 plus
𝑏 one 𝐣 plus 𝑐 one 𝐤. And 𝐝 two is the direction vector
𝑎 two 𝐢 plus 𝑏 two 𝐣 plus 𝑐 two 𝐤.
The reason these two direction
vectors are so important is that the angle between the two lines 𝐿 one and 𝐿 two
is defined as the angle between their direction vectors 𝐝 one and 𝐝 two. If we draw 𝐝 one and 𝐝 two from a
common point, we can find the angle between them using the formula for their scalar
product, recalling that the scalar product is the sum of the products of
like-for-like coefficients of the unit vectors in each direction. And, of course, this is a
scalar. And remember also that the
magnitude of a vector is the square root of the sum of the squares of the unit
vector coefficients so that, for example, the magnitude of 𝐝 one is the square root
of 𝑎 one squared plus 𝑏 one squared plus 𝑐 one squared.
Remember, though, that what we’re
looking for is 𝜃, the angle between the two lines. And if we divide both sides of our
equation by the product of the magnitudes of the two vectors and swap sides, we have
cos 𝜃 is the scalar product of 𝐝 one and 𝐝 two divided by the product of the
magnitudes of the two vectors. To recap then, to find the angle
between two lines, we need to get our lines into a form where we can read off the
direction vectors. We take the scalar product of the
direction vectors, divide by the product of their magnitudes, and then take the
inverse cosine of our result.
It’s worth noting that if our lines
are perpendicular, then 𝐝 one dot 𝐝 two is equal to zero, which, of course, means
that 𝜃 is 90 degrees or 𝜋 by two. If our two lines are parallel on
the other hand, then the scalar product is plus or minus the product of the two
magnitudes. In this case, the angle is either
zero or 180 degrees, depending on the directions. So let’s see how this works in
practice with some examples where in our first example we’re given the direction
ratios for two lines.
Determine to the nearest second the
measure of the angle between the two lines that have direction ratios of negative
four, negative three, negative four and negative three, negative three, negative
one.
We’re given the direction ratios of
two lines. Let’s call our lines 𝐿 one and 𝐿
two. And we’re asked to find the measure
of the angle between these two lines. Assuming for the moment that our
direction vectors are in the positive sense to each other, then the angle between
them is an acute angle. Let’s call that 𝜃. Now, recall that the direction
ratios of a line, and we’re given two here, are the 𝑥-, 𝑦-, and 𝑧-coefficients of
the unit vectors 𝐢, 𝐣, and 𝐤 of the direction vector of the line so that the
direction vector is defined as 𝐝 is equal to 𝑥𝐢 plus 𝑦𝐣 plus 𝑧𝐤 where 𝑥, 𝑦,
and 𝑧 are the direction ratios.
In our case then, our direction
vectors are 𝐝 one is negative four 𝐢 plus negative three 𝐣 plus negative four 𝐤
and 𝐝 two is negative three 𝐢 plus negative three 𝐣 plus negative one times
𝐤. Now, to find the angle between two
lines with direction vectors 𝐝 one and 𝐝 two, respectively, we can use the formula
cos 𝜃 is the scalar product of the two direction vectors 𝐝 one and 𝐝 two divided
by the product of the magnitudes of the two direction vectors. And remember that the scalar
product of two vectors is the sum of the like-for-like products of the coefficients
of the unit vectors 𝐢, 𝐣, and 𝐤 of each vector, and this is a scalar. And remember that the magnitude of
a vector is the square root of the sum of the squares of the coefficients of 𝐢, 𝐣,
and 𝐤, the unit vectors.
In the case of a direction vector
of course, the coefficients of 𝐢, 𝐣, and 𝐤 are the direction ratios. So in our case, our scalar product
is negative four times negative three plus negative three times negative three plus
negative four times negative one. That is 12 plus nine plus four,
which is 25. To use our formula, we also need to
find our magnitudes. Now the magnitude of 𝐝 one, the
first direction vector, is the square root of negative four squared plus negative
three squared plus negative four squared. That is the square root of 16 plus
nine plus 16, which is the square root of 41. And the magnitude of 𝐝 two is the
square root of negative three squared plus negative three squared plus negative one
squared. That’s the square root of nine plus
nine plus one, which is the square root of 19.
So we have the scalar product of
our two direction vectors is 25. And the magnitude of 𝐝 one is the
square root of 41. The magnitude of 𝐝 two is the
square root of 19. And making some room, we can put
these into our formula so that cos 𝜃 is 25 over the square root of 41 times the
square root of 19. Taking the inverse cos on both
sides, we have 𝜃 is the inverse cos of 25 over the square root of 41 times the
square root of 19. And this gives us an angle of 𝜃 is
26.399 and so on degrees. But we’re not quite finished yet
since we’re asked for the measure of the angle between our two lines to the nearest
second.
At this point, it’s important we
haven’t rounded after the decimal point. We have 26 degrees, and next we
find our minutes by multiplying everything after the decimal point by 60. And this gives us 23.952 etcetera
minutes. Again, we don’t round after the
decimal point because in order to find the seconds, we multiply everything after the
decimal point again by 60 which gives us 57.126. So we have 26 degrees, 23 minutes,
and 57 seconds. And our angle is acute, so we have
the right directions. And so the measure of the angle
between the two lines that have direction ratios of negative four, negative three,
negative four and negative three, negative three, negative one to the nearest second
is 𝜃 is 26 degrees, 23 minutes, and 57 seconds.
In our next example, we see how to
find the angle between two lines given the coordinates of two points on each
line.
A straight line 𝐿 one passes
through the two points 𝐴 with coordinates negative two, two, negative three and 𝐵
with coordinates negative six, negative four, negative five and a straight line 𝐿
two passes through the two points 𝐶 with coordinates one, four, one and 𝐷 with
coordinates negative nine, negative six, negative nine. Find the measure of the angle
between the two lines, giving your answer to two decimal places if necessary.
We’re given two coordinates on each
of two lines 𝐿 one and 𝐿 two, and we’re asked to find the angle between the two
lines. There are a couple of ways we could
do this, but we’re going to use the direction vectors of the lines. We know that if a line passes
through two points 𝑃 with coordinates 𝑥 one, 𝑦 one, 𝑧 one and 𝑄 with
coordinates 𝑥 two, 𝑦 two, 𝑧 two parallel to the direction vector 𝐝, then the
direction vector for that line is 𝐝 is equal to 𝑥 two minus 𝑥 one times 𝐢 plus
𝑦 two minus 𝑦 one 𝐣 plus 𝑧 two minus 𝑧 one 𝐤 where 𝐢, 𝐣, and 𝐤 are the unit
vectors in the 𝑥-, 𝑦-, and 𝑧-directions. And we can find the angle between
two lines by using the formula cos 𝜃 is the scalar product of the two direction
vectors over the product of the magnitudes of the two direction vectors.
And note that the coefficients of
𝐢, 𝐣, and 𝐤 in the direction vector are called the direction ratios. So to use the formula, we need to
find the direction vectors of our two lines. So let’s start with our line 𝐿 one
passing through the points 𝐴 with coordinates negative two, two, negative three and
𝐵 with coordinates negative six, negative four, negative five. Referring to our direction vector
𝐝, then we have 𝐝 one is negative six minus negative two times 𝐢 plus negative
four minus two times 𝐣 plus negative five minus negative three times 𝐤. That is 𝐝 one is negative four 𝐢
minus six 𝐣 minus two 𝐤.
And now for our line 𝐿 two, which
has point 𝐶 with coordinates one, four, one and 𝐷 with coordinates negative nine,
negative six, negative nine, the direction vector 𝐝 two is negative nine minus one
𝐢 plus negative six minus four times 𝐣 plus negative nine minus one times 𝐤. That is negative 10𝐢 plus negative
10𝐣 plus negative 10𝐤. So making some room, we can now use
our two direction vectors in our formula. The first thing we need is our
scalar product, and that’s given by the product of the coefficients of 𝐢 plus the
product of the coefficients of 𝐣 plus the product of the coefficients of 𝐤. And this, of course, is a
scalar. So in our case, that’s going to be
negative four times negative 10 plus negative six times negative 10 plus negative
two times negative 10. That is 40 plus 60 plus 20, which
is 120.
Remember also that the magnitude of
the vector 𝐝 is the square root of 𝑥 squared plus 𝑦 squared plus 𝑧 squared,
where 𝑥, 𝑦, and 𝑧 are the coefficients of 𝐢, 𝐣, and 𝐤, the unit vectors. So for our vector 𝐝 one, the
magnitude of 𝐝 one is the square root of negative four squared plus negative six
squared plus negative two squared. That is the square root of 56. The magnitude of our direction
vector 𝐝 two is the square root of negative 10 squared plus negative 10 squared
plus negative 10 squared. And that’s equal to the square root
of 300. And making some room now, we have
everything we need to use our formula.
Substituting the scalar product 𝐝
one dot 𝐝 two is 120 over the magnitude of 𝐝 one times the magnitude of 𝐝
two. That’s the square root of 56 times
the square root of 300. Taking the inverse cos on both
sides, we have 𝜃 is the inverse cos of 120 divided by the square root of 56 times
the square root of 300. And using our calculators, that’s
22.2076 and so on degrees, which to two decimal places is 22.21 degrees, so that the
measure of the angle between our lines 𝐿 one and 𝐿 two which, respectively, pass
through the points 𝐴, 𝐵 and 𝐶, 𝐷 is 22.21 degrees.
In our next example, let’s look at
how we find the angle between two lines given their Cartesian equations.
Find to the nearest second the
measure of the angle between the two straight lines negative two 𝑥 is four 𝑦 is
equal to negative three 𝑧 and negative four 𝑥 is negative five 𝑦 is equal to two
𝑧.
We’re given two lines to find in
Cartesian form. And remember, the Cartesian form of
a line is 𝑥 minus 𝑥 one over 𝑎 is equal to 𝑦 minus 𝑦 one over 𝑏 is equal to 𝑧
minus 𝑧 one over 𝑐. And that’s where the point 𝐴 with
coordinates 𝑥 one, 𝑦 one, 𝑧 one lies on the line and 𝑎, 𝑏, and 𝑐 are the
direction ratios of the direction vector 𝐝, which is parallel to the line. Let’s begin by calling our lines 𝐿
one and 𝐿 two. And by comparing the three terms in
the general Cartesian form to our lines, we can determine the point on the line. But more importantly, we can find
the direction ratios 𝑎, 𝑏, and 𝑐 and hence the direction vector 𝐝 for each
line.
We can then use the formula shown
to find the cosine of the angle between the two lines and take the inverse cosine to
find the angle. So let’s look first at our line 𝐿
one. Comparing the expression in 𝑥 to
our Cartesian form, we have negative two 𝑥 is 𝑥 minus 𝑥 one over 𝑎. And separating our fraction on the
right-hand side, that gives us 𝑥 over 𝑎 minus 𝑥 one over 𝑎. And comparing coefficients, we have
negative two is equal to one over 𝑎 and zero is negative 𝑥 one over 𝑎. From our first equation, solving
for 𝑎, we have 𝑎 is negative one over two. So from our second equation, this
must mean that zero is 𝑥 one or 𝑥 one is equal to zero. And making some room, we have 𝑎 is
negative a half and 𝑥 one is equal to zero.
And doing the same thing for our
𝑦-term, we find that 𝑏 is one-quarter and 𝑦 one is equal to zero. And finally, for our 𝑧-terms, we
find that 𝑧 is negative a third and 𝑧 one is equal to zero. Now, remembering that 𝑥 one, 𝑦
one, and 𝑧 one are the coordinates of our point 𝐴, we have 𝐴 with coordinates
zero, zero, zero. And remembering our direction
vector is given by 𝐝 is 𝑎𝐢 plus 𝑏𝐣 plus 𝑐𝐤 so that our direction vector for
the line 𝐿 one is 𝐝 one, which is negative a half 𝐢 plus one over four 𝐣 plus
negative one-third 𝐤. And we’re going to call our point
𝐴 one to distinguish it from the point on the line 𝐿 two.
Now if we do the same thing for our
second line 𝐿 two, 𝐿 two passes through the point 𝐴 two with coordinates zero,
zero, zero and has direction vector 𝐝 two equal to negative one over four 𝐢 plus
negative one over five 𝐣 plus one over two 𝐤. All we need to use in vectors are
direction vectors in the formula for cos 𝜃. We’re going to need the scalar
product of our two direction vectors. And remember, that’s the sum of the
products of the coefficients of 𝐢, 𝐣, and 𝐤, the unit vectors, and that the
magnitude of the vector is the square root of the sum of the squares of the
coefficients of 𝐢, 𝐣, and 𝐤.
In our case then, the scalar
product is negative a half times negative a quarter plus one-quarter times negative
one-fifth plus negative one-third times one-half. That is one over eight plus
negative one twentieth plus negative one over six, which is negative 11 over
120. And making some room, we next need
to work out the magnitudes of our two vectors. The magnitude of 𝐝 one is the
square root of negative a half squared plus one-quarter squared plus negative a
third squared, which evaluates to the square root of 61 over 12. And the magnitude of 𝐝 two is the
square root of negative a quarter squared plus negative a fifth squared plus a half
squared. And this evaluates to the square
root of 141 divided by 20.
So now we can put our three values
into our formula. And recall that dividing by a
fraction is the same as multiplying by its reciprocal. We have negative 11 times 12 times
20 in the numerator and 120 times the square root of a 61 times the square root of
141 in the denominator. We can cancel a 12 in the numerator
and the denominator. And the result is 10 in the
denominator with the 20 in the numerator. And this gives us the cos of the
angle 𝜃 is negative 22 over the square root of 61 times the square root of 141. Now making some room, if we take
the inverse cos on both sides, we find in fact to three decimal places that 𝜃 is
103.722 degrees. But this is an obtuse angle and our
angle should be acute. So let’s take a look at our
direction vectors.
In this plot of our direction
vectors, we can see that the angle between them is obtuse. But when we refer to the angle
between two lines, we mean the angle sandwiched between the positive senses of both
vectors. But our vectors are in opposite
directions. Hence, the angle we found is the
larger of the two. And in fact, it’s the smaller acute
angle that we want. The angle we found corresponds to
the 𝛽 in this diagram. And the angle we want is 𝛼 which
is 180 minus 𝛽. In our case, that corresponds to
180 minus 103.722 and so on. That is 76.278 and so on
degrees.
We’re not quite finished yet,
however, since we want the measure of the angle to the nearest second. Multiplying successively after the
decimal place by 60, we have 76 degrees, 16 minutes, and 39 seconds. So to the nearest second, the angle
between the two lines 76 degrees, 16 minutes, and 39 seconds.
Let’s complete this video by
reminding ourselves of some of the key points. If we find the direction vectors of
two lines in space, we can use these direction vectors in the formula to find the
angle between them. But remember, we want to find the
acute angle between the positive senses of both lines.