Inverse of a square matrix of order up to three

The inverse of a square matrix A of order n is denoted by A^-1 and is defined as a matrix such that the product of A and A^-1 is the identity matrix of the same order, i.e., AA^-1 = I_n. For a square matrix A of order 2, its inverse is given by the formula:…