Skip to content

Mathematics and Statistics · Ch 6 — Determinants

Cramer's Rule — Solving Linear Equations

4

Cramer's Rule — Solving Linear Equations

Cramer's Rule uses determinants to solve a system of linear equations directly, without step-by-step elimination. Named after the Swiss mathematician Gabriel Cramer, it is among the most examined applications of determinants in commerce mathematics, because so many business problems — splitting a budget between two products, meeting two or three simultaneous constraints — end up as a small linear system.

Two equations in two unknowns. For a1x+b1y=c1,a2x+b2y=c2,a_1x + b_1y = c_1, \qquad a_2x + b_2y = c_2, define three determinants: D=∣a1b1a2b2∣,Dx=∣c1b1c2b2∣,Dy=∣a1c1a2c2∣.D=\begin{vmatrix} a_1 & b_1 \\ a_2 & b_2 \end{vmatrix},\quad D_x=\begin{vmatrix} c_1 & b_1 \\ c_2 & b_2 \end{vmatrix},\quad D_y=\begin{vmatrix} a_1 & c_1 \\ a_2 & c_2 \end{vmatrix}. Here DD is the determinant of the coefficients exactly as written; DxD_x is DD with the xx-column replaced by the constants (c1,c2)(c_1,c_2); DyD_y is DD with the yy-column replaced the same way. Provided D≠0D \neq 0, the unique solution is x=DxD,y=DyD.x = \frac{D_x}{D}, \qquad y = \frac{D_y}{D}.

Three equations in three unknowns. The rule extends unchanged to a1x+b1y+c1z=d1,a2x+b2y+c2z=d2,a3x+b3y+c3z=d3.a_1x+b_1y+c_1z=d_1,\quad a_2x+b_2y+c_2z=d_2,\quad a_3x+b_3y+c_3z=d_3. Form DD from the coefficient matrix, and form Dx,Dy,DzD_x, D_y, D_z by replacing the xx-, yy-, zz-columns respectively with the constants (d1,d2,d3)(d_1,d_2,d_3). Then, provided D≠0D\neq 0, x=DxD,y=DyD,z=DzD.x=\frac{D_x}{D},\qquad y=\frac{D_y}{D},\qquad z=\frac{D_z}{D}. …

Definition 1Cramer's Rule

A method of solving a system of linear equations with determinants, in which each unknown equals the ratio of two determinants: the coefficient determinant with that unknown's column replaced by the constants, divided …

Definition 2Coefficient determinant (D)

The determinant formed from the coefficients of the unknowns exactly as they appear on the left of the system, before any column is re …