Refresher - Cramer's Rule

Cramer's Rule

Explicit formulas for 2 × 2 and 3 ×3 systems.

Consider the linear system {ax+by=ecx+dy=f   which in matrix format is [abcd][xy]=[ef]Then, x and y can be found with Cramer's rule as

x=|ebfd|/|abcd|=ed-bfad-bc
and
y=|aecf|/|abcd|=af-ecad-bc

The rules for 3×3 are similar. Given {ax+by+cz=idx+ey+fz=kgx+hy+iz=l   which in matrix format is
[abcdefghi] [xyz]=[jkl]

the values of x, y and z can be found as follows:

x=|jbckeflhi||abcdefghi|, y=|ajkdkfgli||abcdefghi|, and z=|abjdekghl||abcdefghi|