Given,
f(x)=x2+2x−8,x∈[−4,2]
Rolle's Theorem satisfied if
Condition 1.
f(x)=x2+2x−8 is continuous at (−4,2)
Since, f(x)=x2+2x−8 is a polynomial
And every polynomial function is continuous for all x∈R
⇒f(x)=x2+2x−8 is continuous at x∈[−4,2]
Condition 2.
f(x)=x2+2x−8 is differentiable at (−4,2)
f(x)=x2+2x−8 is a polynomial
And every polynomial function is Differentiable for all x∈R
Therefore, f(x) is differentiable at (−4,2)
Condition 3.
f(x)=x2+2x−8
f(−4)=(−4)2+2(−4)−8=16−8−8=16−16=0
And f(2)=(2)2+2(2)−8=4+4−8=8−8=0
Hence, f(−4)=f(2)
Now,
f(x)=x2+2x−8f′(x)=2x+2−0f′(x)=2x+2f′(x)=2c+2
Since, all three conditions satisfied
f′(c)=02c+2=02c=−2c=−22=−1
Value of c =−1∈(−4,2)
Thus, Rolle's Theorem is satisfied.