Question

The number of roots of ex+0.5x2−2=0e^x + 0.5x^2 - 2 = 0 in the range [−5,5][-5, 5] is

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2017 answer key

Solution

Analyze the convexity and monotonicity of f(x)=ex+0.5x2−2f(x) = e^x + 0.5x^2 - 2 using calculus to find the exact number of real roots in [−5,5][-5, 5].

Define the continuous and infinitely differentiable function:

f(x)=ex+0.5x2−2f(x) = e^x + 0.5x^2 - 2

Compute its derivatives:

f′(x)=ex+xf'(x) = e^x + x
f′′(x)=ex+1f''(x) = e^x + 1

Since ex>0e^x > 0 for all real xx, we have f′′(x)=ex+1>1>0f''(x) = e^x + 1 > 1 > 0 everywhere.
Because f′′(x)>0f''(x) > 0 for all x∈Rx \in \mathbb{R}, f(x)f(x) is strictly convex, and its first derivative f′(x)f'(x) is strictly increasing.

Find the critical point where f′(x)=0f'(x) = 0:

  • f′(0)=e0+0=1>0f'(0) = e^0 + 0 = 1 > 0
  • f′(−1)=e−1−1=1e−1≈0.368−1=−0.632<0f'(-1) = e^{-1} - 1 = \frac{1}{e} - 1 \approx 0.368 - 1 = -0.632 < 0
    By the Intermediate Value Theorem, f′(x)=0f'(x) = 0 has a unique root x0∈(−1,0)x_0 \in (-1, 0).
    Since ff is strictly convex, x0x_0 is the unique global minimum of f(x)f(x) on R\mathbb{R}.

Evaluate the function at the minimum x0x_0 and the interval boundaries:

  1. At the minimum x0∈(−1,0)x_0 \in (-1, 0):
    Since x0<0x_0 < 0, ex0<1e^{x_0} < 1, and since ∣x0∣<1|x_0| < 1, 0.5x02<0.50.5x_0^2 < 0.5.
    Therefore, f(x0)=ex0+0.5x02−2<1+0.5−2=−0.5<0f(x_0) = e^{x_0} + 0.5x_0^2 - 2 < 1 + 0.5 - 2 = -0.5 < 0.
    The minimum value is strictly negative.
  2. At x=−5x = -5:
    f(−5)=e−5+0.5(−5)2−2=e−5+12.5−2=10.5+e−5>0f(-5) = e^{-5} + 0.5(-5)^2 - 2 = e^{-5} + 12.5 - 2 = 10.5 + e^{-5} > 0
  3. At x=5x = 5:
    f(5)=e5+0.5(5)2−2=e5+10.5>0f(5) = e^5 + 0.5(5)^2 - 2 = e^5 + 10.5 > 0

Because f(−5)>0f(-5) > 0, f(x0)<0f(x_0) < 0, and ff is strictly decreasing on [−5,x0][-5, x_0], there is exactly one root in [−5,x0][-5, x_0].
Because f(x0)<0f(x_0) < 0, f(5)>0f(5) > 0, and ff is strictly increasing on [x0,5][x_0, 5], there is exactly one root in [x0,5][x_0, 5].
Thus, f(x)=0f(x) = 0 has exactly 2 roots in the range [−5,5][-5, 5]. This matches option C.

Final answer

C

Common trap

Assuming the exponential term dominates everywhere so that only 1 root exists, missing the negative minimum created by the quadratic and constant terms.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2017 Computer Science and Information Technology (CS) Session 2
Question
64 of 65, printed as GA Q.9
Section
General Aptitude

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.