The correct option is B 0
The function has a discontinuity at x=−2, but it is continuous on the interval [−1,2] and differentiable on the interval (−1,2). Hence, the LMVT is applicable on this function on the given interval
f(−1)=−1−2−1+2=−3
f(2)=2−22+2=0
f′(x)=(x−2x+2)′⇒f′(x)=x+2−x+2(x+2)2=4(x+2)2
Using LMVT, we have:
f′(c)=f(b)−f(a)b−a⇒4(c+2)2=0−(−3)2−(−1)=1
⇒(c+2)2=4⇒c2+4c=0
⇒c(c+4)=0
As we can see only one root c=0 lies in the interval (−1,2)
∴c=0