QlarIITy

MathematicsJEE Main 2026 · 5 AprilInteger

From the point (−1,−1)(-1, -1), two rays are sent making angles of 45∘45^\circ with the line x+y=0x + y = 0. These rays get reflected from the mirror x+2y=1x + 2y = 1. If the equations of the reflected rays are ax+by=9ax + by = 9 and cx+dy=7cx + dy = 7, a,b,c,d∈Za, b, c, d \in \mathbb{Z}, then the value of ad+bcad + bc is ______.

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 reflected ray behaves as if it came from the image of the source in the mirror.

Concept refresher. The angle θ\theta between lines of slopes m1m_1 and m2m_2 satisfies tan⁡θ=∣m1−m21+m1m2∣\tan\theta = \left|\frac{m_1 - m_2}{1 + m_1m_2}\right|. The image of (x1,y1)(x_1, y_1) in the line px+qy+r=0px + qy + r = 0 is (x,y)(x, y) with

x−x1p=y−y1q=−2(px1+qy1+r)p2+q2\frac{x - x_1}{p} = \frac{y - y_1}{q} = -\frac{2\left(px_1 + qy_1 + r\right)}{p^2 + q^2}

and a ray reflected in a plane mirror travels as if it came from the image of its source.

Picture the situation. The two rays leave A(−1,−1)A(-1, -1) along a horizontal and a vertical line, hit the mirror at H1H_1 and H2H_2, and bounce off. Extended backwards, both reflected rays (dashed) meet at the image II of AA.

A slanting mirror line, the source A below it, two rays from A hitting the mirror at H1 and H2, and the reflected rays whose dashed extensions meet at the image I.

Approach. Find the two rays from the angle condition, find where they meet the mirror, find the image of the source, and join the image to each meeting point.

  1. Step 1: Find the rays

    The line x+y=0x + y = 0 has slope −1-1, and a line of slope mm makes 45∘45^\circ with it when

    ∣m+11−m∣=1\left|\frac{m + 1}{1 - m}\right| = 1

    which gives m=0m = 0; the other solution is the vertical line. So the rays are y=−1y = -1 and x=−1x = -1.

  2. Step 2: Find where they meet the mirror

    Putting each ray into x+2y=1x + 2y = 1: the ray y=−1y = -1 meets it at H1(3,−1)H_1(3, -1), and the ray x=−1x = -1 meets it at H2(−1,1)H_2(-1, 1).

  3. Step 3: Find the image of the source

    For A(−1,−1)A(-1, -1) and the mirror x+2y−1=0x + 2y - 1 = 0, the value x1+2y1−1=−4x_1 + 2y_1 - 1 = -4, so

    x+11=y+12=−2(−4)5=85\frac{x + 1}{1} = \frac{y + 1}{2} = -\frac{2(-4)}{5} = \frac{8}{5}

    which gives the image I(35,115)I\left(\frac{3}{5}, \frac{11}{5}\right).

  4. Step 4: Write the reflected rays

    Each reflected ray lies on the line through II and its meeting point. Through H1(3,−1)H_1(3, -1) the slope is −43-\frac{4}{3}, and through H2(−1,1)H_2(-1, 1) it is 34\frac{3}{4}:

    4x+3y=9−3x+4y=7\begin{aligned} 4x + 3y &= 9 \\[4pt] -3x + 4y &= 7 \end{aligned}

    These match the given right sides, so a=4a = 4, b=3b = 3, c=−3c = -3, d=4d = 4, and ad+bc=16−9=7ad + bc = 16 - 9 = 7.

Answer. 7

Sanity check. Both lines pass through II: 4⋅35+3⋅115=455=94 \cdot \frac{3}{5} + 3 \cdot \frac{11}{5} = \frac{45}{5} = 9 and −3⋅35+4⋅115=355=7-3 \cdot \frac{3}{5} + 4 \cdot \frac{11}{5} = \frac{35}{5} = 7; and each makes equal angles with the mirror as its incident ray.

Smart method. Swapping the two lines changes nothing, because ad+bcad + bc is symmetric under (a,b)↔(c,d)(a, b) \leftrightarrow (c, d); and the right sides 99 and 77 fix the signs. So only the two directions (4,3)(4, 3) and (−3,4)(-3, 4) through II are needed. This relies on the given right sides; without them the signs of c,dc, d would be free.

Common wrong answers

  • -7: Writing the second ray as 3x−4y=−73x - 4y = -7 and taking c=3c = 3, d=−4d = -4 gives 4(−4)+3⋅3=−74(-4) + 3 \cdot 3 = -7; the given form cx+dy=7cx + dy = 7 needs c=−3c = -3, d=4d = 4.
  • 25: Taking c=3c = 3 instead of −3-3 gives ad+bc=16+9=25ad + bc = 16 + 9 = 25; the line through (−1,1)(-1, 1) with slope 34\frac{3}{4} is −3x+4y=7-3x + 4y = 7.
  • 16: The value 1616 is adad alone; adding bc=3⋅(−3)=−9bc = 3 \cdot (-3) = -9 gives 77.

Key takeaway

The trap. Choosing the sign of a line's coefficients without matching the given right side.

How toppers think. They find the image of the source once and get every reflected ray from it.

Remember. The image of (x1,y1)(x_1, y_1) in px+qy+r=0px + qy + r = 0 moves it by −2(px1+qy1+r)p2+q2(p,q)-\frac{2\left(px_1 + qy_1 + r\right)}{p^2 + q^2}(p, q).

More on Distance of a Point from a Line