### Derivatives L-5
### Condition for Rolle's theorem
- The conditions are necessary:
- $f(x)= \begin{cases}4 & \text { if } x=1 \\\ x & \text { if } 1
-->
### Derivatives L-5
### Condition for Rolle's theorem
- But $f^{\prime}(x)=1$ for all $x \in(1,4)$ Thus there is no $c \in(1,4)$ for which
- $f^{\prime}(c)=0 \text {. }$
- However, this example does not contradict the Rolle's theorem because $f(x)$ is not cont. on the closed interval $[1,4]$.