Solution (source code)

= Solution

$A^{-1}=\tfrac12(A^2-4A+5I)$.