Distance:d=(x2−x1)2+(y2−y1)2+(z2−z1)2; from the origin, x2+y2+z2.
Midpoint / section formula extend from 2D by adding the z-term.
Space is divided into 8 octants; the coordinate planes are x=0 (yz), y=0 (xz), z=0 (xy).
Direction cosinesl,m,n satisfy l2+m2+n2=1.
Beyond-NCERT JEE Formulae
Everything below is powered by the scalar triple product[abc]=a⋅(b×c), the single most useful object in JEE 3D geometry.
1. Shortest distance between two skew lines. For r=a1+λb1 and r=a2+μb2,
d=∣b1×b2∣∣(a2−a1)⋅(b1×b2)∣.[JEE Tip] The numerator is the scalar triple product [a2−a1b1b2]. If it comes out 0 the lines are not skew — they are coplanar (intersecting or parallel), and the shortest distance collapses to the point-to-line case.
2. Coplanarity / intersection of two lines. The two lines above are coplanar (and, when b1 is not parallel to b2, they actually intersect) iff
(a2−a1)⋅(b1×b2)=0,
equivalently the 3×3 determinant with rows a2−a1, b1, b2 vanishes:
x2−x1a1a2y2−y1b1b2z2−z1c1c2=0.
This determinant is the fastest tool for "find the parameter that makes the two lines meet" problems.
3. Angle between a line and a plane. For a line of direction b and a plane of normal n,
sinθ=∣b∣∣n∣∣b⋅n∣.[JEE Tip] Note the sine, not cosine: θ is the complement of the line-normal angle. Hence b⋅n=0 means the line is parallel to (or lies in) the plane, while b parallel to n means it is perpendicular to the plane.
4. Distance between two parallel lines. For r=a1+λb and r=a2+μb (same direction b),
d=∣b∣∣(a2−a1)×b∣.
This is just the length of the part of a2−a1 perpendicular to b — the cross product removes the parallel component.
5. Volume of a tetrahedron. With coterminous edge vectors a,b,c meeting at one vertex,
V=61[abc]=61∣a⋅(b×c)∣.
From four vertices A,B,C,D take a=AB, b=AC, c=AD. A value of 0 means the four points are coplanar.
Solved Examples — Beyond-NCERT Formulae
Example 1 — Shortest distance between skew lines (Cartesian). Find the shortest distance between
L1:1x−3=−2y−5=1z−7,L2:7x+1=−6y+1=1z+1.
Read off a1=(3,5,7), b1=(1,−2,1) and a2=(−1,−1,−1), b2=(7,−6,1), so a2−a1=(−4,−6,−8). The cross product is b1×b2=(4,6,8) with ∣b1×b2∣=16+36+64=116=229=0, so the lines are skew. The triple product is (−4)(4)+(−6)(6)+(−8)(8)=−116, hence
d=229∣−116∣=2958=229.
Example 2 — Shortest distance between skew lines (vector form). Take r=(i^+j^)+λ(2i^−j^+k^) and r=(2i^+j^−k^)+μ(3i^−5j^+2k^). Here a2−a1=(1,0,−1), b1=(2,−1,1) and b2=(3,−5,2). Then b1×b2=(3,−1,−7) with ∣b1×b2∣=9+1+49=59, and the triple product is (1)(3)+(0)(−1)+(−1)(−7)=10. Therefore
d=5910≈1.30.
Example 3 — Coplanarity test and point of intersection. Show that 2x−1=3y−2=4z−3 and 5x−4=2y−1=1z are coplanar, and find where they meet. With a2−a1=(3,−1,−3), b1=(2,3,4) and b2=(5,2,1),
325−132−341=3(3−8)+1(2−20)−3(4−15)=−15−18+33=0,
so the lines are coplanar. Since b1 and b2 are not proportional the lines are not parallel, so they intersect. Writing them as (1+2t,2+3t,3+4t) and (4+5s,1+2s,s), the z- and y-equations give t=−1 and s=−1 (the x-equation checks). Substituting t=−1 gives the point of intersection (−1,−1,−1).
Example 4 — Angle between a line and a plane. Find the acute angle between the line 1x−1=1y−2=2z−3 and the plane 2x−y+z=4. The direction is b=(1,1,2) and the normal is n=(2,−1,1), so b⋅n=2−1+2=3 with ∣b∣=6 and ∣n∣=6. Using the sine form,
sinθ=6⋅6∣3∣=63=21⇒θ=30∘.[JEE Tip] applying a cosine here would wrongly give 60∘.
Example 5 — Volume of a tetrahedron from four vertices. For A(1,1,1), B(2,3,4), C(4,2,3) and D(3,4,2), the coterminous edges are AB=(1,2,3), AC=(3,1,2) and AD=(2,3,1). Their scalar triple product is
132213321=1(1−6)−2(3−4)+3(9−2)=−5+2+21=18,
so V=61∣18∣=3 cubic units. (A value of 0 would have meant the four vertices were coplanar.)
Example 6 — Distance between two parallel lines. Take r=(i^+2j^−3k^)+λ(2i^−j^+2k^) and r=(3i^−j^+k^)+μ(2i^−j^+2k^); the common direction is b=(2,−1,2) with ∣b∣=3. With a2−a1=(2,−3,4), the cross product is (a2−a1)×b=(−2,4,4) of magnitude 4+16+16=6, so
d=36=2.
Example 7 — Parameter value for coplanarity. Find λ so that 1x−1=−1y+1=2z and 2x−2=1y−1=λz−1 are coplanar. Here a2−a1=(1,2,1), b1=(1,−1,2) and b2=(2,1,λ), and coplanarity requires
1122−1112λ=1(−λ−2)−2(λ−4)+1(1+2)=−3λ+9=0,
so λ=3.
Ready to test your knowledge?
Take a quick interactive quiz on this topic —
free, works without login.