All 21 questions UPSC has asked on coordinates, lines and planes in the Mathematics Optional (Paper I, Analytic Geometry) from 2008 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Analytic Geometry topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the answer was worked out again independently with computer algebra (SymPy).
- ✓ Proof checked step by step for “prove that” questions, every step was checked against the definitions.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2026 · 2c 2025 · 2c(ii) 2024 · 2c 2023 · 1e 2023 · 4c 2022 · 3c 2021 · 4c 2019 · 1e 2018 · 1e 2018 · 2d 2018 · 4d 2017 · 1e 2016 · 1e 2016 · 4a 2015 · 3c(i) 2015 · 3c(ii) 2013 · 1d 2012 · 1e 2011 · 1e 2009 · 1e 2008 · 1e
Find the points on the lines and which are nearest to each other. Hence find the shortest distance between the lines and its equation.
Solution
General points: on the first line and on the second. For the nearest points, is perpendicular to both lines:
These give . So the nearest points are
Shortest distance .
Line of shortest distance: through with direction ratios , (Check: and . ✓)
✓ Checked by computer We solved for the nearest points by computer (SymPy): , giving the points shown and a distance of .
Find the shortest distance between the straight lines
Solution
Write the lines as and , with directions and . With on the first line and on the second, , so (In fact is itself perpendicular to both lines, so and are the nearest points and .)
✓ Checked by computer We solved for the nearest points by computer (SymPy): they are the two given points, at distance .
Find the image of the line in the plane .
Solution
Where the line meets the plane. , so : the point . The image line also passes through .
Image of a second point. Take (). The foot of the perpendicular from to the plane is with The image is .
Image line through and : direction .
✓ Checked by computer We reflected two points of the line in the plane by computer (SymPy) and checked that the image line passes through both.
A variable plane which is at a constant distance from the origin cuts the axes in the points , , respectively. Show that the locus of the centroid of the tetrahedron is
Solution
Let the plane be , so , , . Its distance from is : The centroid of the tetrahedron is , so , , . Substituting,
✓ Proof checked step by step Proof checked step by step; we also confirmed numerically for random planes at distance .
Prove that the locus of a line which meets the lines ; and the circle is
Solution
A line meeting and joins points and . It meets at the midpoint of , , which must lie on the circle: Eliminate . A point of is with , so , , and Then Substituting in (1) and multiplying by : which is the required locus.
✓ Proof checked step by step Proof checked step by step; we also confirmed the final elimination by computer (SymPy).
Find the equation of the sphere of smallest possible radius which touches the straight lines : and .
Solution
The sphere of smallest radius touching both lines has the shortest-distance segment as a diameter. For these lines (as in the 2025 question above) the nearest points are and , with .
Centre midpoint of , radius , radius:
✓ Checked by computer We found the nearest points by computer (SymPy); the centre and radius follow from them.
Find equation of the plane containing the lines Also find the point of intersection of the given lines.
Solution
Directions , ; points , . The plane through with normal : , i.e. also lies on it (), so the lines are coplanar.
Point of intersection. . The first two equations give , , and the third checks. The lines meet at
✓ Checked by computer We solved the two lines simultaneously by computer (SymPy): they meet at , and both lie in .
Show that the lines intersect. Find the coordinates of the point of intersection and the equation of the plane containing them.
Solution
General points: and . Equating: The first two give , ; the third checks (). So the lines intersect, at Plane containing them. Normal . Through :
✓ Checked by computer We solved the two lines simultaneously by computer (SymPy): they meet at , and both lie in .
Find the projection of the straight line on the plane .
Solution
The projection is the line in which the given plane meets the plane through the line perpendicular to it.
Plane through the line, perpendicular to . Its normal is perpendicular to and to : Through : .
Projection: .
In symmetric form: the line meets the plane at , the point , and its direction is :
✓ Checked by computer We checked by computer (SymPy) that the projection lies in both planes and passes through the meeting point .
Find the shortest distance between the lines and the -axis.
Solution
Through the given line, take the plane that is parallel to the -axis: its -coefficient must vanish, , so : The shortest distance between the line and the -axis equals the distance of any point of the -axis, say the origin, from this plane:
✓ Checked by computer We checked the formula by computer (SymPy) against the vector shortest-distance formula for sample planes.
Find the equation of the plane parallel to and passing through the point .
Solution
A plane parallel to has the form . Through : .
✓ Checked by computer We checked by computer that satisfies the plane.
Find the shortest distance between the skew lines :
Solution
, so the first line is : the same pair of lines as in the 2025 question above. Direction , and with , ,
✓ Checked by computer We solved for the nearest points by computer (SymPy): distance .
Find the shortest distance between the lines and . For what value of will the two lines intersect?
Solution
First line: , direction . Second line: passes through with direction . The lines intersect when the S.D. is , i.e. . (Check: at the first line gives , which lies on , .)
✓ Checked by computer We computed the distance by computer (SymPy) and checked that for the lines meet at .
Find the surface generated by a line which intersects the lines , and parallel to the plane .
Solution
The line lies in a plane through each given line: Its direction is . Parallel to the plane means perpendicular to : Eliminate with and ; clearing denominators gives
✓ Checked by computer We eliminated the parameters by computer (SymPy); the surface is as shown.
Obtain the equation of the plane passing through the points and parallel to -axis.
Solution
Parallel to the -axis means the normal has no -component: the plane is . Through the two points:
✓ Checked by computer We checked by computer that both points satisfy the plane and its normal is perpendicular to the -axis.
Verify if the lines : are coplanar. If yes, then find the equation of the plane in which they lie.
Solution
The first line passes through with direction ; the second through with direction .
Every one of these four vectors satisfies : e.g. and . So both points and both directions lie in the plane , which passes through the origin. Hence the lines are coplanar, and the plane containing them is
✓ Checked by computer We checked by computer (SymPy) that both lines lie in .
Find the equation of the plane which passes through the points and , and is parallel to the line joining the points , . Find also the distance between the line and the plane.
Solution
The plane contains (from to ) and is parallel to . Its normal is Through : , i.e. The line is parallel to the plane, so its distance is that of from the plane:
✓ Checked by computer We computed the plane and the distance by computer (SymPy): , distance .
Prove that two of the straight lines represented by the equation will be at right angles, if .
Solution
Putting , the lines are where are the roots of If , then is a root (), and The other two slopes are the roots of . Their product is (and they are real, since the discriminant ), so those two lines are at right angles.
(Conversely, if then , which forces .)
✓ Proof checked step by step Proof checked step by step; we also checked the factorisation by computer (SymPy).
Find the equations of the straight line through the point to intersect the straight line and parallel to the plane .
Solution
The given line is ; a general point on it is .
With , . Parallel to the plane :
✓ Checked by computer We checked by computer that the line passes through , meets the given line at , and its direction is perpendicular to .
A line is drawn through a variable point on the ellipse , to meet two fixed lines , and , . Find the locus of the line.
Solution
As in the 2023 question above, the line joins and and meets at the midpoint , which now lies on the ellipse: For a point on the line, the same elimination gives Substituting, the locus is
✓ Checked by computer We confirmed the elimination by computer (SymPy); with it reduces to the 2023 result above.
The plane is rotated through a right angle about its line of intersection with the plane ; find the equation of the plane in its new position.
Solution
The new plane passes through the line of intersection, so it has the form Rotating through a right angle makes it perpendicular to :
✓ Checked by computer We checked by computer that the new plane contains the line of intersection and is perpendicular to .
More on Analytic Geometry
- Analytic Geometry topic-wise PYQs (questions only, for practice)
- Mathematics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Mathematics booklist
Questions: UPSC Civil Services (Main) Examination, Mathematics Paper I, 2008–2026. Solutions: Optional Province. Found an error? Tell us.

