Cramer's Rule: A method for solving systems of linear equations using determinants when the coefficient matrix is square and invertible.
Coeficient Matrix (A): Matrix containing coefficients of the variables in the system.
Augmented Matrix: Coefficient matrix with the constant vector added as an extra column.
Column Replacement: For each variable, replace the corresponding column in A with the constants.
- Write the system in matrix form: \(AX = B\)
- Calculate \(\det(A)\): Must be non-zero for Cramer's Rule to apply
- For each variable: Replace the corresponding column in A with B
- Calculate the new determinant: \(\det(A_i)\) where i is the variable index
- Apply the formula: \(x_i = \frac{\det(A_i)}{\det(A)}\)
\(2x + 3y = 7\)
\(x - y = 1\)
\(A = \begin{pmatrix} 2 & 3 \\ 1 & -1 \end{pmatrix}\), \(X = \begin{pmatrix} x \\ y \end{pmatrix}\), \(B = \begin{pmatrix} 7 \\ 1 \end{pmatrix}\)
\(\det(A) = (2)(-1) - (3)(1) = -2 - 3 = -5\)
\(A_x = \begin{pmatrix} 7 & 3 \\ 1 & -1 \end{pmatrix}\)
\(\det(A_x) = (7)(-1) - (3)(1) = -7 - 3 = -10\)
\(A_y = \begin{pmatrix} 2 & 7 \\ 1 & 1 \end{pmatrix}\)
\(\det(A_y) = (2)(1) - (7)(1) = 2 - 7 = -5\)
\(x = \frac{\det(A_x)}{\det(A)} = \frac{-10}{-5} = 2\)
\(y = \frac{\det(A_y)}{\det(A)} = \frac{-5}{-5} = 1\)
\(x = 2, y = 1\)
Check: \(2(2) + 3(1) = 4 + 3 = 7\) ✓
Check: \(2 - 1 = 1\) ✓
\(4x - 2y = 6\)
\(3x + 5y = 1\)
\(A = \begin{pmatrix} 4 & -2 \\ 3 & 5 \end{pmatrix}\), \(X = \begin{pmatrix} x \\ y \end{pmatrix}\), \(B = \begin{pmatrix} 6 \\ 1 \end{pmatrix}\)
\(\det(A) = (4)(5) - (-2)(3) = 20 + 6 = 26\)
\(A_x = \begin{pmatrix} 6 & -2 \\ 1 & 5 \end{pmatrix}\)
\(\det(A_x) = (6)(5) - (-2)(1) = 30 + 2 = 32\)
\(A_y = \begin{pmatrix} 4 & 6 \\ 3 & 1 \end{pmatrix}\)
\(\det(A_y) = (4)(1) - (6)(3) = 4 - 18 = -14\)
\(x = \frac{\det(A_x)}{\det(A)} = \frac{32}{26} = \frac{16}{13}\)
\(y = \frac{\det(A_y)}{\det(A)} = \frac{-14}{26} = -\frac{7}{13}\)
\(x = \frac{16}{13}, y = -\frac{7}{13}\)
\(x + y + z = 6\)
\(2x - y + z = 3\)
\(x + 2y - z = 1\)
\(A = \begin{pmatrix} 1 & 1 & 1 \\ 2 & -1 & 1 \\ 1 & 2 & -1 \end{pmatrix}\), \(X = \begin{pmatrix} x \\ y \\ z \end{pmatrix}\), \(B = \begin{pmatrix} 6 \\ 3 \\ 1 \end{pmatrix}\)
\(\det(A) = 1\begin{vmatrix} -1 & 1 \\ 2 & -1 \end{vmatrix} - 1\begin{vmatrix} 2 & 1 \\ 1 & -1 \end{vmatrix} + 1\begin{vmatrix} 2 & -1 \\ 1 & 2 \end{vmatrix}\)
\(= 1((-1)(-1) - (1)(2)) - 1((2)(-1) - (1)(1)) + 1((2)(2) - (-1)(1))\)
\(= 1(1 - 2) - 1(-2 - 1) + 1(4 + 1) = -1 + 3 + 5 = 7\)
\(A_x = \begin{pmatrix} 6 & 1 & 1 \\ 3 & -1 & 1 \\ 1 & 2 & -1 \end{pmatrix}\)
\(\det(A_x) = 6\begin{vmatrix} -1 & 1 \\ 2 & -1 \end{vmatrix} - 1\begin{vmatrix} 3 & 1 \\ 1 & -1 \end{vmatrix} + 1\begin{vmatrix} 3 & -1 \\ 1 & 2 \end{vmatrix}\)
\(= 6(1 - 2) - 1(-3 - 1) + 1(6 + 1) = 6(-1) - 1(-4) + 1(7) = -6 + 4 + 7 = 5\)
\(A_y = \begin{pmatrix} 1 & 6 & 1 \\ 2 & 3 & 1 \\ 1 & 1 & -1 \end{pmatrix}\)
\(\det(A_y) = 1\begin{vmatrix} 3 & 1 \\ 1 & -1 \end{vmatrix} - 6\begin{vmatrix} 2 & 1 \\ 1 & -1 \end{vmatrix} + 1\begin{vmatrix} 2 & 3 \\ 1 & 1 \end{vmatrix}\)
\(= 1(-3 - 1) - 6(-2 - 1) + 1(2 - 3) = 1(-4) - 6(-3) + 1(-1) = -4 + 18 - 1 = 13\)
\(A_z = \begin{pmatrix} 1 & 1 & 6 \\ 2 & -1 & 3 \\ 1 & 2 & 1 \end{pmatrix}\)
\(\det(A_z) = 1\begin{vmatrix} -1 & 3 \\ 2 & 1 \end{vmatrix} - 1\begin{vmatrix} 2 & 3 \\ 1 & 1 \end{vmatrix} + 6\begin{vmatrix} 2 & -1 \\ 1 & 2 \end{vmatrix}\)
\(= 1(-1 - 6) - 1(2 - 3) + 6(4 + 1) = 1(-7) - 1(-1) + 6(5) = -7 + 1 + 30 = 24\)
\(x = \frac{\det(A_x)}{\det(A)} = \frac{5}{7}\)
\(y = \frac{\det(A_y)}{\det(A)} = \frac{13}{7}\)
\(z = \frac{\det(A_z)}{\det(A)} = \frac{24}{7}\)
\(x = \frac{5}{7}, y = \frac{13}{7}, z = \frac{24}{7}\)
Customer 1: 2 apples, 1 banana, 1 orange for $8
Customer 2: 1 apple, 3 bananas, 2 oranges for $13
Customer 3: 3 apples, 1 banana, 1 orange for $10
Find the price of each fruit using Cramer's Rule.
Let \(x\) = price of apple, \(y\) = price of banana, \(z\) = price of orange
\(2x + y + z = 8\)
\(x + 3y + 2z = 13\)
\(3x + y + z = 10\)
\(A = \begin{pmatrix} 2 & 1 & 1 \\ 1 & 3 & 2 \\ 3 & 1 & 1 \end{pmatrix}\), \(X = \begin{pmatrix} x \\ y \\ z \end{pmatrix}\), \(B = \begin{pmatrix} 8 \\ 13 \\ 10 \end{pmatrix}\)
\(\det(A) = 2\begin{vmatrix} 3 & 2 \\ 1 & 1 \end{vmatrix} - 1\begin{vmatrix} 1 & 2 \\ 3 & 1 \end{vmatrix} + 1\begin{vmatrix} 1 & 3 \\ 3 & 1 \end{vmatrix}\)
\(= 2(3 - 2) - 1(1 - 6) + 1(1 - 9) = 2(1) - 1(-5) + 1(-8) = 2 + 5 - 8 = -1\)
\(A_x = \begin{pmatrix} 8 & 1 & 1 \\ 13 & 3 & 2 \\ 10 & 1 & 1 \end{pmatrix}\), \(\det(A_x) = 8(3-2) - 1(13-20) + 1(13-30) = 8(1) - 1(-7) + 1(-17) = 8 + 7 - 17 = -2\)
\(A_y = \begin{pmatrix} 2 & 8 & 1 \\ 1 & 13 & 2 \\ 3 & 10 & 1 \end{pmatrix}\), \(\det(A_y) = 2(13-20) - 8(1-6) + 1(10-39) = 2(-7) - 8(-5) + 1(-29) = -14 + 40 - 29 = -3\)
\(A_z = \begin{pmatrix} 2 & 1 & 8 \\ 1 & 3 & 13 \\ 3 & 1 & 10 \end{pmatrix}\), \(\det(A_z) = 2(30-13) - 1(10-39) + 8(1-9) = 2(17) - 1(-29) + 8(-8) = 34 + 29 - 64 = -1\)
\(x = \frac{\det(A_x)}{\det(A)} = \frac{-2}{-1} = 2\)
\(y = \frac{\det(A_y)}{\det(A)} = \frac{-3}{-1} = 3\)
\(z = \frac{\det(A_z)}{\det(A)} = \frac{-1}{-1} = 1\)
Apple costs $2, Banana costs $3, Orange costs $1
\(x + ky = 1\)
\(kx + y = k\)
\(A = \begin{pmatrix} 1 & k \\ k & 1 \end{pmatrix}\), \(X = \begin{pmatrix} x \\ y \end{pmatrix}\), \(B = \begin{pmatrix} 1 \\ k \end{pmatrix}\)
\(\det(A) = (1)(1) - (k)(k) = 1 - k^2\)
Cramer's Rule applies when \(\det(A) \neq 0\)
\(1 - k^2 \neq 0 \Rightarrow k^2 \neq 1 \Rightarrow k \neq \pm 1\)
For \(k \neq \pm 1\):
\(A_x = \begin{pmatrix} 1 & k \\ k & 1 \end{pmatrix}\), \(\det(A_x) = 1 - k^2\)
\(A_y = \begin{pmatrix} 1 & 1 \\ k & k \end{pmatrix}\), \(\det(A_y) = k - k = 0\)
\(x = \frac{1 - k^2}{1 - k^2} = 1\), \(y = \frac{0}{1 - k^2} = 0\)
When \(k = 1\): System becomes \(x + y = 1\) and \(x + y = 1\) (infinite solutions)
When \(k = -1\): System becomes \(x - y = 1\) and \(-x + y = -1\) (same equation, infinite solutions)
Cramer's Rule can be applied for all values of \(k\) except \(k = 1\) and \(k = -1\).
• When \(\det(A) = 0\), the system has either no solution or infinitely many solutions
• Cramer's Rule only applies to systems with unique solutions
• Parameter analysis helps identify critical values where solution behavior changes
Cramer's Rule: A method to solve systems of linear equations using determinants, applicable only when the coefficient matrix is square and invertible.
Condition for Use: The system must have the same number of equations as unknowns and \(\det(A) \neq 0\).
- Formulate: Write system as \(AX = B\)
- Check: Verify \(\det(A) \neq 0\)
- Replace: For each variable \(x_i\), replace column \(i\) of \(A\) with \(B\)
- Calculate: Compute \(\det(A_i)\) for each modified matrix
- Solve: Apply formula \(x_i = \frac{\det(A_i)}{\det(A)}\)
Advantages:
- Direct formula for each variable without solving the entire system
- Useful for theoretical analysis
- Elegant mathematical expression
Limitations:
- Only works when \(\det(A) \neq 0\)
- Computationally expensive for large systems
- Not suitable for systems with no or infinite solutions