Cramer'S Rule Formula: CE 323 - Numerical Solutions To CE Problems
Cramer'S Rule Formula: CE 323 - Numerical Solutions To CE Problems
CRAMER’S
RULE FORMULA
Thus,
x1 = Dx1/D; x2 = Dx2/D; x3 = Dx3/D; ….; xn = Dxn/D {where D is not equal to 0}
Let’s have a look at the formulas of Cramer’s rule for 2×2 and 3×3 matrices.
Cramer’s rule for the 2×2 matrix is applied to solve the system of equations in two variables.
Let us consider two linear equations in two variables.
a1 x + b 1 y = c 1
a2 x + b 2 y = c 2
Let us write these two equations in the form of AX = B.
Here,
Coefficient matrix = A=
Variable matrix = X =
Constant matrix = B=
And
Therefore,
x = Dx/D
y = Dy/D
Cramer’s Rule 3×3
To find the Cramer’s rule formula for a 3×3 matrix, we need to consider the system of 3
equations with three variables.
Consider:
a1 x + b 1 y + c1 z = d 1
a2 x + b 2 y + c2 z = d 2
a3x + b3y + c3z = d3
D=|A|=
And,
Therefore,
x = Dx/D,
y = Dy/D,
z = Dz/D; D ≠ 0
Cramer’s Rule Conditions
There are certain conditions to applying Cramer’s rule for solving the given system of equations.
Some of them include the following:
•Cramer’s rule fails for the system of equations in which D = 0 since for finding the values of
unknowns, D must be in the denominator and hence these values go undefined.
•Also, when D = 0, there will be two possibilities for which: The system may have no solution.
The system may have an infinite number of solutions.
From this, we can say that at least one of the numerator determinants is a 0 (that means infinitely
many solutions) or none of the numerator determinants is 0 (that means no solution)
•If D ≠ 0, we say that the system AX = B has a unique solution.
Thus, Cramer’s rule helps us determine whether the given system has “no solution” or “infinite
number of solutions”, using the determinants we calculate to apply the rule.
QUIZ #1
2x – 3y + 5z = 11
3x + 2y – 4z = – 5
x + y – 2z = – 3
2. Solve the following system of linear equations using Cramer’s rule:
a. 5x + 7y = -2
4x + 6y = -3
b. 2x-4y+5z=36
-3x+5y+7z=7
5x+3y-8z=-31