In the plane, a single equation y=mx+b describes a line. In space that no longer works: one linear equation in x, y, z describes a plane, and a line needs a different description. Vectors give clean descriptions of both, and the dot and cross products turn questions about angles, intersections and distances into short computations.
Lines
A line in space is determined by a point P0(x0,y0,z0) on it and a nonzero direction vectorv=⟨a,b,c⟩ parallel to it. A point P lies on the line exactly when P0P is a multiple of v, say tv. Writing r0 and r for the position vectors of P0 and P:
Equations of a line
The line through P0(x0,y0,z0) with direction v=⟨a,b,c⟩ has
Each real value of the parameter t gives one point on the line.
Think of t as time: at t=0 you are at P0, and each unit of time moves you by v. A line has infinitely many such descriptions, since any point on it and any nonzero multiple of v work equally well.
Worked example: The line through two points
Find parametric equations for the line through P(1,−2,4) and Q(3,1,0), and find where it crosses the xz-plane.
Solution. A direction vector is PQ=⟨2,3,−4⟩. Using P as the base point:
x=1+2t,y=−2+3t,z=4−4t.
The xz-plane is y=0, so −2+3t=0 and t=32. Then x=1+34=37 and z=4−38=34. The crossing point is (37,0,34).
How two lines can meet
Two lines in the plane either intersect or are parallel. In space there is a third option: skew lines are not parallel and never meet, like a road and an overpass crossing it.
If the direction vectors are parallel, the lines are parallel (or identical, if they share a point).
Otherwise, set the coordinates equal using different parameterst and s. Solve two of the three equations. If the solution satisfies the third, the lines intersect; if not, they are skew.
Worked example: Intersecting or skew?
Classify L1: x=1+t,y=2−t,z=3t and L2: x=2s,y=3+s,z=1+4s.
Solution. The directions ⟨1,−1,3⟩ and ⟨2,1,4⟩ are not multiples of each other, so the lines are not parallel. Equate x and y: 1+t=2s and 2−t=3+s. Adding the equations gives 3=3+3s, so s=0 and then t=−1. Check z: L1 gives 3t=−3, but L2 gives 1+4s=1. These disagree, so the lines never meet. They are skew.
Planes
A plane is determined by a point P0 in it and a nonzero normal vectorn=⟨a,b,c⟩ perpendicular to it. A point P lies in the plane exactly when P0P is orthogonal to n.
Equation of a plane
The plane through P0(x0,y0,z0) with normal vector n=⟨a,b,c⟩ is
n⋅(r−r0)=0,that is,a(x−x0)+b(y−y0)+c(z−z0)=0.
Expanding gives the linear equationax+by+cz=d. Conversely, every such equation with a,b,c not all zero is a plane with normal ⟨a,b,c⟩.
So you can read a normal vector straight off the coefficients: 2x−y+5z=7 has normal ⟨2,−1,5⟩. To sketch a plane, find its intercepts and connect them. The plane 2x+3y+4z=12 meets the axes at (6,0,0), (0,4,0) and (0,0,3); the triangle joining them is the part of the plane in the first octant.
The first-octant piece of the plane 2x + 3y + 4z = 12, drawn by joining its three intercepts.
For a plane through three points P, Q, R, the vectors PQ and PR lie in the plane, so their cross product is a normal vector.
Worked example: Plane through three points
Find an equation of the plane through P(1,0,2), Q(2,−1,3) and R(0,2,1).
Using P: −(x−1)+0(y−0)+(z−2)=0, which simplifies to x−z=−1. Check: Q gives 2−3=−1 and R gives 0−1=−1.
Angles, intersections and distances
Two planes are parallel if their normals are parallel. Otherwise they meet in a line, and the angle between the planes is the acute angle between their normals.
Worked example: Two intersecting planes
For the planes x+y+z=1 and x−2y+3z=1, find the angle between them and parametric equations for their line of intersection.
Solution. With n1=⟨1,1,1⟩ and n2=⟨1,−2,3⟩,
cosθ=∣n1∣∣n2∣∣n1⋅n2∣=3142=422,θ≈72.0∘.
The line of intersection lies in both planes, so it is perpendicular to both normals. Its direction is n1×n2=⟨5,−2,−3⟩. For a point, set z=0: then x+y=1 and x−2y=1, giving y=0, x=1. The line is x=1+5t,y=−2t,z=−3t.
To find the distance from a point P1 to a plane, pick any point P0 in the plane. The distance is the length of the projection of P0P1 onto the normal: D=∣n∣∣n⋅P0P1∣. Writing this out in coordinates gives a formula that doesn't need P0 at all.
Distance from a point to a plane
The distance from P1(x1,y1,z1) to the plane ax+by+cz=d is
D=a2+b2+c2∣ax1+by1+cz1−d∣.
For example, the distance from (1,−2,4) to 3x+2y+6z=5 is 9+4+36∣3−4+24−5∣=718.
Common mistake
Before using the distance formula for two parallel planes, make their left sides identical, not just proportional. The planes x+2y−2z=3 and 2x+4y−4z=18 are parallel, but you must first divide the second by 2 to get x+2y−2z=9. Only then is the distance 3∣9−3∣=2.
Practice
Practice 1
A line passes through (2,−1,5) with direction vector ⟨3,0,−2⟩. Using the parametrization r(t)=⟨2,−1,5⟩+t⟨3,0,−2⟩, find the point with t=2.
Enter a point like (2, -3)
Practice 2
The plane through (4,−2,1) with normal vector ⟨2,−1,3⟩ has equation 2x−y+3z=d. Find d.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
Find the point where the line x=1+2t,y=−3+t,z=4−t meets the plane x+2y+3z=11.
Enter a point like (2, -3)
Practice 4
Find the distance from the point (2,1,−3) to the plane 2x−2y+z=4.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 5
Which is an equation of the plane through (1,2,3), (2,0,1) and (0,1,5)?
Practice 6
Classify the lines L1: r=⟨1,2,0⟩+t⟨2,−1,1⟩ and L2: r=⟨3,0,4⟩+s⟨−4,2,−2⟩.
Practice 7
Find the angle, in degrees, between the planes 2x−y+z=3 and x+y+2z=1.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 8
Find the distance between the parallel planes x+2y−2z=3 and 3x+6y−6z=27.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.