<<

Section 2.4: Equations of Lines and Planes

An equation of three variable F (x, y, z) = 0 is called an equation of a surface S if

(x1, y1, z1) S if and only if F (x1, y1, z1) = 0. 2 For instance, x2 + y2 + z2 = 1 is the equation of the unit sphere centered at the origin. The graph of a system of two equations

F (x, y, z) = 0, G (x, y, z) = 0 represents the intersection of two surfaces represented by F (x, y, z) = 0 and by G (x, y, z) = 0, respectively, and is usually a curve. A) Lines in R3. A l is determined by two elements: one P0 on the line l and a direction ~v of l,i.e., any vector that is parallel to l. The goal here is to describe the line using algebra so that one is able to digitize it. Suppose that the coordinate of the point P0 on the line and a direction ~v are given as:

P0 (x0, y0, z0) is a given point on l ~v = a, b, c is parallel to l. h i

Consider any point P (x, y, z) in the . Let ¡P¡0!P be the vector connecting

P0 and P. If P is located exactly on the line, then ¡P¡0!P is parallel to the line l,and thus it is parallel to ~v. On the other hand, if P is o¤ the line, then, since P0 is on the line, ¡P¡0!P cannot possibly be parallel to the line. Therefore,

¡P¡0!P cannot possibly be parallel to ~v. We just concluded that

P is on l if and only if ¡P¡0!P is parallel to ~v .

Now

¡P¡0!P = x, y, z x0, y0, z0 = x x0, y y0, z z0 h i ¡ h i h ¡ ¡ ¡ i ~v = a, b, c . h i

1 P(x,y,z) z

Po V

l

O y

x

So ¡P¡!P // ~v ¡P¡!P = t~v (for a constant t) 0 () 0 which is equivalent to x x y y z z ¡ 0 = ¡ 0 = ¡ 0 . a b c We called these three equation symmetric form of the system of equations for line l. If we x x y y z z ¡ 0 = ¡ 0 = ¡ 0 = t, a b c which is equivalent to x x ¡ 0 = t a y y0 ¡ = t b z z ¡ 0 = t, c

2 Or

x = x0 + at

y = y0 + bt

z = z0 + ct,

We call it the parametric form of the system of equations for line l. This system can be written in the form of vector equation:

~r = r + t~v, ~r = x, y, z , r = x , y , z . ¡!0 h i ¡!0 h 0 0 0i Example 4.1. (a) Find the equation of the line passing through (5, 1, 3), having direction ~v = 1, 0, 2 . Express answer in (i) symmetric form¡, (ii) vector form, and (iii) pharam¡etriic form. (b) Find two other points on the line. Solution: (a) (i) x 5 y + 1 z 3 ¡ = = ¡ 1 0 2 ¡ (ii) ~r = 5, 1, 3 + t 1, 0, 2 h ¡ i h ¡ i (iii)

x = 5 + t y = 1 ¡ z = 3 2t ¡ (b) Take t = 1, (x, y, z) = (6, 1, 1) . Take t = 1, (x, y, z) = (4, 1, 5) . Example 4.2. (a) Find the¡equation, in sym¡metric form, of th¡e line l passing through A (2, 4, 3) and B (3, 1, 1) . (b) Determine where the line l intersects xy . ¡ ¡ ¡ Solution. (a) The line is parallel to vector ¡A!B. So we choose this vector as the direction of l,

~v = ¡A!B = 3, 1, 1 2, 4, 3 = 1, 5, 4 , h ¡ i ¡ h ¡ i h ¡ i and A (2, 4, 3) as the point on l. Thus, the equation is ¡ x 2 y 4 z + 3 ¡ = ¡ = . 1 5 4 ¡ 3 (b) If this line crosses xy plane somewhere at (x, y, z) , then z = 0. So this point (x, y, 0) satis…es th¡e line equation, i.e., x 2 y 4 0 + 3 ¡ = ¡ = . 1 5 4 ¡ We solve this system to obtain 3 11 x = 2 + = 4 4 3 1 y = 4 5 = ¡ 4 4 µ ¶ z = 0.

Example 4.3. Given two lines

