Let $f$ be a function such that: $f: [\pi/4,\,\pi/2]\to \mathbb{R}$ $$ f(x)=\begin{cases} \frac{1}{\tan{x}}& \pi/4\leq x<\pi/2, \\ 0 & x=\pi/2. \end{cases} $$ How can I show that $f$ is differentiable on the closed interval $[\pi/4,\,\pi/2]$? I can easily show continuity but I’m not sure what to do to show it’s differentiable on the closed interval.
Thank you!