QlarIITy

MathematicsJEE Main 2023 · 8 AprilInteger

Let mm and nn be the numbers of real roots of the quadratic equationsx2−12x+[x]+31=0x^2 - 12x + [x] + 31 = 0andx2−5∣x+2∣−4=0x^2 - 5|x + 2| - 4 = 0respectively, where [x][x] denotes the greatest integer ≤x\leq x. Then m2+mn+n2m^2 + mn + n^2 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. An equation with the greatest integer is examined one unit interval at a time.

Concept refresher. For an integer kk, [x]=k[x] = k exactly when k≤x<k+1k \leq x < k + 1. An equation [x]=g(x)[x] = g(x) has a root in that interval only if gg takes the value kk there. For a real cc, ∣x−c∣=x−c|x - c| = x - c when x≥cx \geq c and

∣x−c∣=c−x|x - c| = c - x

when x<cx < c.

Picture the situation. In the first equation the staircase of the greatest integer must meet a parabola that opens downward with its top at height 5. On each step the staircase is constant while the parabola rises through a short range, and the two ranges never match. The second equation is an upward parabola on each side of the corner at −2-2, cutting the axis three times in all.

Approach. Show that the first equation has no root by examining each unit interval, count the roots of the second by cases, and combine the counts.

  1. Step 1: First equation

    It says [x]=−x2+12x−31=5−(x−6)2[x] = -x^2 + 12x - 31 = 5 - (x - 6)^2, so [x]≤5[x] \leq 5 and x<6x < 6, where the right side increases. With [x]=k[x] = k, a root in [k,k+1)[k, k + 1) needs k<5−(k−5)2k < 5 - (k - 5)^2, which is (k−4)(k−5)<0(k - 4)(k - 5) < 0. No integer satisfies this, so m=0m = 0.

  2. Step 2: Second equation, right of the corner

    For x≥−2x \geq -2 the equation is x2−5x−14=0x^2 - 5x - 14 = 0, that is (x−7)(x+2)=0(x - 7)(x + 2) = 0, with roots 7 and −2-2, both allowed.

  3. Step 3: Second equation, left of the corner

    For x<−2x < -2 the equation is x2+5x+6=0x^2 + 5x + 6 = 0, with roots −2-2 and −3-3, of which only −3-3 is below −2-2. So n=3n = 3. With m=0m = 0 and n=3n = 3, m2+mn+n2=0+0+9=9m^2 + mn + n^2 = 0 + 0 + 9 = 9.

Answer. 9

Sanity check. For the first equation, at x=5.5x = 5.5 the left side is 30.25−66+5+31=0.2530.25 - 66 + 5 + 31 = 0.25 and at x=5.9x = 5.9 it is 34.81−70.8+5+31=0.0134.81 - 70.8 + 5 + 31 = 0.01, positive throughout that step, and it jumps to 1 at x=6x = 6; it never reaches zero.

Common wrong answers

  • 16: Counting x=−2x = -2 twice, once in each case, makes n=4n = 4 and gives 16; it is a single root.
  • 19: Replacing [x][x] by xx gives x2−11x+31=0x^2 - 11x + 31 = 0 and suggests m=2m = 2, hence 4+6+9=194 + 6 + 9 = 19; the greatest integer is not the number itself, and that quadratic has no real root anyway.

Key takeaway

The trap. A root that lies at the corner of a modulus belongs to one case only.

How toppers think. They turn the condition for a root on a unit interval into an inequality in the integer.

Remember. [x]=k[x] = k means k≤x<k+1k \leq x < k + 1.

More on Equations Reducible to Quadratics