l : x = 1 + t, y = 2 + 3t, z = 4 t 1 ¡ ¡ l2 : x = 2t, y = 3 + t, z = 3 + 4t. ¡ Determine whether they intersect each other, or they are parallel, or neither (skew lines). Solution: First of all, in each line equation, "t" is a parameter (or free variable) that can be chosen arbitrarily. Therefore, the parameter "t" in the equations for line l1 is DIFFERENT from the parameter "t" in the equations for line l2. To clarify this issue, we rewrite as

l1 : x = 1 + t, y = 2 + 3t, z = 4 t ¡ ¡ l2 : x = 2s, y = 3 + s, z = 3 + 4s, ¡ and intersection of these two lines consists of solutions of the following system of six equations,

x = 1 + t, y = 2 + 3t, z = 4 t ¡ ¡ x = 2s, y = 3 + s, z = 3 + 4s, ¡ for …ve variables: x, y, z, t, s. Two lines intersect each other if and only If this system has a solution. If, for instance, (x0, y0, z0, t0, s0) is a solution, then the …rst three components, (x0, y0, z0) is a point of intersection.

4 We now proceed to solution the system by eliminating x,y,z:

1 + t = 2s (1) 2 + 3t = 3 + s (2) ¡ 4 t = 3 + 4s. (3) ¡ ¡ There are three equations with two unknowns. We start with two equations, for instance, the …rst and the second equation:

1 + t = 2s 2 + 3t = 3 + s. ¡ This can be easily solved as, by subtracting 2 times the second equation from the …rst equation, i.e., 11 7 5t = 6 = t = , ¡ ¡ ) 5 1 + t 8 s = = . 2 5 11 8 We need to verify that the solution, t = , s = , from the …rst two 5 5 equations (1) & (2), satis…es the third equation (3). So 11 9 LHS of (3) = 4 t = 4 = ¡ ¡ 5 5 8 17 RHS of (3) = 3 + 4s = 3 + 4 = . ¡ ¡ 5 5 µ ¶ Apparently, 11 8 t = , s = 5 5 is not a solution of the entire system (1)-(3). We thus conclude that these two line cannot possibly intersect. Answer: skew lines

5

N

Plane π Po P(x,y,z) z

l

O y

x

B) Equations of Plane. De…nition. Any vector that is to a plane is called a normal vector to the plane. There are two normal directions (opposite to each other) to a given plane. For any given vector ~n, there are in…nite many parallel planes that are all having ~n as their normal vector. If we also know a point on the plane, then, this plane is uniquely determined. In other words, a plane π can be determined by a point P0 (x0, y0, z0) on the plane and a vector as its normal vector ~n = A, B, C . h i For any point P (x, y, z) , if this point P is on the plane π, then the P0P entirely lies on the plane. Consequently, vector

¡P¡0!P = ~r r0 = x x0, y y0, z z0 , where ~r = x, y, z , r0 = x0, y0, z0 , ¡ ¡! h ¡ ¡ ¡ i h i ¡! h i is perpendicular to the normal vector ~n. On the other hand, if P is o¤ the

6 plane π, then ~r = ¡P¡0!P is not perpendicular to ~n. We conclude that

P π (P belongs to π) ¡P¡!P ~n = 0, 2 () 0 ¢ or (~r r0 ) ~n = 0. (Vector Equation) ¡ ¡! ¢ We call it vector equation of the plane π.In terms of components,

x x0, y y0, z z0 A, B, C = 0. h ¡ ¡ ¡ i ¢ h i We obtain scalar form of equation of plane π :

A (x x0) + B (y y0) + C (z z0) = 0, (Scalar Equation) ¡ ¡ ¡ or Ax + By + Cz + D = 0. (Linear Equation) In 3D spaces, any linear equation as above represents a plane with a normal vector ~n = A, B, C . (In 2D, any linear equation is a straight line.) h i Example 4.4. Find the equation of the plane passing through P0 (2, 4, 1) having a normal vector ~n = 2, 3, 4 . ¡ Solution: A = 2, B = 3, Ch = 4.Tihe equation is

