Three Dimensional Geometry

Every point you have ever plotted lived on a flat page — two coordinates and you were done. This chapter breaks out of the page. A point in space needs three coordinates, a direction needs three numbers too (not two angles but three linked cosines), and the two basic objects of solid geometry — the straight line and the flat plane — each acquire a compact vector recipe and an equally compact Cartesian one. The whole chapter is a translation exercise: everything you already know about lines and points in the plane gets re-expressed with one extra coordinate, using the vector algebra of the previous chapter as the working language. Three ideas carry the entire chapter. First, direction: a line's direction is captured by its direction cosines l,m,nl, m, n (with l2+m2+n2=1l^2+m^2+n^2=1 always) or, more conveniently, by any direction ratios proportional to them. Second, the line and the plane each have a vector equation — a point plus a direction, or a point plus a normal — that collapses into one clean Cartesian equation. Third, once you have two lines or two planes, the same four questions repeat throughout: are they parallel, are they perpendicular, what angle do they make, and how far apart are they? Skew lines — lines that are neither parallel nor intersecting, a genuinely three-dimensional situation with no analogue in plane geometry — force you to ask what "distance between two lines" even means, and the answer (project the join of any two points on them onto their common perpendicular direction) is one of the most elegant derivations in the whole CBSE syllabus. This is a formula-dense chapter, and every formula in it descends from just two vector operations — the dot product, which answers every question about angles and projections, and the cross product, which builds perpendicular directions and measures shortest distances. Learn the central derivations properly and the rest of the formula list becomes recoverable rather than memorised — precisely the standard CBSE boards, JEE and NEET expect.

Key takeaways
  • Direction cosines l,m,nl, m, n of a line satisfy l2+m2+n2=1l^2+m^2+n^2=1; any numbers a,b,ca, b, c proportional to them are its direction ratios, and they are not unique.
  • Direction ratios of the line joining P(x1,y1,z1)P(x_1,y_1,z_1) and Q(x2,y2,z2)Q(x_2,y_2,z_2) are x2−x1, y2−y1, z2−z1x_2-x_1,\ y_2-y_1,\ z_2-z_1, with PQ=∑(x2−x1)2PQ = \sqrt{\sum(x_2-x_1)^2}.
  • A line through a point with position vector a⃗\vec a, parallel to b⃗\vec b, has vector equation r⃗=a⃗+λb⃗\vec r=\vec a+\lambda\vec b and Cartesian form x−x1a=y−y1b=z−z1c\dfrac{x-x_1}{a}=\dfrac{y-y_1}{b}=\dfrac{z-z_1}{c}.
  • The angle between two lines uses cos⁡θ=∣a1a2+b1b2+c1c2∑a12∑a22∣\cos\theta=\left|\dfrac{a_1a_2+b_1b_2+c_1c_2}{\sqrt{\sum a_1^2}\sqrt{\sum a_2^2}}\right|; the lines are perpendicular when the numerator is zero, parallel when the ratios match.
  • Skew lines (neither parallel nor intersecting) have a unique shortest distance along their common perpendicular, d=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣b⃗1×b⃗2∣∣d=\left|\dfrac{(\vec b_1\times\vec b_2)\cdot(\vec a_2-\vec a_1)}{|\vec b_1\times\vec b_2|}\right|; parallel lines use a simpler cross-product formula instead.
  • A plane is fixed by a point and a normal vector, (r⃗−a⃗)⋅N⃗=0(\vec r-\vec a)\cdot\vec N=0, or by three non-collinear points, or in intercept form xa+yb+zc=1\dfrac{x}{a}+\dfrac{y}{b}+\dfrac{z}{c}=1.
  • The distance of a point (x1,y1,z1)(x_1,y_1,z_1) from the plane Ax+By+Cz=DAx+By+Cz=D is ∣Ax1+By1+Cz1−D∣A2+B2+C2\dfrac{|Ax_1+By_1+Cz_1-D|}{\sqrt{A^2+B^2+C^2}}; the angle between a line and a plane uses sine, not cosine.
  • Two lines are coplanar exactly when a 3×33\times3 determinant built from their direction ratios and the join of their base points vanishes — the same determinant whose value, when nonzero, feeds the shortest-distance formula.
  • Key idea: every line is a point plus a direction and every plane is a point plus a normal, and the dot and cross products of those direction and normal vectors answer every question of angle, parallelism, perpendicularity, coplanarity and distance in the chapter.
The core insight

A line in space is a point plus a direction (r⃗=a⃗+λb⃗\vec r=\vec a+\lambda\vec b, Cartesian x−x1a=y−y1b=z−z1c\dfrac{x-x_1}{a}=\dfrac{y-y_1}{b}=\dfrac{z-z_1}{c}) and a plane is a point plus a normal ((r⃗−a⃗)⋅N⃗=0(\vec r-\vec a)\cdot\vec N=0), so that every angle, parallelism, perpendicularity, coplanarity and distance question in this chapter reduces to a dot product or a cross product of these direction and normal vectors.

What this chapter covers

The chapter builds outward in a fixed order, and it helps to hold that order in mind while studying it. It opens with direction cosines and direction ratios, the numeric fingerprint of a direction in space. It then writes the equation of a line, first through a point and parallel to a given vector, then through two given points. Next come the angle between two lines and the special cases of parallel and perpendicular lines, followed by the shortest distance between two lines — first the general skew-line case, then the simpler parallel-line case. The second half of the chapter turns to the plane: its equation in normal form, in point-plus-normal form, through three non-collinear points, in intercept form, and as a family of planes through the intersection of two given planes. It closes with the angle between two planes, the angle between a line and a plane, the distance of a point from a plane, and finally the coplanarity of two lines, which ties the line half of the chapter to the plane half. Every idea here is available in both a vector form (compact, coordinate-free) and a Cartesian form (the one you actually compute with) — learning to translate fluently between the two is itself a chapter skill, and both forms are given for every result below.

