I am having problems showing that the function $ \operatorname{inv}:G\rightarrow G$ $A\rightarrow A^{-1}$ where $G$ is the set of all invertible $n\times n$ matrices, is a diffeomorphism. I have already shown that such function is a homeomorphism, and its inverse is itself, but I don't know how I can show that this function is differentiable.
The exercise also tells us that the derivative of $\operatorname{inv}$ in $A$ is the linear mapping $M\rightarrow M$ such that $X\rightarrow -A^{-1}\cdot X\cdot A^{-1}$.
Can anybody give me a hint?