QlarIITy

MathematicsJEE Main 2026 · 23 JanuaryInteger

If the image of the point P(a,2,a)P(a, 2, a) in the line x2=y+a1=z1\frac{x}{2} = \frac{y + a}{1} = \frac{z}{1} is QQ and the image of QQ in the linex−2b2=y−a1=z+2b−5\frac{x - 2b}{2} = \frac{y - a}{1} = \frac{z + 2b}{-5}is PP, then a+ba + b is equal to ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. A pair of points that are images of each other in two lines has its midpoint on both lines.

Concept refresher. If QQ is the image of PP in a line LL, then the midpoint FF of PQPQ lies on LL and FP→\overrightarrow{FP} is perpendicular to the direction d⃗\vec{d} of LL:

FP→⋅d⃗=0, Q=2F−P\overrightarrow{FP} \cdot \vec{d} = 0, \ Q = 2F - P

A general point of x−x1l=y−y1m=z−z1n\frac{x - x_1}{l} = \frac{y - y_1}{m} = \frac{z - z_1}{n} is (x1+lk,y1+mk,z1+nk)(x_1 + lk, y_1 + mk, z_1 + nk) for a real kk.

Picture the situation. PP and QQ are mirror images in each of the two lines, so the segment PQPQ is cut in half by both lines at the same point FF: the two lines cross at FF, and PQPQ is perpendicular to both of them there.

Approach. Find where the two lines meet, take that point as the midpoint FF of PQPQ, and make FP→\overrightarrow{FP} perpendicular to both directions.

  1. Step 1: The midpoint lies on both lines

    PP is not on the first line (its coordinates would need a2=2+a=a\frac{a}{2} = 2 + a = a), so P≠QP \neq Q. The midpoint FF of PQPQ is the foot of PP on the first line and also the foot of QQ on the second line, so FF lies on both lines.

  2. Step 2: Find the common point

    General points of the two lines are (2s,s−a,s)(2s, s - a, s) and (2b+2r,a+r,−2b−5r)(2b + 2r, a + r, -2b - 5r). Equating coordinates:

    2s=2b+2rs−a=a+rs=−2b−5r\begin{aligned} 2s &= 2b + 2r \\[4pt] s - a &= a + r \\[4pt] s &= -2b - 5r \end{aligned}

    The first two give s=b+rs = b + r and b=2ab = 2a; the third then gives r=−b2r = -\frac{b}{2}, s=b2=as = \frac{b}{2} = a. So F=(2a,0,a)F = (2a, 0, a).

  3. Step 3: Use perpendicularity

    FP→\overrightarrow{FP} must be perpendicular to both directions (2,1,1)(2, 1, 1) and (2,1,−5)(2, 1, -5):

    FP→=(a−2a,2−0,a−a)=(−a,2,0)\overrightarrow{FP} = (a - 2a, 2 - 0, a - a) = (-a, 2, 0)

    and the two dot products are

    (−a,2,0)⋅(2,1,1)=−2a+2=0(−a,2,0)⋅(2,1,−5)=−2a+2=0\begin{aligned} (-a, 2, 0) \cdot (2, 1, 1) &= -2a + 2 = 0 \\[4pt] (-a, 2, 0) \cdot (2, 1, -5) &= -2a + 2 = 0 \end{aligned}

    So a=1a = 1 and b=2a=2b = 2a = 2, giving a+b=3a + b = 3.

Answer. 3

Sanity check. With a=1a = 1, b=2b = 2: P=(1,2,1)P = (1, 2, 1) and F=(2,0,1)F = (2, 0, 1), so Q=2F−P=(3,−2,1)Q = 2F - P = (3, -2, 1). QQ's foot on the second line (4+2r,1+r,−4−5r)\left(4 + 2r, 1 + r, -4 - 5r\right) at r=−1r = -1 is (2,0,1)(2, 0, 1), and FQ→=(1,−2,0)\overrightarrow{FQ} = (1, -2, 0) is perpendicular to (2,1,−5)(2, 1, -5), so the image of QQ is PP.

Common wrong answers

  • 2: 22 is bb alone; with a=1a = 1 the sum is a+b=1+2=3a + b = 1 + 2 = 3.
  • 1: 11 is aa alone; the lines meet only when b=2a=2b = 2a = 2, so a+b=3a + b = 3.
  • -3: Writing FP→\overrightarrow{FP} as (a,2,0)(a, 2, 0) instead of (a−2a,2,0)(a - 2a, 2, 0) gives 2a+2=02a + 2 = 0, so a=−1a = -1, b=−2b = -2 and −3-3; the correct condition is −2a+2=0-2a + 2 = 0.

Key takeaway

The trap. Treating the two reflections separately and getting lost in two feet of perpendiculars.

How toppers think. They find where the lines meet first; that single point carries all the conditions.

Remember. QQ is the image of PP in a line exactly when the midpoint is on the line and PQPQ is perpendicular to it.

More on Coplanarity & Distance Problems