2 (x 2) + 3 (y 4) + 4 (z + 1) = 0, ¡ ¡ or 2x + 3y + 4z 12 = 0. ¡ Example 4.5. Find the equation of the plane passing through P (1, 3, 2) , Q (3, 1, 6) , R (5, 2, 0) . So¡lution: Let

~u = ¡P!R = 5, 2, 0 1, 3, 2 = 4, 1, 2 h i ¡ h i h ¡ ¡ i ~v = ¡P!Q = 3, 1, 6 1, 3, 2 = 2, 4, 4 h ¡ i ¡ h i h ¡ i

7 Q

V

P R U

The vector i j k ~u ~v = 4 1 2 £ ¯ ¡ ¡ ¯ ¯ 2 4 4 ¯ ¯ ¡ ¯ ¯ 1 2 ¯ 4 2 4 1 = ¯ ¡ ¡ ~i ¯ ¡ ~j + ¡ ~k ¯ 4 4 ¡¯ 2 4 2 4 ¯ ¡ ¯ ¯ ¯ ¯ ¡ ¯ ¯ ¯ ¯~ ¯ ¯ ¯ = ¯ 12~i 20~j¯ 14¯k ¯ ¯ ¯ ¯¡ ¡ ¯¡ ¯ ¯ ¯ ¯ = 2 6~i + 10~j + 7~k ¡ ³ ´ is perpendicular to both ~u and ~v.Thus,

~n = 6~i + 10~j + 7~k ³ ´ is perpendicular to π. Now, we take this normal vector and one point P (1, 3, 2) (you may choose Q or R,instead), and the equation is

6 (x 1) + 10 (y 3) + 7 (z 2) = 0 ¡ ¡ ¡ or 6x + 10y + 7z 50 = 0. ¡ Note that if we chose Q (3, 1, 6) as the known point, then the equation would be ¡ 6 (x 3) + 10 (y + 1) + 7 (z 6) = 0 ¡ ¡ or 6x + 10y + 7z 50 = 0. ¡ 8 Example 4.6. Find the intersection, if any, of the line

x = 2 + 3t, y = 4t, z = 5 + t ¡ and the plane 4x + 5y 2z = 18. ¡ Solution: We need to solve the system of all four equations

x = 2 + 3t y = 4t ¡ z = 5 + t 4x + 5y 2z = 18 ¡ for x, y, z, t. To this end, we substitute the …rst three equations into the last one. This leads to

4 (2 + 3t) + 5 ( 4t) 2 (5 + t) = 18, ¡ ¡ which can be simpli…ed to

10t 2 = 18. ¡ ¡ So t = 2, ¡ and

x = 2 + 3t = 4 ¡ y = 4t = 8 ¡ z = 5 + t = 3.

Answer: the intersection is ( 4, 8, 3) . Example 4.7. Given tw¡o planes

π1 : x + y + z = 1

π2 : x 2y + 3z = 1. ¡ Find (a) the line of intersection, and (b) the angle between two planes.

9 Plane π1 n1

n2

Line l

Plane π2

Solution: Plane π1 and plane π2 have normal vectors ~n1 and ~n2,respectively, as ~n = 1, 1, 1 1 h i ~n = 1, 2, 3 . 2 h ¡ i The line is on both planes and thus is perpendicular to both normal vectors. The direction of the line is i j k ~v = ~n1 ~n2 = 1 1 1 £ ¯ ¯ ¯ 1 2 3 ¯ ¯ ¡ ¯ 1 1 ¯ 1 1 ¯ 1 1 = ~i¯ ~j¯+ ~k 2 3 ¯¡ 1 3 ¯ 1 2 ¯ ¡ ¯ ¯ ¯ ¯ ¡ ¯ ¯ ¯ ~ ¯ ¯ ¯ ¯ = ¯5~i 2~j ¯3k. ¯ ¯ ¯ ¯ ¯ ¡ ¡¯ ¯ ¯ ¯ ¯ To …nd the equation of the line, we also need a point on the line, i.e., on both planes. So we look for one solution to the system x + y + z = 1 x 2y + 3z = 1. ¡

10 This system has in…nite many solutions (why). Since we only need one solution, we set z = 0 to reduce the system to

