Linear Algebra/Cramer's Rule< Linear Algebra
Let's try to solve the systems of linear equations:
Which is the special case when the number of equations and the number of variables are the same.
Consider the matrix
to be denoted D.
First, we multiply the nth equation by the cofactor Co(anj) for the jth column, and add it all up. This gets us
The left side cancels out except for Co(a1j)a1jxj+Co(a2j)a2jxj+Co(a3j)a3jxj+...+Co(anj)anjxj
which is equal to
and the right side is equal to
, to be denoted D(j), which is the same thing as D but with the jth column replaced by bk.
Dividing by D gets xj=.
This formula is called Cramer's Rule, and this solution exists when D is not equal to 0.
In particular, in the process of finding the solution, we also find that this is the only solution, so this solution is unique.
Consider the system of linear equations below.
If we only want the solution for, say, , we can apply Cramer's Rule to find that its solution is , and since we know