Consider this problem;
Show that the function $\tan{x}-x$ can be inverted and find the corresponding inverse for which applies
$$ f^{-1} (y) = (f^{-1}(y) + y)^{-2}$$
So to prove that a function can be inverted it has to be bijective, which means it has to be surjective and injective
Now to prove for injective I derived the function $\tan{x}$ and got that it is constantly growing so it is injective. To prove that it is surjective we are already given a solution. Now what I did is derived the function $\tan{x}-x$ and got that its simply $\tan^2{x}$ since the $1$ and $-1$ cancel out. Then out of the starting equation I found a way to explicitly write $\tan{x}$;
$$\tan{x}=f(x)+x$$ and with that we can also determine this;
$$\tan^2{x}=(f(x)+x)^2$$
Now I've used the formula $$ (f^{-1})'(y) = \frac {1}{f'(x)} $$ and this is where I am stuck, the only progress I could make is if instead of $f'$ I insert $\tan^2{x}$ but that is it.
Looking forward to your answers !
EDIT: The domain of the function was also given (my bad)
$$\left(\mbox{-}\frac{\pi}{2}, \frac{\pi}{2}\right)$$
