Return to the Purplemath home page

 The Purplemath Forums
Helping students gain understanding
and self-confidence in algebra


powered by FreeFind

 

Return to the Lessons Index  | Do the Lessons in Order  |  Get "Purplemath on CD" for offline use  |  Print-friendly page

Cramer's Rule


Given a system of linear equations, Cramer's Rule is a handy way to solve for just one of the variables without having to solve the whole system of equations. They don't usually teach Cramer's Rule this way, but this is supposed to be the point of the Rule: instead of solving the entire system of equations, you can use Cramer's to solve for just one single variable.

Let's use the following system of equations:

    2x +   y + z = 3
      
    x   y z = 0

      
    x + 2y + z = 0

We have the left-hand side of the system with the variables (the "coefficient matrix") and the right-hand side with the answer values. Let D be the determinant of the coefficient matrix of the above system, and let Dx be the determinant formed by replacing the x-column values with the answer-column values:

system of
equations

coefficient
matrix's
determinant

answer
column

Dx: coefficient determinant
with answer-column
values in
x-column

2x + 1y + 1z = 3
 
1x 1y 1z = 0
1x + 2y + 1z = 0

D = || 2 1 1 || 1 –1 –1 || 1 2 1 ||

[[ 3 ][ 0 ][ 0 ]]

D_x = || 3 1 1 || 0 –1 –1 || 0 2 1 ||

Similarly, Dy and Dz would then be:   Copyright Elizabeth Stapel 2004-2011 All Rights Reserved

    D_y = || 2 3 1 || 1 0 -1 || 1 0 1 ||

    D_z = || 2 1 3 || 1 -1 0 || 1 2 0 ||

Evaluating each determinant, we get:

    D = 3

    D_x = 3

    D_y = -6

    D_z = 9

Cramer's Rule says that x = Dx D, y = Dy D, and z = Dz D. That is:

    x = 3/3 = 1,  y = 6/3 = 2,  and  z = 9/3 = 3

That's all there is to Cramer's Rule. To find whichever variable you want (call it "" or "beta"), just evaluate the determinant quotient D D. (Please don't ask me to explain why this works. Just trust me that determinants can work many kinds of magic.)

  • Given the following system of equations, find the value of z.
    • 2x +   y +   z = 1
        
      x   y + 4z = 0

        
      x + 2y 2z = 3

    To solve only for z, I first find the coefficient determinant.

      D = -3

    Then I form Dz by replacing the third column of values with the answer column:

      D_z = -6
        

    Then I form the quotient and simplify:

     

    D_z / D = -6 / -3 = 2

      z = 2

The point of Cramer's Rule is that you don't have to solve the whole system to get the one value you need. This saved me a fair amount of time on some physics tests. I forget what we were working on (something with wires and currents, I think), but Cramer's Rule was so much faster than any other solution method (and God knows I needed the extra time). Don't let all the subscripts and stuff confuse you; the Rule is really pretty simple. You just pick the variable you want to solve for, replace that variable's column of values in the coefficient determinant with the answer-column's values, evaluate that determinant, and divide by the coefficient determinant. That's all there is to it.

Almost.

What if the coefficient determinant is zero? You can't divide by zero, so what does this mean? I can't go into the technicalities here, but "D = 0" means that the system of equations has no unique solution. The system may be inconsistent (no solution at all) or dependent (an infinite solution, which may be expressed as a parametric solution such as "(a, a + 3, a 4)"). In terms of Cramer's Rule, "D = 0" means that you'll have to use some other method (such as matrix row operations) to solve the system. If D = 0, you can't use Cramer's Rule.

Top  |  Return to Index

Cite this article as:

Stapel, Elizabeth. "Cramer's Rule." Purplemath. Available from
    http://www.purplemath.com/modules/cramers.htm. Accessed
 

 



Purplemath:
  Linking to this site
  Printing pages
  School licensing


Reviews of
Internet Sites:
   Free Help
   Practice
   Et Cetera

The "Homework
   Guidelines"

Study Skills Survey

Tutoring from Purplemath
Find a local math tutor


This lesson may be printed out for your personal use.

Content copyright protected by Copyscape website plagiarism search

  Copyright 2004-2012  Elizabeth Stapel   |   About   |   Terms of Use

 

 Feedback   |   Error?