3D Geometry
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 with direction ratios . Beam B passes through with direction ratios .
(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 and the line
(a) Find the acute angle between line and plane , giving the answer as of an exact fraction. (4)
(b) Prove that if a line has direction ratios and a plane has normal , then the line is parallel to the plane iff AND at least one point of the line is not on the plane. Use this to determine whether is parallel to . (5)
(c) Find the point where meets (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 to the plane , 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 and . A force of magnitude acts along .
(a) Find the direction cosines of and verify . (4)
(b) Express the force as a vector . (3)
(c) The rod makes angles with the coordinate axes. Prove that and . (4)
(d) A second rod has direction ratios . Find the angle between the two rods. (4)
Answer keyMark scheme & solutions
Question 1
(a) Direction ratios and are not proportional (), so not parallel. (1)
. Compute scalar triple product :
(1)
Nonzero ⇒ lines do not intersect ⇒ skew. (1)
(b) . (2)
. (1)
(2)
(c) Points: , . (1)
must be both directions.
. (1)
. (1)
Solve: from first . Substitute into second: multiply first-derived... Solve system , .
From these: ; . Subtract: . Then . (1)
.
. (1)
Midpoint (detector) . Numerically , , midpoint . (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))/nnFormula divides by , which is for parallel lines (division fails); detect via nn < tol. (1 for detection sentence)
Question 2
(a) Line dir , normal . (1)
. . (1)
, . (1)
(1)
(b) Proof: Line is parallel to plane iff its direction normal (so it never turns toward/away from plane) i.e. , 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 , so is not parallel to — it intersects. (2)
(c) Parametrize : . Substitute:
. (2)
Point . (2)
(d) Let be any point on the plane, so . (1)
Distance projection of onto unit normal :
(2)
Using :
(1)
Question 3
(a) , . (1)
DCs: . (2)
Check: . ✓ (1)
(b) N. (3)
(c) and by definition , hence . (2)
Then . (2)
(d) Rod1 dir , Rod2 dir . (1)
. (2)
(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"}
]