I don't think there is a formula for getting the inverse of > nxn matrices, where n = 2.
One way to find the inverse of larger square matrices is to figure out what operations you would have to do to turn the matrix (A) into the identity matrix. For example, 1 step might be to multiply the first row by 4.
The matrix [4 | 4 | 4 | ... | 4] would accomplish this. Let that matrix be called B. Then you
[ 0........................
......................... ]
may need to subtract the first row from the second. Let the matrix that accomplishes this be called C.
Let's say then that,
E.g. C*B*A = I. By definition, the matrix, G = C*B is the inverse of
A.