The core ideas

Direction cosines and direction ratios of a line

If a directed line LL makes angles α,β,γ\alpha, \beta, \gamma with the positive x,y,zx, y, z axes, these are its direction angles, and their cosines are its direction cosines, always written l,m,nl, m, n:

l=cos⁡α,m=cos⁡β,n=cos⁡γ.(1)l=\cos\alpha,\quad m=\cos\beta,\quad n=\cos\gamma. \qquad (1)

where: α,β,γ\alpha, \beta, \gamma are measured from the positive direction of each axis to the line. Reversing the line's direction replaces each angle by its supplement, flipping the sign of all three direction cosines — so a genuinely unique triple (l,m,n)(l, m, n) exists only once the line has been given a direction, that is, turned into a directed line. Because l,m,nl, m, n are the projections of a unit vector along LL onto the three axes,

l2+m2+n2=1.(2)l^2+m^2+n^2=1. \qquad (2)

This single identity is used constantly to check or to fix the sign of a missing direction cosine, and it is the chapter's most-quoted formula. Any three numbers a,b,ca, b, c proportional to l,m,nl, m, n — that is, a=λla=\lambda l, b=λmb=\lambda m, c=λnc=\lambda n for some nonzero λ\lambda — are called direction ratios of the line. Squaring and adding, λ2(a2+b2+c2)=1\lambda^2(a^2+b^2+c^2)=1, so

l=±aa2+b2+c2,m=±ba2+b2+c2,n=±ca2+b2+c2.(3)l=\pm\dfrac{a}{\sqrt{a^2+b^2+c^2}},\quad m=\pm\dfrac{b}{\sqrt{a^2+b^2+c^2}},\quad n=\pm\dfrac{c}{\sqrt{a^2+b^2+c^2}}. \qquad (3)

where: the sign choice, all plus or all minus, fixes which of the line's two directions is meant. Unlike direction cosines, direction ratios are not unique even up to sign — ka,kb,kcka, kb, kc for any nonzero kk is an equally valid set — which is exactly why they are easier to work with in practice: normalising is postponed to the last step, if it is needed at all. For two points P(x1,y1,z1)P(x_1,y_1,z_1) and Q(x2,y2,z2)Q(x_2,y_2,z_2), the direction ratios of line PQPQ are simply x2−x1, y2−y1, z2−z1x_2-x_1,\ y_2-y_1,\ z_2-z_1 (or the negatives, for the opposite direction), and dividing each by

PQ=(x2−x1)2+(y2−y1)2+(z2−z1)2PQ=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}

gives the direction cosines of the directed line from PP to QQ. This is the workhorse formula for turning any two given points into a usable direction.

Figure
A three dimensional coordinate frame with x y and z axes meeting at the origin and a directed line rising from the origin making angles alpha beta and gamma with the three axes, labelled with the direction cosines l equals cos alpha, m equals cos beta, n equals cos gamma
Direction cosines — angles a line makes with the axes x y z O P, on line L gamma beta alpha l = cos alpha m = cos beta n = cos gamma l squared + m squared + n squared = 1, for every directed line

Equation of a line in space

A line is fixed uniquely either by a point and a direction, or by two points. Let AA have position vector a⃗\vec a and let the line pass through AA parallel to a vector b⃗\vec b. For any point PP on the line with position vector r⃗\vec r, the vector AP⃗=r⃗−a⃗\vec{AP}=\vec r-\vec a is parallel to b⃗\vec b, so r⃗−a⃗=λb⃗\vec r-\vec a=\lambda\vec b for some scalar λ\lambda, giving the vector equation

r⃗=a⃗+λb⃗.(4)\vec r=\vec a+\lambda\vec b. \qquad (4)

where: λ\lambda is a free real parameter sweeping out every point of the line as it varies, and b⃗=ai^+bj^+ck^\vec b=a\hat i+b\hat j+c\hat k carries the direction ratios a,b,ca, b, c of the line directly as its components. Writing r⃗=xi^+yj^+zk^\vec r=x\hat i+y\hat j+z\hat k and a⃗=x1i^+y1j^+z1k^\vec a=x_1\hat i+y_1\hat j+z_1\hat k and equating components gives the parametric equations x=x1+λa, y=y1+λb, z=z1+λcx=x_1+\lambda a,\ y=y_1+\lambda b,\ z=z_1+\lambda c; eliminating λ\lambda produces the Cartesian equation

x−x1a=y−y1b=z−z1c.(5)\dfrac{x-x_1}{a}=\dfrac{y-y_1}{b}=\dfrac{z-z_1}{c}. \qquad (5)

If the direction cosines l,m,nl, m, n are used in place of a,b,ca, b, c, the same equation reads x−x1l=y−y1m=z−z1n\dfrac{x-x_1}{l}=\dfrac{y-y_1}{m}=\dfrac{z-z_1}{n}, with the advantage that any point on the line at signed distance rr from AA is exactly (x1+lr, y1+mr, z1+nr)(x_1+lr,\ y_1+mr,\ z_1+nr). When the line is fixed by two points A(a⃗)A(\vec a) and B(b⃗)B(\vec b) instead, the direction vector is simply b⃗−a⃗\vec b-\vec a, giving

r⃗=a⃗+λ(b⃗−a⃗),x−x1x2−x1=y−y1y2−y1=z−z1z2−z1.(6)\vec r=\vec a+\lambda(\vec b-\vec a),\qquad \dfrac{x-x_1}{x_2-x_1}=\dfrac{y-y_1}{y_2-y_1}=\dfrac{z-z_1}{z_2-z_1}. \qquad (6)

where: (x1,y1,z1)(x_1,y_1,z_1) and (x2,y2,z2)(x_2,y_2,z_2) are the two given points; setting λ=0\lambda=0 recovers AA and λ=1\lambda=1 recovers BB.

Angle and shortest distance between two lines

