🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Equations of a Line in 3D

CBSE Class 11 Maths3D GeometryđŸŸĸ Free Lesson

Equations of a Line in 3D

What You'll Learn

  • 1Derive the vector form from the condition that a chord is parallel to a fixed direction
  • 2Eliminate the parameter to move between vector and Cartesian equations
  • 3Convert direction ratios into direction cosines and use the unit length condition
  • 4Locate where a line cuts a coordinate plane by setting one parameter value

In a plane, two points determine a line and the answer is a single linear equation. In space, two points still determine a line, but a single equation no longer suffices: the equation describes a whole plane, and the line must be recovered as the intersection of two planes. The standard trick is to carry a free parameter instead, which converts one condition into three linked ones. This lesson derives that parameterised description, shows how to switch it into whichever form a question demands, and works four problems of the type set in the board exam.

Deriving the vector form

Let the line pass through a fixed point whose position vector is , and let be any vector parallel to the line. Take an arbitrary point on the line with position vector . The directed segment lies along the line, so it is parallel to , which means one is a scalar multiple of the other:

Since , rearranging gives the vector equation, where ranges over all real numbers and traces every point of the line exactly once.

Writing the vectors out component by component, , and , and equating the three components produces the parametric equations

Eliminating from each pair gives the Cartesian or symmetric form, which is the version examiners usually quote:

The three fractions are all equal to the same parameter , and that common value is what makes the form so powerful: set it equal to anything you like and you immediately know which point of the line you have reached.

FormWhat you must knowWritten asTypical use
Vectora point vector and a direction vectorconverting between other forms
Parametrica point and direction ratios and the other twogenerating points, plotting
Cartesian symmetrica point and direction ratiosmost standard exam answers
Symmetric with cosinesa point and direction cosineswhen unit directions are given
Two-point formtwo points on the linejoining two known points

Direction ratios and direction cosines

A direction ratio triple is any set of three numbers proportional to the direction of the line, so multiplying all three by a non-zero constant gives an equally valid triple. Direction cosines are different: they are the cosines of the angles the line makes with the three axes and must satisfy the unit condition

To pass from ratios to cosines, divide by the magnitude, with similar expressions for and . Direction ratios are unique only up to a common factor, which is why the fractions in the Cartesian form may be simplified freely — is the same line as .

The angle between two lines

The angle between lines is the angle between their direction vectors, computed with the three-dimensional dot product:

The denominator product of the two magnitudes normalises the quotient, so the value always lies between minus one and one. A zero numerator means perpendicular lines, and a quotient of one means the directions are identical. Because cosine is even, the formula returns the acute angle between the lines rather than a directed one, which is the convention the syllabus adopts.

First pair of numerical problems

Second pair of numerical problems

How CBSE frames line questions

One mark questions hand you a point and a direction and ask for the Cartesian equation, or give the symmetric form and ask for the direction ratios. Three and four mark questions chain operations: convert a vector equation to Cartesian and then find a specific point, compute an angle between two quoted lines, or determine where the line meets a coordinate plane. Direction cosines appear whenever a question mentions the angles a line makes with the axes, and the identity is normally the intended first step. The characteristic mistakes are forgetting to normalise when asked for cosines, carrying the direction ratios of the line in the wrong order relative to the coordinates, and treating a ratio triple as fixed rather than proportional, which leads students to insist that and describe different lines.

Generating and checking lines in Python

The first script produces points along a line and verifies them against the symmetric equation.

python
def parametric(x1, y1, z1, a, b, c, lam):
    return (x1 + lam * a, y1 + lam * b, z1 + lam * c)

def on_line(point, x1, y1, z1, a, b, c):
    x, y, z = point
    ratios = [(x - x1) / a, (y - y1) / b, (z - z1) / c]
    return max(ratios) - min(ratios) < 1e-9, ratios

line = (1, 2, 3, 2, 3, 4)
for lam in [-1.0, 0.0, 2.0]:
    p = parametric(*line, lam)
    print(f"lambda = {lam:>5}  point = {p}  on line = {on_line(p, *line)[0]}")

plane_hit = parametric(*line, -0.75)
print("meets xy-plane at:", plane_hit)

The second script computes the angle between two lines from their direction ratios and tests for parallelism.

python
import math

def angle(a, b):
    dot = sum(x * y for x, y in zip(a, b))
    mag = math.sqrt(sum(x * x for x in a)) * math.sqrt(sum(y * y for y in b))
    return math.degrees(math.acos(dot / mag))

def parallel(a, b):
    ratios = [x / y for x, y in zip(a, b)]
    return max(ratios) - min(ratios) < 1e-9

u, v = (1, 1, 2), (2, -1, 1)
print("angle between lines :", round(angle(u, v), 4), "degrees")
print("parallel to (2,2,4)? :", parallel(u, (2, 2, 4)))
print("perpendicular?       :", abs(sum(x * y for x, y in zip(u, v))) < 1e-9)

The angle comes out as exactly degrees and the direction triple is correctly recognised as parallel to despite being twice as long.

Common Mistakes

Dividing by direction cosines when direction ratios were given

Fix: Ratios may be scaled freely while cosines must satisfy l squared plus m squared plus n squared equals one, so normalise only when the question asks for cosines.

Forgetting that one equation in three unknowns is not a line

Fix: A single linear equation such as x plus y equals five describes a plane; the line is the intersection of two planes or, equivalently, the symmetric form with a shared parameter.

Treating the ratio triple as unique

Fix: Any non-zero multiple describes the same line, so reduce 6, 9, 12 to 2, 3, 4 before comparing two answers or testing for parallelism.

Key Takeaways

  • The vector form follows from writing the chord from the fixed point as a scalar multiple of the direction vector, giving r equals a plus lambda b
  • All three fractions of the Cartesian form equal the same parameter lambda, which is why setting one of them to a value locates a specific point
  • Direction ratios are defined only up to a common factor, whereas direction cosines must satisfy the unit length identity
  • The angle between lines is computed from their direction vectors with the dot product, and a zero dot product signals perpendicularity
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-10-14

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Need Expert CBSE Class 11 Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement