Level 5 — Mastery3D Geometry

3D Geometry

75 minutes50 marksprintable — key stays hidden on paper

Time Limit: 75 minutes
Total Marks: 50
Instructions: Answer all questions. Show full reasoning. Coding pseudocode/Python is accepted where asked. Use ...... for mathematics.


Question 1 — Cross-domain: Optics & Shortest Distance (18 marks)

Two laser beams travel through a lab. Beam A passes through the point P=(1,2,3)P=(1,2,3) with direction ratios 2,1,2\langle 2,-1,2 \rangle. Beam B passes through Q=(2,4,5)Q=(2,4,5) with direction ratios 1,3,1\langle 1,3,-1 \rangle.

(a) Show that the two beams are skew (neither intersecting nor parallel). (3)

(b) Compute the shortest distance between the two beams. (5)

(c) A detector must be placed at the midpoint of the common perpendicular segment. Find the coordinates of the two feet of the common perpendicular (one on each beam), and hence the detector location. (6)

(d) Write a short Python/NumPy function shortest_dist(P, dA, Q, dB) returning the shortest distance between two skew lines. Explain (in one sentence) why your formula fails for parallel lines and how to detect that case in code. (4)


Question 2 — Build & Prove: Plane–Line Geometry (17 marks)

Consider the plane π:  2x2y+z=5\pi:\; 2x - 2y + z = 5 and the line L:  x13=y+22=z4.L:\; \frac{x-1}{3} = \frac{y+2}{-2} = \frac{z}{4}.

(a) Find the acute angle between line LL and plane π\pi, giving the answer as sin1\sin^{-1} of an exact fraction. (4)

(b) Prove that if a line has direction ratios a,b,c\langle a,b,c\rangle and a plane has normal A,B,C\langle A,B,C\rangle, then the line is parallel to the plane iff aA+bB+cC=0aA+bB+cC=0 AND at least one point of the line is not on the plane. Use this to determine whether LL is parallel to π\pi. (5)

(c) Find the point where LL meets π\pi (if it does), or the distance between them (if parallel). (4)

(d) Derive, from first principles, the formula for the perpendicular distance from a point (x0,y0,z0)(x_0,y_0,z_0) to the plane Ax+By+Cz+D=0Ax+By+Cz+D=0, using projection of a connecting vector onto the unit normal. (4)


Question 3 — Direction Cosines & Physics Application (15 marks)

A rigid rod lies along the line joining A=(3,1,2)A=(3,-1,2) and B=(6,3,2)B=(6,3,-2). A force of magnitude 10 N10\text{ N} acts along AB\vec{AB}.

(a) Find the direction cosines of AB\vec{AB} and verify l2+m2+n2=1l^2+m^2+n^2=1. (4)

(b) Express the force as a vector F\vec{F}. (3)

(c) The rod makes angles α,β,γ\alpha,\beta,\gamma with the coordinate axes. Prove that cos2α+cos2β+cos2γ=1\cos^2\alpha + \cos^2\beta + \cos^2\gamma = 1 and sin2α+sin2β+sin2γ=2\sin^2\alpha + \sin^2\beta + \sin^2\gamma = 2. (4)

(d) A second rod has direction ratios 1,2,2\langle 1,-2,2 \rangle. Find the angle between the two rods. (4)

Answer keyMark scheme & solutions

Question 1

(a) Direction ratios 2,1,2\langle 2,-1,2\rangle and 1,3,1\langle 1,3,-1\rangle are not proportional (2/11/32/1 \ne -1/3), so not parallel. (1)
PQ=(1,2,2)\vec{PQ}=(1,2,2). Compute scalar triple product [PQ dA dB][\vec{PQ}\ \vec{dA}\ \vec{dB}]: 122212131=1(16)2(22)+2(6+1)=5+8+14=170.\begin{vmatrix} 1&2&2\\ 2&-1&2\\ 1&3&-1\end{vmatrix} = 1(1-6)-2(-2-2)+2(6+1)=-5+8+14=17\ne0. (1)
Nonzero ⇒ lines do not intersect ⇒ skew. (1)

(b) dA×dB=ijk212131=i(16)j(22)+k(6+1)=(5,4,7)\vec{dA}\times\vec{dB} = \begin{vmatrix} i&j&k\\2&-1&2\\1&3&-1\end{vmatrix} = i(1-6)-j(-2-2)+k(6+1)=(-5,4,7). (2)
dA×dB=25+16+49=90=310|\vec{dA}\times\vec{dB}| = \sqrt{25+16+49}=\sqrt{90}=3\sqrt{10}. (1)
d=[PQ dA dB]dA×dB=17310=1710301.792.d=\frac{|[\vec{PQ}\ \vec{dA}\ \vec{dB}]|}{|\vec{dA}\times\vec{dB}|}=\frac{17}{3\sqrt{10}}=\frac{17\sqrt{10}}{30}\approx1.792. (2)

(c) Points: RA=P+sdA=(1+2s,2s,3+2s)R_A=P+s\vec{dA}=(1+2s,2-s,3+2s), RB=Q+tdB=(2+t,4+3t,5t)R_B=Q+t\vec{dB}=(2+t,4+3t,5-t). (1)
RARB=(1+t2s,  2+3t+s,  2t2s)\vec{R_AR_B}=(1+t-2s,\;2+3t+s,\;2-t-2s) must be \perp both directions.
RARBdA=0:  2(1+t2s)(2+3t+s)+2(2t2s)=049s3t=0\vec{R_AR_B}\cdot\vec{dA}=0:\;2(1+t-2s)-(2+3t+s)+2(2-t-2s)=0 \Rightarrow 4-9s-3t=0. (1)
RARBdB=0:  (1+t2s)+3(2+3t+s)(2t2s)=05+3s+11t=0\vec{R_AR_B}\cdot\vec{dB}=0:\;(1+t-2s)+3(2+3t+s)-(2-t-2s)=0 \Rightarrow 5+3s+11t=0. (1)
Solve: from first 3t=49s3t=4-9s. Substitute into second: 5+3s+11t=05+3s+11t=0 \Rightarrow multiply first-derived... Solve system 9s+3t=49s+3t=4, 3s+11t=53s+11t=-5.
From these: 9s+3t=49s+3t=4; 3s+11t=59s+33t=153s+11t=-5 \Rightarrow 9s+33t=-15. Subtract: 30t=19t=19/3030t=-19\Rightarrow t=-19/30. Then 9s=43t=4+57/30=177/30s=177/270=59/909s=4-3t=4+57/30=177/30\Rightarrow s=177/270=59/90. (1)
RA=(1+2(59/90),259/90,3+2(59/90))=(104/45,121/90,194/45)R_A=(1+2(59/90),\,2-59/90,\,3+2(59/90))=(104/45,\,121/90,\,194/45).
RB=(219/30,457/30,5+19/30)=(41/30,63/30,169/30)R_B=(2-19/30,\,4-57/30,\,5+19/30)=(41/30,\,63/30,\,169/30). (1)
Midpoint (detector) =12(RA+RB)=\tfrac12(R_A+R_B). Numerically RA(2.311,1.344,4.311)R_A\approx(2.311,1.344,4.311), RB(1.367,2.100,5.633)R_B\approx(1.367,2.100,5.633), midpoint (1.839,1.722,4.972)\approx(1.839,1.722,4.972). (1)

(d) (4)

import numpy as np
def shortest_dist(P, dA, Q, dB):
    P,dA,Q,dB = map(np.array,(P,dA,Q,dB))
    n = np.cross(dA,dB)
    nn = np.linalg.norm(n)
    if nn < 1e-12:      # parallel: cross product ~ 0
        # fall back to point-line distance
        return np.linalg.norm(np.cross(Q-P,dA))/np.linalg.norm(dA)
    return abs(np.dot(Q-P,n))/nn

Formula divides by dA×dB|\vec{dA}\times\vec{dB}|, which is 00 for parallel lines (division fails); detect via nn < tol. (1 for detection sentence)


Question 2

(a) Line dir b=3,2,4\vec{b}=\langle3,-2,4\rangle, normal n=2,2,1\vec{n}=\langle2,-2,1\rangle. (1)
sinθ=bnbn\sin\theta = \dfrac{|\vec{b}\cdot\vec{n}|}{|\vec{b}||\vec{n}|}. bn=6+4+4=14\vec{b}\cdot\vec{n}=6+4+4=14. (1)
b=29|\vec{b}|=\sqrt{29}, n=3|\vec{n}|=3. (1)
θ=sin114329sin1(0.8665)60.06.\theta=\sin^{-1}\frac{14}{3\sqrt{29}}\approx\sin^{-1}(0.8665)\approx60.06^\circ. (1)

(b) Proof: Line is parallel to plane iff its direction \perp normal (so it never turns toward/away from plane) i.e. aA+bB+cC=0aA+bB+cC=0, AND the line is not contained in the plane, requiring at least one line point off the plane. If a point lies on the plane too, the line lies in the plane (not "parallel and separate"). (3)
Here bn=140\vec{b}\cdot\vec{n}=14\ne0, so LL is not parallel to π\pi — it intersects. (2)

(c) Parametrize LL: (1+3λ,22λ,4λ)(1+3\lambda,\,-2-2\lambda,\,4\lambda). Substitute:
2(1+3λ)2(22λ)+4λ=52+6λ+4+4λ+4λ=56+14λ=5λ=1142(1+3\lambda)-2(-2-2\lambda)+4\lambda=5 \Rightarrow 2+6\lambda+4+4\lambda+4\lambda=5 \Rightarrow 6+14\lambda=5\Rightarrow\lambda=-\tfrac{1}{14}. (2)
Point =(13/14,2+2/14,4/14)=(1114,137,27)=(1-3/14,\,-2+2/14,\,-4/14)=\left(\tfrac{11}{14},\,-\tfrac{13}{7},\,-\tfrac{2}{7}\right). (2)