Two lines with direction ratios a1,b1,c1a_1,b_1,c_1 and a2,b2,c2a_2,b_2,c_2 meet — or would meet, if translated to a common point — at an angle θ\theta given by

cos⁡θ=∣a1a2+b1b2+c1c2a12+b12+c12 a22+b22+c22∣,sin⁡θ=(a1b2−a2b1)2+(b1c2−b2c1)2+(c1a2−c2a1)2a12+b12+c12 a22+b22+c22.(7)\cos\theta=\left|\dfrac{a_1a_2+b_1b_2+c_1c_2}{\sqrt{a_1^2+b_1^2+c_1^2}\ \sqrt{a_2^2+b_2^2+c_2^2}}\right|,\qquad \sin\theta=\dfrac{\sqrt{(a_1b_2-a_2b_1)^2+(b_1c_2-b_2c_1)^2+(c_1a_2-c_2a_1)^2}}{\sqrt{a_1^2+b_1^2+c_1^2}\ \sqrt{a_2^2+b_2^2+c_2^2}}. \qquad (7)

where: the modulus keeps θ\theta the acute angle between the lines, since a line has no preferred direction; in vector form the same statement is cos⁡θ=∣b⃗1⋅b⃗2∣b⃗1∣∣b⃗2∣∣\cos\theta=\left|\dfrac{\vec b_1\cdot\vec b_2}{|\vec b_1||\vec b_2|}\right|. The lines are perpendicular exactly when a1a2+b1b2+c1c2=0a_1a_2+b_1b_2+c_1c_2=0, and parallel exactly when a1a2=b1b2=c1c2\dfrac{a_1}{a_2}=\dfrac{b_1}{b_2}=\dfrac{c_1}{c_2}. Two lines in space either intersect, are parallel, or are skew — neither parallel nor intersecting, lying in no common plane, a case with no analogue in two-dimensional geometry (in a plane, two distinct non-parallel lines always meet). The classic picture is a rectangular room: a diagonal drawn across the ceiling and a diagonal drawn down an adjacent wall never meet and are never parallel — they are skew. Skew lines still have a well-defined, unique shortest distance between them, achieved along the one line segment perpendicular to both simultaneously; this is derived in full below. When the two lines happen to be parallel instead, the shortest distance reduces to the ordinary perpendicular distance from any point of one line to the other:

d=∣b⃗×(a⃗2−a⃗1)∣b⃗∣∣.(8)d=\left|\dfrac{\vec b\times(\vec a_2-\vec a_1)}{|\vec b|}\right|. \qquad (8)
Figure
A rectangular room drawn as a box in three dimensions with two diagonal line segments, one crossing the ceiling and one running from a top back corner down to a front floor corner, that pass near each other without touching, with a short dashed segment marked d joining their closest points to show the shortest distance between skew lines
Skew lines — the room diagonal and the wall diagonal never meet A B D D' C' ceiling diagonal, line 1 wall diagonal, line 2 d Line 2 passes behind line 1 in this view; in space they never intersect. d is the common perpendicular length.

The plane — standard forms of its equation

A plane, like a line, needs a point and one more piece of geometric data — but for a plane that extra data is a normal vector, a vector perpendicular to every line lying in the plane. If N⃗\vec N is a normal and AA (position vector a⃗\vec a) is a known point of the plane, then P(r⃗)P(\vec r) lies in the plane exactly when AP⃗=r⃗−a⃗\vec{AP}=\vec r-\vec a is perpendicular to N⃗\vec N:

(r⃗−a⃗)⋅N⃗=0,i.e.A(x−x1)+B(y−y1)+C(z−z1)=0,(9)(\vec r-\vec a)\cdot\vec N=0,\qquad\text{i.e.}\qquad A(x-x_1)+B(y-y_1)+C(z-z_1)=0, \qquad (9)

where: N⃗=Ai^+Bj^+Ck^\vec N=A\hat i+B\hat j+C\hat k, so A,B,CA, B, C are the direction ratios of the normal — and, on expanding, they are exactly the coefficients of x,y,zx, y, z in the plane's Cartesian equation Ax+By+Cz=DAx+By+Cz=D. A special, very useful case is the normal form: if n^\hat n is the unit normal and d≥0d\ge0 is the perpendicular distance of the plane from the origin, the plane is r⃗⋅n^=d\vec r\cdot\hat n=d, or in Cartesian form lx+my+nz=dlx+my+nz=d with l,m,nl, m, n the direction cosines of the normal. A plane through three non-collinear points is fixed without ever naming a normal explicitly — the normal is manufactured from the points themselves by a cross product, and the whole construction collapses into a single determinant, derived in full below:

∣x−x1y−y1z−z1x2−x1y2−y1z2−z1x3−x1y3−y1z3−z1∣=0.(10)\begin{vmatrix} x-x_1 & y-y_1 & z-z_1\\ x_2-x_1 & y_2-y_1 & z_2-z_1\\ x_3-x_1 & y_3-y_1 & z_3-z_1 \end{vmatrix}=0. \qquad (10)

If a plane cuts off intercepts a,b,ca, b, c on the x,y,zx, y, z axes respectively, its equation takes the tidy intercept form

xa+yb+zc=1.(11)\dfrac{x}{a}+\dfrac{y}{b}+\dfrac{z}{c}=1. \qquad (11)

Finally, every plane through the line of intersection of two given planes P1:A1x+B1y+C1z−D1=0P_1: A_1x+B_1y+C_1z-D_1=0 and P2:A2x+B2y+C2z−D2=0P_2: A_2x+B_2y+C_2z-D_2=0, except P2P_2 itself, is captured by the one-parameter family of planes

P1+λP2=0,i.e.(A1x+B1y+C1z−D1)+λ(A2x+B2y+C2z−D2)=0.(12)P_1+\lambda P_2=0,\qquad\text{i.e.}\qquad (A_1x+B_1y+C_1z-D_1)+\lambda(A_2x+B_2y+C_2z-D_2)=0. \qquad (12)

where: λ\lambda is chosen afterwards to satisfy one further condition, most often that the plane passes through a named third point — this is the standard shortcut for "find the plane through this line of intersection and this extra point," and it avoids ever finding the line of intersection explicitly.

Angle between planes, a line and a plane, and the distance from a point

Two planes with normals N⃗1=(A1,B1,C1)\vec N_1=(A_1,B_1,C_1) and N⃗2=(A2,B2,C2)\vec N_2=(A_2,B_2,C_2) meet at a dihedral angle θ\theta equal to the angle between their normals:

cos⁡θ=∣A1A2+B1B2+C1C2A12+B12+C12 A22+B22+C22∣.(13)\cos\theta=\left|\dfrac{A_1A_2+B_1B_2+C_1C_2}{\sqrt{A_1^2+B_1^2+C_1^2}\ \sqrt{A_2^2+B_2^2+C_2^2}}\right|. \qquad (13)

The planes are perpendicular when A1A2+B1B2+C1C2=0A_1A_2+B_1B_2+C_1C_2=0 and parallel when A1A2=B1B2=C1C2\dfrac{A_1}{A_2}=\dfrac{B_1}{B_2}=\dfrac{C_1}{C_2}. A line with direction ratios a,b,ca, b, c meets a plane with normal direction ratios A,B,CA, B, C at an angle φ\varphi measured from the plane itself, not from the normal, so φ\varphi is complementary to the angle between the two direction vectors:

sin⁡φ=∣aA+bB+cCa2+b2+c2 A2+B2+C2∣.(14)\sin\varphi=\left|\dfrac{aA+bB+cC}{\sqrt{a^2+b^2+c^2}\ \sqrt{A^2+B^2+C^2}}\right|. \qquad (14)

where: the line is parallel to the plane precisely when aA+bB+cC=0aA+bB+cC=0, its direction vector perpendicular to the normal, and perpendicular to the plane precisely when aA=bB=cC\dfrac{a}{A}=\dfrac{b}{B}=\dfrac{c}{C}, its direction vector parallel to the normal — the reverse pairing from the plane-plane case, and a frequent source of confusion. The perpendicular distance of a point Q(x1,y1,z1)Q(x_1,y_1,z_1) from the plane Ax+By+Cz=DAx+By+Cz=D is obtained by projecting the join of QQ and any point of the plane onto the unit normal direction, derived in full below:

d=∣Ax1+By1+Cz1−D∣A2+B2+C2.(15)d=\dfrac{|Ax_1+By_1+Cz_1-D|}{\sqrt{A^2+B^2+C^2}}. \qquad (15)

Coplanarity of two lines

Two lines r⃗=a⃗1+λb⃗1\vec r=\vec a_1+\lambda\vec b_1 and r⃗=a⃗2+μb⃗2\vec r=\vec a_2+\mu\vec b_2 lie in a common plane exactly when the vector from a point of the first to a point of the second, a⃗2−a⃗1\vec a_2-\vec a_1, is coplanar with b⃗1\vec b_1 and b⃗2\vec b_2 — equivalently, when the scalar triple product vanishes:

(b⃗1×b⃗2)⋅(a⃗2−a⃗1)=0.(16)(\vec b_1\times\vec b_2)\cdot(\vec a_2-\vec a_1)=0. \qquad (16)

In Cartesian form, with direction ratios a1,b1,c1a_1,b_1,c_1 and a2,b2,c2a_2,b_2,c_2 and points (x1,y1,z1)(x_1,y_1,z_1), (x2,y2,z2)(x_2,y_2,z_2), the condition is the vanishing of exactly the same numerator determinant that appears in the shortest-distance formula:

∣x2−x1y2−y1z2−z1a1b1c1a2b2c2∣=0.(17)\begin{vmatrix} x_2-x_1 & y_2-y_1 & z_2-z_1\\ a_1 & b_1 & c_1\\ a_2 & b_2 & c_2 \end{vmatrix}=0. \qquad (17)

where: this is exactly the statement that the shortest distance between the two lines is zero — coplanar lines are precisely the lines for which the general skew-line formula collapses, either because they intersect (θ≠0\theta\ne0) or because they are parallel. Checking coplanarity is therefore the natural first step of any shortest-distance calculation, not a separate topic.

Derivation AShortest distance between two skew lines

The goal is to find the length of the one line segment that meets both of two skew lines at right angles — the shortest possible join between them — starting only from a point and a direction vector on each line, using nothing beyond the dot and cross product built in the vector algebra chapter. Skew lines never meet and are never parallel, so no elementary distance formula applies directly; instead the direction of the common perpendicular is manufactured first, and only then is the actual separation of the two lines measured along it.

Step 1. Let the two skew lines be l1:r⃗=a⃗1+λb⃗1l_1:\vec r=\vec a_1+\lambda\vec b_1 and l2:r⃗=a⃗2+μb⃗2l_2:\vec r=\vec a_2+\mu\vec b_2, with SS a chosen point on l1l_1 (position vector a⃗1\vec a_1) and TT a chosen point on l2l_2 (position vector a⃗2\vec a_2). The vector ST⃗=a⃗2−a⃗1\vec{ST}=\vec a_2-\vec a_1 joins the two lines, but it is not, in general, the shortest such join — it depends entirely on which points SS and TT happened to be picked.

Step 2. Construct the one direction that does not depend on the choice of SS and TT: the line of shortest distance PQPQ must be perpendicular to both b⃗1\vec b_1 and b⃗2\vec b_2 simultaneously, since it is the unique segment realising the minimum separation of the two lines. The only vector, up to scale, perpendicular to both b⃗1\vec b_1 and b⃗2\vec b_2 is their cross product, so the unit vector along PQPQ is n^=b⃗1×b⃗2∣b⃗1×b⃗2∣\hat n=\dfrac{\vec b_1\times\vec b_2}{|\vec b_1\times\vec b_2|}.

