Prove Theorem 2 in the lesson 'Geometry of Functions IV: Using Derivatives To Identify Increasing and Decreasing Functions'.

Problem: 

Assume that $f(x)$ is continuous on a closed interval $I$ and differentiable on the interior of $I$. Prove that

  • If $f\,'(x)\gt 0$ for all $x$ in the interior of $I$, then $f(x)$ increases on $I$.
  • If $f\,'(x)\lt 0$ for all $x$ in the interior of $I$, then $f(x)$ decreases on $I$.
  • If $f\,'(x)=0$ for all $x$ in the interior of $I$, then $f(x)$ is constant on $I$.
Answer: