Let $f:\mathbb{R}\rightarrow\mathbb{R}\ $ be a differentiable and continuous function. If $a$ and $b$ are consecutive roots of $f$, show that $f'(a)\cdot f'(b)\leq 0.$
I think that I have to define an specific function to reach the result, but today I can't think too much :'(
Can someone please explain this?
I think it is easier to work by contraposition.
Assume $f'(a)f'(b)>0$, WLOG we can assume both are positive (else consider $-f$ instead of $f$), by differentiability there exist $f(a+h)>f'(a)h>0$ and $f(b-h)<-f'(b)h<0$ and there exist a $c$ inside $[a+h,b-h]$ such $f(c)=0$ by IVT.