Cramer's Rule is a mathematical theorem used to solve a system of linear equations with as many equations as unknowns (i.e., a square system) using determinants. It is applicable only when the system has a unique solution, which is the case when the determinant of the coefficient matrix is non-zero.
Cramer's Rule provides explicit formulas for the solution of a system of linear equations. It is particularly useful for small systems (like 2×2 or 3×3) and can be applied to any square system where the determinant of the coefficient matrix is non-zero.
System of Linear Equations
Consider a system of n linear equations in n unknowns:
b=b1b2⋮bn is the column vector of constants (right-hand side of the system).
Cramer's Rule for a System of Linear Equations
To solve this system using Cramer's Rule, follow these steps:
Compute the Determinant of the Coefficient Matrix A:
The determinant of matrix A, denoted as det(A), must be non-zero for the system to have a unique solution. If det(A)=0, the system either has no solution or infinitely many solutions.
Form Matrices by Replacing Columns of A with the Vector b:
To find the solution for each variable xi, replace the i-th column of A with the vector b. The resulting matrix is denoted as Ai, where the i-th column of A is replaced by b.
Compute the Determinants of These New Matrices:
For each i=1,2,…,n, calculate the determinant of the matrix Ai, denoted as det(Ai).
Solve for the Unknowns:
The value of each unknown xi is given by the formula:
xi=det(A)det(Ai)
Thus, for each variable, you divide the determinant of the modified matrix Ai by the determinant of the original coefficient matrix A.
Example: Solving a 2x2 System Using Cramer's Rule
Consider the following system of linear equations:
2x1+3x24x1−x2=5=3
Write the system in matrix form:
[243−1]⋅[x1x2]=[53]
Here, A=[243−1] and b=[53].
Find the determinant of A:
det(A)=(2)(−1)−(3)(4)=−2−12=−14
Since det(A)=−14=0, the system has a unique solution.
Find A1 and A2:
To find x1, replace the first column of A with b:
A1=[533−1]
The determinant of A1 is:
det(A1)=(5)(−1)−(3)(3)=−5−9=−14
To find x2, replace the second column of A with b:
A2=[2453]
The determinant of A2 is:
det(A2)=(2)(3)−(5)(4)=6−20=−14
Solve for x1 and x2:
For x1:
x1=det(A)det(A1)=−14−14=1
For x2:
x2=det(A)det(A2)=−14−14=1
Thus, the solution to the system is x1=1 and x2=1.
Example: Solving a 3x3 System Using Cramer's Rule
Consider the system of three linear equations:
x+2y−z2x−y+3z3x+y+2z=1=9=8
Write the system in matrix form:
1232−11−132⋅xyz=198
Find the determinant of A (the coefficient matrix):