LATEST
JEEBy Pareeksha Editorial Team· ⏱ 19 min read

Direction Cosines and Lines in 3D for JEE

Share𝕏fin
Alongside this guide

Find study material for your next topic

Browse the Reading Room and preview a chapter before choosing what to study.

Browse study material →
Direction Cosines and Lines in 3D for JEE
On this page
  1. What this post covers
  2. Direction cosines: what they are and the identities that follow
  3. Direction ratios: scale freely, normalise when asked
  4. The forms in which a line is given
  5. One parameter, one condition
  6. Intersection of two lines
  7. Perpendicular and foot: the three constructions
  8. Skew lines and the shortest distance
  9. Question patterns that keep appearing
  10. Worked examples
  11. Example 1 (easy, single correct)
  12. Example 2 (easy, single correct)
  13. Example 3 (medium, numerical value)
  14. Example 4 (medium, single correct)
  15. Example 5 (medium, numerical value)
  16. Example 6 (medium, single correct)
  17. Example 7 (medium, numerical value)
  18. Example 8 (medium, single correct)
  19. Example 9 (medium-hard, single correct)
  20. Example 10 (hard, multiple correct, Advanced style)
  21. Example 11 (hard, numerical value)
  22. Common traps
  23. A one-page recap
  24. How to practise this chapter
  25. Frequently asked questions
  26. Why do direction cosines satisfy $l^2+m^2+n^2=1$?
  27. Can a line have more than one set of direction ratios?
  28. How do I decide quickly whether two lines meet?
  29. What is the quickest way to find the foot of a perpendicular?
  30. Why are the feet of the common perpendicular worth finding?
  31. How should I handle a line given as the intersection of two planes?
  32. Is the equation of a sphere part of this topic?

Most of the marks in three-dimensional geometry that involve a line come from a small set of moves: read off a direction, write a point on the line in terms of one parameter, and impose a condition that fixes the parameter. The formulas students memorise are all consequences of those moves. This post is about the line half of the chapter, taken further than a chapter guide can: the algebra of direction cosines, the different ways a line is given to you, how to convert between them without making a sign or a scaling error, and the five construction problems that JEE keeps setting (intersection, foot, image, perpendicular through a point, shortest distance).

The chapter guide to three-dimensional geometry covers the whole chapter in one pass, including the basic angle and distance formulas. This post takes the line side further and leaves planes to its sibling, planes and distances in 3D. The vector tools behind it are in vectors: dot, cross and triple products. Eleven worked examples follow, every one verified by exact arithmetic before it was written down, and then the traps, a recap and a practice plan.

What this post covers

Everything here is in the JEE Main Mathematics syllabus (syllabus page). The areas:

Area The skill
Direction cosines Identities, angles with the axes, sign conventions
Direction ratios Scaling, parallel and perpendicular tests, projection of a segment
Forms of a line Vector, symmetric, parametric, two-point, and the non-standard form
Points on a line One-parameter coordinates, points at a given distance
Meeting problems A line with coordinate planes, with another line
Constructions Foot of the perpendicular, image, perpendicular to two lines
Skew lines Shortest distance, and where it is attained

Direction cosines: what they are and the identities that follow

A directed line makes angles $\alpha,\beta,\gamma$ with the positive $x$, $y$, $z$ axes. The direction cosines are $l=\cos\alpha$, $m=\cos\beta$, $n=\cos\gamma$. They are the components of the unit vector along the line, so

$$l^2+m^2+n^2=1.$$

Everything else follows from that single equation. Because $\cos^2\theta=\tfrac{1+\cos2\theta}{2}$ and $\sin^2\theta=1-\cos^2\theta$, you also get two companion results that appear in questions:

$$\sin^2\alpha+\sin^2\beta+\sin^2\gamma=2,\qquad \cos2\alpha+\cos2\beta+\cos2\gamma=-1.$$

The two directions of the same line have direction cosines $(l,m,n)$ and $(-l,-m,-n)$. Reversing the direction replaces every angle $\theta$ by $180^\circ-\theta$, so all three signs change together. A question that says "a line makes angles $\alpha,\beta,\gamma$ with the axes" is about a directed line; a question that says "the direction cosines of a line" often accepts either sign choice, and the options usually show both.