x + y = 1 x 2y = 1. ¡ Subtracting the second equation from the …rst, we …nd

3y = 0 = y = 0 ) x = 1.

So P (1, 0, 0) l. The equation of the line, in parametric form, is 2 x = 1 + 5t y = 2t ¡ z = 3t. ¡ Solution #2: Another way to …nd the equation of this line is to solve the system

x + y + z = 1 x 2y + 3z = 1 ¡ directly in terms of z. In other words, we choose z as parameter. To this end, we subtract the second equation from the …rst one to get 2 3y 2z = 0 = y = z. ¡ ) 3

Substituting this into plane π1 : 2 5 x + z + z = 1 = x = 1 z, 3 ) ¡ 3 µ ¶ we obtain the equation of the line 5 x = 1 z ¡ 3 2 y = z 3 z = z.

11 Note that z is basically a free variable. If we set z = 3t, this becomes ¡ x = 1 + 5t y = 2t ¡ z = 3t ¡ which is identical to what we got earlier. (b) The angle between two planes is the same as the angle between their normal vectors. So

~n1 ~n2 1, 1, 1 1, 2, 3 1 2 + 3 2 cos θ = ¢ = h i ¢ h ¡ i = ¡ = ~n1 ~n2 1, 1, 1 1, 2, 3 p3p1 + 4 + 9 p3p14 j j j j jh ij jh ¡ ij 2 180 θ = arccos = 1. 257 1(rad) = 1. 257 1 (deg) = 720. p3p14 π µ ¶

Practical advice in …nding equations of lines or planes: Regardless what information a problem provides, we always look for a point and a direction. That would be su¢cient to solve the problem. More precisely (1) If we want equations of a line, then we look for one point on the line and a vector PARALLEL to the line. (2) If we want an equation of a plane, then we look for one point on the plane and a vector PERPENDICULAR to the plane. Cross product may be used to create a vector perpendicular given two vectors.

12

P1

dist Line l

V

P0

C) Distance between points, lines and planes: Let S and T be two sets of points. Then

dist (S, T ) = min dist (P, Q) P S, Q T . f j 2 2 g In other words, the distance between two sets is de…ned as the smallest distance between two points from di¤erent sets. 1) Distance between a point P1 (x1, y1, z1) and the line l:

x = x0 + at

y = y0 + bt

z = z0 + ct.

Pick a point on the line, say P0 (x0, y0, z0) , and a direction (unit vector) of the line 1 ~v = a, b, c . pa2 + b2 + c2 h i Then the cross product ¡P¡P! ~v 0 1 £ ³ ´

13 by de…nition, has the length

dist (P1, l) = ¡P¡0P!1 ~v = ¡P¡0P!1 sin θ. £ ¯³ ´ ¯ ¯ ¯ ¯ ¯ ¯ ¯ Example 4.8. Find the distance from P1 (1, 2, 1) to the line l : ¯ ¯ ¯ ¡ ¯ x = 1 + 2t y = 2 3t ¡ z = 4t.

Solution. P0 (1, 2, 0) is a point on l, and

¡P¡0P!1 = 1, 2, 1 1, 2, 0 = 0, 4, 1 . h ¡ i ¡ h i h ¡ i A unit direction of the line is 1 ~v = 2, 3, 4 p29 h ¡ i So ~ ~ ~ 1 i j k ¡P¡0P!1 ~v = 0 4 1 £ p29 ¯ ¡ ¯ ¯ 2 3 4 ¯ ³ ´ ¯ ¡ ¯ ¯ ¯ 1 ¯ 4 1 ~¯ 0 1 ~ 0 4 ~ = ¯ ¡ i¯ j + ¡ k p29 3 4 ¡ 2 4 2 3 µ¯ ¡ ¯ ¯ ¯ ¯ ¡ ¯ ¶ 1 ¯ ¯ ¯ ¯ ¯ ¯ = ¯ 13~i + 2~j¯ + 8~k¯ , ¯ ¯ ¯ p29 ¡¯ ¯ ¯ ¯ ¯ ¯ ³ ´ and

