Is this function differentiable at $\frac{\pi}{3}$?
$f: \mathbb R \to \mathbb R$, $f(x) \begin{cases} \tan x&\quad\text {if } -\frac{\pi}{2} < x < \frac{\pi}3\\ x^2&\quad\text{if } x \ge \frac{\pi}{3}\\ \end{cases}$
If it is differentiable at $\frac{\pi}{3}$, then show it.
I did this from the + side, and my result was $x_0 +\frac{\pi}{3}$, just need help on working $\tan x$, by the definition of derivative.