Useful special cases to own: the $x$-axis has $(1,0,0)$, the $y$-axis $(0,1,0)$, the $z$-axis $(0,0,1)$. A line equally inclined to the three axes has $l=m=n=\pm\tfrac1{\sqrt3}$. A line in the $xy$-plane has $n=0$.

A line through the origin with direction cosines $(l,m,n)$ contains the point $(lr,mr,nr)$ at distance $r$ from the origin, and this is the cleanest way to see what direction cosines mean: they are coordinates of the unit point.

Finding the third angle. If two of the angles are known, the identity gives the third up to sign. For $\alpha=45^\circ$ and $\beta=60^\circ$, $\cos^2\gamma=1-\tfrac12-\tfrac14=\tfrac14$, so $\gamma=60^\circ$ or $120^\circ$. Both are valid; a question asks for the acute one or lists only one of them.

Also read: Electric Dipole and Field Lines in Telugu: JEE Main

Direction ratios: scale freely, normalise when asked

Any triple $(a,b,c)$ proportional to $(l,m,n)$ is a set of direction ratios. They are not unique, and they need not satisfy $a^2+b^2+c^2=1$. To go from ratios to cosines divide by $\sqrt{a^2+b^2+c^2}$:

$$l=\frac{a}{\sqrt{a^2+b^2+c^2}},\quad m=\frac{b}{\sqrt{a^2+b^2+c^2}},\quad n=\frac{c}{\sqrt{a^2+b^2+c^2}}.$$

Direction ratios of the line joining $A(x_1,y_1,z_1)$ and $B(x_2,y_2,z_2)$ are $(x_2-x_1,\ y_2-y_1,\ z_2-z_1)$.

For two lines with ratios $(a_1,b_1,c_1)$ and $(a_2,b_2,c_2)$:

  • parallel if the ratios are proportional;
  • perpendicular if $a_1a_2+b_1b_2+c_1c_2=0$;
  • the angle between them satisfies $\cos\theta=\dfrac{|a_1a_2+b_1b_2+c_1c_2|}{\sqrt{a_1^2+b_1^2+c_1^2}\ \sqrt{a_2^2+b_2^2+c_2^2}}$.

Projection of a segment on a line. The projection of the segment $PQ$ on a line with direction cosines $(l,m,n)$ is $|l(x_2-x_1)+m(y_2-y_1)+n(z_2-z_1)|$. In words: dot the displacement with the unit direction. The projection on the coordinate axes alone is the absolute difference of the matching coordinates. If the direction is given as ratios, divide by their length; forgetting this is the commonest error in the projection questions.

Two conditions on a direction. Some questions hand you two relations among $l,m,n$ and ask for the lines. Use the linear relation to eliminate one variable, then the quadratic. If $l+m+n=0$ and $l^2+m^2-n^2=0$, substitute $n=-(l+m)$: $l^2+m^2=(l+m)^2$ gives $lm=0$. So the directions are proportional to $(1,0,-1)$ and $(0,1,-1)$. The angle between these two lines has $\cos\theta=\tfrac{1}{2}$, so $\theta=60^\circ$.

The forms in which a line is given

A line is a point $A$ and a direction $\vec d$. Every form is a disguise for that pair.

Form Equation Point Direction
Vector $\vec r=\vec a+\lambda\vec d$ $\vec a$ $\vec d$
Symmetric $\dfrac{x-x_1}{a}=\dfrac{y-y_1}{b}=\dfrac{z-z_1}{c}$ $(x_1,y_1,z_1)$ $(a,b,c)$
Parametric $x=x_1+a\lambda,\ y=y_1+b\lambda,\ z=z_1+c\lambda$ same same
Two-point $\dfrac{x-x_1}{x_2-x_1}=\dfrac{y-y_1}{y_2-y_1}=\dfrac{z-z_1}{z_2-z_1}$ $A$ $B-A$

The parametric form is the working form. Set each ratio equal to $\lambda$. A general point on the line is then $(x_1+a\lambda,\ y_1+b\lambda,\ z_1+c\lambda)$, a single unknown. Every construction in this post is a condition on $\lambda$.