p132 + 4 + 64 237 dist (P1, l) = ¡P¡0P!1 ~v = = = 2. 86. £ p29 29 ¯³ ´ ¯ r ¯ ¯ (2) Distance from¯a point P1 (x¯ 1, y1, z1) to a plane π : Ax+By+Cz+D = 0. Pick any point P0 (x0, y0, z0) on the plane, i.e., (x0, y0, z0) solves

Ax0 + By0 + Cz0 + D = 0,

14

P1

N N

P0 Plane π

then the distance is the absolute value of the dot product of ¡P¡0P!1 and normal direction 1 ~n = A, B, C pA2 + B2 + C2 h i

dist (P0, π) = ¡P¡0P!1 ~n ¢ ¯³x ´x , y¯ y , z z A, B, C = ¯h 1 ¡ 0 1¯ ¡ 0 1 ¡ 0i ¢ h i ¯ p¯ A2 + B2 + C2 ¯ ¯ ¯A (x1 x0) + B (y1 y0) + C (z1 z¯0) = ¯ ¡ ¡ ¡ ¯ ¯ pA2 + B2 + C2 ¯ ¯ ¯ ¯Ax1 + By1 + Cz1 (Ax0 + By0 + Cz0)¯ = ¯ ¡ ¯ ¯ pA2 + B2 + C2 ¯ ¯ ¯ ¯Ax + By + Cz + D ¯ = ¯ 1 1 1 . ¯ ¯ pA2 + B2 + C2 ¯ ¯ ¯ ¯ ¯ ¯ ¯ Example 4.9. Find¯ the distance from P (1¯, 2, 3) to the planeπ : 2x y + 3z = 4. ¡ Solution: We rewrite plane π in the standard form as

2x y + 3z 4 = 0. ¡ ¡

15 So Ax + By + Cz + D dist (P, π) = 1 1 1 pA2 + B2 + C2 ¯ ¯ ¯2x y + 3z 4 ¯ = ¯ 1 ¡ 1 1 ¡ ¯ ¯ p22 + 12 + 42 ¯ ¯ ¯ ¯ 2 2 + 9 4 ¯ = ¯ ¡ ¡ = 1¯. 09. ¯p22 + 12 + 42 ¯ ¯ ¯ ¯ ¯ (3) Distance between two line¯s. ¯ ¯ ¯ We …rst …ne the plane π containing line l1 and being parallel to l2. If ~v1 and ~v2 are directions of l1 and l2,respectively. Then, ~n = ~v ~v 1 £ 2 is a normal vector to the plane π.One may pick any point P0 on l1 and this normal vector to obtain the equation of π. Pick any point P1 on line l2,and

dist (l1, l2) = dist (P1, π) (A)

Another approach is to use projection. Pick one point from each line, say P0 l , P l . Then, 2 1 1 2 2

¡P¡0P!1 ~n ¢ dist (l1, l2) = Proj ¡P¡0P!1 = (B) ~n ¯³ ~n´ ¯ ¯ ³ ´¯ ¯ j j ¯ ¯ ¯ ¯ ¯ Example 4.10. Consider¯ two skewed li¯nes in Example 9.5.3.

l1 : x = 1 + t, y = 2 + 3t, z = 4 t ¡ ¡ l : x = 2t, y = 3 + t, z = 3 + 4t. 2 ¡ Find their distance. Solution. We …rst use method (A). The normal to the plane π containing l1 and parallel to l2 is ~n = ~v1 ~v2 = £ ~i ~j ~k 3 1 ~ 1 1 ~ 1 3 ~ ~n = ~v1 ~v2 = 1 3 1 = ¡ i ¡ j + k £ ¯ ¡ ¯ 1 4 ¡ 2 4 2 1 ¯ 2 1 4 ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¯ = 13~i 6~j ¯5~k. ¯ ¯ ¯ ¯ ¯ ¯ ¯ ¡ ¡¯ ¯

16

P1 Line l2

V2

dist N

Line l1

V1

P0

17 Obviously, P0 (1, 2, 4) l1. So equation of π is ¡ 2 13 (x 1) 6 (y + 2) 5 (z 4) = 0. ¡ ¡ ¡ ¡

Since P1 (0, 3, 3) l2, formula (A) and the distance formula lead to ¡ 2

