Equations of Lines
In space a line has no slope, so you describe it the way you'd give directions: start here, and go this way. That's , a point plus every multiple of a direction vector.
What the symbols mean
- A point on the line
Where you are at t = 0.
- Direction vector
⟨a, b, c⟩: which way the line runs.
- Parameter
Any real number; each value gives one point.
Explanation
A line in space is simply what you get when you start at one point and keep walking in one fixed direction, forward and backward forever. It's how you describe a laser beam, a flight path or the edge where two walls meet. In , the piece is where you start, is which way you walk (and how big a step is), and is how many steps you've taken. Plug in any and you get a point on the line. It looks more abstract than , but it's actually simpler.
In the plane you'd write a line as . That doesn't carry over to 3D: there's no single "slope" when the line can tilt in two different ways at once, and we just saw that one equation in , , gives a surface anyway. So we go back to what a line really is: a point and a direction.
Start at and add copies of the direction . At you're at the starting point, at you've gone one along, and negative goes backward. Letting run over all real numbers sweeps out the whole line. Writing out each component gives the parametric equations, and solving each one for and setting them equal gives the symmetric form.
Through two points and : use , the "end minus start" vector from the first unit.
Two lines in space can be
- parallel, when their direction vectors are multiples of each other,
- intersecting, when some and give the same point, or
- skew: not parallel and never meeting. This can't happen in a plane, where non-parallel lines always cross. In space, one line can pass over the other, like a highway overpass.
To tell intersecting from skew, give the two lines different parameters, and , set the components equal, and solve. If the equations are inconsistent, the lines never meet.
See it
Worked examples
Find the line through and , and where it crosses the -plane.
- 1
The direction is end minus start, . Starting from the first point, the line is , , .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find a direction vector for the line through and .
Find the point at on .
Where does , , meet the plane ?
Are and parallel?
How are and related?
In a pinhole camera model, the camera sits at the origin and the image plane is . A point in the scene at shows up where the line from the origin to crosses that plane. Find the image point.
The hardest one here. Get it, and you've got this lesson.
Two drone flight paths are and . They never meet (the lines are skew). How close do they come?
Where it's used
Ray tracing, the technique behind film-quality graphics, fires a line from the camera through each pixel and solves for where it first hits an object.