HOME/NOTES/CONCEPT

Straight Line in Space Complete JEE Notes with examples.

Ritesh Raj · 1 Sept 2026
Aa
17 min read12 sectionsConcept

A line in space is the simplest object in three-dimensional geometry and it is also the one JEE returns to every single year. In the nineteen JEE Main 2026 shifts there were twenty-six questions on it, more than one per paper. What makes them worth studying together is that they are not twenty-six different problems. They are four moves, dressed up.

This note builds the line from its definition, then names those four moves and shows each one working on real papers.

What fixes a line in space

In the plane, a point and a slope fix a line. In space there is no single number that plays the part of slope: a direction now needs three numbers, not one. So the data is a point to stand on and a direction to travel in.

A point and a direction pin down exactly one line; without the direction, infinitely many lines pass through the same point

A line in space carries four independent conditions, which is worth knowing before you start any problem. Its direction eats two of them, because a direction in space has three components but only their ratios matter. The point eats the other two, because once the direction is fixed you may slide the point anywhere along the line without changing it. Four conditions, four unknowns: that is why "find the line" problems always hand you exactly four pieces of information, and why a question that seems to give you three is really giving you a family.

Why the count matters

If a question gives you a line with one unknown in it and one more condition, expect a unique answer. If it gives you two unknowns and one condition, expect a family and a "sum of all values" ending. Counting conditions before you compute tells you what shape the answer will take.

Direction cosines and direction ratios

Point the line in one of its two directions and measure the angle it makes with each positive axis. Call those angles α\alpha, β\beta, γ\gamma.

The three direction angles measured from the positive x, y and z axes

The direction cosines are l=cosαl=\cos\alpha, m=cosβm=\cos\beta, n=cosγn=\cos\gamma. They are not three free numbers. Dropping perpendiculars from a point at distance rr along the line onto the three axes gives coordinates (rcosα,rcosβ,rcosγ)(r\cos\alpha, r\cos\beta, r\cos\gamma), and that point is at distance rr from the origin, so

r2cos2α+r2cos2β+r2cos2γ=r2r^2\cos^2\alpha+r^2\cos^2\beta+r^2\cos^2\gamma=r^2 l2+m2+n2=1l^2+m^2+n^2=1

Any three numbers a,b,ca,b,c proportional to l,m,nl,m,n are direction ratios. Here is the whole difference between the two, in one table.

Direction cosines l,m,nl,m,nDirection ratios a,b,ca,b,c
How many setsexactly two, one per sense of travelinfinitely many, one per non-zero multiple
Constraintl2+m2+n2=1l^2+m^2+n^2=1 alwaysnone
Recovered from the otherl=aa2+b2+c2l=\dfrac{a}{\sqrt{a^2+b^2+c^2}}a=kla=kl for any k0k\neq 0
Read off froma unit vector along the lineany vector along the line
Where they appearangles, projections, distances measured alongequations of lines, cross products

The practical rule is short. Write direction ratios while setting the problem up, because they are whatever falls out of the algebra. Convert to direction cosines only at the moment an angle, a projection or a distance-along is asked for, because those need a unit vector.

The commonest wasted mark

Reversing a line reverses all three direction cosines, so (l,m,n)(l,m,n) and (l,m,n)(-l,-m,-n) describe the same line. Every angle formula therefore carries an absolute value. Drop it and you will produce an obtuse angle where the paper asked for the acute one, and lose the mark on an otherwise perfect page.

Example 1 (JEE Main 2026, 23 Jan Shift 1). The direction cosines of two lines satisfy 4l+mn=04l+m-n=0 and 2mn+10nl+3lm=02mn+10nl+3lm=0. Find the cosine of the acute angle between the lines.

SHOW SOLUTION

Step 1: Use the linear relation to remove one letter.

From the first equation n=4l+mn=4l+m. Substituting into the second:

2m(4l+m)+10(4l+m)l+3lm=02m(4l+m)+10(4l+m)l+3lm=040l2+21lm+2m2=040l^2+21lm+2m^2=0

Step 2: Factorise, which splits the two lines.

(8l+m)(5l+2m)=0(8l+m)(5l+2m)=0

Two factors, two lines. That is the whole point of the quadratic.

Step 3: Read a direction ratio off each branch.

