Cramer’s rule is a formula for the solution of a set of linear equations. It’s mostly used for a small systems (), as higher numbers becomes computationally expensive/complex to implement.

The system is formulated in matrix form:

Cramer’s rule then states:

where is the Determinant of .

Basically, you replace column 1 values of with , calculate the determinant of the top and use the determinant of on the bottom.

  • For , you would replace column 2 of with
  • For , you would replace column 3 of with