Quick Recap — Points in Space

  • Distance: d=(x2x1)2+(y2y1)2+(z2z1)2d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}; from the origin, x2+y2+z2\sqrt{x^2+y^2+z^2}.
  • Midpoint / section formula extend from 2D by adding the zz-term.
  • Space is divided into 8 octants; the coordinate planes are x=0x=0 (yz), y=0y=0 (xz), z=0z=0 (xy).
  • Direction cosines l,m,nl,m,n satisfy l2+m2+n2=1l^2+m^2+n^2=1.

Beyond-NCERT JEE Formulae

Everything below is powered by the scalar triple product [a b c]=a(b×c)[\vec a\ \vec b\ \vec c]=\vec a\cdot(\vec b\times\vec c), the single most useful object in JEE 3D geometry.

1. Shortest distance between two skew lines. For r=a1+λb1\vec r=\vec a_1+\lambda\vec b_1 and r=a2+μb2\vec r=\vec a_2+\mu\vec b_2, d=(a2a1)(b1×b2)b1×b2.d=\dfrac{|(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)|}{|\vec b_1\times\vec b_2|}. [JEE Tip] The numerator is the scalar triple product [a2a1  b1  b2][\,\vec a_2-\vec a_1\ \ \vec b_1\ \ \vec b_2\,]. If it comes out 00 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\vec b_1 is not parallel to b2\vec b_2, they actually intersect) iff (a2a1)(b1×b2)=0,(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=0, equivalently the 3×33\times3 determinant with rows a2a1\vec a_2-\vec a_1, b1\vec b_1, b2\vec b_2 vanishes: x2x1y2y1z2z1a1b1c1a2b2c2=0.\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. 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\vec b and a plane of normal n\vec n, sinθ=bnbn.\sin\theta=\dfrac{|\vec b\cdot\vec n|}{|\vec b|\,|\vec n|}. [JEE Tip] Note the sine, not cosine: θ\theta is the complement of the line-normal angle. Hence bn=0\vec b\cdot\vec n=0 means the line is parallel to (or lies in) the plane, while b\vec b parallel to n\vec n means it is perpendicular to the plane.

4. Distance between two parallel lines. For r=a1+λb\vec r=\vec a_1+\lambda\vec b and r=a2+μb\vec r=\vec a_2+\mu\vec b (same direction b\vec b), d=(a2a1)×bb.d=\dfrac{|(\vec a_2-\vec a_1)\times\vec b|}{|\vec b|}. This is just the length of the part of a2a1\vec a_2-\vec a_1 perpendicular to b\vec b — the cross product removes the parallel component.

5. Volume of a tetrahedron. With coterminous edge vectors a,b,c\vec a,\vec b,\vec c meeting at one vertex, V=16[a  b  c]=16a(b×c).V=\dfrac{1}{6}\,\big|[\vec a\ \ \vec b\ \ \vec c]\big|=\dfrac{1}{6}\,|\vec a\cdot(\vec b\times\vec c)|. From four vertices A,B,C,DA,B,C,D take a=AB\vec a=\overrightarrow{AB}, b=AC\vec b=\overrightarrow{AC}, c=AD\vec c=\overrightarrow{AD}. A value of 00 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: x31=y52=z71,L2: x+17=y+16=z+11.L_1:\ \dfrac{x-3}{1}=\dfrac{y-5}{-2}=\dfrac{z-7}{1},\qquad L_2:\ \dfrac{x+1}{7}=\dfrac{y+1}{-6}=\dfrac{z+1}{1}. Read off a1=(3,5,7)\vec a_1=(3,5,7), b1=(1,2,1)\vec b_1=(1,-2,1) and a2=(1,1,1)\vec a_2=(-1,-1,-1), b2=(7,6,1)\vec b_2=(7,-6,1), so a2a1=(4,6,8)\vec a_2-\vec a_1=(-4,-6,-8). The cross product is b1×b2=(4,6,8)\vec b_1\times\vec b_2=(4,6,8) with b1×b2=16+36+64=116=2290|\vec b_1\times\vec b_2|=\sqrt{16+36+64}=\sqrt{116}=2\sqrt{29}\neq0, so the lines are skew. The triple product is (4)(4)+(6)(6)+(8)(8)=116(-4)(4)+(-6)(6)+(-8)(8)=-116, hence d=116229=5829=229.d=\dfrac{|-116|}{2\sqrt{29}}=\dfrac{58}{\sqrt{29}}=2\sqrt{29}.

Example 2 — Shortest distance between skew lines (vector form). Take r=(i^+j^)+λ(2i^j^+k^)\vec r=(\hat i+\hat j)+\lambda(2\hat i-\hat j+\hat k) and r=(2i^+j^k^)+μ(3i^5j^+2k^)\vec r=(2\hat i+\hat j-\hat k)+\mu(3\hat i-5\hat j+2\hat k). Here a2a1=(1,0,1)\vec a_2-\vec a_1=(1,0,-1), b1=(2,1,1)\vec b_1=(2,-1,1) and b2=(3,5,2)\vec b_2=(3,-5,2). Then b1×b2=(3,1,7)\vec b_1\times\vec b_2=(3,-1,-7) with b1×b2=9+1+49=59|\vec b_1\times\vec b_2|=\sqrt{9+1+49}=\sqrt{59}, and the triple product is (1)(3)+(0)(1)+(1)(7)=10(1)(3)+(0)(-1)+(-1)(-7)=10. Therefore d=10591.30.d=\dfrac{10}{\sqrt{59}}\approx1.30.

Example 3 — Coplanarity test and point of intersection. Show that x12=y23=z34\dfrac{x-1}{2}=\dfrac{y-2}{3}=\dfrac{z-3}{4} and x45=y12=z1\dfrac{x-4}{5}=\dfrac{y-1}{2}=\dfrac{z}{1} are coplanar, and find where they meet. With a2a1=(3,1,3)\vec a_2-\vec a_1=(3,-1,-3), b1=(2,3,4)\vec b_1=(2,3,4) and b2=(5,2,1)\vec b_2=(5,2,1), 313234521=3(38)+1(220)3(415)=1518+33=0,\begin{vmatrix} 3 & -1 & -3 \\ 2 & 3 & 4 \\ 5 & 2 & 1 \end{vmatrix}=3(3-8)+1(2-20)-3(4-15)=-15-18+33=0, so the lines are coplanar. Since b1\vec b_1 and b2\vec b_2 are not proportional the lines are not parallel, so they intersect. Writing them as (1+2t,2+3t,3+4t)(1+2t,2+3t,3+4t) and (4+5s,1+2s,s)(4+5s,1+2s,s), the zz- and yy-equations give t=1t=-1 and s=1s=-1 (the xx-equation checks). Substituting t=1t=-1 gives the point of intersection (1,1,1)(-1,-1,-1).

Example 4 — Angle between a line and a plane. Find the acute angle between the line x11=y21=z32\dfrac{x-1}{1}=\dfrac{y-2}{1}=\dfrac{z-3}{2} and the plane 2xy+z=42x-y+z=4. The direction is b=(1,1,2)\vec b=(1,1,2) and the normal is n=(2,1,1)\vec n=(2,-1,1), so bn=21+2=3\vec b\cdot\vec n=2-1+2=3 with b=6|\vec b|=\sqrt6 and n=6|\vec n|=\sqrt6. Using the sine form, sinθ=366=36=12  θ=30.\sin\theta=\dfrac{|3|}{\sqrt6\cdot\sqrt6}=\dfrac{3}{6}=\dfrac12\ \Rightarrow\ \theta=30^\circ. [JEE Tip] applying a cosine here would wrongly give 6060^\circ.

Example 5 — Volume of a tetrahedron from four vertices. For A(1,1,1)A(1,1,1), B(2,3,4)B(2,3,4), C(4,2,3)C(4,2,3) and D(3,4,2)D(3,4,2), the coterminous edges are AB=(1,2,3)\overrightarrow{AB}=(1,2,3), AC=(3,1,2)\overrightarrow{AC}=(3,1,2) and AD=(2,3,1)\overrightarrow{AD}=(2,3,1). Their scalar triple product is 123312231=1(16)2(34)+3(92)=5+2+21=18,\begin{vmatrix} 1 & 2 & 3 \\ 3 & 1 & 2 \\ 2 & 3 & 1 \end{vmatrix}=1(1-6)-2(3-4)+3(9-2)=-5+2+21=18, so V=1618=3V=\dfrac16|18|=3 cubic units. (A value of 00 would have meant the four vertices were coplanar.)

Example 6 — Distance between two parallel lines. Take r=(i^+2j^3k^)+λ(2i^j^+2k^)\vec r=(\hat i+2\hat j-3\hat k)+\lambda(2\hat i-\hat j+2\hat k) and r=(3i^j^+k^)+μ(2i^j^+2k^)\vec r=(3\hat i-\hat j+\hat k)+\mu(2\hat i-\hat j+2\hat k); the common direction is b=(2,1,2)\vec b=(2,-1,2) with b=3|\vec b|=3. With a2a1=(2,3,4)\vec a_2-\vec a_1=(2,-3,4), the cross product is (a2a1)×b=(2,4,4)(\vec a_2-\vec a_1)\times\vec b=(-2,4,4) of magnitude 4+16+16=6\sqrt{4+16+16}=6, so d=63=2.d=\dfrac{6}{3}=2.

Example 7 — Parameter value for coplanarity. Find λ\lambda so that x11=y+11=z2\dfrac{x-1}{1}=\dfrac{y+1}{-1}=\dfrac{z}{2} and x22=y11=z1λ\dfrac{x-2}{2}=\dfrac{y-1}{1}=\dfrac{z-1}{\lambda} are coplanar. Here a2a1=(1,2,1)\vec a_2-\vec a_1=(1,2,1), b1=(1,1,2)\vec b_1=(1,-1,2) and b2=(2,1,λ)\vec b_2=(2,1,\lambda), and coplanarity requires 12111221λ=1(λ2)2(λ4)+1(1+2)=3λ+9=0,\begin{vmatrix} 1 & 2 & 1 \\ 1 & -1 & 2 \\ 2 & 1 & \lambda \end{vmatrix}=1(-\lambda-2)-2(\lambda-4)+1(1+2)=-3\lambda+9=0, so λ=3\lambda=3.