Cramer's rule
Cramer's rule
For the final Cramers rule example, we will be solving a system of 3 equations for 3
unknowns:
�+3�+4�=4x+3y+4z=4
−�+3�+2�=2−x+3y+2z=2
3�+9�+6�=−63x+9y+6z=−6
Equation 29: System of 3 linear equations for 3 unknowns
Now use �D, ��Dx, ��Dy to finally find the unique solution for each variable
in the equations:
�=���=72−36=−2x=DDx=−3672=−2
�=���=72−36=−2y=DDy=−3672=−2
�=���=−108−36=3y=DDz=−36−108=3
Equation 32: Solution to the variables x, y and z
For this last exercise we would like to work on a proof of Cramers rule by solving the
system from equation 24 using another method and check for the result.
Thus, we use substitution to solve the system:
� + 3� + 4�=4−� + 3� + 2�=23� + 9� +
6�=−6x+3y+4z=4−x+3y+2z=23x+9y+6z=−6
�=4−3�−4�x=4−3y−4z
Now we continue the substitution technique by substituting the found value of the
variable �z into the first and second equations and obtain a new simplified system
of 2 equations for 2 unknowns:
Using these new expressions found in equation 29, solve for x in the second
equation and substitute it in the first equation to find �y:
And we finalize this by substituting the found value of y into the second expression
from equation 29:
Therefore, the unique solutions for the variables in the linear system of equations
match with the answers found using Cramers rule for matrices! And you can clearly
see that both approaches are good for us to use when solving systems.
To finalize our lesson of today, as always, we have a few recommendations for your
further studies. First, this detailed article in which you can find an example of using
Cramers rule to solve two equations with two unknowns. And then, this link on
the inverse matrix and Cramers rule where you can find an example of a 3x3 system
in the bottom.