Step 3. Relate the fixed vector ST⃗\vec{ST} to the unknown shortest distance. Whatever the true feet PP (on l1l_1) and QQ (on l2l_2) of the common perpendicular turn out to be, the length PQPQ is exactly the projection of STST onto the fixed direction n^\hat n, because moving from SS to PP or from TT to QQ along the lines only ever adds components parallel to b⃗1\vec b_1 or b⃗2\vec b_2, both of which vanish upon dotting with n^\hat n, since n^\hat n is perpendicular to both. So, if dd is the unsigned shortest distance, d=PQ=∣ST⃗⋅n^∣d=PQ=|\vec{ST}\cdot\hat n|.

Step 4. Substitute Steps 1 and 2 into Step 3 to reach the working formula. Since ST⃗=a⃗2−a⃗1\vec{ST}=\vec a_2-\vec a_1 and n^=b⃗1×b⃗2∣b⃗1×b⃗2∣\hat n=\dfrac{\vec b_1\times\vec b_2}{|\vec b_1\times\vec b_2|},

d=∣(b⃗1×b⃗2)⋅(a⃗2−a⃗1)∣b⃗1×b⃗2∣∣.d=\left|\dfrac{(\vec b_1\times\vec b_2)\cdot(\vec a_2-\vec a_1)}{|\vec b_1\times\vec b_2|}\right|.

Step 5. Confirm the formula degrades sensibly at its edges. If the lines actually intersect, a⃗2−a⃗1\vec a_2-\vec a_1 lies in the plane spanned by b⃗1,b⃗2\vec b_1,\vec b_2, the numerator vanishes, and d=0d=0 — exactly the coplanarity condition of equation (16). If the lines are parallel instead, b⃗1×b⃗2=0⃗\vec b_1\times\vec b_2=\vec 0 and the formula breaks down as a division by zero, which is why the parallel case needs its own formula, equation (8), obtained by the same projection argument but onto a normal to the single shared direction b⃗\vec b.

Go deeper · Derivation B · 2 minEquation of a plane through three non-collinear points
Derivation BEquation of a plane through three non-collinear points

The goal is to write down the equation of the unique plane through three given non-collinear points A(x1,y1,z1)A(x_1,y_1,z_1), B(x2,y2,z2)B(x_2,y_2,z_2), C(x3,y3,z3)C(x_3,y_3,z_3) without ever being handed a normal vector directly — the three points must manufacture their own normal, and the final answer should reduce, in a single stroke, to a determinant equation that can be written straight from the coordinates.

Step 1. Since A,B,CA, B, C are non-collinear, the two vectors AB⃗=(x2−x1, y2−y1, z2−z1)\vec{AB}=(x_2-x_1,\,y_2-y_1,\,z_2-z_1) and AC⃗=(x3−x1, y3−y1, z3−z1)\vec{AC}=(x_3-x_1,\,y_3-y_1,\,z_3-z_1) are not parallel, so they span a genuine plane, and their cross product N⃗=AB⃗×AC⃗\vec N=\vec{AB}\times\vec{AC} is a nonzero vector perpendicular to both — hence perpendicular to the whole plane through A,B,CA, B, C. This N⃗\vec N is exactly the normal vector the point-plus-normal formula, equation (9), needs.

Step 2. Let PP, with position vector r⃗=(x,y,z)\vec r=(x,y,z), be any point of the plane. Because N⃗⊥AB⃗\vec N\perp\vec{AB} and N⃗⊥AC⃗\vec N\perp\vec{AC}, and PP lies in the plane spanned by A,B,CA, B, C, the vector AP⃗=r⃗−a⃗\vec{AP}=\vec r-\vec a is a linear combination of AB⃗\vec{AB} and AC⃗\vec{AC}, so it is automatically perpendicular to N⃗\vec N as well: AP⃗⋅N⃗=0\vec{AP}\cdot\vec N=0. This is exactly equation (9) with N⃗=AB⃗×AC⃗\vec N=\vec{AB}\times\vec{AC} substituted in.

Step 3. Expand the condition using the scalar triple product identity: a vector u⃗\vec u is perpendicular to v⃗×w⃗\vec v\times\vec w exactly when the scalar triple product u⃗⋅(v⃗×w⃗)\vec u\cdot(\vec v\times\vec w) vanishes, and this triple product is precisely the determinant with u⃗,v⃗,w⃗\vec u,\vec v,\vec w as its three rows. Taking u⃗=AP⃗=(x−x1,y−y1,z−z1)\vec u=\vec{AP}=(x-x_1,y-y_1,z-z_1), v⃗=AB⃗\vec v=\vec{AB}, w⃗=AC⃗\vec w=\vec{AC} gives directly

∣x−x1y−y1z−z1x2−x1y2−y1z2−z1x3−x1y3−y1z3−z1∣=0,\begin{vmatrix} x-x_1 & y-y_1 & z-z_1\\ x_2-x_1 & y_2-y_1 & z_2-z_1\\ x_3-x_1 & y_3-y_1 & z_3-z_1 \end{vmatrix}=0,

which is the required equation, and it is manifestly satisfied at (x,y,z)=A,B,C(x,y,z)=A,B,C in turn — each substitution collapses the determinant to zero, either by repeating a row or by making the first row a combination of the other two.

Step 4. Read off the coplanarity link. The determinant in Step 3 is structurally the same object as the numerator of the coplanarity test for two lines, equation (17): both express "the vector from a base point to a target point lies in the plane spanned by two given directions" as the vanishing of a scalar triple product. Once expanded along the first row, the determinant is linear in x,y,zx, y, z, so it always reduces to the Cartesian form Ax+By+Cz=DAx+By+Cz=D with A,B,CA, B, C exactly the components of N⃗=AB⃗×AC⃗\vec N=\vec{AB}\times\vec{AC}.