The non-standard form. The symmetric form is only valid when each coordinate is written as $(\text{variable}-\text{constant})$ over the ratio, with the variable's coefficient equal to $1$. A line such as $$\frac{x-1}{2}=\frac{3-y}{4}=\frac{2z+5}{6}$$ hides its direction. Rewrite $3-y=-(y-3)$ and $2z+5=2\left(z+\tfrac52\right)$, so the ratios become $\dfrac{x-1}{2}=\dfrac{y-3}{-4}=\dfrac{z+5/2}{3}$. The direction ratios are $(2,-4,3)$, not $(2,4,6)$. This single rewriting step is worth a mark in many papers.

Missing coordinates. If one denominator is zero, say $\dfrac{x-1}{2}=\dfrac{y-3}{0}=\dfrac{z-2}{5}$, the line has $b=0$ and lies in the plane $y=3$. The zero is a direction ratio, not a division. Write the line as $\dfrac{x-1}{2}=\dfrac{z-2}{5},\ y=3$.

Two planes as a line. A line given as the intersection of two planes $a_1x+b_1y+c_1z=d_1$ and $a_2x+b_2y+c_2z=d_2$ has direction $\vec n_1\times\vec n_2$, because the line lies in both planes and so is perpendicular to both normals. A point on the line comes from setting one coordinate to a convenient value (often $0$) and solving the two remaining equations. Then convert to symmetric form. If the chosen coordinate gives no solution (the line is parallel to that coordinate plane), set a different coordinate.

One parameter, one condition

Take a line $\dfrac{x-x_1}{a}=\dfrac{y-y_1}{b}=\dfrac{z-z_1}{c}=\lambda$ and write its general point as $P(\lambda)=(x_1+a\lambda,\ y_1+b\lambda,\ z_1+c\lambda)$. Then:

  • Meets a plane $px+qy+rz=s$: substitute and solve the linear equation in $\lambda$.
  • Meets a coordinate plane: put the corresponding coordinate equal to $0$. A line meets the $xy$-plane where $z=0$, the $yz$-plane where $x=0$, the $zx$-plane where $y=0$. If the line passes through an axis, one point can serve for two planes.
  • At a given distance $r$ from $A$: the distance from $A$ to $P(\lambda)$ is $|\lambda|\sqrt{a^2+b^2+c^2}$, so $\lambda=\pm\dfrac{r}{\sqrt{a^2+b^2+c^2}}$, giving two points, one on each side.
  • Nearest to a given point $Q$: minimise $|QP(\lambda)|^2$, a quadratic in $\lambda$, or equivalently require $\overrightarrow{QP}\cdot\vec d=0$. This is the foot of the perpendicular.

Intersection of two lines

Two lines in space either meet, are parallel, or are skew. To test or find the meeting point, write both in parametric form with different parameters, say $\lambda$ and $\mu$. Equate the three coordinates. That is three equations in two unknowns: solve any two, then test the third. If it fails, the lines are skew (or parallel if the directions are proportional). If it holds, the lines meet at the point given by the solution.

A faster test that does not locate the point is the coplanarity determinant $(\vec a_2-\vec a_1)\cdot(\vec d_1\times\vec d_2)=0$; the chapter guide uses it. It does not distinguish intersecting from parallel lines, so check the directions as well.

Perpendicular and foot: the three constructions

Foot of the perpendicular from $P$ to the line $A+\lambda\vec d$. The vector from the foot $F=A+\lambda\vec d$ to $P$ must be perpendicular to $\vec d$:

$$(\vec P-\vec A-\lambda\vec d)\cdot\vec d=0\ \Longrightarrow\ \lambda=\frac{(\vec P-\vec A)\cdot\vec d}{\vec d\cdot\vec d}.$$

Then $F=A+\lambda\vec d$ and the length of the perpendicular is $|PF|$. If you want only the length, $|PF|^2=|PA|^2-\lambda^2|\vec d|^2$ by Pythagoras, because $\lambda|\vec d|$ is the projection of $\overrightarrow{AP}$ on the line.

Image of $P$ in the line. The foot is the midpoint of $P$ and its image $P'$, so $P'=2F-P$. Check: the midpoint of $PP'$ is $F$ and $PP'$ is perpendicular to the line.

Line through $P$ perpendicular to two given lines. Its direction is $\vec d_1\times\vec d_2$. Then write the line through $P$ with that direction. If the given lines are parallel, the cross product is zero and the construction is not unique.

Line through $P$ meeting a given line at right angles. The foot is on the given line, so find $F$ as above and use the direction $\overrightarrow{PF}$.

Line through $P$ meeting two given lines. Take the general points $A(\lambda)$ and $B(\mu)$ on the two lines and require $P$, $A$, $B$ to be collinear: $\overrightarrow{PA}\parallel\overrightarrow{PB}$. Two proportionality conditions fix $\lambda$ and $\mu$.

Skew lines and the shortest distance

For skew lines $\vec r=\vec a_1+s\vec b_1$ and $\vec r=\vec a_2+t\vec b_2$, the shortest distance is along the common perpendicular, and its length is

$$d=\frac{|(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)|}{|\vec b_1\times\vec b_2|}.$$

Two things the formula hides. First, the common perpendicular has direction $\vec b_1\times\vec b_2$ and meets each line at a definite point; to find those points, write the general points $P(s)$ and $Q(t)$ and impose $\overrightarrow{PQ}\cdot\vec b_1=0$ and $\overrightarrow{PQ}\cdot\vec b_2=0$, a pair of linear equations. Second, when the lines are perpendicular to each other the equations decouple and each parameter comes from a single dot product, which is why exam-setters like perpendicular pairs.

The distance between two parallel lines is the length of the perpendicular from one point of the first to the second line, found by the foot formula, or by $\dfrac{|(\vec a_2-\vec a_1)\times\vec b|}{|\vec b|}$.

Question patterns that keep appearing

  1. A direction-cosine identity puzzle: given two angles, find the third, or find a combination such as $\sin^2\alpha+\sin^2\beta+\sin^2\gamma$.
  2. Convert a non-standard line and report cosines or ratios.
  3. A line through two points meets the coordinate planes: how many distinct points, or which point.
  4. Foot, image, and length of perpendicular from a point to a line (the most common single construction).
  5. Intersection of two given lines, with the point or a derived quantity asked.
  6. A line through a point perpendicular to two lines.
  7. A point on a line at a given distance, and its coordinates.
  8. A skew-line distance, sometimes with the feet of the common perpendicular.

Worked examples

Example 1 (easy, single correct)

A line makes angles $45^\circ$ and $60^\circ$ with the positive $x$-axis and $y$-axis. The angle it makes with the positive $z$-axis, if acute, is

(A) $30^\circ$ (B) $45^\circ$ (C) $60^\circ$ (D) $90^\circ$

Solution. $\cos^2\alpha+\cos^2\beta+\cos^2\gamma=1$ with $\cos^2 45^\circ=\tfrac12$ and $\cos^2 60^\circ=\tfrac14$ gives $\cos^2\gamma=\tfrac14$. The acute solution is $\cos\gamma=\tfrac12$, $\gamma=60^\circ$. (The obtuse solution is $120^\circ$.)

Answer: (C). Option (A) comes from dropping the $45^\circ$ angle from the identity, which leaves $\cos^2\gamma=\tfrac34$.

Example 2 (easy, single correct)

The direction cosines of a line satisfy $l+m+n=0$ and $l^2+m^2-n^2=0$. The acute angle between the two lines so determined is

(A) $30^\circ$ (B) $45^\circ$ (C) $60^\circ$ (D) $90^\circ$

Solution. Put $n=-(l+m)$ in the second relation: $l^2+m^2-(l+m)^2=-2lm=0$. So $l=0$ or $m=0$. If $l=0$ then $n=-m$ and the ratios are $(0,1,-1)$. If $m=0$ then $n=-l$ and the ratios are $(1,0,-1)$. The dot product of the two direction vectors is $1$ and each has length $\sqrt2$, so $\cos\theta=\tfrac{1}{2}$ and $\theta=60^\circ$.

Answer: (C). The constraint does not give one line but two, and the angle in the question is between them.

Example 3 (medium, numerical value)

The segment joining $P(1,2,3)$ and $Q(4,6,15)$ is projected on a line whose direction ratios are $(2,3,6)$. Find $7$ times the length of the projection.

