Section 2.4: Equations of Lines and Planes
Section 2.4: Equations of Lines and Planes
For instance,
x2 + y 2 + z 2 = 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
Now
¡¡!
P0 P = hx; y; zi ¡ hx0 ; y0 ; z0 i = hx ¡ x0 ; y ¡ y0 ; z ¡ z0 i
~v = ha; b; ci :
1
P(x,y,z)
z
Po
V
O y
So
¡¡! ¡¡!
P0 P == ~v () P0 P = t~v (for a constant t)
which is equivalent to
x ¡ x0 y ¡ y0 z ¡ z0
= = :
a b c
We called these three equation symmetric form of the system of equations
for line l:
If we set
x ¡ x0 y ¡ y0 z ¡ z0
= = = t;
a b c
which is equivalent to
x ¡ x0
=t
a
y ¡ y0
=t
b
z ¡ z0
= 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 = ¡
!
r0 + t~v; ~r = hx; y; zi ; !
¡
r0 = hx0 ; y0 ; z0 i :
Example 4.1. (a) Find the equation of the line passing through (5; ¡1; 3),
having direction ~v = h1; 0; ¡2i : Express answer in (i) symmetric form, (ii)
vector form, and (iii) parametric form.
(b) Find two other points on the line.
Solution: (a) (i)
x¡5 y+1 z¡3
= =
1 0 ¡2
(ii)
~r = h5; ¡1; 3i + t h1; 0; ¡2i
(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 symmetric form, of the line l
passing through A (2; 4; ¡3) and B (3; ¡1; 1) : (b) Determine where the line
l intersects xy ¡ plane:
¡!
Solution. (a) The line is parallel to vector AB: So we choose this vector
as the direction of l;
¡!
~v = AB = h3; ¡1; 1i ¡ h2; 4; ¡3i = h1; ¡5; 4i ;
3
(b) If this line crosses xy ¡ plane somewhere at (x; y; z) ; then z = 0: So
this point (x; y; 0) satis…es the 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:
l1 : x = 1 + t; y = ¡2 + 3t; z = 4 ¡ t
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
O y
B) Equations of Plane.
De…nition. Any vector that is perpendicular 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 = hA; B; Ci.
For any point P (x; y; z) ; if this point P is on the plane ¼ ; then the line
segment P0 P entirely lies on the plane. Consequently, vector
¡¡!
P0 P = ~r¡ ¡
!
r0 = hx ¡ x0 ; y ¡ y0 ; z ¡ z0 i ; where ~r = hx; y; zi ; !
¡
r0 = hx0 ; y0 ; z0 i ;
6
¡¡!
plane ¼; then ~r = P0 P is not perpendicular to ~n: We conclude that
¡¡!
P 2 ¼ (P belongs to ¼) () P0 P ¢ ~n = 0;
or
(~r ¡ !
¡
r0 ) ¢ ~n = 0: (Vector Equation)
We call it vector equation of the plane ¼:In terms of components,
hx ¡ x0 ; y ¡ y0 ; z ¡ z0 i ¢ hA; B; Ci = 0:
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 = hA; B; Ci . (In 2D, any linear equation is a straight line.)
Example 4.4. Find the equation of the plane passing through P0 (2; 4; ¡1)
having a normal vector ~n = h2; 3; 4i :
Solution: A = 2; B = 3; C = 4:The 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) :
Solution: Let
¡!
~u = P R = h5; 2; 0i ¡ h1; 3; 2i = h4; ¡1; ¡2i
¡!
~v = P Q = h3; ¡1; 6i ¡ h1; 3; 2i = h2; ¡4; 4i
7
Q
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 ¼ : 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
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
¡10t ¡ 2 = 18:
So
t = ¡2;
and
x = 2 + 3t = ¡4
y = ¡4t = 8
z = 5 + t = 3:
¼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
~n1 = h1; 1; 1i
~n2 = h1; ¡2; 3i :
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 ¡ ¯ ¯ ~ ¯ ¯~
¡2 3 ¯ ¯ 1 3 ¯ j + ¯ 1 ¡2 ¯ k
= 5~i ¡ 2~j ¡ 3~k:
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:
3y = 0 =) y = 0
x = 1:
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
11
Note that z is basically a free variable. If we set z = ¡3t; this becomes
x = 1 + 5t
y = ¡2t
z = ¡3t
12
P1
dist
Line l
P0
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 = p 2 ha; b; ci :
a + b2 + c2
Then the cross product ³¡¡!´
P0 P1 £ ~v
13
by de…nition, has the length
¯³¡¡!´ ¯ ¯¡¡!¯
¯ ¯ ¯ ¯
dist (P1 ; l) = ¯ P0 P1 £ ~v¯ = ¯P0 P1 ¯ sin µ:
Example 4.8. Find the distance from P1 (1; ¡2; 1) to the line l :
x = 1 + 2t
y = 2 ¡ 3t
z = 4t:
14
P1
N N
P0
Plane π
¡¡!
then the distance is the absolute value of the dot product of P0 P1 and normal
direction
1
~n = p 2 hA; B; Ci
A + B2 + C2
¯³¡¡!´ ¯
¯ ¯
dist (P0 ; ¼) = ¯ P0 P1 ¢ ~n¯
¯ ¯
¯ hx1 ¡ x0 ; y1 ¡ y0 ; z1 ¡ z0 i ¢ hA; B; Ci ¯
=¯ ¯ p ¯
A 2 + B2 + C 2 ¯
¯ ¯
¯ A (x1 ¡ x0 ) + B (y1 ¡ y0 ) + C (z1 ¡ z0 ) ¯
=¯ ¯ p ¯
2
A +B +C 2 2 ¯
¯ ¯
¯ Ax1 + By1 + Cz1 ¡ (Ax0 + By0 + Cz0 ) ¯
= ¯¯ p ¯
¯
A 2 + B2 + C 2
¯ ¯
¯ Ax1 + By1 + Cz1 + D ¯
= ¯¯ p 2 ¯:
A + 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
¯ ¯
¯ Ax1 + By1 + Cz1 + D ¯
¯
dist (P; ¼) = ¯ p 2 ¯
A + B 2 + C2 ¯
¯ ¯
¯ 2x1 ¡ y1 + 3z1 ¡ 4 ¯
= ¯¯ p 2 ¯
¯
2 + 1 2 + 42
¯ ¯
¯2¡2+9¡4¯
= ¯¯ p 2 ¯ = 1: 09:
2 +1 +4 ¯
2 2
16
P1 Line l2
V2
dist
N
Line l1
V1
P0
17
Obviously, P0 (1; ¡2; 4) 2 l1 : So equation of ¼ is
13 (x ¡ 1) ¡ 6 (y + 2) ¡ 5 (z ¡ 4) = 0:
Since P1 (0; 3; ¡3) 2 l2 ; formula (A) and the distance formula lead to
Let now solve the same problem using formula (B). Note that
¡¡!
P0 P1 = h0; 3; ¡3i ¡ h1; ¡2; 4i = h¡1; 5; ¡7i
~n = 13~i ¡ 6~j ¡ 5~k:
So
¯³¡¡!´ ¯
¯ ¯ ¯ ¯
¯ P0 P1 ¢ ~n¯ ¯ ¡1 ¢ 13 + 5 ¢ (¡6) + (¡7) ¢ (¡5) ¯
dist (l1 ; l2 ) = ¯
=¯ p ¯ = 0:527 5:
j~nj 132 + 36 + 25 ¯
Homework:
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.
(a) The line through the point (1; 0; ¡3) and parallel to h2; ¡4; 5i :
(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:
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.
20