Equation of a line
A line in three-dimensional space is fixed the moment you know one point on it and the direction it runs in — everything else is bookkeeping. This section builds the equation of a line, first as a vector sweeping out points with a parameter , then as the equivalent Cartesian symmetric form, and finally for the special case where the line is given by two points instead of a point-and-direction. It closes with the equations of the coordinate axes and lines parallel to them. This is Section B (optional) material in ISC Class 12 Mathematics, part of the Three-Dimensional Geometry unit, and it leans directly on direction cosines and direction ratios from the previous topic. Getting the point-and-direction skeleton solid here is what makes the later topics of this chapter — coplanarity, angle between lines, and shortest distance between two skew lines — fall into place with almost no new ideas.
A line through a known point, running along a known direction, is in vector form and in Cartesian form, with a free real parameter sweeping out every point on the line.
The core idea
Vector form. Fix a point on the line with position vector , and let be any vector parallel to the line (its direction vector, not necessarily a unit vector). Every point on the line is reached by walking from some multiple of :
where: is the position vector of a general point on the line, is the position vector of one known point on the line, is a direction vector of the line, and is a scalar parameter — as it ranges over all real numbers, traces out the whole line, one point at a time.
Cartesian (symmetric) form. Write as the point and as direction ratios . Substituting into the vector equation and comparing components in turn gives , , . Eliminating between the three ties the coordinates together:
where: is a general point on the line, is the known point, and are direction ratios of the line — they need not be normalised into direction cosines; any scalar multiple of a valid is an equally valid final answer.
Two points instead of point-and-direction. If the line passes through and , the direction ratios are simply the difference of coordinates, , so
where the second form uses as the position vectors of themselves — the parenthesis is the direction vector .
Axes and lines parallel to axes. The -axis is the line through the origin with direction ratios , written and understood as the constraint pair with free; the - and -axes follow the same pattern. A line through parallel to the -axis is simply with free, and similarly for lines parallel to the - or -axis — these are the degenerate cases where one or two of the "denominators" in the symmetric form are zero, and the fraction notation is only shorthand, not literal division.
The goal is to start from the vector equation of a line through a known point with a known direction, and show step by step how eliminating the single parameter between its three coordinate equations produces the Cartesian symmetric form used in every worked problem in this chapter, so that the two forms can be converted into each other on demand rather than memorised as separate facts.
Step 1. Write both sides of in component form. Let , , and the general point . The vector equation becomes
Step 2. Two vectors are equal only if their , , components match separately, so this single vector equation splits into three scalar equations:
Step 3. Isolate in each of the three equations: , , (assuming are all nonzero — the degenerate cases are handled by stating a coordinate directly, as with lines parallel to an axis).
Step 4. Since all three expressions equal the same for any point on the line, they must equal each other:
This is exactly the Cartesian symmetric form. The derivation also shows why the numerators must be and not — they come directly from isolating , so reversing the sign would silently flip which direction increases along the line.
Worked example
Find the vector and Cartesian equations of the line passing through the point and parallel to the vector . Then find the coordinates of the point on the line at , and verify it satisfies the Cartesian form.
Step 1. Identify and . The given point gives , and the given direction gives .
Step 2. Write the vector equation directly from the point-and-direction template: , .
Step 3. Convert to Cartesian form using and direction ratios :
Step 4. Substitute into the vector form: , i.e. the point .
Step 5. Check against the Cartesian form: , , — all three fractions equal , confirming lies on the line. The vector equation is , the Cartesian form is , and the point at is .
Competitive stretch
For the line through and , the direction ratios are , giving the Cartesian equation ; taking in lands on , and back-substitution confirms .
Common traps
- Writing the symmetric form with the numerator flipped — it is , not ; a sign slip here silently reverses which way increases along the line.
- Treating (or ) as a fixed unknown to "solve for," rather than a free parameter labelling a whole family of points on the line.
- Writing an illegal division by zero in the symmetric form when a direction ratio is (line parallel to a coordinate plane), instead of stating that coordinate directly as a constant, e.g. .
- When a line is given by two points, mixing the base point from one point with direction ratios computed the other way round — either point works as the base, but it must stay paired consistently with the direction ratios computed from it.
Ask the tutor: if your equation of a line isn't matching the answer key, share whether you were given a point-and-direction or two points, and the tutor will walk through the setup with you.
Why doesn't the direction vector b need to be a unit vector?
Because is free to take any real value, scaling just rescales how maps to distance along the line — it does not change which points the equation reaches. If you double , the same physical point is now hit at half the value, but the set of points traces out is identical. Direction cosines (a unit vector) are only needed when you specifically want to measure actual distance from , which most equation-of-a-line questions do not ask for.
If I use point B instead of point A as the base point, is my answer wrong?
No — both are equally correct, just different-looking. The line through two points has infinitely many valid vector and Cartesian equations, one for every choice of base point and every nonzero scalar multiple of the direction ratios. What you must not do is mix them: use 's coordinates as but keep the direction ratios computed as (coordinates of ) minus (coordinates of ) rather than the reverse — that inconsistency is the actual error, not the choice of base point itself.
How is this different from finding the equation of a line in 2D coordinate geometry?
The idea is the same — a point plus a direction fixes the line — but 2D collapses it into a single equation like because two coordinates leave only one degree of freedom once the slope is fixed. In 3D, a direction is a vector with three components, and you cannot compress the relationship into one equation without losing information, so the symmetric form uses two equalities chained together () — it is really two simultaneous equations describing the intersection of two planes, which is exactly what a line in 3D is.