Solution. $\overrightarrow{PQ}=(3,4,12)$. The unit direction is $\tfrac17(2,3,6)$, so the projection length is $\tfrac17|6+12+72|=\tfrac{90}{7}$. Seven times that is $90$.

Answer: 90. Without dividing by $\sqrt{4+9+36}=7$ the dot product $90$ would be taken as the projection itself.

Example 4 (medium, single correct)

The direction cosines of the line $\dfrac{x-1}{2}=\dfrac{3-y}{4}=\dfrac{2z+5}{6}$ are

(A) $\dfrac{1}{\sqrt{14}},\ \dfrac{2}{\sqrt{14}},\ \dfrac{3}{\sqrt{14}}$ (B) $\dfrac{2}{\sqrt{29}},\ \dfrac{-4}{\sqrt{29}},\ \dfrac{3}{\sqrt{29}}$ (C) $\dfrac{2}{\sqrt{56}},\ \dfrac{4}{\sqrt{56}},\ \dfrac{6}{\sqrt{56}}$ (D) $\dfrac{2}{\sqrt{29}},\ \dfrac{4}{\sqrt{29}},\ \dfrac{3}{\sqrt{29}}$

Solution. Write each ratio as $\lambda$: $x=1+2\lambda$, $y=3-4\lambda$, $z=-\tfrac52+3\lambda$. The coefficients of $\lambda$ are the direction ratios $(2,-4,3)$, with $4+16+9=29$. The direction cosines are $\pm\dfrac{(2,-4,3)}{\sqrt{29}}$.

Answer: (B). Option (C) reads the denominators $2,4,6$ as ratios; option (D) ignores the sign hidden in $3-y$.

Example 5 (medium, numerical value)

The line through $A(1,2,4)$ and $B(2,4,6)$ meets the three coordinate planes. How many distinct points of intersection are there?

Solution. The direction is $(1,2,2)$ and a general point is $(1+\lambda,\ 2+2\lambda,\ 4+2\lambda)$. It meets the $xy$-plane ($z=0$) at $\lambda=-2$, the point $(-1,-2,0)$. It meets the $yz$-plane ($x=0$) at $\lambda=-1$, the point $(0,0,2)$. It meets the $zx$-plane ($y=0$) also at $\lambda=-1$, the same point $(0,0,2)$, because the line crosses the $z$-axis. So there are two distinct points.

Answer: 2. Counting three points is the natural mistake; always compare the actual coordinates.

Example 6 (medium, single correct)

The line $\dfrac{x}{1}=\dfrac{y-1}{2}=\dfrac{z-2}{3}$ and the point $P(1,6,3)$ are given. The foot of the perpendicular from $P$ to the line, and the length of the perpendicular, are

(A) $(1,3,5)$ and $\sqrt{13}$ (B) $(2,5,8)$ and $\sqrt{13}$ (C) $(1,3,5)$ and $13$ (D) $(0,1,2)$ and $\sqrt{26}$

Solution. Take $A=(0,1,2)$ and $\vec d=(1,2,3)$. Then $\overrightarrow{AP}=(1,5,1)$, $\overrightarrow{AP}\cdot\vec d=1+10+3=14$ and $\vec d\cdot\vec d=14$, so $\lambda=1$. The foot is $(1,3,5)$. The vector $\overrightarrow{FP}=(0,3,-2)$ has dot product $0+6-6=0$ with $\vec d$, which confirms perpendicularity, and its length is $\sqrt{9+4}=\sqrt{13}$.

Answer: (A). Option (C) gives the squared length. Option (B) is the point at $\lambda=2$, an arithmetic slip in $\lambda$.

Example 7 (medium, numerical value)

Find the sum of the coordinates of the image of the point $P(0,2,3)$ in the line $\dfrac{x+3}{5}=\dfrac{y-1}{2}=\dfrac{z+4}{3}$.

Solution. With $A=(-3,1,-4)$ and $\vec d=(5,2,3)$: $\overrightarrow{AP}=(3,1,7)$, $\overrightarrow{AP}\cdot\vec d=15+2+21=38$ and $\vec d\cdot\vec d=25+4+9=38$, so $\lambda=1$ and the foot is $F=(2,3,-1)$. The image is $P'=2F-P=(4,6,-2)-(0,2,3)=(4,4,-5)$. Its coordinates sum to $4+4-5=3$.