If 8l+m=08l+m=0 then m=8lm=-8l and n=4l8l=4ln=4l-8l=-4l, giving ratios 1,8,4\langle 1,-8,-4\rangle.

If 5l+2m=05l+2m=0 then m=52lm=-\tfrac52 l and n=32ln=\tfrac32 l, giving ratios 2,5,3\langle 2,-5,3\rangle.

Step 4: Take the angle, with the absolute value in place.

cosθ=2+40128138=30938=10338\cos\theta=\frac{\lvert 2+40-12\rvert}{\sqrt{81}\,\sqrt{38}}=\frac{30}{9\sqrt{38}}=\frac{10}{3\sqrt{38}}

Answer: (4) 10338\dfrac{10}{3\sqrt{38}}

Notice that the question said "direction cosines" but the work was done entirely in direction ratios, and normalising never happened, because the cosθ\cos\theta formula divides by the lengths anyway. That is the table above in action.

The equation of a line, in the forms you will actually meet

Stand at AA with position vector a\vec a and walk a multiple of b\vec b. Every point of the line, and no other point, is reached exactly once.

r=a+λb,λR\vec r=\vec a+\lambda\vec b,\qquad \lambda\in\mathbb{R} Each value of the parameter names one point of the line

Writing a=x1i^+y1j^+z1k^\vec a=x_1\hat i+y_1\hat j+z_1\hat k and b=ai^+bj^+ck^\vec b=a\hat i+b\hat j+c\hat k and comparing components gives the parametric form:

x=x1+aλ,y=y1+bλx=x_1+a\lambda,\qquad y=y_1+b\lambda z=z1+cλz=z_1+c\lambda

Eliminating λ\lambda gives the symmetric form, which is the one printed in almost every question:

xx1a=yy1b=zz1c\frac{x-x_1}{a}=\frac{y-y_1}{b}=\frac{z-z_1}{c}

Through two points AA and BB, the direction is ba\vec b-\vec a, so

xx1x2x1=yy1y2y1=zz1z2z1\frac{x-x_1}{x_2-x_1}=\frac{y-y_1}{y_2-y_1}=\frac{z-z_1}{z_2-z_1}
The one habit that pays for itself

The first line of your working, on almost every question in this chapter, should be the general point. Write the line as equal to λ\lambda and read off (x1+aλ, y1+bλ, z1+cλ)(x_1+a\lambda,\ y_1+b\lambda,\ z_1+c\lambda). Once that is on the page you have turned a geometry question into one unknown, and the rest is arithmetic.

The zero denominator, which is notation and not division

A symmetric form such as

x12=y30=z+45\frac{x-1}{2}=\frac{y-3}{0}=\frac{z+4}{5}

is not dividing by zero. It is shorthand for the pair of statements y=3y=3 and x12=z+45\dfrac{x-1}{2}=\dfrac{z+4}{5}. The line lies entirely in the plane y=3y=3, and its direction ratios are genuinely 2,0,5\langle 2,0,5\rangle. This appears in JEE regularly, and a student who reads it as an error rather than as a plane condition loses the question at the first line.

The three axes are the cleanest examples. The xx-axis passes through the origin with direction 1,0,0\langle 1,0,0\rangle, so it is y=0y=0, z=0z=0, and the same pattern gives the other two.

Angle between two lines

Position is irrelevant. Slide both direction vectors to a common point and measure between them.

Only the directions matter; where the lines sit does not enter the calculation
cosθ=b1b2b1b2\cos\theta=\frac{\lvert \vec b_1\cdot\vec b_2\rvert}{\lvert \vec b_1\rvert\,\lvert \vec b_2\rvert}

Two consequences follow immediately and are worth stating as separate facts, because questions test them separately. The lines are perpendicular exactly when a1a2+b1b2+c1c2=0a_1a_2+b_1b_2+c_1c_2=0, and parallel exactly when a1a2=b1b2=c1c2\dfrac{a_1}{a_2}=\dfrac{b_1}{b_2}=\dfrac{c_1}{c_2}.

When a question wants a line perpendicular to two given lines, its direction is b1×b2\vec b_1\times\vec b_2. That single observation solves a large fraction of the "let LL be perpendicular to both" questions, of which 2026 alone had three.

Example 2 (JEE Main 2026, 6 Apr Shift 1). Let LL be perpendicular to both L1L_1 with direction 3,5,7\langle 3,5,7\rangle and L2L_2 with direction 1,4,7\langle 1,4,7\rangle. If θ\theta is the acute angle between LL and a line L3L_3 of direction 2,1,2\langle 2,1,2\rangle, find tanθ\tan\theta.

SHOW SOLUTION

Step 1: The cross product gives the direction of LL.

d=3,5,7×1,4,7=7,14,7\vec d=\langle 3,5,7\rangle\times\langle 1,4,7\rangle=\langle 7,-14,7\rangle

Divide out the common factor and use 1,2,1\langle 1,-2,1\rangle. Scaling a direction never changes an angle, so do it early.

Step 2: Take the cosine.

dd3=22+2=2\vec d\cdot\vec d_3=2-2+2=2d=6,d3=3\lvert\vec d\rvert=\sqrt6,\qquad \lvert\vec d_3\rvert=3cosθ=236\cos\theta=\frac{2}{3\sqrt6}

Step 3: Convert to a tangent.

sinθ=1454=5054\sin\theta=\sqrt{1-\frac{4}{54}}=\sqrt{\frac{50}{54}}tanθ=5054362=502=522\tan\theta=\sqrt{\frac{50}{54}}\cdot\frac{3\sqrt6}{2}=\frac{\sqrt{50}}{2}=\frac{5\sqrt2}{2}

Answer: (2) 522\dfrac{5}{2}\sqrt2

Foot of the perpendicular: one equation does all the work

This is the single most useful computation in the chapter, and it is one line of algebra.

The foot is the one point of the line whose join to P meets the line at a right angle

Take the general point F=a+λbF=\vec a+\lambda\vec b on the line. The join PF\overrightarrow{PF} must be perpendicular to the direction, so

(a+λbp)b=0(\vec a+\lambda\vec b-\vec p)\cdot\vec b=0 λ=(pa)bb2\lambda=\frac{(\vec p-\vec a)\cdot\vec b}{\lvert\vec b\rvert^2}

That is a single linear equation in a single unknown. Once λ\lambda is known, FF is known, and the perpendicular distance is just PF\lvert PF\rvert.

Do not memorise the closed form

The boxed formula for λ\lambda is worth understanding and not worth memorising. In an exam it is faster and safer to write the general point, dot the join with the direction, and solve. You will get the same λ\lambda in about the same time, with no chance of misremembering a sign.

Example 3 (JEE Main 2026, 5 Apr Shift 1). Find the square of the distance of P(5,6,7)P(5,6,7) from the line with point (2,5,2)(2,5,2) and direction 2,3,4\langle 2,3,4\rangle.

SHOW SOLUTION

Step 1: General point and join.

Q=(2λ+2, 3λ+5, 4λ+2)Q=(2\lambda+2,\ 3\lambda+5,\ 4\lambda+2)PQ=(2λ3, 3λ1, 4λ5)\overrightarrow{PQ}=(2\lambda-3,\ 3\lambda-1,\ 4\lambda-5)

Step 2: One dot product.

2(2λ3)+3(3λ1)+4(4λ5)=02(2\lambda-3)+3(3\lambda-1)+4(4\lambda-5)=029λ29=029\lambda-29=0

So λ=1\lambda=1 and Q=(4,8,6)Q=(4,8,6).

Step 3: Measure.

PQ2=1+4+1=6PQ^2=1+4+1=6

Answer: (3) 66

Example 4 (JEE Main 2026, 21 Jan Shift 1). Let (α,β,γ)(\alpha,\beta,\gamma) be the foot of the perpendicular from (5,4,2)(5,4,2) on r=(i^+3j^+k^)+λ(2i^+3j^k^)\vec r=(-\hat i+3\hat j+\hat k)+\lambda(2\hat i+3\hat j-\hat k). Find the length of the projection of αi^+βj^+γk^\alpha\hat i+\beta\hat j+\gamma\hat k on 6i^+2j^+3k^6\hat i+2\hat j+3\hat k.

SHOW SOLUTION

Step 1: Foot, by the same one equation.

With P=(2λ1, 3λ+3, λ+1)P=(2\lambda-1,\ 3\lambda+3,\ -\lambda+1) and A=(5,4,2)A=(5,4,2):

