Algebra, Equations & Number Patterns
![Question 64, GATE 2017: How many roots of e^x+0.5x²-2=0 lie in [-5,5]? A:0. B:1. C:2. D:3.](../../assets/questions/CS-2017-S2-Q9-1.webp)
Answer & solution
Official answer: C
1. Set f(x)=ex+x²/2-2. It is continuous, with f(-5)=e-5+10.5>0, f(0)=-1, and f(5)=e5+10.5>0. The intermediate value theorem therefore gives at least one root in (-5,0) and one in (0,5).
2. To rule out more roots, differentiate twice: f′(x)=ex+x and f″(x)=ex+1>0 everywhere. Hence f′ is strictly increasing and f is strictly convex.
3. Three distinct roots would, by Rolle's theorem on consecutive root intervals, force f′ to vanish twice, contradicting its strict increase. There are exactly two roots in the requested range, C.