QlarIITy

MathematicsJEE Main 2021 · 31 AugustInteger

If RR is the least value of aa such that the function f(x)=x2+ax+1f(x) = x^2 + ax + 1 is increasing on [1,2][1, 2] and SS is the greatest value of aa such that the function f(x)=x2+ax+1f(x) = x^2 + ax + 1 is decreasing on [1,2][1, 2], then the value of ∣R−S∣|R - S| 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 linear derivative takes its extreme values on an interval at the two ends.

Concept refresher. On an interval where f′(x)>0f^{\prime}(x) > 0 the function ff increases, and where

f′(x)<0f^{\prime}(x) < 0

it decreases.

Picture the situation. Here f′(x)=2x+af^{\prime}(x) = 2x + a, a linear function that increases with xx. On [1,2][1, 2] its least value is 2+a2 + a, at x=1x = 1, and its greatest value is 4+a4 + a, at x=2x = 2.

Approach. Apply the sign condition at the end where it is hardest to meet.

  1. Step 1: Increasing

    For ff to increase on [1,2][1, 2] the derivative must not be negative anywhere there, so its least value satisfies 2+a≥02 + a \geq 0. This gives a≥−2a \geq -2, and the least such value is R=−2R = -2.

  2. Step 2: Decreasing

    For ff to decrease on [1,2][1, 2] the derivative must not be positive anywhere there, so its greatest value satisfies 4+a≤04 + a \leq 0. This gives a≤−4a \leq -4, so S=−4S = -4 and ∣R−S∣=∣−2+4∣=2|R - S| = |-2 + 4| = 2.

Answer. 2

Sanity check. For aa between −4-4 and −2-2 the vertex x=−a2x = -\dfrac{a}{2} lies inside [1,2][1, 2], so the function is neither increasing nor decreasing there, which fits a gap of 2.

Common wrong answers

  • 0: Using the same end of the interval for both conditions gives R=SR = S and the value 0.
  • 6: Taking R=2R = 2 with the wrong sign gives ∣2+4∣=6|2 + 4| = 6.

Key takeaway

The trap. The increasing condition is tested at the left end and the decreasing one at the right end.

How toppers think. They place the vertex of the parabola to the left or to the right of the interval instead of differentiating.

Remember. f′(1)≥0f^{\prime}(1) \geq 0 for increasing, f′(2)≤0f^{\prime}(2) \leq 0 for decreasing

More on Increasing & Decreasing Functions