Answer: 3. As a check, $\overrightarrow{PP'}=(4,2,-8)$ has dot product $20+4-24=0$ with $\vec d$.

Example 8 (medium, single correct)

The lines $\dfrac{x-1}{2}=\dfrac{y-2}{3}=\dfrac{z-3}{4}$ and $\dfrac{x-4}{5}=\dfrac{y-1}{2}=\dfrac{z}{1}$ intersect at the point

(A) $(-1,-1,-1)$ (B) $(1,2,3)$ (C) $(4,1,0)$ (D) they do not intersect

Solution. Points are $(1+2\lambda,\ 2+3\lambda,\ 3+4\lambda)$ and $(4+5\mu,\ 1+2\mu,\ \mu)$. The third coordinates give $\mu=3+4\lambda$. The first coordinates give $1+2\lambda=4+5(3+4\lambda)=19+20\lambda$, so $-18=18\lambda$ and $\lambda=-1$, hence $\mu=-1$. The second coordinates: $2-3=-1$ and $1-2=-1$, which agree. So the lines meet at $(-1,-1,-1)$ for both parameters equal to $-1$.

Answer: (A). Options (B) and (C) are the base points of the two lines; each lies on one line only.

Example 9 (medium-hard, single correct)

A line passes through $(1,2,3)$ and is perpendicular to both of the lines with direction ratios $(1,2,3)$ and $(3,2,1)$. Which of these points lies on it?

(A) $(3,-2,4)$ (B) $(3,2,5)$ (C) $(3,-2,5)$ (D) $(-1,6,2)$

Solution. The direction is the cross product $(1,2,3)\times(3,2,1)=(2\cdot1-3\cdot2,\ 3\cdot3-1\cdot1,\ 1\cdot2-2\cdot3)=(-4,8,-4)$, proportional to $(1,-2,1)$. A general point is $(1+t,\ 2-2t,\ 3+t)$. For $t=2$ this is $(3,-2,5)$. Options (A), (B) and (D) fail: for (A) the first two coordinates need $t=2$ but then $z=5\ne4$; for (B) $y=2$ needs $t=0$; for (D) $x=-1$ needs $t=-2$ but then $y=6$ and $z=1\neq2$.

Answer: (C).

Example 10 (hard, multiple correct, Advanced style)

Let $L$ be the line $\dfrac{x-1}{2}=\dfrac{y+2}{3}=\dfrac{z-3}{6}$. Which of the following are correct?

(A) The direction cosines of $L$ are $\pm\left(\tfrac27,\tfrac37,\tfrac67\right)$. (B) The points of $L$ at distance $14$ from $(1,-2,3)$ are $(5,4,15)$ and $(-3,-8,-9)$. (C) $L$ meets the $xy$-plane at $\left(0,-\tfrac72,0\right)$. (D) $L$ makes an angle of $60^\circ$ with the positive $x$-axis.

Solution. The direction ratios are $(2,3,6)$ with length $\sqrt{4+9+36}=7$, so (A) holds. For (B), the base point $(1,-2,3)$ plus $\pm14\cdot\tfrac17(2,3,6)=\pm(4,6,12)$ gives $(5,4,15)$ and $(-3,-8,-9)$, so (B) holds. For (C), put $z=0$: $3+6\lambda=0$, $\lambda=-\tfrac12$ and the point is $\left(0,-\tfrac72,0\right)$, so (C) holds. For (D), $\cos\alpha=\tfrac27$, which is not $\tfrac12$, so (D) fails.

Answer: (A), (B), (C).

Example 11 (hard, numerical value)

Find the shortest distance between the line $L_1$ through the origin with direction ratios $(1,2,2)$ and the line $L_2$ through $(3,0,0)$ with direction ratios $(2,-2,1)$.

Solution. The directions are perpendicular: $2-4+2=0$. Take $P(s)=(s,2s,2s)$ on $L_1$ and $Q(t)=(3+2t,\ -2t,\ t)$ on $L_2$. Then $\overrightarrow{PQ}=(3+2t-s,\ -2t-2s,\ t-2s)$. The condition $\overrightarrow{PQ}\cdot(1,2,2)=0$ gives $3-9s=0$, so $s=\tfrac13$. The condition $\overrightarrow{PQ}\cdot(2,-2,1)=0$ gives $6+9t=0$, so $t=-\tfrac23$. The feet are $P=\left(\tfrac13,\tfrac23,\tfrac23\right)$ and $Q=\left(\tfrac53,\tfrac43,-\tfrac23\right)$, with $\overrightarrow{PQ}=\left(\tfrac43,\tfrac23,-\tfrac43\right)$ of length $\tfrac{\sqrt{16+4+16}}{3}=2$.

Answer: 2. The formula agrees: $\vec b_1\times\vec b_2=(6,3,-6)$ has length $9$, and $(\vec a_2-\vec a_1)\cdot(6,3,-6)=18$, so $d=\tfrac{18}{9}=2$.

Common traps

  1. Normalising the wrong thing. Direction cosines need division by $\sqrt{a^2+b^2+c^2}$. A projection onto a line given by ratios needs the same division. Forgetting it in either place is the most frequent slip.
  2. Ignoring hidden signs. In $\dfrac{3-y}{4}$ the $y$-ratio is $-4$, not $4$. Rewrite every ratio into the form $(\text{variable}-\text{constant})/\text{ratio}$ before reading directions.
  3. Scaling inside a numerator. For $\dfrac{2z+5}{6}$ the ratio is $3$ and the point has $z=-\tfrac52$, not $-5$. Divide the whole numerator by the coefficient of the variable.
  4. Taking one angle of the pair. From two known angles with the axes the third has two solutions, $\gamma$ and $180^\circ-\gamma$. Check what the question asks for.
  5. Counting coincident intersections twice. A line through an axis meets two coordinate planes at the same point. Compute each intersection and compare.
  6. Treating a successful two-equation solve as an intersection. Solving the first two coordinate equations gives a candidate $(\lambda,\mu)$; the third coordinate must be tested before saying the lines meet.
  7. Using the same parameter for both lines. Two lines need independent parameters. Reusing $\lambda$ forces the point to be at the same parameter on each line, which wrongly rules out most intersections.
  8. Giving the squared length. The foot formula often leaves $|PF|^2$ on the page. Take the square root before choosing an option.
  9. Image computed as the foot. The image is $2F-P$, not $F$. A question asking for "image" and an answer that matches the foot is a one-mark loss that is easy to see in the options.
  10. Parallel lines in the skew formula. If $\vec b_1\times\vec b_2=\vec 0$ the skew formula divides by zero. Use the parallel-line distance instead.
  11. Zero direction ratio read as undefined. A line with $\dfrac{y-3}{0}$ is not broken: it lies in the plane $y=3$.

A one-page recap

Item Result
Identity $l^2+m^2+n^2=1$; $\sum\sin^2=2$; $\sum\cos2\theta=-1$
Ratios to cosines divide $(a,b,c)$ by $\sqrt{a^2+b^2+c^2}$
Line joining two points ratios $(x_2-x_1,y_2-y_1,z_2-z_1)$
Perpendicular lines $a_1a_2+b_1b_2+c_1c_2=0$
Angle between lines $\cos\theta=\dfrac{\lvert\vec d_1\cdot\vec d_2\rvert}{\lvert\vec d_1\rvert\lvert\vec d_2\rvert}$
General point $(x_1+a\lambda,\ y_1+b\lambda,\ z_1+c\lambda)$
Point at distance $r$ $\lambda=\pm\dfrac{r}{\sqrt{a^2+b^2+c^2}}$
Foot of perpendicular $\lambda=\dfrac{(\vec P-\vec A)\cdot\vec d}{\vec d\cdot\vec d}$
Image $P'=2F-P$
Perpendicular to two lines direction $\vec d_1\times\vec d_2$
Intersection equate coordinates, two unknowns, test the third
Skew distance $\dfrac{\lvert(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)\rvert}{\lvert\vec b_1\times\vec b_2\rvert}$
Line from two planes direction $\vec n_1\times\vec n_2$, point by setting one coordinate $0$

Also read: Electric Dipole and Field Lines for JEE Main

How to practise this chapter

The chapter guide's practice section lists the three chapter tests for the whole chapter; for the line half, start with Chapter Test 1, then Chapter Test 2 and Chapter Test 3. Each has 15 questions in 36 minutes. The matching Topic Drill on direction cosines and direction ratios has 20 questions in 48 minutes and is the right place to drill the identities and the ratios-to-cosines step. For the lines-as-linear-systems view of two planes meeting, the Consistency of linear systems drill helps. Read the chapter in the book beside the tests: English, Hindi and Telugu. The vector background is in Vector Algebra and its first chapter test.

A seven-day plan, labelled as our suggestion:

Day Work
1 Direction cosine identities and ratios; Examples 1 to 3; the Direction Cosines drill
2 Reading lines in every form, especially the non-standard form; Example 4; write five lines in parametric form
3 Meeting problems: coordinate planes, a line with a plane; Example 5
4 Foot and image; Examples 6 and 7; do three more by hand with different lines
5 Intersection and perpendicular-to-two-lines; Examples 8 and 9
6 Skew distance with feet; Examples 10 and 11; Chapter Tests 1 and 2 under time
7 Chapter Test 3 and the Consistency drill; tag each miss with a trap number and rewrite the recap from memory

For mixed practice, subject tests such as JEE Main Mathematics Practice Test 1 put this chapter among others, and JEE Main Mock 1 adds timing. The mock, practice and chapter tests are part of the Pro Pass; the free 10-question JEE Main mini mock needs no sign-up. For the planning around it see JEE Main Mathematics preparation strategy and recognising patterns in JEE Mathematics.

Frequently asked questions

Why do direction cosines satisfy $l^2+m^2+n^2=1$?

They are the components of a unit vector along the line, and a unit vector has length one. Writing $\hat u=l\hat i+m\hat j+n\hat k$ and taking $\hat u\cdot\hat u=1$ gives the identity directly.

Can a line have more than one set of direction ratios?

Yes, any non-zero multiple of a set of ratios is another set of ratios for the same line. The direction cosines, by contrast, are fixed up to an overall sign, which reflects the two possible directions of the line.

How do I decide quickly whether two lines meet?

Parametrise both with different parameters, solve two of the coordinate equations, and substitute into the third. If it fails, they are skew or parallel. If you only need a yes or no, the determinant $(\vec a_2-\vec a_1)\cdot(\vec d_1\times\vec d_2)=0$ is faster, with a separate check that the directions are not proportional.

What is the quickest way to find the foot of a perpendicular?

Use $\lambda=\dfrac{(\vec P-\vec A)\cdot\vec d}{\vec d\cdot\vec d}$ and then $F=A+\lambda\vec d$. It is one dot product and one division. The image then needs only $2F-P$, so one computation serves both questions.

Why are the feet of the common perpendicular worth finding?

Some questions ask for the points where the shortest distance is attained, not just its length. The conditions $\overrightarrow{PQ}\cdot\vec b_1=0$ and $\overrightarrow{PQ}\cdot\vec b_2=0$ give them directly, and they also let you verify the length from the formula.

How should I handle a line given as the intersection of two planes?

Take the cross product of the two normals as the direction. For a point, set one coordinate to $0$ and solve the other two equations, then write the symmetric form. If the system has no solution, the line is parallel to that coordinate plane and you should set a different coordinate to $0$.

Is the equation of a sphere part of this topic?

Not in the JEE Main syllabus as we read it; this post covers lines. Check the syllabus page and the current information bulletin for what is asked in a given year.

Now test yourself: free, no sign-up to start

Share:𝕏fin
Put what you read into practice

Find study material for your next topic

Browse the Reading Room and preview a chapter before choosing what to study.

Browse study material →

Make this reading part of your preparation

Create your free account to bookmark Reading Room chapters and track your practice scores. You’ll return to this article after signing in.

By continuing, you agree to our terms and privacy policy.

No payment needed. Already registered? Use the same options to sign in.

Comments (0)

Sign in to join the discussion.

No comments yet. Be the first to share your thoughts.