Consider a set of n linear equations in n unknowns x1, x2,…, xn, written in matrix form as Ax = b. When A is invertible, the set of equations has a unique solution x = A−1b. Since A−1 = (1/detA) adjA, where adjA is the adjoint of A, this gives the solution
which may be written
using the entries of b and the cofactors of A. This is Cramer’s rule. Computationally Cramer’s rule is highly inefficient compared with Gaussian elimination.