(d) Let P1(x1,y1,z1)P_1(x_1,y_1,z_1) be any point on the plane, so Ax1+By1+Cz1+D=0Ax_1+By_1+Cz_1+D=0. (1)
Distance == projection of P1P0\vec{P_1P_0} onto unit normal n^=(A,B,C)A2+B2+C2\hat n=\frac{(A,B,C)}{\sqrt{A^2+B^2+C^2}}: d=P1P0n^=A(x0x1)+B(y0y1)+C(z0z1)A2+B2+C2.d=|\vec{P_1P_0}\cdot\hat n|=\frac{|A(x_0-x_1)+B(y_0-y_1)+C(z_0-z_1)|}{\sqrt{A^2+B^2+C^2}}. (2)
Using Ax1+By1+Cz1=DAx_1+By_1+Cz_1=-D: d=Ax0+By0+Cz0+DA2+B2+C2.d=\frac{|Ax_0+By_0+Cz_0+D|}{\sqrt{A^2+B^2+C^2}}. (1)


Question 3

(a) AB=(3,4,4)\vec{AB}=(3,4,-4), AB=9+16+16=41|\vec{AB}|=\sqrt{9+16+16}=\sqrt{41}. (1)
DCs: l=341,m=441,n=441l=\tfrac{3}{\sqrt{41}},\,m=\tfrac{4}{\sqrt{41}},\,n=\tfrac{-4}{\sqrt{41}}. (2)
Check: 9+16+1641=4141=1\frac{9+16+16}{41}=\frac{41}{41}=1. ✓ (1)

(b) F=10u^=1041(3,4,4)=(3041,4041,4041)(4.685,6.247,6.247)\vec F = 10\hat u = \frac{10}{\sqrt{41}}(3,4,-4) = \left(\tfrac{30}{\sqrt{41}},\tfrac{40}{\sqrt{41}},\tfrac{-40}{\sqrt{41}}\right)\approx(4.685,6.247,-6.247)\,N. (3)

(c) cosα=l,cosβ=m,cosγ=n\cos\alpha=l,\cos\beta=m,\cos\gamma=n and by definition l2+m2+n2=1l^2+m^2+n^2=1, hence cos2α+cos2β+cos2γ=1\cos^2\alpha+\cos^2\beta+\cos^2\gamma=1. (2)
Then sin2α+sin2β+sin2γ=(1cos2α)+(1cos2β)+(1cos2γ)=31=2\sin^2\alpha+\sin^2\beta+\sin^2\gamma=(1-\cos^2\alpha)+(1-\cos^2\beta)+(1-\cos^2\gamma)=3-1=2. (2)

(d) Rod1 dir 3,4,4\langle3,4,-4\rangle, Rod2 dir 1,2,2\langle1,-2,2\rangle. (1)
cosθ=388419=133410.6768\cos\theta=\dfrac{|3-8-8|}{\sqrt{41}\sqrt{9}}=\dfrac{13}{3\sqrt{41}}\approx0.6768. (2)
θ47.4.\theta\approx47.4^\circ. (1)


[
  {"claim":"Q1 scalar triple product = 17 (skew) and shortest distance = 17/(3*sqrt(10))",
   "code":"PQ=Matrix([1,2,2]);dA=Matrix([2,-1,2]);dB=Matrix([1,3,-1]);stp=PQ.dot(dA.cross(dB));cr=dA.cross(dB);d=Abs(stp)/cr.norm();result=(stp==17) and (simplify(d-Rational(17,1)/(3*sqrt(10)))==0)"},
  {"claim":"Q2a sin(theta)=14/(3*sqrt(29))",
   "code":"b=Matrix([3,-2,4]);n=Matrix([2,-2,1]);s=Abs(b.dot(n))/(b.norm()*n.norm());result=simplify(s-Rational(14,1)/(3*sqrt(29)))==0"},
  {"claim":"Q2c intersection param lambda=-1/14",
   "code":"lam=symbols('lam');expr=2*(1+3*lam)-2*(-2-2*lam)+4*lam-5;sol=solve(expr,lam)[0];result=sol==Rational(-1,14)"},
  {"claim":"Q3a direction cosines squared sum to 1",
   "code":"result=simplify((Rational(3)**2+Rational(4)**2+Rational(4)**2)/41-1)==0"},
  {"claim":"Q3d cos theta between rods = 13/(3*sqrt(41))",
   "code":"u=Matrix([3,4,-4]);v=Matrix([1,-2,2]);c=Abs(u.dot(v))/(u.norm()*v.norm());result=simplify(c-Rational(13,1)/(3*sqrt(41)))==0"}
]