2(2λ6)+3(3λ1)(λ1)=02(2\lambda-6)+3(3\lambda-1)-(-\lambda-1)=014λ14=014\lambda-14=0

So λ=1\lambda=1 and (α,β,γ)=(1,6,0)(\alpha,\beta,\gamma)=(1,6,0).

Step 2: Project, which is where the direction cosines finally earn their keep.

projection=uww=187\text{projection}=\frac{\lvert \vec u\cdot\vec w\rvert}{\lvert\vec w\rvert}=\frac{18}{7}

Answer: (3) 187\dfrac{18}{7}

The pattern here is worth naming, because JEE uses it constantly. The foot is rarely the answer. It is the intermediate object the real question is built on.

Example 5 (JEE Main 2025, 22 Jan Shift 2). Find the perpendicular distance of the line through (1,2,3)(1,-2,-3) with direction 2,1,2\langle 2,-1,2\rangle from the point P(2,10,1)P(2,-10,1).

SHOW SOLUTION

Step 1: General point and join.

F=(2μ+1, μ2, 2μ3)F=(2\mu+1,\ -\mu-2,\ 2\mu-3)PF=(2μ1, μ+8, 2μ4)\overrightarrow{PF}=(2\mu-1,\ -\mu+8,\ 2\mu-4)

Step 2: Dot with the direction.

2(2μ1)(μ+8)+2(2μ4)=02(2\mu-1)-(-\mu+8)+2(2\mu-4)=09μ18=09\mu-18=0

So μ=2\mu=2 and F=(5,4,1)F=(5,-4,1).

Step 3: Measure.

PF=9+36+0=45=35PF=\sqrt{9+36+0}=\sqrt{45}=3\sqrt5

Answer: (2) 353\sqrt5

Three papers apart, three different wrappings, one identical calculation. That is the argument for learning the move rather than the question.

Image of a point in a line: find the foot, then double it

Reflecting PP in the line means finding the point QQ for which the line is the perpendicular bisector of PQPQ. The foot FF is therefore the midpoint of PQPQ.

The foot is the midpoint of P and its image, so the image costs one extra line of work
q=2fp\vec q=2\vec f-\vec p

There is nothing else to it. Every image question in this chapter is a foot question with one subtraction on the end, and recognising that turns a question students find long into a short one.

Two traps in image questions

First, the midpoint condition alone is not enough. A point QQ whose midpoint with PP lies on the line need not be the image; you also need PQ\overrightarrow{PQ} perpendicular to the direction. Papers exploit this by offering a value that satisfies one condition and not the other. Second, when the image is given in terms of unknowns, use both conditions as two separate equations rather than trying to force everything through the midpoint.

Example 6 (JEE Main 2026, 28 Jan Shift 2). Let Q(a,b,c)Q(a,b,c) be the image of P(3,2,1)P(3,2,1) in the line through (1,0,1)(1,0,1) with direction 1,2,1\langle 1,2,1\rangle. Find the distance of QQ from the line through (9,9,5)(9,9,5) with direction 3,2,2\langle 3,2,-2\rangle.

SHOW SOLUTION

Step 1: Foot on the first line.

N=(r+1, 2r, r+1)N=(r+1,\ 2r,\ r+1)PN=(r2, 2r2, r)\overrightarrow{PN}=(r-2,\ 2r-2,\ r)(r2)+2(2r2)+r=6r6=0(r-2)+2(2r-2)+r=6r-6=0

So r=1r=1 and N=(2,2,2)N=(2,2,2).

Step 2: Double it.

Q=2NP=(1,2,3)Q=2N-P=(1,2,3)

Step 3: Now a fresh perpendicular-distance calculation.

With A=(9,9,5)A=(9,9,5) and AQ=(8,7,2)\overrightarrow{AQ}=(-8,-7,-2):

AQ2=64+49+4=117\lvert AQ\rvert^2=64+49+4=117AQd=2414+4=34\overrightarrow{AQ}\cdot\vec d=-24-14+4=-34d=17\lvert \vec d\rvert=\sqrt{17}

The projection of AQ\overrightarrow{AQ} along the line has square 34217=68\dfrac{34^2}{17}=68, so by Pythagoras

QM=11768=49=7QM=\sqrt{117-68}=\sqrt{49}=7

Answer: (3) 77

Step 3 is worth a second look. Rather than solving for the foot again, it used AQ2\lvert AQ\rvert^2 minus the square of the along-line component. On a numeric question that is two lines shorter than finding the foot, and it is the version to reach for when the foot itself is not asked for.

Example 7 (JEE Main 2026, 22 Jan Shift 1). If the image of P(1,2,a)P(1,2,a) in the line x63=y72=7z2\dfrac{x-6}{3}=\dfrac{y-7}{2}=\dfrac{7-z}{2} is Q(5,b,c)Q(5,b,c), find a2+b2+c2a^2+b^2+c^2.

SHOW SOLUTION

Step 1: Repair the direction before anything else.

The third fraction is written 7z2\dfrac{7-z}{2}, which equals z72\dfrac{z-7}{-2}. The direction ratios are 3,2,2\langle 3,2,-2\rangle and the point is (6,7,7)(6,7,7). Skip this and every later sign is wrong.

Step 2: Midpoint on the line.

M=(3, b+22, a+c2)M=\left(3,\ \frac{b+2}{2},\ \frac{a+c}{2}\right)

The xx-coordinate gives t=363=1t=\dfrac{3-6}{3}=-1 at once, and then

b+227=2  b=8\frac{b+2}{2}-7=-2\ \Rightarrow\ b=8a+c27=2  a+c=18\frac{a+c}{2}-7=2\ \Rightarrow\ a+c=18

Step 3: Perpendicularity, the second condition.

PQ=(4, 6, ca)\overrightarrow{PQ}=(4,\ 6,\ c-a)12+122(ca)=0  ca=1212+12-2(c-a)=0\ \Rightarrow\ c-a=12

Step 4: Solve the pair.

From a+c=18a+c=18 and ca=12c-a=12: c=15c=15, a=3a=3.

a2+b2+c2=9+64+225=298a^2+b^2+c^2=9+64+225=298

Answer: (3) 298298

Example 8 (JEE Main 2024, 31 Jan Shift 2). Let (α,β,γ)(\alpha,\beta,\gamma) be the mirror image of (2,3,5)(2,3,5) in the line x12=y23=z34\dfrac{x-1}{2}=\dfrac{y-2}{3}=\dfrac{z-3}{4}. Find 2α+3β+4γ2\alpha+3\beta+4\gamma.

SHOW SOLUTION

Step 1: Foot.

F=(2t+1, 3t+2, 4t+3)F=(2t+1,\ 3t+2,\ 4t+3)PF=(2t1, 3t1, 4t2)\overrightarrow{PF}=(2t-1,\ 3t-1,\ 4t-2)2(2t1)+3(3t1)+4(4t2)=02(2t-1)+3(3t-1)+4(4t-2)=029t13=029t-13=0

So t=1329t=\dfrac{13}{29}.

Step 2: Double it and combine.

Doubling gives the image, and substituting into 2α+3β+4γ2\alpha+3\beta+4\gamma collapses to

2α+3β+4γ=332\alpha+3\beta+4\gamma=33

Answer: (4) 3333

The word that changes everything: along

Read these two questions side by side.

Find the distance of PP from the line LL.

Find the distance of PP from the line LL measured along the line MM.

They are not the same question and they do not share a method. The first is a perpendicular distance. The second says: leave PP travelling in the direction of MM, and stop when you hit LL. Since that path is not perpendicular, it is longer.

Perpendicular distance versus distance measured along a stated direction

The method for the second is mechanical once you see it. Write the line through PP with the given direction, write the target line, and force them to meet. Two parameters, three coordinate equations, and the system is over-determined in your favour: solve two, check the third.

This is the most reliably missed question type in the chapter

Every 2026 shift that used the word "along" was testing whether you noticed it. If you compute a perpendicular distance for an "along" question your answer will be too small, and it will usually still match one of the four options, because the paper puts it there on purpose.

Example 9 (JEE Main 2026, 4 Apr Shift 1). Find the square of the distance of (2,8,6)(-2,-8,6) from the line x11=y12=z1\dfrac{x-1}{1}=\dfrac{y-1}{2}=\dfrac{z}{-1} along the line x+51=y+51=z2\dfrac{x+5}{1}=\dfrac{y+5}{-1}=\dfrac{z}{2}.

SHOW SOLUTION

Step 1: Travel from the point in the stated direction.

Only the direction 1,1,2\langle 1,-1,2\rangle of the second line is used; its position is irrelevant.

B=(λ2, λ8, 2λ+6)B=(\lambda-2,\ -\lambda-8,\ 2\lambda+6)

Step 2: Land on the target line.

λ2=μ+1\lambda-2=\mu+1λ8=2μ+1-\lambda-8=2\mu+12λ+6=μ2\lambda+6=-\mu

From the first, μ=λ3\mu=\lambda-3. Substituting into the third gives 3λ=33\lambda=-3, so λ=1\lambda=-1 and μ=4\mu=-4.

Step 3: Check the spare equation, then measure.

The second equation reads 7=7-7=-7, which confirms the point. So B=(3,7,4)B=(-3,-7,4) and

AB2=1+1+4=6AB^2=1+1+4=6

Answer: (2) 66

Example 10 (JEE Main 2025, 3 Apr Shift 2). Find the distance of the point (7,10,11)(7,10,11) from the line x41=y40=z23\dfrac{x-4}{1}=\dfrac{y-4}{0}=\dfrac{z-2}{3} along the line x92=y133=z176\dfrac{x-9}{2}=\dfrac{y-13}{3}=\dfrac{z-17}{6}.

SHOW SOLUTION

Step 1: Note the zero denominator.

The target line has direction 1,0,3\langle 1,0,3\rangle and lies in the plane y=4y=4. That single fact does most of the work.

Step 2: Travel and land.

B=(2λ+7, 3λ+10, 6λ+11)B=(2\lambda+7,\ 3\lambda+10,\ 6\lambda+11)

Landing on y=4y=4 gives 3λ+10=43\lambda+10=4, so λ=2\lambda=-2 immediately, and B=(3,4,1)B=(3,4,-1). Checking, 341=1=123\dfrac{3-4}{1}=-1=\dfrac{-1-2}{3}, so BB really is on the line.

Step 3: Measure.

PB=16+36+144=196=14PB=\sqrt{16+36+144}=\sqrt{196}=14

Answer: (1) 1414

The zero denominator turned a two-parameter system into a one-line calculation. That is what the earlier section on notation was for.

Skew lines and the shortest distance

Two lines in space fall into exactly three cases, and the first question to ask is always which one you are in.

Skew lines neither meet nor run parallel, and one join is perpendicular to both
CaseTestShortest distance
Parallelb1×b2=0\vec b_1\times\vec b_2=\vec 0AB×bb\dfrac{\lvert \overrightarrow{AB}\times\vec b\rvert}{\lvert \vec b\rvert}
Intersectingb1×b20\vec b_1\times\vec b_2\neq\vec 0 and (a2a1)(b1×b2)=0(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=000
Skewb1×b20\vec b_1\times\vec b_2\neq\vec 0 and the triple product is non-zerothe formula below

For skew lines,

d=(a2a1)(b1×b2)b1×b2d=\frac{\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}

The formula reads better than it looks. The vector b1×b2\vec b_1\times\vec b_2 points along the one direction perpendicular to both lines, and the numerator projects the gap between the lines onto it. Everything else cancels.

Coplanarity is the same statement, rearranged

Two lines are coplanar exactly when their shortest distance is zero, that is, when

(a2a1)(b1×b2)=0(\vec a_2-\vec a_1)\cdot(\vec b_1\times\vec b_2)=0

Written as a determinant with rows a2a1\vec a_2-\vec a_1, b1\vec b_1 and b2\vec b_2, that is the condition every "find kk so that the lines are coplanar" question is really asking for. Coplanar and intersecting are the same thing here, unless the lines are parallel.

Example 11 (JEE Main 2026, 6 Apr Shift 2). Find the shortest distance between x41=y32=z23\dfrac{x-4}{1}=\dfrac{y-3}{2}=\dfrac{z-2}{-3} and x+22=y64=z55\dfrac{x+2}{2}=\dfrac{y-6}{4}=\dfrac{z-5}{-5}.

SHOW SOLUTION

Step 1: Check the case first.

d1×d2=1,2,3×2,4,5\vec d_1\times\vec d_2=\langle 1,2,-3\rangle\times\langle 2,4,-5\rangled1×d2=2,1,0\vec d_1\times\vec d_2=\langle 2,-1,0\rangle

Non-zero, so the lines are not parallel, despite 1,2,3\langle 1,2,-3\rangle and 2,4,5\langle 2,4,-5\rangle looking suspiciously close. That near-miss is deliberate.

Step 2: Apply the formula.

AB=(6,3,3),d1×d2=5\overrightarrow{AB}=(-6,3,3),\qquad \lvert \vec d_1\times\vec d_2\rvert=\sqrt5d=123+05=155=35d=\frac{\lvert -12-3+0\rvert}{\sqrt5}=\frac{15}{\sqrt5}=3\sqrt5

Answer: (3) 353\sqrt5

Example 12 (JEE Main 2026, 24 Jan Shift 2). Find the sum of all values of α\alpha for which the shortest distance between x+1α=y21=z4α\dfrac{x+1}{\alpha}=\dfrac{y-2}{-1}=\dfrac{z-4}{-\alpha} and xα=y12=z12α\dfrac{x}{\alpha}=\dfrac{y-1}{2}=\dfrac{z-1}{2\alpha} is 2\sqrt2.

SHOW SOLUTION

Step 1: Cross product, keeping α\alpha symbolic.

d1×d2=0, 3α2, 3α\vec d_1\times\vec d_2=\langle 0,\ -3\alpha^2,\ 3\alpha\rangled1×d2=3αα2+1\lvert \vec d_1\times\vec d_2\rvert=3\lvert\alpha\rvert\sqrt{\alpha^2+1}

Step 2: Build the distance and watch it simplify.

With r=(1,1,3)\vec r=(1,-1,-3), the numerator is 3α29α\lvert 3\alpha^2-9\alpha\rvert, so

d=3α29α3αα2+1=α3α2+1d=\frac{\lvert 3\alpha^2-9\alpha\rvert}{3\lvert\alpha\rvert\sqrt{\alpha^2+1}}=\frac{\lvert\alpha-3\rvert}{\sqrt{\alpha^2+1}}

The α\lvert\alpha\rvert cancels, which is the whole reason this question is doable in two minutes.

Step 3: Set it equal and solve.

(α3)2α2+1=2  α2+6α7=0\frac{(\alpha-3)^2}{\alpha^2+1}=2\ \Longrightarrow\ \alpha^2+6\alpha-7=0(α+7)(α1)=0(\alpha+7)(\alpha-1)=0

The roots are 7-7 and 11, summing to 6-6.

Answer: (2) 6-6

Look back at the condition count from the first section. Two unknowns' worth of freedom, one condition, so a family and a "sum of all values" ending. The shape of the answer was predictable before any algebra happened.

Example 13 (JEE Main 2025, 2 Apr Shift 2). L1L_1 is parallel to 3i^+2j^+4k^-3\hat i+2\hat j+4\hat k through (7,6,2)(7,6,2); L2L_2 is parallel to 2i^+j^+3k^2\hat i+\hat j+3\hat k through (5,3,4)(5,3,4). Find the shortest distance.

SHOW SOLUTION

Step 1: Cross product.

b1×b2=3,2,4×2,1,3\vec b_1\times\vec b_2=\langle -3,2,4\rangle\times\langle 2,1,3\rangleb1×b2=2,17,7\vec b_1\times\vec b_2=\langle 2,17,-7\rangleb1×b2=4+289+49=338\lvert \vec b_1\times\vec b_2\rvert=\sqrt{4+289+49}=3\sqrt{38}

Step 2: Project the gap.

a2a1=(2,3,2)\vec a_2-\vec a_1=(-2,-3,2)(2)(2)+(3)(17)+(2)(7)=69(-2)(2)+(-3)(17)+(2)(-7)=-69d=69338=2338d=\frac{69}{3\sqrt{38}}=\frac{23}{\sqrt{38}}

Answer: (1) 2338\dfrac{23}{\sqrt{38}}

When two lines meet: intersection and coplanarity

If two lines do meet, the fastest route is almost never the determinant. Write both general points, set them equal, solve two of the three coordinate equations, and use the third as a check. The determinant condition is for questions that ask whether they meet, or for what value of a parameter they meet.

Example 14 (JEE Main 2026, 2 Apr Shift 1). If the point of intersection of x+13=y+a5=z+b+17\dfrac{x+1}{3}=\dfrac{y+a}{5}=\dfrac{z+b+1}{7} and x21=yb4=z2a7\dfrac{x-2}{1}=\dfrac{y-b}{4}=\dfrac{z-2a}{7} lies on the xyxy-plane, find a+ba+b.

SHOW SOLUTION

Step 1: Two general points.

P=(3r11, 5r1a, 7r1b1)P=(3r_1-1,\ 5r_1-a,\ 7r_1-b-1)Q=(r2+2, 4r2+b, 7r2+2a)Q=(r_2+2,\ 4r_2+b,\ 7r_2+2a)

Step 2: Use the extra condition early.

Lying on the xyxy-plane means z=0z=0, and that applies to both expressions for the same point:

7r1b1=0,7r2+2a=07r_1-b-1=0,\qquad 7r_2+2a=0

Two equations for free, before touching the harder ones.

Step 3: Equate the remaining coordinates.

Matching xx gives r2=3r13r_2=3r_1-3. Matching yy, and substituting, gives 7r1=57r_1=5, so r1=57r_1=\dfrac57.

Step 4: Back-substitute.

b=7571=4b=7\cdot\tfrac57-1=4r2=67,a=3r_2=-\tfrac67,\qquad a=3a+b=7a+b=7

Answer: (3) 77

Step 2 is the lesson. The condition "lies on the xyxy-plane" was not an afterthought to apply at the end; used first, it cut the work roughly in half.

Which move, when

A short decision chart covering almost every straight-line question in space

Read the question for one of four signals and the method follows.

The question saysThe move
foot, image, mirror, reflectiongeneral point, one dot product, then double for an image
perpendicular distance, distance from a linefoot, then PF\lvert PF\rvert; or AP2\lvert AP\rvert^2 minus the along-component squared
distance along a second linewrite both parametrisations, force them to meet
angle, perpendicular, paralleldirections only, with an absolute value in the cosine
shortest distance, skewcheck parallel first, then the triple product formula
coplanar, intersect, find kk such thatset the triple product to zero

Quick recall

Direction cosinesl2+m2+n2=1l^2+m^2+n^2=1; two sets per line, opposite in sign
Direction ratiosany non-zero multiple of l,m,nl,m,n; no constraint
Vector formr=a+λb\vec r=\vec a+\lambda\vec b
Symmetric formxx1a=yy1b=zz1c\dfrac{x-x_1}{a}=\dfrac{y-y_1}{b}=\dfrac{z-z_1}{c}
Zero denominatora plane condition, never a division
Anglecosθ=b1b2b1b2\cos\theta=\dfrac{\lvert\vec b_1\cdot\vec b_2\rvert}{\lvert\vec b_1\rvert\lvert\vec b_2\rvert}
Perpendiculara1a2+b1b2+c1c2=0a_1a_2+b_1b_2+c_1c_2=0
Line perpendicular to two linesdirection b1×b2\vec b_1\times\vec b_2
Foot of perpendicularsolve (a+λbp)b=0(\vec a+\lambda\vec b-\vec p)\cdot\vec b=0
Imageq=2fp\vec q=2\vec f-\vec p
Distance, parallel linesAB×bb\dfrac{\lvert\overrightarrow{AB}\times\vec b\rvert}{\lvert\vec b\rvert}
Shortest distance, skew(a2a1)(b1×b2)b1×b2\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}
Coplanarthat triple product is zero
One habit for the exam hall

Before computing anything, write the general point of every line the question mentions. It takes fifteen seconds, it converts the geometry into algebra, and on nearly every question in this chapter the next step then becomes obvious. Students who skip it spend their time deciding what to do; students who do it spend their time doing it.

Work these methods on the past papers until the recognition is automatic, then move on to the plane, where every one of them reappears with an extra equation attached.

[ SHARE ] WhatsApp
[ practice these chapters ]
Reinforce this post with live problems on doMath.
Vectors & 3D GeometryGeometry (Olympiad)
Next Properties of Definite Integrals: The Complete JEE Method
← Back to all notes