Go deeper · Derivation C · 1 minDistance of a point from a plane
Derivation CDistance of a point from a plane

The goal is to derive the compact Cartesian formula d=∣Ax1+By1+Cz1−D∣A2+B2+C2d=\dfrac{|Ax_1+By_1+Cz_1-D|}{\sqrt{A^2+B^2+C^2}} for the perpendicular distance of a point Q(x1,y1,z1)Q(x_1,y_1,z_1) from the plane Ax+By+Cz=DAx+By+Cz=D, starting from nothing more than the definition of "distance from a plane" as the length of the perpendicular dropped onto it, together with the point-plus-normal equation of a plane already established.

Step 1. Let N⃗=(A,B,C)\vec N=(A,B,C) be a normal to the plane and N^=N⃗/∣N⃗∣\hat N=\vec N/|\vec N| the corresponding unit normal. Pick any point RR of the plane with position vector p⃗=(p,q,s)\vec p=(p,q,s), so Ap+Bq+Cs=DAp+Bq+Cs=D simply because RR lies on the plane. Let QQ have position vector q⃗0=(x1,y1,z1)\vec q_0=(x_1,y_1,z_1).

Step 2. The perpendicular distance from QQ to the plane is, by definition, the length of the projection of RQ⃗=q⃗0−p⃗\vec{RQ}=\vec q_0-\vec p onto the normal direction N^\hat N — every component of RQ⃗\vec{RQ} that runs along the plane contributes nothing to how far QQ sits off the plane, only the component along N^\hat N does. So d=∣RQ⃗⋅N^∣=∣(q⃗0−p⃗)⋅N⃗∣N⃗∣∣d=|\vec{RQ}\cdot\hat N|=\left|\dfrac{(\vec q_0-\vec p)\cdot\vec N}{|\vec N|}\right|.

Step 3. Expand the dot product in coordinates: (q⃗0−p⃗)⋅N⃗=A(x1−p)+B(y1−q)+C(z1−s)=(Ax1+By1+Cz1)−(Ap+Bq+Cs)(\vec q_0-\vec p)\cdot\vec N=A(x_1-p)+B(y_1-q)+C(z_1-s)=(Ax_1+By_1+Cz_1)-(Ap+Bq+Cs). The bracketed second term is exactly DD, by Step 1, so the unknown reference point RR drops out entirely: (q⃗0−p⃗)⋅N⃗=Ax1+By1+Cz1−D(\vec q_0-\vec p)\cdot\vec N=Ax_1+By_1+Cz_1-D.

Step 4. Substitute back into Step 2, with ∣N⃗∣=A2+B2+C2|\vec N|=\sqrt{A^2+B^2+C^2}, to get the final formula, valid for any choice of the reference point RR, which is exactly why RR never needs to appear in the answer:

d=∣Ax1+By1+Cz1−D∣A2+B2+C2.d=\dfrac{|Ax_1+By_1+Cz_1-D|}{\sqrt{A^2+B^2+C^2}}.

Step 5. Specialise to the origin, (x1,y1,z1)=(0,0,0)(x_1,y_1,z_1)=(0,0,0): d=∣−D∣A2+B2+C2=∣D∣A2+B2+C2d=\dfrac{|-D|}{\sqrt{A^2+B^2+C^2}}=\dfrac{|D|}{\sqrt{A^2+B^2+C^2}}, which matches the normal-form distance dd in r⃗⋅n^=d\vec r\cdot\hat n=d once the plane's equation is divided through by ∣N⃗∣|\vec N| to make the normal a unit vector — confirming that the normal form of equation (9) is simply this general formula applied at the origin.

Worked examples

Board level - direction cosines and the equation of a line through two given points

Find the direction cosines of the line joining P(−2,4,−5)P(-2,4,-5) and Q(1,2,3)Q(1,2,3), and hence write the vector and Cartesian equations of the line PQPQ.

Step 1. Direction ratios of PQPQ are x2−x1, y2−y1, z2−z1=1−(−2), 2−4, 3−(−5)=3, −2, 8x_2-x_1,\,y_2-y_1,\,z_2-z_1=1-(-2),\,2-4,\,3-(-5)=3,\,-2,\,8.

Step 2. Length PQ=32+(−2)2+82=9+4+64=77PQ=\sqrt{3^2+(-2)^2+8^2}=\sqrt{9+4+64}=\sqrt{77}, so the direction cosines are 377, −277, 877\dfrac{3}{\sqrt{77}},\ \dfrac{-2}{\sqrt{77}},\ \dfrac{8}{\sqrt{77}}.

Step 3. Taking A=PA=P as the base point with position vector a⃗=−2i^+4j^−5k^\vec a=-2\hat i+4\hat j-5\hat k and direction vector b⃗=3i^−2j^+8k^\vec b=3\hat i-2\hat j+8\hat k from Step 1, the vector equation of line PQPQ is r⃗=(−2i^+4j^−5k^)+λ(3i^−2j^+8k^)\vec r=(-2\hat i+4\hat j-5\hat k)+\lambda(3\hat i-2\hat j+8\hat k).

Step 4. Eliminating λ\lambda gives the Cartesian form directly from equation (5): x+23=y−4−2=z+58\dfrac{x+2}{3}=\dfrac{y-4}{-2}=\dfrac{z+5}{8}. Answer: direction cosines (377,−277,877)\left(\dfrac{3}{\sqrt{77}},\dfrac{-2}{\sqrt{77}},\dfrac{8}{\sqrt{77}}\right); line r⃗=(−2i^+4j^−5k^)+λ(3i^−2j^+8k^)\vec r=(-2\hat i+4\hat j-5\hat k)+\lambda(3\hat i-2\hat j+8\hat k), that is x+23=y−4−2=z+58\dfrac{x+2}{3}=\dfrac{y-4}{-2}=\dfrac{z+5}{8}.

