Answer: C
Let f(x)=ex+0.5x2−2. To find the number of roots in the interval [−5,5], we analyze the behavior of f(x) using its derivative:
f′(x)=ex+x
To find the critical points, we set f′(x)=0:
ex+x=0⟹ex=−x
Since ex is strictly increasing and −x is strictly decreasing, there is exactly one real solution, say x0, where f′(x0)=0. Since f′(−1)=e−1−1<0 and f′(0)=1>0, this critical point lies in the interval (−1,0).
We analyze the behavior of f(x) around x0:
- For x<x0, f′(x)<0, so f(x) is strictly decreasing.
- For x>x0, f′(x)>0, so f(x) is strictly increasing.
Thus, f(x) has a unique global minimum at x0.
Now, let's evaluate f(x) at the boundaries and key points:
- At x=−5: f(−5)=e−5+12.5−2≈10.5>0
- At x=0: f(0)=e0+0−2=−1<0 (which implies the minimum value f(x0)<f(0)<0)
- At x=5: f(5)=e5+12.5−2≈158.9>0
By the Intermediate Value Theorem:
- Since f(−5)>0 and f(x0)<0, there is exactly one root in [−5,x0].
- Since f(x0)<0 and f(5)>0, there is exactly one root in [x0,5].
Thus, the function has exactly 2 roots in the interval [−5,5].