document.write( "Question 1121153: I'm working on some summer problems so that I can be more prepared when I go into my class in the fall. (I haven’t learned any of this, but I am trying to become familiar with it.) I found a website full of problems of the content we will be learning, but it doesn't have the answers. I need a little guidance on how to do this problem. Here is the problem:\r
\n" );
document.write( "\n" );
document.write( "I’m going to do my best to talk through each part and tell you how I think it should be solved!\r
\n" );
document.write( "\n" );
document.write( "A line L1 passes through points P(−1,6,−1) and Q(0,4,1).
\n" );
document.write( "a. (i) Show that vector PQ=(1,−2,2).
\n" );
document.write( "So, I can see that if you take the x, y, and z of Q, and subtract the x, y and z of P, then you get PQ. But, is there some sort of formula for this that you would use to answer this question?
\n" );
document.write( "(ii) Hence, write down an equation for L1 in the form r=a+tb.
\n" );
document.write( "Would this be: r=(−1,6,−1)+t(0,4,1)? (I just plugged in P for a and Q for b.
\n" );
document.write( "b. A second line L2 has equation r=(4,2,−1)+s(3,0,−4).
\n" );
document.write( "Find the cosine between vector PQ and L2.
\n" );
document.write( "I’m super confused on how you could find the cosine of this when all you have is some points? Or, if I draw this out somehow would I find the sides to do the Law of Cosines?\r
\n" );
document.write( "\n" );
document.write( "c. The lines L1 and L2 intersect at the point R. Find the coordinates of R.
\n" );
document.write( "Would I use a midpoint formula to discover this? Since R would be in the middle of both lines? \n" );
document.write( "
Algebra.Com's Answer #736947 by Theo(13342)![]() ![]() You can put this solution on YOUR website! A line L1 passes through points P(−1,6,−1) and Q(0,4,1). \r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "a. (i) Show that vector PQ=(1,−2,2).\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "vector PQ is created from line segment PQ.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "a vector has both magnitude and direction.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "vector PQ = \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "note that -- means plus. \n" ); document.write( "you are subtracting a negative number, which is the same as adding a positive number.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "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.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the length of vector V is sqrt(1^2 + (-2)^2 + 2^2) = sqrt(1 + 4 + 4) = sqrt(9).\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "(ii) Hence, write down an equation for L1 in the form r=a+tb. \n" ); document.write( "Would this be: r=(−1,6,−1)+t(0,4,1)? (I just plugged in P for a and Q for b.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the vector equation of a line is in the form of R = R0 + T * vector V.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "R is any point on the line which is the same as any position vector that terminates on the line.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "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.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "V is a direction Vector.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the point P from the line PQ serves as the point R0 which is the same as position vector R0.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "note that any point on the graph also serves as a position vector. \n" ); document.write( "a position vector is a vector that has its tail at the origin and its head terminating at the point.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "therefore point (-1,6,-1) is also position vector <-1,6,-1).\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "this means that vector arithmetic applies to it just as with any other vector.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "vector V is the same as vector PQ that we just created.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "therefore, in the equation R = R0 + T * vector V, we get:\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "vector R0 = <-1,6,-1> \n" ); document.write( "vector V = <1,-2,2>\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "vector R = <-1,6,-1> + T * <1,-2,2> which becomes:\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "vector R = <-1,6,-1> + \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "vector R = <-1+T,6-2T,-1+2T>, where T is any real number.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "that's the equation of the line R in vector equation form.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "x = -1 + T \n" ); document.write( "y = 6 - 2T \n" ); document.write( "z = -1 + 2T\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "b. A second line L2 has equation r=(4,2,−1)+s(3,0,−4). \r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the equation of the first line is R = (-1,6,-1) + T * <1,-2,2> \n" ); document.write( "the equation of the second line is L1 = (4,2,-1) + S * <3,0,-4>\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the vector portion of these two lines is <1,-2,2> and <3,0,-4>\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "we'll call <1,-2,2> vector V and we'll call <3,0,-4> vector W.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "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.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "for example, you can place the tail end of both vectors at the origin.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the dot product of these two vectors can be found by the formula \r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "vector V dot vector W = vx*wx + vy*wy + vz*wz.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "that makes vector V dot vector W equal to 1*3 - 2*0 - 2*4 = -5.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "there is an alternate formula for the dot product.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "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.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "you can use this formula to solve for the angle between the two vectors.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "you get cosine (theta) = (vector V dot vector W) / (magnitude of vector V * magnitude of vector W).\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "we already calculated the dot product of vector V and vector W, which is equal to -5.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the magnitude of vector V is equal to sqrt(1^2 + (-2)^2 + 2^2) = sqrt(9)\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the magnitude of vector W is equal to sqrt(3^2 + 0^2 + (-4)^2) = sqrt(25) = 5\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "cosine (theta) is therefore equal to -5 / (5*sqrt(9)) which is equal to -1/3.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "in the first quadrant, the angle would be arcosine (1/3) = 70.52877936.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "since the cosine is negative, the angle could be in the second quadrant or the third quadrant.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "in the second quadrant, the angle would be (180 - 70.52877936) = 109.4712206.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "in the third quadrant, the angle would be (180 + 70.52877936) = 250.5287794.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "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.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "my guess is that the angle is 109.4712206 because 250 degrees just looks too large.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "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.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "that calculator can be found at 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\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "c. The lines L1 and L2 intersect at the point R. Find the coordinates of R. \n" ); document.write( "Would I use a midpoint formula to discover this? Since R would be in the middle of both lines?\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the intersection of the lines is the common point between the lines.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "if you have a 3D graphing calculator, you might have the calculator find the point for you.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "if not, then you need to find it algebraically by solving the two equations of the lines simultaneously.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "a good reference on how to do that can be found at https://www.youtube.com/watch?v=LxDM5-wRAzI\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the vector equations of both lines L1 and L2 would be:\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "L1 = <-1+T,6-2T,-1+2T>\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "L2 = <4+3S,2,-1-4S>\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "this means:\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( " \r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "variable L1 L2\r\n" ); document.write( "\r\n" ); document.write( "x -1 + T 4 + 3S\r\n" ); document.write( "y 6 - 2T 2\r\n" ); document.write( "z -1 + 2T -1 - 4S\r\n" ); document.write( "\r\n" ); document.write( "\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "if the lines intersect, then the (x,y,z) coordinate of the intersection point will be the same in both lines.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "this means that:\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "-1 + T = 4 + 3S \n" ); document.write( "6 - 2T = 2 \n" ); document.write( "-1 + 2T = -1 - 4S\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "take any two of these equations and solve for one of the variables. \n" ); document.write( "then take the value of that variable and replace it in any one of the equations.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "you will get S = -1 and T = 2\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "when S = -1 and T = 2, your lines will have a common x,y,z coordinate as shhown below.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "for L1, x = -1 + 2 = 1 \n" ); document.write( "for L2, x = 4 + 3 * -1 = 4 - 3 = 1\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "for L1, y = 6 - 4 = 2 \n" ); document.write( "for L2, y = 2\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "for L1, z = -1 + 4 = 3 \n" ); document.write( "for L2, z = -1 - 4 * -1 = -1 + 4 = 3\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the common intersection occurs when T = 2 and S = -1.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "that intersection point is at (1,2,3).\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "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.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the other tutor who answered these questions was one of those references, namely math_helper(1240).\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "he was quite helpful.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "the other references were on the web and are shown below.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "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\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=98C7iv8OcnI\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=qsgK1d-_8ik\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=46y2ec1Nuuk\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=PyPp4QvQY3Q\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=h2kjjDK1t2s\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=_YkIivLaVJs\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=lulSApFPw1M\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=DXB1PWq8Dg0\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=MpN8BIci-Ys\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=MpN8BIci-Ys\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=H7wre3njI0Y\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "https://www.youtube.com/watch?v=LxDM5-wRAzI\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "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.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "you may find them helpful as well.\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( " |