Board level - equation of a plane through three points and its distance from the origin

Find the equation of the plane through the points A(1,0,0)A(1,0,0), B(2,1,0)B(2,1,0) and C(1,1,1)C(1,1,1), and find its distance from the origin.

Step 1. Form two vectors lying in the plane: AB⃗=(2−1, 1−0, 0−0)=(1,1,0)\vec{AB}=(2-1,\,1-0,\,0-0)=(1,1,0) and AC⃗=(1−1, 1−0, 1−0)=(0,1,1)\vec{AC}=(1-1,\,1-0,\,1-0)=(0,1,1).

Step 2. Compute the normal, N⃗=AB⃗×AC⃗=∣i^j^k^110011∣=i^(1⋅1−0⋅1)−j^(1⋅1−0⋅0)+k^(1⋅1−1⋅0)=i^−j^+k^\vec N=\vec{AB}\times\vec{AC}=\begin{vmatrix}\hat i&\hat j&\hat k\\1&1&0\\0&1&1\end{vmatrix}=\hat i(1\cdot1-0\cdot1)-\hat j(1\cdot1-0\cdot0)+\hat k(1\cdot1-1\cdot0)=\hat i-\hat j+\hat k, so A=1, B=−1, C=1A=1,\ B=-1,\ C=1.

Step 3. Using the point A(1,0,0)A(1,0,0) in equation (9): 1(x−1)−1(y−0)+1(z−0)=01(x-1)-1(y-0)+1(z-0)=0, which simplifies to x−y+z=1x-y+z=1.

Step 4. Distance from the origin, using equation (15) with (x1,y1,z1)=(0,0,0)(x_1,y_1,z_1)=(0,0,0) and D=1D=1: d=∣1(0)−1(0)+1(0)−1∣12+(−1)2+12=13d=\dfrac{|1(0)-1(0)+1(0)-1|}{\sqrt{1^2+(-1)^2+1^2}}=\dfrac{1}{\sqrt3}. Answer: the plane is x−y+z=1x-y+z=1, at perpendicular distance 13\dfrac{1}{\sqrt3} from the origin.

Competitive level (JEE / NEET) - shortest distance between skew lines and the angle a line makes with a plane

Two lines are given by l1:r⃗=(i^+j^)+λ(2i^−j^+k^)l_1:\vec r=(\hat i+\hat j)+\lambda(2\hat i-\hat j+\hat k) and l2:r⃗=(2i^+j^−k^)+μ(3i^−5j^+2k^)l_2:\vec r=(2\hat i+\hat j-\hat k)+\mu(3\hat i-5\hat j+2\hat k). Find the shortest distance between l1l_1 and l2l_2, and then find the angle that l1l_1 makes with the plane x−y+z=1x-y+z=1 found in the previous example.

Step 1. Read off a⃗1=i^+j^\vec a_1=\hat i+\hat j, b⃗1=2i^−j^+k^\vec b_1=2\hat i-\hat j+\hat k, a⃗2=2i^+j^−k^\vec a_2=2\hat i+\hat j-\hat k, b⃗2=3i^−5j^+2k^\vec b_2=3\hat i-5\hat j+2\hat k, so a⃗2−a⃗1=i^−k^\vec a_2-\vec a_1=\hat i-\hat k.

Step 2. Compute b⃗1×b⃗2=∣i^j^k^2−113−52∣=i^(−2+5)−j^(4−3)+k^(−10+3)=3i^−j^−7k^\vec b_1\times\vec b_2=\begin{vmatrix}\hat i&\hat j&\hat k\\2&-1&1\\3&-5&2\end{vmatrix}=\hat i(-2+5)-\hat j(4-3)+\hat k(-10+3)=3\hat i-\hat j-7\hat k, with magnitude ∣b⃗1×b⃗2∣=9+1+49=59|\vec b_1\times\vec b_2|=\sqrt{9+1+49}=\sqrt{59}.

Step 3. Shortest distance, using the derivation above: d=∣(3i^−j^−7k^)⋅(i^−k^)59∣=∣3−0+759∣=1059d=\left|\dfrac{(3\hat i-\hat j-7\hat k)\cdot(\hat i-\hat k)}{\sqrt{59}}\right|=\left|\dfrac{3-0+7}{\sqrt{59}}\right|=\dfrac{10}{\sqrt{59}}.

Step 4. For the line-plane angle, take b⃗1=(2,−1,1)\vec b_1=(2,-1,1) as the line direction and N⃗=(1,−1,1)\vec N=(1,-1,1) as the plane's normal from the previous example. By equation (14), sin⁡φ=∣(2)(1)+(−1)(−1)+(1)(1)4+1+11+1+1∣=∣2+1+163∣=418=432=223\sin\varphi=\left|\dfrac{(2)(1)+(-1)(-1)+(1)(1)}{\sqrt{4+1+1}\sqrt{1+1+1}}\right|=\left|\dfrac{2+1+1}{\sqrt6\sqrt3}\right|=\dfrac{4}{\sqrt{18}}=\dfrac{4}{3\sqrt2}=\dfrac{2\sqrt2}{3}.

Step 5. Since 223≈0.943\dfrac{2\sqrt2}{3}\approx0.943, φ=sin⁡−1 ⁣(223)≈70.5∘\varphi=\sin^{-1}\!\left(\dfrac{2\sqrt2}{3}\right)\approx70.5^\circ. Answer: shortest distance =1059=\dfrac{10}{\sqrt{59}}; angle between l1l_1 and the plane is sin⁡−1223≈70.5∘\sin^{-1}\dfrac{2\sqrt2}{3}\approx70.5^\circ. Timing note: this two-part JEE-style question should take under four minutes once the cross-product mechanics are automatic. Compute b⃗1×b⃗2\vec b_1\times\vec b_2 once and reuse it for the shortest-distance dot product — do not recompute it for the second part. The commonest slip under time pressure is plugging the line's direction ratios into the plane-plane angle formula (cosine, no reference to sine) instead of equation (14); say out loud which formula applies — line versus plane means sine, plane versus plane or line versus line means cosine — before writing a single number.

