Why is the total derivative of a diffeomorphism invertible?

A diffeomorphism is a smooth bijection with a smooth inverse. So if $f: M \longrightarrow N$ is a diffeomorphism, it is a smooth bijection and the inverse map $f^{-1}: N \longrightarrow M$ is smooth as well, so that $d(f^{-1})_y$ exists at all $y \in N$. $f^{-1} \circ f = \mathrm{Id}_M$ and $f \circ f^{-1} = \mathrm{Id}_N$, so we have that $$\mathrm{Id}_{T_x M} = d(f^{-1} \circ f)_x = d(f^{-1})_{f(x)} \circ df_x$$ and $$\mathrm{Id}_{T_{f(x)} N} = d(f \circ f^{-1})_{f(x)} = df_x \circ d(f^{-1})_{f(x)}$$ for any $x \in M$ (we applied the chain rule above), which implies that $df_x$ and $d(f^{-1})_{f(x)}$ are mutual inverses. Therefore $df_x$ is invertible and $(df_x)^{-1} = d(f^{-1})_{f(x)}$.