dist (l1, l2) = dist (P1, π) Ax + By + Cz + D = 1 1 1 pA2 + B2 + C2 ¯ ¯ ¯13 (0 1) 6 (3 + 2) ¯ 5 ( 3 4) = ¯ ¡ ¡ ¡¯ ¡ ¡ ¯ p132 + 36 + ¯25 ¯ ¯ ¯ ¯ = ¯0.527 5 ¯ ¯ ¯ Let now solve the same problem using formula (B). Note that

¡P¡P! = 0, 3, 3 1, 2, 4 = 1, 5, 7 0 1 h ¡ i ¡ h ¡ i h¡ ¡ i ~n = 13~i 6~j 5~k. ¡ ¡ So

¡P¡P! ~n 0 1 ¢ 1 13 + 5 ( 6) + ( 7) ( 5) dist (l1, l2) = = ¡ ¢ ¢ ¡ ¡ ¢ ¡ = 0.527 5. ¯³ ~n´ ¯ p132 + 36 + 25 ¯ ¯ ¯ ¯ ¯ j j ¯ ¯ ¯ ¯ ¯ (4) Distance between a line¯l and a plane π. ¯ Pick any point P0 on the line and the distance dist (l, π) between line l and plane π is the distance from P0 to plane π :

dist (l, π) = dist (P0, π) , P0 l. 2 Homework:

1. Determine whether each statement is true or false.

(a) Two lines parallel to a third line are parallel. (b) Two lines perpendicular to a third line are parallel. (c) Two planes parallel to a third plane are parallel. (d) Two planes perpendicular to a third plane are parallel.

18 (e) Two lines parallel to a plane are parallel. (f) Two lines perpendicular to a plane are parallel. (g) Two planes parallel to a line are parallel. (h) Two planes perpendicular to a line are parallel. (i) Two planes are either intersect or are parallel. (j) Two lines are either intersect or are parallel. (k) A plane and a line are either intersect or are parallel.

2. Find parametric equation and symmetric equation of line.

(a) The line through the point (1, 0, 3) and parallel to 2, 4, 5 . ¡ h ¡ i (b) The line through the point the origin and parallel to the line x = 2t, y = 1 t, z = 4 + 3t. ¡ (c) The line through (1, 1, 6) and perpendicular to the plane x + 3y + z = 5. (d) The line through (2, 1, 1) and perpendicular to~i+~j +~k and~i+2~k. (e) The line of intersection of the planes x+ 2y +z = 1 and x+ y = 0.

3. Find equation of plane.

(a) The plane through (1, 0, 1) , (0, 1, 1), and (1, 1, 0) . (b) The plane through (5, 1, 0) and parallel to two lines x = 2+t, y = 2t, z = 1 and x = t, y = 2 t, z = 2 3t. ¡ ¡ ¡ (c) The plane through ( 1, 2, 1) and contains the line of intersection of two planes x + y ¡z = 2 and 2x y + 3z = 1. ¡ ¡ (d) The plane through ( 1, 2, 1) and perpendicular to the line of in- tersection of two plan¡es x + y z = 2 and 2x y + 3z = 1. ¡ ¡ (e) The plane that passes through the line of intersection of the planes x z = 1 and y + 2z = 3, and is perpendicular to the plane x +¡y 2z = 1. ¡ 4. Determine whether two lines are parallel, skew, or intersecting. If they intersect, …nd the point of intersection.

19 (a) L1 : x = 1+2t, y = 3t, z = 2 t; L2 : x = 1+ s, y = 4+s, z = 1 + 3s. ¡ ¡ x 2 y 3 z 2 x 2 y 6 z + 2 (b) L1 : ¡ = ¡ = ¡ ; L2 : ¡ = ¡ = 2 2 1 1 1 3 ¡ ¡ 5. (Optional) Find distance.

(a) Distance from (1, 0, 1) to the line x = 5 t, y = 3t, z = 1 + 2t. ¡ ¡ (b) Distance from (3, 2, 7) to the plane 4x 6y + z = 5. ¡ ¡ (c) Distance between two planes 3x+6y 9z = 4 and x+2y 3z = 2. ¡ ¡

20