|
Recall that in the introduction to Section 2.4 we stated that not all of the four methods we are studying are computationally efficient. With our fourth and final computational method, Cramer's Rule, we will illustrate the prime example of a very poor computational tool from which we can learn much. Cramer's Rule is stated in terms of the determinant of the coefficient matrix and the determinants of some matrices derived from the coefficient matrix. A review of determinants can be found in Section 7.6. To get an intuitive feel for why Cramer's Rule works and the role of
determinants in Cramer's Rule, we will start with its derivation for a
2 x 2 system of linear equations. Consider the following system of equations:
By solving the first and second equations for x2, we get
Equating the two expressions for x2, we obtain Hence
Since all of the quantities on the right-hand side of (2.14) are known, we have determined the value of x1. Then we can use the first equation to get Now let's write the system (2.12) in matrix form: Let Notice that A is the coefficient matrix for our system of equations, B1 is the matrix A with its first column replaced by the right-hand side of the system of equations, and B2 is the matrix A with its second column replaced by the right-hand side of the system of equations. The determinants of these matrices are Now we may write the equations for x1 and x2
in terms of the determinants of A, B1, and B2.
We can combine these expressions and write for i = 1,2. This is Cramer's Rule for a 2 x 2 system. Cramer's Rule for General Linear Systems.Consider the n x n system of linear equations Ax = b. Let the matrix Bi be the matrix A with the ith column replaced by b. For each unknown xi, Cramer's Rule says that
An Example.
We can apply Cramer's Rule to the example we first introduced at
the beginning of this chapter.
Recall that the system of equations that Professor Tapia derived
to determine the number of time zones separating New York and Geneva
was
For this system, a= 1, b= 1, Substituting in the values of a, b, c, d, e, and f gives us Cramer's rule is easy to remember and perform on a 2 x 2 system like this one (since it can be written in closed form, i.e. as a formula), but it is not so easy to perform as the size of the system increases. For an n x n system, we must compute n + 1 determinants (|A|, |B1|, |B2|, ... , |Bn|). If we increase the size of the system to (n + 1) x (n + 1), then we will have to compute n + 2 determinants instead of n + 2, and all the determinants we compute will be of larger matrices ( (n + 1 x (n + 1) instead of n x n). Hence the amount of effort required to solve a system of linear equations using Cramer's rule increases significantly as the size of the system increases. |
Send comments on material to Cynthia Lanius
These pages are maintained by Hilena
Vargas (hvargas@rice.edu)
Updated: February 26, 2001
Copyright © 2001 Richard Tapia and Cynthia Lanius