Fundamental Programming Concepts
Summer 2000

The Math used in Cramer's Rule

 

Using this notation,

is the determinant of the matrix

and is equal to 

ae - bd.

So, for example, let's say we want to solve this system of equations (from the example program run in the lab handout):

In these equations,

So, filling into the formula for the solution: