40 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE Figure 1.16: Line through P 0 parallel to v 1.5 Equations of Lines and Planes in 3-D Recall that given a point P = (a, b, c), one can draw a vector from the origin to P. Such a vector is called the position vector of the point P and its coordinates are a, b, c, the same as P. Position vectors are usually denoted r. In this section, we derive the equations of lines and planes in 3-D. We do so by finding the conditions a point P = (x, y, z) or its corresponding position vector r = x, y, z must satisfy in order to belong to the object being studied (line or plane). 1.5.1 Lines And Line Segments In 3-D, like in 2-D, a line is uniquely determined when one point on the line and the direction of the line are given. In this section, we assume we are given a point P 0 = (x 0, y 0, z 0 ) on the line and a direction vector v = a, b, c. Our goal is to determine the equation of the line L which goes through P 0 and is parallel to v. Definition 65 a, b, and c are called the direction numbers of the line L. Let P (x, y, z) be an arbitrary point on L. We wish to find the conditions P must satisfy to be on the line L.
1.5. EQUATIONS OF LINES AND PLANES IN 3-D 41 Vector Equation Consider figure 1.16. We see that a necessary and suffi cient condition for the point P to be on the line L is that P 0 P be parallel to v. This means that there exists a scalar t such that P 0 P = t v Let r 0 be the position vector of P 0 and r be the position vector of P. Then, P 0 P = r r 0 Thus, we obtain That is r r0 = t v r = r0 + t v (1.9) Definition 66 Equation 1.9 is known as the vector equation of the line L. The scalar t used in the equation is called a parameter. The parameter t can be any real number. As it varies, the point P moves along the line. When t = 0, P is the same as P 0. When t > 0, P is away from P 0 in the direction of v and when t < 0, P is away from P 0 in the direction opposite v. The larger t is (in absolute value), the further away P is from P 0. Parametric Equations If we switch to coordinates, equation 1.9 becomes x, y, z = x 0, y 0, z 0 + t a, b, c = x 0 + at, y 0 + bt, z 0 + ct Two vectors are equal when their corresponding coordinates are equal. Thus, we obtain x = x 0 + at y = y 0 + bt (1.10) z = z 0 + ct Definition 67 Equation 1.10 is known as the parametric equation of the line L. Symmetric Equations If we solve for t in equation 1.10, assuming that a 0, b 0, and c 0 we obtain x x 0 = y y 0 = z z 0 (1.11) a b c Definition 68 Equation 1.11 is known as the symmetric equations of the line L.
42 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE Remark 69 Equation 1.11 is really three equations x x 0 a y y 0 b x x 0 a = y y 0 b = z z 0 c = z z 0 c (1.12) In the case one of the direction numbers is 0, the symmetric equation simply becomes the equation from 1.12 which does not involve the direction number being 0. The variable corresponding to the direction number being 0 is simply set to the corresponding coordinate of the given point. For example, if a = 0 then the symmetric equations are Examples y y 0 b x = x 0 = z z 0 c Example 70 Find the parametric and symmetric equations of the line through P ( 1, 4, 2) in the direction of v = 1, 2, 3 The parametric equations are The symmetric equations are x = 1 + t y = 4 + 2t z = 2 + 3t x + 1 = y 4 2 = z 2 3 Example 71 Find the parametric and symmetric equations of the line through P 1 (1, 2, 3) and P 2 (2, 4, 1). First, we need to find the direction vector. Since the line goes through P 1 and P 2, the vector P 1 P 2 will be parallel to the line. P 1 P 2 = 1, 2, 2 Using equation 1.10, we get If we solve for t, we get x = 1 + t y = 2 + 2t z = 3 2t x 1 = y 2 2 = z 3 2
1.5. EQUATIONS OF LINES AND PLANES IN 3-D 43 Equation of a Line Segment As the last two examples illustrate, we can also find the equation of a line if we are given two points instead of a point and a direction vector. Let s derive a formula in the general case. Suppose that we are given two points on the line P 0 = (x 0, y o, z 0 ) and P 1 = (x 1, y 1, z 1 ). Then P 0 P 1 = x 1 x 0, y 1 y 0, z 1 z 0 is a direction vector for the line. Using P 0 for the point and P 0 P 1 for the direction vector, we see that the parametric equations of the line are x = x 0 + t (x 1 x 0 ) y = y 0 + t (y 1 y 0 ) z = z 0 + t (z 1 z 0 ) This is usually written differently. If we distribute t and factor differently, we get x = (1 t) x 0 + tx 1 y = (1 t) y 0 + ty 1 (1.13) z = (1 t) z 0 + tz 1 When t = 0, we are at the point P 0 and when t = 1, we are at the point P 1. So, if t is allowed to take on any real value, then this equation will describe the whole line. On the other hand, if we restrict t to [0, 1], then this equation describes the portion of the line between P 0 and P 1 which is called the line segment from P 0 to P 1. Example 72 Find the equation of the line segment from P 0 P 1 (2, 4, 1). Using equation 1.13 we get x = (1 t) 1 + 2t y = (1 t) 2 + 4t with t [0, 1] z = (1 t) 3 + t = (1, 2, 3) to Intersecting Lines, Parallel Lines Recall that in 2-D two lines were either parallel or intersected. In 3-D it is also possible for two lines to not be parallel and to not intersect. Such lines are called skew lines. Two lines are parallel if their direction vectors are parallel. If two lines are not parallel, we can find if they intersect if there exists values of the parameters in their equations which produce the same point. More specifically, if the first line has equation r 0 + t v and the second line has equation R 0 + s u then they will intersect if there exists a value for t and s such that r 0 + t v = R 0 + s u. Also, when two lines intersect, we can find the angle between them by finding the smallest angle between their direction vectors (using the dot product). Finally, two lines are perpendicular if their direction vectors are perpendicular.
44 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE Remark 73 You will note that we used a different letter for the parameter in each equation because it may be a different value of the parameter which will produce the same point in each equation. We illustrate this with some examples. Example 74 Let L 1 be the line through (1, 6, 2) with direction vector 1, 2, 1 and L 2 be the line through (0, 4, 1) with direction vector 2, 1, 2. Determine if the lines are parallel, if they intersect or if they are skew. If they intersect, find the point at which they intersect. For the lines to be parallel, their direction vectors would have to be parallel, that is there would have to exist a constant c such that Which would imply 1, 2, 1 = c 2, 1, 2 1 = 2c 2 = c 1 = 2c Which has no solution. So, the lines are no parallel. We now derive the equation of each line. For L1 For L 2 x = 1 + t y = 6 + 2t z = 2 + t x = 2s y = 4 + s z = 1 + 2s The line will intersect if we can solve 1 + t = 2s 6 + 2t = 4 + s 2 + t = 1 + 2s Equation 1 gives t = 2s 1 If we substitute in equation 2, we get 6 + 2t = 4 + s 6 + 2 (2s 1) = 4 + s 6 + 4s 2 = 4 + s 3s = 12 s = 4
1.5. EQUATIONS OF LINES AND PLANES IN 3-D 45 Since we had t = 2s 1 this implies that t = 7. We need to verify that these values also work in equation 3. Replacing s and t by their values gives us 2 + 7 = 1 + 2 (4) 9 = 9 So, the two lines intersect. To find the point of intersection, we can use the equation of either line with the value of the corresponding parameter. If we use L 1, the parameter is t and the value of t which gives the point of intersection is t = 7. Thus, the point of intersection is That is x = 1 + 7 y = 6 + 2 (7) z = 2 + 7 x = 8 y = 8 z = 9 Example 75 Find the angle between the two previous lines. Their direction vectors are u = 1, 2, 1 and v = 2, 1, 2. The smallest angle between these vectors is θ = u v cos 1 u v = cos 1 2 + 2 + 2 6 9 = cos 1 6 3 6 35.26 Example 76 Find the points at which L 1 in the example above intersects with the coordinate planes. The parametric equations of L 1 are x = 1 + t y = 6 + 2t z = 2 + t Intersection with the xy-plane. On the xy-plane, z = 0. If we replace in the equation of L 1, we get t = 2. This allows us to find x and y. x = 1 2 = 1 and y = 6+2 ( 2) = 10. Thus, L 1 intersect the xy-plane at ( 1, 10, 0). Intersection with the xz-plane. On the xz-plane, y = 0. Using the same technique as above, we get 0 = 6 + 2t or t = 3. Thus, x = 1 + 3 = 4 and z = 2 + 3 = 5. Thus L 1 intersects the xz-plane at (4, 0, 5).
46 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE Figure 1.17: Plane determined by a point and its normal Intersection with the yz-plane. On the yz-plane, x = 0. Thus, 0 = 1 + t or t = 1. This gives us y = 6 + 2 ( 1) = 8 and z = 2 1 = 1. It follows that L 1 intersects the yz-plane at (0, 8, 1). Summary for Lines 1. Be able to find the equation of a line given a point and a direction or given two points. 2. Be able to tell if two lines are parallel, intersect or are skewed. 3. Be able to find the angle between two lines which intersect. 4. Be able to find the points at which a line intersect with the coordinate planes. 1.5.2 Planes Plane determined by a point and its normal A plane is uniquely determined given a point on the plane and a vector perpendicular to the plane. Such a vector is said to be normal to the plane. To help visualize this, consider figure 1.17. Given a point P 0 = (x 0, y 0, z 0 ) and a normal n = a, b, c to a plane, a point P = (x, y, z) will be on the plane if P 0 P is perpendicular to n that is n P0 P = 0 (1.14)
1.5. EQUATIONS OF LINES AND PLANES IN 3-D 47 This is known as the vector equation of a plane. Switching to coordinates, we get a, b, c x x 0, y y 0, z z 0 = 0 a (x x 0 ) + b (y y 0 ) + c (z z 0 ) = 0 We usually write this as ax + by + cz + d = 0 (1.15) where d = ax 0 by 0 cz 0. This is known as the scalar equation of a plane. It is also the equation of a plane in implicit form. Remark 77 Note that when we know the scalar equation of a plane, we automatically know its normal; it is given by the coeffi cients of x, y, and z. Remark 78 A plane in 3D is the analogous of a line in 2D. Recall that a normal to the line ax + by + c = 0 in 2D is a, b. Similarly, a normal to the plane ax + by + cz + d = 0 is a, b, c. Example 79 The normal to the plane 3x + 2y z = 10 is 3, 2, 1. Example 80 The scalar equation of a plane through (1, 2, 3) with normal 2, 1, 4 is 2 (x 1) + 1 (y 2) + 4 (z 3) = 0 2x + y + 4z 16 = 0 Plane determined by three points If instead of being given a point and the normal, we are given three non-colinear points P 1, P 2, and P 3, we form the vectors P 1 P 2 and P 1 P 3. The cross product P 1 P 2 P 1 P 3 is a vector perpendicular to both P 1 P 2 and P 1 P 3 and therefore perpendicular to the plane. We can then use one of the point, the vector obtained from the cross product to derive the equation of the plane. Example 81 Find the equation of the plane through the points P 1 (0, 1, 1), P 2 (1, 0, 1) and P 3 (1, 3, 1). A normal to the plane is P 1 P 2 P 1 P 3 = i j k 1 1 0 1 4 2 = 2 i + 2 j 3 k = 2, 2, 3
48 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE A point P (x, y, z) is on the plane if P 1 P ( P 1 P 2 ) P 1 P 3 = 0 x, y 1, z 1 2, 2, 3 = 0 2x + 2 (y 1) 3 (z 1) = 0 Parallel Planes, Intersecting Planes 2x + 2y 3z + 1 = 0 Two planes are parallel if and only if their normals are parallel. If two planes p 1 with normal n 1 and p 2 with normal n 2 are not parallel, then the angle θ between them is defined to be the smallest angle between their normals that is the angle with the non-negative cosine. In other words, θ = cos 1 n 1 n 2 n 1 n 2 (1.16) Example 82 Find the angle between the planes p 1 : x + y + z 1 = 0 and p 2 : x 2y + 3z 1 = 0. Find their intersection. Angle: The normal to p 1 is n 1 = 1, 1, 1 and the normal to p 2 is n 2 = 1, 2, 3. Therefore, the angle θ between them is θ = cos 1 n 1 n 2 n 1 n 2 = cos 1 2 3 14 = cos 1 2 42 72 Intersection: When two planes are not parallel, they intersect in a line. To find the equation of a line, we need a point and a direction. The direction of the line will be perpendicular to both n 1 and n 2. Thus, it can be found with n 1 n 2. n 1 i j k n 2 = 1 1 1 1 2 3 = 5 i 2 j 3 k = 5, 2, 3 We also need a point on the line. For this, we can use the equations of the planes. To be on the line, a point must belong to the two planes. However, that gives us only two equations and we have three unknowns. So, we can
1.5. EQUATIONS OF LINES AND PLANES IN 3-D 49 also fix one of the variables. For example, if we set z = 0, we will be looking for the point on the line which intersects the two planes and also the xy-plane. This is what we will do. So, we must solve { x + y = 1 x 2y = 1 The solutions are x = 1 and y = 0. So, (1, 0, 0) is a point on the line. Thus, the parametric equations of the line are Summary for Planes x = 1 + 5t y = 2t z = 3t In addition, using the material studied so far, you should be able to do the following: 1. Be able to find the equation of a plane given a point on the plane and a normal to the plane. 2. Be able to find the equation of a plane given three points on the plane. 3. Be able to find the equation of a plane through a point and parallel to a given plane. 4. Be able to find the equation of a plane through a point and a line not containing the point. 5. Be able to tell if two planes are parallel, perpendicular. 6. Be able to find the angle between two planes. 7. Be able to find the traces of a plane. 8. Be able to find the intersection of two planes. Make sure you can do the above before attempting the problems. 1.5.3 Problems Do the following problems. 1. Find the parametric equations for the line through the point P = (3, 4, 1) parallel to i + j + k. 2. Find the parametric equations for the line through the point P = ( 2, 0, 3) and Q = (3, 5, 2).
50 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE 3. Find the parametric equations for the line through the origin parallel to 2 j + k. 4. Find the parametric equations for the line through the point (1, 1, 1) parallel to the z-axis. 5. Find the parametric equations for the line through the point (0, 7, 0) perpendicular to the plane x + 2y + 2z = 13. 6. Find the parametric equations for the x-axis. 7. Find the equation of the line segment from (0, 0, 0) to ( 1, 1, 3 2). 8. Find the equation of the line segment from (1, 0, 0) to (1, 1, 0). 9. Find the equation of the plane through P = (0, 2, 1) normal to 3 i 2 j k. 10. Find the equation of the plane through P = (1, 1, 1), Q = (2, 0, 2) and R = (0, 2, 1). 11. Find the equation of the plane through P = (2, 4, 5) perpendicular to the x = 5 + t line y = 1 + 3t z = 4t x = 1 + 2t x = 2 + s 12. Find the point of intersection of the lines y = 2 + 3t and y = 4 + 2s z = 3 + 4t z = 1 4s Then, find the plane determined by these two lines. x = 1 + t 13. Find the plane determined by intersecting the lines y = 2 + t and z = 1 t x = 1 4s y = 1 + 2s z = 2 2s 14. Find the plane through P 0 = (2, 1, 1) perpendicular to the line of intersection of the planes 2x + y z = 3 and x + 2y + z = 2. x = 4t 15. Find the distance from the point P = (0, 0, 12) to the line y = 2t z = 2t 16. Find the distance from the point P = (2, 1, 3) to the line x = 2 + 2t y = 1 + 6t z = 3 17. Find the distance from the point P = (2, 3, 4) to the plane x + 2y + 2z = 13..
1.5. EQUATIONS OF LINES AND PLANES IN 3-D 51 18. Find the distance from the point P = (0, 1, 1) to the plane 4y + 3z = 12. 19. Find the distance between the two planes x+2y+6z = 1 and x+2y+6z = 10. 20. Find the angle between the two planes 2x+2y+2z = 3 and 2x 2y z = 5. x = 1 t 21. Find the point of intersection between the line y = 3t and the plane z = 1 + t 2x y + 3z = 6. 22. Determine whether the lines taken two at a time are parallel, intersect or skew. If they intersect, find their point of intersection. x = 3 + 2t L 1 : y = 1 + 4t z = 2 t L 2 : L 3 : 23. Find the points in which the line planes. x = 1 + 4s y = 1 + 2s z = 3 + 4s x = 3 + 2r y = 2 + r z = 2 + 2r x = 1 + 2t y = 1 t z = 3t meet the coordinate 24. In the plane, the slope-intercept form of the equation of a line is y = mx+b where m is the slope and b the y-intercept. Show that the vector (1, m) is a direction vector of the line y = mx + b. (hint: Pick 2 points P 1 and P 2 on the line the vector P 1 P 2 is a direction vector for the line). 25. Another form of the equation of a line in the plane is ax + by + c = 0. Using a similar approach as the one in the previous problem, show that (b, a) is a direction vector for such a line. What is a vector perpendicular to the line? change in y 26. For a line in space, the notion of slope ( ) does not carry over change in x because there are three variables changing, it is replaced by the direction vector. However, if a line is one of the coordinate planes, then there are only two variables involved. If the line is in the xy-plane, then only x and y are changing. If a line is in the xz-plane, then only x and z are changing. If a line is in the yz-plane, then only y and z are changing. Find the direction vector of a line having its slope equal to m in each of the coordinate planes. (hint: use problem??).
52 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE 27. Let L be the line that passes through the points Q and R and let P be a point not on L. Show that the distance between P and L is QR QP. QR Show that this agrees with the formula in the book for the distance between a point S and a line through P parallel to v which is P S v v. 28. Let P be a point not on the plane determined by the points Q, R and S. Show that the distance between P and the plane is QR ( ) QS QP. QR QS 29. Show that the distance from the point P 1 = (x 1, y 1 ) to the line ax+by+c = 0 is ax1+by1+c a 2 +b 2. 30. Show that the distance from the point P 1 = (x 1, y 1, z 1 ) and the plane ax + by + cz + d = 0 is ax1+by1+cz1+d a. 2 +b 2 +c 2 31. Assuming d 1 d 2, explain why the two planes given by ax+by+cz+d 1 = 0 and ax + by + cz + d 2 = 0 are parallel, then compute the distance between them.