In 3D geometry, the quickest way to keep lines and planes straight is one short rule: a line is a point plus a direction, a plane is a flat constraint with a normal vector, and direction cosines are just that direction in unit form. Get those three identities right and most student problems fall into place.

3D geometry studies points, lines, and planes in space. If a directed line makes angles α\alpha, β\beta, and γ\gamma with the positive xx-, yy-, and zz-axes, its direction cosines are

l=cosα,m=cosβ,n=cosγl = \cos \alpha,\quad m = \cos \beta,\quad n = \cos \gamma

and they satisfy

l2+m2+n2=1l^2 + m^2 + n^2 = 1

Line vs Plane: How Each Is Written

Line Plane
Built from A point and a direction A point and a normal direction
Parametric form x=x1+at, y=y1+bt, z=z1+ctx = x_1 + at,\ y = y_1 + bt,\ z = z_1 + ct
Symmetric / standard form xx1a=yy1b=zz1c\dfrac{x-x_1}{a} = \dfrac{y-y_1}{b} = \dfrac{z-z_1}{c} ax+by+cz+d=0ax + by + cz + d = 0
Role of (a,b,c)(a,b,c) Direction the line moves along Normal vector, perpendicular to the plane

The symmetric form needs special care if one direction ratio is 00, so the parametric form is usually safer there. For a plane, (a,b,c)(a,b,c) tells you which way the plane faces — not a direction lying inside it.

Direction Ratios vs Direction Cosines

Direction ratios only describe a direction up to scale: (2,1,2)(2,-1,2) and (4,2,4)(4,-2,4) point the same way. To convert ratios (a,b,c)(a,b,c) into cosines, divide by the length of the direction vector:

l=aa2+b2+c2,m=ba2+b2+c2,n=ca2+b2+c2l = \frac{a}{\sqrt{a^2+b^2+c^2}},\quad m = \frac{b}{\sqrt{a^2+b^2+c^2}},\quad n = \frac{c}{\sqrt{a^2+b^2+c^2}}

This only makes sense when (a,b,c)(0,0,0)(a,b,c) \ne (0,0,0).

When to Use Which Form

Use parametric form when you need to track a point moving along the line or substitute into a plane to find an intersection. Use symmetric form for a compact description when no direction ratio is zero. Use direction cosines when orientation relative to the axes is what matters, or when you need the identity l2+m2+n2=1l^2 + m^2 + n^2 = 1. Use the plane equation ax+by+cz+d=0ax + by + cz + d = 0 when you care about a flat constraint and its normal.

Worked Example: Direction Cosines and a Line-Plane Intersection

A line passes through P(1,2,0)P(1,2,0) with direction ratios (2,1,2)(2,-1,2), and the plane is x+y+z=6x + y + z = 6.

Parametric form of the line:

x=1+2t,y=2t,z=2tx = 1 + 2t,\quad y = 2 - t,\quad z = 2t

Direction cosines — the direction-ratio length is

22+(1)2+22=9=3\sqrt{2^2 + (-1)^2 + 2^2} = \sqrt{9} = 3

so

l=23,m=13,n=23l = \frac{2}{3},\quad m = -\frac{1}{3},\quad n = \frac{2}{3}

Check:

(23)2+(13)2+(23)2=1\left(\frac{2}{3}\right)^2 + \left(-\frac{1}{3}\right)^2 + \left(\frac{2}{3}\right)^2 = 1

Intersection — substitute the line into x+y+z=6x+y+z=6:

(1+2t)+(2t)+2t=6(1+2t) + (2-t) + 2t = 6 3+3t=63 + 3t = 6 t=1t = 1

so the intersection point is

(x,y,z)=(3,1,2)(x,y,z) = (3,1,2)

The point PP anchors the line, the direction ratios say how it moves, the cosines give that direction in unit form, and the plane equation locates the intersection.

Common Confusions

  • Treating direction ratios as normalized. (2,1,2)(2,-1,2) and (23,13,23)\left(\frac{2}{3},-\frac{1}{3},\frac{2}{3}\right) point the same way, but only the second satisfies l2+m2+n2=1l^2+m^2+n^2=1.
  • Using the symmetric form when a denominator is 00. Switch to parametric form when a direction ratio is zero.
  • Confusing a plane's normal with a line's direction. In ax+by+cz+d=0ax+by+cz+d=0, (a,b,c)(a,b,c) is perpendicular to the plane, not a direction lying in it.
  • Ignoring when a formula applies. The direction-cosine formulas only work for a nonzero direction vector; a zero vector defines no line direction.

You use this framework whenever position and orientation matter in space — coordinate geometry and vector problems in school, and graphics, robotics, navigation, and mechanics in applications. Keep the line-versus-plane distinction sharp, and 3D geometry problems become a matter of picking the right form and substituting.

Frequently Asked Questions

What are direction cosines in 3D geometry?
Direction cosines are the cosines of the angles a directed line makes with the positive $x$-, $y$-, and $z$-axes. If they are $l$, $m$, and $n$, then $l^2 + m^2 + n^2 = 1$.
What is the equation of a plane in 3D?
A plane is commonly written as $ax + by + cz + d = 0$, where $(a,b,c)$ is a normal vector to the plane.
Are direction ratios and direction cosines the same?
No. Direction ratios only give a proportional direction, such as $(2,-1,2)$. Direction cosines are the normalized values, such as $\left(\frac{2}{3}, -\frac{1}{3}, \frac{2}{3}\right)$ for that same direction.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →