Question 1121153
A line L1 passes through points P(−1,6,−1) and Q(0,4,1). 


a. (i) Show that vector PQ=(1,−2,2).


vector PQ is created from line segment PQ.


a vector has both magnitude and direction.


vector PQ = <x2-x1,y2-y1,z2-z1> = <0--1,4-6,1--1> = <1,-2,2>


note that -- means plus.
you are subtracting a negative number, which is the same as adding a positive number.


it has direction because from, any point in space, it can only go 1 unit in the direction of the x-axis, -2 units in the direction of the y-axis, and 2 units in the direction of the z-axis.


the length of vector V is sqrt(1^2 + (-2)^2 + 2^2) = sqrt(1 + 4 + 4) = sqrt(9).


(ii) Hence, write down an equation for L1 in the form r=a+tb.
Would this be: r=(&#8722;1,6,&#8722;1)+t(0,4,1)? (I just plugged in P for a and Q for b.


the vector equation of a line is in the form of R = R0 + T * vector V.


R is any point on the line which is the same as any position vector that terminates on the line.


R0 is a specific point on the line which is the same as a a position vector that terminates on a specific point on the line.


V is a direction Vector.


the point P from the line PQ serves as the point R0 which is the same as position vector R0.


note that any point on the graph also serves as a position vector.
a position vector is a vector that has its tail at the origin and its head terminating at the point.


therefore point (-1,6,-1) is also position vector <-1,6,-1).


this means that vector arithmetic applies to it just as with any other vector.


vector V is the same as vector PQ that we just created.


therefore, in the equation R = R0 + T * vector V, we get:


vector R0 = <-1,6,-1>
vector V = <1,-2,2>


vector R = <-1,6,-1> + T * <1,-2,2> which becomes:


vector R = <-1,6,-1> + <T,-2T,2T> which becomes:


vector R = <-1+T,6-2T,-1+2T>, where T is any real number.


that's the equation of the line R in vector equation form.


x = -1 + T
y = 6 - 2T
z = -1 + 2T


b. A second line L2 has equation r=(4,2,&#8722;1)+s(3,0,&#8722;4). 


the equation of the first line is R = (-1,6,-1) + T * <1,-2,2>
the equation of the second line is L1 = (4,2,-1) + S * <3,0,-4>


the vector portion of these two lines is <1,-2,2> and <3,0,-4>


we'll call <1,-2,2> vector V and we'll call <3,0,-4> vector W.


these two vectors can be positioned anywhere on the graph, so they can be brought to intersect at a common point, allowing us to find the angle between them.


for example, you can place the tail end of both vectors at the origin.


the dot product of these two vectors can be found by the formula 


vector V dot vector W = vx*wx + vy*wy + vz*wz.


that makes vector V dot vector W equal to 1*3 - 2*0 - 2*4 = -5.


there is an alternate formula for the dot product.


it is vector V dot vector W = magnitude of vector V * magnitude of vector W * cosine (theta), where theta is the angle between the two vectors.


you can use this formula to solve for the angle between the two vectors.


you get cosine (theta) = (vector V dot vector W) / (magnitude of vector V * magnitude of vector W).


we already calculated the dot product of vector V and vector W, which is equal to -5.


the magnitude of vector V is equal to sqrt(1^2 + (-2)^2 + 2^2) = sqrt(9)


the magnitude of vector W is equal to sqrt(3^2 + 0^2 + (-4)^2) = sqrt(25) = 5


cosine (theta) is therefore equal to -5 / (5*sqrt(9)) which is equal to -1/3.


in the first quadrant, the angle would be arcosine (1/3) = 70.52877936.


since the cosine is negative, the angle could be in the second quadrant or the third quadrant.


in the second quadrant, the angle would be (180 - 70.52877936) = 109.4712206.


in the third quadrant, the angle would be (180 + 70.52877936) = 250.5287794.


it's difficult to see what the angle is on the 3 dimension graph because the angle between the two vectors is in a different plane.


my guess is that the angle is 109.4712206 because 250 degrees just looks too large.


i used an online calculator and it told me the angle was 109 degrees, so i think my guess is right, assuming the calculator did the job correctly.


that calculator can be found at <a href = "https://www.emathhelp.net/calculators/linear-algebra/angle-between-two-vectors-calculator/?ux=1&uy=-2&uz=2&vx=3&vy=0&vz=-4&steps=on" target = "_blank">https://www.emathhelp.net/calculators/linear-algebra/angle-between-two-vectors-calculator/?ux=1&uy=-2&uz=2&vx=3&vy=0&vz=-4&steps=on</a>



c. The lines L1 and L2 intersect at the point R. Find the coordinates of R. 
Would I use a midpoint formula to discover this? Since R would be in the middle of both lines?


the intersection of the lines is the common point between the lines.


if you have a 3D graphing calculator, you might have the calculator find the point for you.


if not, then you need to find it algebraically by solving the two equations of the lines simultaneously.


a good reference on how to do that can be found at <a href = "https://www.youtube.com/watch?v=LxDM5-wRAzI" target = "_blank">https://www.youtube.com/watch?v=LxDM5-wRAzI</a>


the vector equations of both lines L1 and L2 would be:


L1 = <-1+T,6-2T,-1+2T>


L2 = <4+3S,2,-1-4S>


this means:


<pre>


variable            L1                L2

x                   -1 + T            4 + 3S
y                    6 - 2T           2
z                   -1 + 2T          -1 - 4S

</pre>


if the lines intersect, then the (x,y,z) coordinate of the intersection point will be the same in both lines.


this means that:


-1 + T = 4 + 3S
6 - 2T = 2
-1 + 2T = -1 - 4S


take any two of these equations and solve for one of the variables.
then take the value of that variable and replace it in any one of the equations.


you will get S = -1 and T = 2


when S = -1 and T = 2, your lines will have a common x,y,z coordinate as shhown below.


for L1, x = -1 + 2 = 1
for L2, x = 4 + 3 * -1 = 4 - 3 = 1


for L1, y = 6 - 4 = 2
for L2, y = 2


for L1, z = -1 + 4 = 3
for L2, z = -1 - 4 * -1 = -1 + 4 = 3


the common intersection occurs when T = 2 and S = -1.


that intersection point is at (1,2,3).


since i really didn't know how to do this when i decided to try to answer this question, i had to rely on many references to embellish my understanding sufficiently to provide an answer.


the other tutor who answered these questions was one of those references, namely math_helper(1240).


he was quite helpful.


the other references were on the web and are shown below.


<a href = "https://www.emathhelp.net/calculators/linear-algebra/angle-between-two-vectors-calculator/?ux=1&uy=-2&uz=2&vx=3&vy=0&vz=-4&steps=on" target = "_blank">https://www.emathhelp.net/calculators/linear-algebra/angle-between-two-vectors-calculator/?ux=1&uy=-2&uz=2&vx=3&vy=0&vz=-4&steps=on</a>


<a href = "https://www.youtube.com/watch?v=98C7iv8OcnI" target = "_blank">https://www.youtube.com/watch?v=98C7iv8OcnI</a>


<a href = "https://www.youtube.com/watch?v=qsgK1d-_8ik" target = "_blank">https://www.youtube.com/watch?v=qsgK1d-_8ik</a>


<a href = "https://www.youtube.com/watch?v=46y2ec1Nuuk" target = "_blank">https://www.youtube.com/watch?v=46y2ec1Nuuk</a>


<a href = "https://www.youtube.com/watch?v=PyPp4QvQY3Q" target = "_blank">https://www.youtube.com/watch?v=PyPp4QvQY3Q</a>


<a href = "https://www.youtube.com/watch?v=h2kjjDK1t2s" target = "_blank">https://www.youtube.com/watch?v=h2kjjDK1t2s</a>


<a href = "https://www.youtube.com/watch?v=_YkIivLaVJs" target = "_blank">https://www.youtube.com/watch?v=_YkIivLaVJs</a>


<a href = "https://www.youtube.com/watch?v=lulSApFPw1M" target = "_blank">https://www.youtube.com/watch?v=lulSApFPw1M</a>


<a href = "https://www.youtube.com/watch?v=DXB1PWq8Dg0" target = "_blank">https://www.youtube.com/watch?v=DXB1PWq8Dg0</a>


<a href = "https://www.youtube.com/watch?v=MpN8BIci-Ys" target = "_blank">https://www.youtube.com/watch?v=MpN8BIci-Ys</a>


<a href = "https://www.youtube.com/watch?v=MpN8BIci-Ys" target = "_blank">https://www.youtube.com/watch?v=MpN8BIci-Ys</a>


<a href = "https://www.youtube.com/watch?v=H7wre3njI0Y" target = "_blank">https://www.youtube.com/watch?v=H7wre3njI0Y</a>


<a href = "https://www.youtube.com/watch?v=LxDM5-wRAzI" target = "_blank">https://www.youtube.com/watch?v=LxDM5-wRAzI</a>


there may be some redundancy, but better too much than too little so i included all that i found and reviewed that appeared to be pertinent to the problems at hand.


you may find them helpful as well.