Cramer's Rule · Solving Linear Systems with Determinants

Select system size:
x + y =
x + y =
? ?
Cramer's Rule - Complete Solution Process

📐 Cramer's Rule — Solving Systems Using Determinants

Cramer's Rule is a method in linear algebra for solving systems of linear equations using determinants. For systems where the coefficient matrix is square and has a non-zero determinant, the solutions can be expressed as the quotient of two determinants.

🔹 2×2 Linear System (Second Order)

Consider the system: $$\begin{cases} a_{11}x + a_{12}y = b_1 \\ a_{21}x + a_{22}y = b_2 \end{cases}$$

Coefficient Determinant: $D = \begin{vmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{vmatrix} = a_{11}a_{22} - a_{12}a_{21}$

Numerator Determinants: $D_x = \begin{vmatrix} b_1 & a_{12} \\ b_2 & a_{22} \end{vmatrix},\quad D_y = \begin{vmatrix} a_{11} & b_1 \\ a_{21} & b_2 \end{vmatrix}$

Solution: $x = \dfrac{D_x}{D},\quad y = \dfrac{D_y}{D}\ \ (D \neq 0)$

🔹 3×3 Linear System (Third Order)

$$\begin{cases} a_{11}x + a_{12}y + a_{13}z = b_1 \\ a_{21}x + a_{22}y + a_{23}z = b_2 \\ a_{31}x + a_{32}y + a_{33}z = b_3 \end{cases}$$

Coefficient Determinant $D$ expanded along the first row (Laplace expansion): $$D = \begin{vmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{vmatrix} = a_{11}\begin{vmatrix} a_{22} & a_{23} \\ a_{32} & a_{33} \end{vmatrix} - a_{12}\begin{vmatrix} a_{21} & a_{23} \\ a_{31} & a_{33} \end{vmatrix} + a_{13}\begin{vmatrix} a_{21} & a_{22} \\ a_{31} & a_{32} \end{vmatrix}$$

$D_x$ — Replace the first column with the constants column: $$D_x = \begin{vmatrix} b_1 & a_{12} & a_{13} \\ b_2 & a_{22} & a_{23} \\ b_3 & a_{32} & a_{33} \end{vmatrix} = b_1\begin{vmatrix} a_{22} & a_{23} \\ a_{32} & a_{33} \end{vmatrix} - a_{12}\begin{vmatrix} b_2 & a_{23} \\ b_3 & a_{33} \end{vmatrix} + a_{13}\begin{vmatrix} b_2 & a_{22} \\ b_3 & a_{32} \end{vmatrix}$$

$D_y$ — Replace the second column with the constants column: $$D_y = \begin{vmatrix} a_{11} & b_1 & a_{13} \\ a_{21} & b_2 & a_{23} \\ a_{31} & b_3 & a_{33} \end{vmatrix} = a_{11}\begin{vmatrix} b_2 & a_{23} \\ b_3 & a_{33} \end{vmatrix} - b_1\begin{vmatrix} a_{21} & a_{23} \\ a_{31} & a_{33} \end{vmatrix} + a_{13}\begin{vmatrix} a_{21} & b_2 \\ a_{31} & b_3 \end{vmatrix}$$

$D_z$ — Replace the third column with the constants column: $$D_z = \begin{vmatrix} a_{11} & a_{12} & b_1 \\ a_{21} & a_{22} & b_2 \\ a_{31} & a_{32} & b_3 \end{vmatrix} = a_{11}\begin{vmatrix} a_{22} & b_2 \\ a_{32} & b_3 \end{vmatrix} - a_{12}\begin{vmatrix} a_{21} & b_2 \\ a_{31} & b_3 \end{vmatrix} + b_1\begin{vmatrix} a_{21} & a_{22} \\ a_{31} & a_{32} \end{vmatrix}$$

Final Solution (Cramer's Rule):
$$x = \frac{D_x}{D},\quad y = \frac{D_y}{D},\quad z = \frac{D_z}{D}\qquad (D \neq 0)$$

※ Note: The sign of each term in the expansion is determined by $(-1)^{1+j}$. The formulas above already include the correct signs (first row expansion: $+ - +$ alternating).

🔹 Applicability Conditions and Geometric Interpretation

  • The coefficient matrix must be square and have non-zero determinant $D \neq 0$ (system has unique solution).
  • If $D = 0$, the system may have no solution or infinitely many solutions (other methods required).
  • Geometrically, the solution of a 2×2 system corresponds to the intersection of two lines, while a 3×3 system corresponds to the intersection of three planes.

🔹 How to Use This Demo

• The input boxes above represent the coefficient matrix $A$ (left side with blue border), and the constants $b_1, b_2, (b_3)$ are entered in the input boxes on the right.
• Click "Solve & Demonstrate" to calculate $D, D_x, D_y, (D_z)$ step by step and display the final solution.
• During the process, relevant elements will be highlighted, and each step's formulas and intermediate values will be shown below.

Historical Background

I. Origins and Background

Cramer's Rule is named after the Swiss mathematician Gabriel Cramer (1704-1752) and is a method for solving systems of linear equations. This rule first appeared in Cramer's 1750 publication Introduction à l'analyse des lignes courbes algébriques.

II. Gabriel Cramer

Gabriel Cramer was born in Geneva, Switzerland, and was a versatile mathematician. He earned his doctorate at age 20 and became a mathematics professor at the University of Geneva at age 24. Cramer studied not only mathematics but also physics, geography, and the history of philosophy. He traveled throughout Europe and corresponded with many prominent scientists of his time, including Euler and members of the Bernoulli family.

III. The Birth of the Rule

While studying algebraic curves, Cramer encountered problems that required solving systems of linear equations. In his work, he presented a problem about determining a conic section through five points, which required solving a system of five equations with five unknowns. To solve such problems, he systematically developed a method using determinants to express the solutions of linear systems.

Interestingly, Cramer himself did not use modern determinant notation. Instead, he expressed this rule through complex verbal descriptions and tabular forms. What he essentially used was the core idea later known as Cramer's Rule: the value of an unknown is equal to the quotient of two determinants—the denominator is the coefficient determinant, and the numerator is the determinant obtained by replacing the column corresponding to that unknown with the constants column.

Core Idea of Cramer's Rule:
For a linear system Ax = b, if det(A) ≠ 0, then: $$x_i = \frac{\det(A_i)}{\det(A)}$$ where \(A_i\) is the matrix obtained by replacing the \(i\)-th column of \(A\) with the constant vector \(b\).

IV. Independent Discovery and Controversy

Although this rule bears Cramer's name, historical research shows that Gottfried Wilhelm Leibniz mentioned similar ideas as early as 1693 in a letter to l'Hôpital. Additionally, the Scottish mathematician Colin Maclaurin independently developed this rule in his 1748 publication Treatise of Algebra, two years before Cramer's work. However, because Maclaurin's work was published posthumously and Cramer's work had wider influence, the rule ultimately became known by Cramer's name.

V. Evolution of Determinant Notation

Cramer did not use modern determinant notation. The evolution of determinant notation involved contributions from several mathematicians:

1771 French mathematician Vandermonde began systematic study of determinant theory
1812 Cauchy introduced modern determinant notation and terminology, and proved the multiplication rule
1841 Jacobi further developed determinant theory and introduced "functional determinants" (Jacobian determinants)

VI. Historical Significance and Limitations

Cramer's Rule is an important milestone in the history of linear algebra. It was the first to provide an explicit expression for the solution of a linear system, revealing the intrinsic relationship between solutions and coefficients. However, this rule has significant limitations in practical computation:

  • High computational complexity: For an n×n system, n+1 determinants of order n must be computed, each with complexity O(n!), making Cramer's Rule practical only for small systems.
  • Poor numerical stability: When the coefficient matrix is nearly singular, determinant computation produces significant numerical errors.
  • Strict applicability conditions: Only applicable when the coefficient determinant is non-zero, i.e., when the system has a unique solution.

Despite these limitations, Cramer's Rule remains important in linear algebra theory and education. It clearly demonstrates the relationship between determinants and the solutions of linear systems, laying the theoretical foundation for later more efficient numerical methods such as Gaussian elimination.

🌟 VII. Modern Applications

In modern times, Cramer's Rule is primarily used for:

  • Theoretical derivation: Proving existence and uniqueness of solutions
  • Small-scale problems: Manual solution of 2-3 variable systems
  • Symbolic computation: Deriving formula solutions in computer algebra systems
  • Educational demonstration: Helping students understand the geometric meaning and applications of determinants

Cramer's Rule was proposed over 270 years ago. It is not only an important discovery in the history of mathematics but also a bridge connecting algebra and geometry, embodying the beauty and depth of mathematics.