Cramer's Rule with Questions and Solutions

\( \) \( \) \( \) \( \)

Cramer's rule are used to solve a systems of n linear equations with n variables using explicit formulas. We first start with a proof of Cramer's rule to solve a 2 by 2 systems of linear equations. Rules for 3 by 3 systems of equations are also presented. Then examples and questions with detailed solutions are presented.
To check answers when solving 2 by 2 and 3 by 3 systems of equations, you may want to use these online Systems of Equations Calculator and Solver.

Cramer's Rules for a 2 by 2 System of Equations

To find rules (or formulas) that may be used solve any 2 by 2 system of linear equations, we need to solve the general system of the form
general 2 by 2 systems of linear equations

We multiply equation (1) by b 2 and equation (2) by - b 1.
\( \left\{ \begin{array}{lcl} a_1 b_ 2 x + b_1 b_2 y & = & c_1 b_2\\ -a_2 b_1 x - b_2 b_1 y & = & - c_2 b_1 \end{array} \right. \)

Add the left sides and the right sides of the above equations and simplify to obtain an equation in one variable.
\( a_1 b_2 x - a_2 b_1 x = c_1 b_2 - c_2 b_1 \)

Factor x out on the left side
\( x(a_1 b_2 - a_2 b_1) = b_2 c_1 - b_1 c_2 \)

Solve the above equation for x
\( x = \dfrac{c_1 b_2 - c_2 b_1}{a_1 b_2 - a_2 b_1} \)

We may use similar steps to eliminate x and solve for y to obtain.
\( y = \dfrac{a_1 c_2 - a_2 c_1}{a_1 b_2 - a_2 b_1} \)

The solution to the given 2 by 2 system of linear equations is given by Cramer's rules as follows
\[ x = \dfrac{D_x}{D} , y = \dfrac{D_y}{D} \]
Using the determinant of a 2 by 2 Matrix notation, \( D \), \( D_x \) and \( D_y \) are defined by

\( D = \begin{vmatrix}a_1&b_1\\ a_2&b_2\end{vmatrix} = a_1 b_2 - b_1 a_2\)

\( D_x = \begin{vmatrix}\color{red}{c_1} & b_1\\ \color{red}{c_2} & b_2\end{vmatrix} = c_1 b_2 - b_1 c_2\)

\( D_y = \begin{vmatrix}a_1 & \color{red}{c_1}\\ a_2 & \color{red}{c_2}\end{vmatrix} = a_1 c_2 - c_1 a_2\)

Cramer's Rules for a 3 by 3 System of Equations

A general 3 by 3 systems of linear equations may be written as follows: \[ \left\{ \begin{array}{lcl} a_1 x + b_1 y + c_1 z = & \color{red}{d_1} & (1)\\ a_2 x + b_2 y + c_2 = & \color{red}{d_2} & (2) \\ a_3 x + b_3 y + c_3 = & \color{red}{d_3} & (2) \\ \end{array} \right. \]

For a 3 by 3 system of linear equations, Cramer's rule gives the solution as follows
\[ x = \dfrac{D_x}{D} , y = \dfrac{D_y}{D} , z = \dfrac{D_z}{D} \]
where \( D, D_x, D_y \text{and} D_z \) are determinants of 3 by 3 matrices defined by

\( D = \begin{vmatrix}a_1&b_1&c_1\\ a_2&b_2&c_2\\a_3 & b_3 & c_3 \end{vmatrix}\)

\( D_x = \begin{vmatrix}\color{red}{d_1} & b_1 & c_1\\ \color{red}{d_2} & b_2 & c_2 \\ \color{red}{d_3} &b_3&c_3 \end{vmatrix} \), \( D_y = \begin{vmatrix}a_1&\color{red}{d_1}&c_1\\ a_2&\color{red}{d_2}&c_2\\a_3 & \color{red}{d_3} & c_3 \end{vmatrix}\) , \( D_z = \begin{vmatrix}a_1&b_1&\color{red}{d_1}\\ a_2&b_2&\color{red}{d_2}\\a_3 & b_3 & \color{red}{d_3} \end{vmatrix}\)

Questions with Solution

Solutions to the Above Questions

References and Links Related to Systems of Equations and Determinant

Gaussian Elimination to Solve Systems - Questions with Solutions. Gaussian Elimination Solver Calculator for a 3 by 3 Systems of Equations.
Solver Calculator to Solve 3 by 3 Systems of Equations Using Cramers' Rules.
Solve Systems of Equations - Tutorial. Method of elimination.
More on Determinant of a Matrix and Cramer's rule.
Solve Systems of Equations - Tutorial.
Systems of Equations Calculator and Solver.