Equation of a line in 3D
A straight line in three dimensions is fixed the moment you know two things about it: one point it passes through, and the direction it runs in. That single fact — a point plus a direction — is all the algebra in this article builds on. Starting from the vector equation , we expand it component by component to get the familiar Cartesian symmetric form, learn to write it directly when two points are given instead of a point-and-direction, and practise checking whether two differently-written equations secretly describe the same line. This topic sits right after direction cosines and direction ratios in the CBSE Class 12 Three-Dimensional Geometry chapter, and every later result in the chapter — the angle between two lines, the shortest distance between two skew lines — is built directly on top of the equation you write here.
A line through a point with position vector , parallel to a vector , is the set of all points for real , which expands component-wise into the Cartesian symmetric form .
The core idea
A line is not a list of points you write down one by one — it is generated by a rule. Fix one point on the line and one direction along it, and every other point on the line is reachable by walking some multiple of that direction, starting from the fixed point.
Vector form. If is the position vector of a known point on the line and is any vector parallel to the line, then the position vector of a general point on the line satisfies
where: is the position vector of the running point, is the position vector of a fixed point on the line, is a direction vector of the line (its components are direction ratios — it need not be a unit vector), and is a free real parameter. As sweeps through every real number, sweeps out every point on the line; gives back the starting point .
Cartesian (symmetric) form. Writing and , the vector equation splits into three scalar equations , , . Solving each for and setting the three expressions equal gives the symmetric form used throughout the chapter:
where: is a known point on the line and are its direction ratios (any nonzero scalar multiple of them describes the same line). The three fractions are forced equal because all three equal the same .
Line through two points. Given two points and on the line, there is no direction vector handed to you — you build one as , i.e. direction ratios , and anchor the equation at either point:
This is exactly the same construction used earlier in the chapter to get direction cosines from two points — nothing new is being invented here. Two equations that look nothing alike on paper can still be the same line: the point used to anchor the equation is not unique (any point on the line will do), and neither are the direction ratios (any nonzero scalar multiple works). The standard check is to confirm the direction ratios of both equations are proportional, and that a point from one equation satisfies the other.
The goal is to show, starting only from the vector equation and the definition of vector equality (two vectors are equal exactly when all their corresponding components are equal), that the same line is described by the symmetric Cartesian equations , so that a student can move between the two forms in either direction without memorising a separate rule.
Step 1. Write every vector in the equation in component form. Let be the position vector of a general point on the line, let the known point be , and let the given direction vector be , where are the direction ratios of the line.
Step 2. Substitute into the vector equation. becomes .
Step 3. Equate corresponding components. Two vectors are equal only if their , and parts match separately, so this single vector equation is really three scalar equations at once: , , and .
Step 4. Solve each scalar equation for , since it is the same parameter in all three. , , and (assuming are all nonzero).
Step 5. Set the three expressions equal, since all three equal the same for the same point. This gives , the Cartesian symmetric form — recovering exactly the equation quoted above, purely by unpacking components and eliminating the shared parameter .
Worked example
Problem. Find the vector and Cartesian equations of the line passing through the point and parallel to the vector . Then check whether the point lies on this line.
Step 1. Identify and . The given point gives , and the given direction gives .
Step 2. Write the vector equation directly by substitution:
Step 3. Read off the point and direction ratios , and substitute into the symmetric form derived above:
Step 4. To check , substitute into each fraction: , , . The first fraction gives while the other two give — the three values are not equal, so does not lie on the line (only a point giving the same in all three fractions would qualify).
Competitive stretch
For the two-point case, the line through and has direction ratios , , , giving . A fast integrity check without re-deriving anything: substitute the other point, , into this equation. , , — all three equal , confirming the equation is correct, since a genuine point on the line must produce one common value across all three fractions.
Common traps
- Sign errors when the anchor point has negative coordinates. must be simplified to , not left as or mis-simplified to .
- Thinking must be a unit vector. Any nonzero vector parallel to the line works in ; there is no need to divide by its magnitude first.
- Forgetting ranges over all reals, not just positive values. The line extends infinitely in both directions, and negative reaches points on the other side of .
- Checking a point by eye instead of computing all three fractions. A point lies on the line only if all three fractions equal the same number — as the worked example shows, getting one fraction to match while the others don't means the point is off the line.
Ask the tutor: Want to practise converting between vector and Cartesian form, or work through another two-point example step by step? Ask the AI tutor.
Why can two Cartesian equations that look completely different still represent the same line?
Because neither the anchor point nor the direction ratios in the symmetric form are unique. You can use any point that lies on the line as , and any nonzero scalar multiple of a valid direction triple still points along the same line. So and an equation anchored at a different point with direction ratios can both be correct descriptions of one line. To confirm two equations match, check that their direction ratios are proportional and that a point from one equation satisfies the other.
Do I always need a direction vector to write a line's equation, or can two points be enough?
Two points are enough on their own — you do not need a direction vector handed to you separately. Given and , compute the direction ratios as and then use either point as the anchor in the usual symmetric form. This is exactly the point-and-direction method in disguise, with the direction vector built from the two given points instead of stated outright.
What does it actually mean for a point to satisfy the Cartesian equation of a line?
It means substituting that point's coordinates into all three fractions gives the same numerical value, which is the that would reach that point starting from the anchor point along the direction vector. If even one of the three fractions comes out different from the other two, as in the worked example's check of , the point is simply not on the line — there is no that lands on it in all three coordinates at once.