# Question Video: Finding the Measure of the Angle between Two Straight Lines in Three Dimensions given the Coordinates of Four Points Lying on Them Mathematics

A straight line πΏβ passes through the two points π΄(β2, 2, β3) and π΅(β6, β4, β5), and a straight line πΏβ passes through the two points πΆ(1, 4, 1) and π·(β9, β6, β9). Find the measure of the angle between the two lines, giving your answer to two decimal places if necessary.

03:06

### Video Transcript

A straight line πΏ one passes through the two points π΄ negative two, two, negative three and π΅ negative six, negative four, negative five, and a straight line πΏ two passes through the two points πΆ one, four, one and π· 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.

To calculate the angle between two vectors, we use something called the scalar product. For two vectors π and π, we know that cos of π equals the dot product of π and π over the product of the magnitudes of π and π. So, weβre going to need to find a way to represent π΄π΅ and πΆπ· in vector form. Well, the vector ππ is found by subtracting the vector ππ from the vector ππ. Thatβs the vector that describes the movement from the origin to either point π΄ or π΅.

Now, it doesnβt really matter how we represent these vectors, I quite like using column vectors, so Iβm going to represent ππ as negative six, negative four, negative five. Of course, you could use π, π, and π interchangeably. Weβre going to subtract ππ, so thatβs negative two, two, negative three. Negative six minus negative two is negative six plus two, which is negative four. Negative four minus two is negative six. And negative five minus negative three is negative two.

Now that we found vector ππ, letβs find the vector ππ. This time, thatβs ππ minus ππ. ππ is the vector that describes movement from the origin zero, zero, zero to π·. Thatβs negative nine, negative six, negative nine. And we subtract ππ, which is one, four, one. Then, negative nine minus one is negative 10. Negative six minus four is negative 10. And the third element is also negative 10. So, we found vector ππ, and we found vector ππ. To use the scalar product, weβre going to need to find the dot product and the individual magnitudes of each.

Letβs begin by calculating the dot product. This is the sum of the product of each individual element. So, itβs the sum of negative four times negative 10, negative six times negative 10, and negative two times negative 10, which is 120. Next, letβs find the magnitude of each of our vectors.

Now, we recall that the magnitude of a vector is the square root of the sum of the squares of each of its components. So, the magnitude of ππ is the square root of negative four squared plus negative six squared plus negative two squared, which is the square root of 56. And the magnitude of ππ is the square root of negative 10 squared plus negative 10 squared plus negative 10 squared, which is the square root of 300. And of course, we could simplify these, but thereβs really no need since weβre going to be typing all of this into our calculator in a moment.

We pop everything into our formula for the scalar product. And we find that cos of π equals 120 over the square root of 56 times the square root of 300. To solve for π, weβre going to find the inverse cos of both sides. The inverse cos of 120 over the square root of 56 times the square root of 300 is 22.2076 and so one, which, correct to two decimal places, is 22.21 degrees. And so, the angle between πΏ one and πΏ two, which we say we can represent as vectors ππ and ππ, is 22.21 degrees.