Common traps

  • Forgetting the modulus in the angle-between-lines formula. Raw direction ratios have no fixed sign, so cos⁡θ\cos\theta from the plain dot-product formula can come out negative; always take the absolute value so θ\theta stays the acute angle between the lines, as in equation (7).
  • Confusing direction ratios with direction cosines. Direction ratios a,b,ca, b, c are not unique and do not satisfy a2+b2+c2=1a^2+b^2+c^2=1 in general — only the normalised l,m,nl, m, n do. Never plug raw direction ratios into a formula that expects direction cosines without dividing by their magnitude first.
  • Swapping the plane-plane and line-plane angle formulas. The angle between two planes uses cosine on the two normals, equation (13); the angle between a line and a plane uses sine, comparing the line's direction to the plane's normal, equation (14) — because the angle worth reporting for a line meeting a plane is measured from the plane, not from the normal.
  • Using the skew-line shortest-distance formula on parallel lines. If b⃗1×b⃗2=0⃗\vec b_1\times\vec b_2=\vec 0, the general formula divides by zero; switch to the dedicated parallel-line formula, equation (8), instead.
  • Sign inconsistency in the plane's constant. Some sources write the plane as Ax+By+Cz+D=0Ax+By+Cz+D=0, others as Ax+By+Cz=DAx+By+Cz=D; the distance formula's sign convention changes accordingly. Fix one convention — this article uses Ax+By+Cz=DAx+By+Cz=D — and keep it for an entire problem.
  • Treating coplanar as automatically parallel. Coplanar lines can equally well intersect; coplanarity only rules out the skew case. Always check the determinant condition, equation (17), rather than assuming parallelism.

You should be able to…

  • Find the direction cosines and direction ratios of a line from two given points, and verify the identity l2+m2+n2=1l^2+m^2+n^2=1.
  • Write the vector and Cartesian equations of a line through a point and a direction, or through two points, and translate fluently between the two forms.
  • Find the angle between two lines from their direction ratios or direction cosines, and decide when they are parallel or perpendicular.
  • Distinguish skew lines from intersecting and parallel lines, and compute the shortest distance between two skew lines using the cross-product formula.
  • Compute the distance between two parallel lines.
  • Write the equation of a plane in normal form, in point-plus-normal form, through three non-collinear points, and in intercept form.
  • Find the angle between two planes and the angle between a line and a plane, without confusing which formula needs sine and which needs cosine.
  • Find the perpendicular distance of a given point from a plane.
  • Test whether two lines are coplanar using the determinant condition, and connect a zero result to the shortest-distance formula.
  • Build the family of planes through the intersection of two given planes and pin down the parameter using an extra condition.

Ask the tutor: if you are stuck on whether two lines in a problem are skew, parallel or intersecting, ask the tutor to walk through the coplanarity determinant with your exact numbers.

What is the actual difference between direction cosines and direction ratios?

Direction cosines l,m,nl, m, n are the cosines of the angles a line makes with the xx, yy, zz axes, and they always satisfy l2+m2+n2=1l^2+m^2+n^2=1 — one such triple per direction. Direction ratios a,b,ca, b, c are any numbers proportional to l,m,nl, m, n, so they need not square-sum to 11 and are never unique: (3,−2,8)(3,-2,8) and (6,−4,16)(6,-4,16) describe the same direction. In practice, compute direction ratios first (subtraction of coordinates gives them for free), and normalise into direction cosines only when a formula specifically needs them.

How do I tell that two lines are skew without trying to visualise them in 3D?

Do not rely on a mental picture — use the coplanarity determinant, equation (17). Take the two lines' direction ratios as the second and third rows and the vector joining a point on each line as the first row; if that determinant is zero, the lines are coplanar (either intersecting or parallel), and if it is nonzero, they are skew. As a quick pre-check, see whether the direction ratios are proportional first — if they are, the lines are parallel, not skew, and the determinant is not even needed.

Why does the shortest-distance formula use a cross product instead of just subtracting the two given points?

Because the vector joining any arbitrarily chosen point on each line is not, by itself, the shortest possible join — it depends on which two points you picked, and only one particular segment, perpendicular to both lines at once, is actually the minimum. The cross product b⃗1×b⃗2\vec b_1\times\vec b_2 is the unique direction perpendicular to both lines' directions simultaneously, so projecting the join of any two chosen points onto that fixed direction always gives the same answer regardless of which points were chosen — exactly what the derivation above proves.

Is the plane equation Ax + By + Cz = D the same thing as the normal form?

Yes, up to one rescaling: the normal form lx+my+nz=dlx+my+nz=d is the special case where the coefficients have been divided by A2+B2+C2\sqrt{A^2+B^2+C^2} so that l,m,nl, m, n become the direction cosines of the normal (satisfying l2+m2+n2=1l^2+m^2+n^2=1) rather than arbitrary direction ratios, and d≥0d\ge0 is then automatically the plane's perpendicular distance from the origin. Dividing any plane Ax+By+Cz=DAx+By+Cz=D by A2+B2+C2\sqrt{A^2+B^2+C^2}, with the sign chosen so the right side is non-negative, converts it to normal form directly.

How much of this chapter actually shows up in JEE Main and Advanced compared to boards?

Boards test the line formulas heavily — direction cosines, the equations of a line, the angle between two lines, and the shortest distance between skew or parallel lines. JEE and NEET go further into the plane half: equations of a plane through three points or via the family-of-planes trick, the angle between a line and a plane, distance of a point from a plane, and especially coplanarity of two lines combined with finding an unknown constant, a favourite multi-step JEE pattern. Both levels expect fluent, hesitation-free translation between vector and Cartesian forms.

Before this

Where this leads