Cramer's rule is a formula for finding the value of an unknown given a system of linear equations. For the system
where is the th variable in the system and is the matrix formed by replacing the th column of with . This will not work if the determinant of is zero; in this case, there will be an infinite number of solutions.