Resources

Consider the following system of linear equations in three variables: {x+2y−z=42x−y+z=33x+y+2z=11\begin{cases} x + 2y - z = 4 \\ 2x - y + z = 3 \\ 3x + y + 2z = 11 \end{cases} Using Cramer's Rule, isolate and solve specifically for the single variable zz without solving for xx or yy. Express your result by explicitly computing the coefficient determinant DD and the numerator determinant DzD_z.

Answer and steps

Final answer

D=−14D = -14, Dz=−28D_z = -28; z=DzD=2z = \frac{D_z}{D} = 2

Steps

01

Identify the Formula for Cramer's Rule

For a system of three linear equations in three variables (x,y,zx, y, z): x+2y−z=4x + 2y - z = 4 2x−y+z=32x - y + z = 3 3x+y+2z=113x + y + 2z = 11

Cramer's Rule allows solving for any single variable independently using determinants: z=DzDz = \frac{D_z}{D} where:

  • DD is the determinant of the coefficient matrix.
  • DzD_z is the determinant formed by replacing the column corresponding to the coefficients of zz (the third column) with the column of constants from the right-hand side, (4311)\begin{pmatrix} 4 \\ 3 \\ 11 \end{pmatrix}.

02

Set Up and Evaluate the Coefficient Determinant DD

Write the determinant formed by the coefficients of xx, yy, and zz: D=∣12−12−11312∣D = \begin{vmatrix} 1 & 2 & -1 \\ 2 & -1 & 1 \\ 3 & 1 & 2 \end{vmatrix}

Expanding along the first row using minors and cofactors: D=1⋅∣−1112∣−2⋅∣2132∣+(−1)⋅∣2−131∣D = 1 \cdot \begin{vmatrix} -1 & 1 \\ 1 & 2 \end{vmatrix} - 2 \cdot \begin{vmatrix} 2 & 1 \\ 3 & 2 \end{vmatrix} + (-1) \cdot \begin{vmatrix} 2 & -1 \\ 3 & 1 \end{vmatrix}

Evaluating the 2×22 \times 2 determinants:

  • ∣−1112∣=(−1)(2)−(1)(1)=−3\begin{vmatrix} -1 & 1 \\ 1 & 2 \end{vmatrix} = (-1)(2) - (1)(1) = -3
  • ∣2132∣=(2)(2)−(1)(3)=1\begin{vmatrix} 2 & 1 \\ 3 & 2 \end{vmatrix} = (2)(2) - (1)(3) = 1
  • ∣2−131∣=(2)(1)−(−1)(3)=5\begin{vmatrix} 2 & -1 \\ 3 & 1 \end{vmatrix} = (2)(1) - (-1)(3) = 5

Combining these terms yields: D=−14D = -14


03

Set Up and Evaluate the Numerator Determinant DzD_z

Replace the third column of DD with the constant vector (4311)\begin{pmatrix} 4 \\ 3 \\ 11 \end{pmatrix}: Dz=∣1242−133111∣D_z = \begin{vmatrix} 1 & 2 & 4 \\ 2 & -1 & 3 \\ 3 & 1 & 11 \end{vmatrix}

Expanding along the first row: Dz=1⋅∣−13111∣−2⋅∣23311∣+4⋅∣2−131∣D_z = 1 \cdot \begin{vmatrix} -1 & 3 \\ 1 & 11 \end{vmatrix} - 2 \cdot \begin{vmatrix} 2 & 3 \\ 3 & 11 \end{vmatrix} + 4 \cdot \begin{vmatrix} 2 & -1 \\ 3 & 1 \end{vmatrix}

Evaluating the 2×22 \times 2 minors:

  • ∣−13111∣=(−1)(11)−(3)(1)=−14\begin{vmatrix} -1 & 3 \\ 1 & 11 \end{vmatrix} = (-1)(11) - (3)(1) = -14
  • ∣23311∣=(2)(11)−(3)(3)=13\begin{vmatrix} 2 & 3 \\ 3 & 11 \end{vmatrix} = (2)(11) - (3)(3) = 13
  • ∣2−131∣=(2)(1)−(−1)(3)=5\begin{vmatrix} 2 & -1 \\ 3 & 1 \end{vmatrix} = (2)(1) - (-1)(3) = 5

Combining these terms yields: Dz=−28D_z = -28


04

Calculate the Variable zz

Substitute DD and DzD_z into the Cramer's Rule formula: z=DzD=−28−14=2z = \frac{D_z}{D} = \frac{-28}{-14} = 2


Common Pitfalls to Avoid

  • Sign Errors in Cofactor Expansion: Remember the alternating sign pattern (+−+−+−+−+)\begin{pmatrix} + & - & + \\ - & + & - \\ + & - & + \end{pmatrix} across the rows and columns.
  • Inverted Ratio: Ensure DD is in the denominator and DzD_z is in the numerator (z=DzDz = \frac{D_z}{D}, not DDz\frac{D}{D_z}).
  • Replacing the Wrong Column: Always replace column 1 for xx, column 2 for yy, and column 3 for zz.

Typical errors

OverviewACEpath Teacher's Diagnosis

01 The student forgets the alternating negative sign on the middle term when expanding the 3x3 determinant across the first row, leading to an incorrect value for D.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Incorrect
  1. Step 1

    D=1((−1)(2)−(1)(1))+2((2)(2)−(1)(3))−1((2)(1)−(−1)(3))  ⟹  D=1(−3)+2(1)−1(5)=−3+2−5=−6D = 1((-1)(2) - (1)(1)) + 2((2)(2) - (1)(3)) - 1((2)(1) - (-1)(3)) \implies D = 1(-3) + 2(1) - 1(5) = -3 + 2 - 5 = -6

    Correct

    D=1((−1)(2)−(1)(1))−2((2)(2)−(1)(3))−1((2)(1)−(−1)(3))=1(−3)−2(1)−1(5)=−10D = 1((-1)(2) - (1)(1)) - 2((2)(2) - (1)(3)) - 1((2)(1) - (-1)(3)) = 1(-3) - 2(1) - 1(5) = -10

    You expanded along the first row but added the middle term instead of subtracting it. The cofactor sign for position (1,2)(1,2) is (−1)1+2=−1(-1)^{1+2} = -1, so the middle term must be −2(1)-2(1), not +2(1)+2(1).

  2. Step 2

    Dz=1((−1)(11)−(1)(1))−2((2)(11)−(3)(3))+4((2)(1)−(−1)(3))  ⟹  Dz=1(−12)−2(13)+4(5)=−12−26+20=−18D_z = 1((-1)(11) - (1)(1)) - 2((2)(11) - (3)(3)) + 4((2)(1) - (-1)(3)) \implies D_z = 1(-12) - 2(13) + 4(5) = -12 - 26 + 20 = -18

    Correct

    Dz=1((−1)(11)−(3)(1))−2((2)(11)−(3)(3))+4((2)(1)−(−1)(3))=1(−14)−2(13)+4(5)=−20D_z = 1((-1)(11) - (3)(1)) - 2((2)(11) - (3)(3)) + 4((2)(1) - (-1)(3)) = 1(-14) - 2(13) + 4(5) = -20

    In your first 2×22 \times 2 minor, you evaluated (−1)(11)−(1)(1)(-1)(11) - (1)(1) instead of (−1)(11)−(3)(1)(-1)(11) - (3)(1). The entry in row 2, column 3 of the submatrix is 33, giving a minor value of −14-14 rather than −12-12.

  3. Step 3

    z=DzD=−18−6=3z = \frac{D_z}{D} = \frac{-18}{-6} = 3

    Correct

    z=DzD=−20−10=2z = \frac{D_z}{D} = \frac{-20}{-10} = 2

    You applied the Cramer's Rule ratio correctly as z=DzDz = \frac{D_z}{D}, but the numerical answer was affected by the earlier calculation errors in DD and DzD_z.

WHAT YOU DID WELL
Compliments from Your Teacher

You correctly set up Cramer's Rule by replacing column 3 with the constant vector to solve for zz.

You accurately identified the Cramer's Rule ratio z=DzDz = \frac{D_z}{D}.

You computed the 2×22 \times 2 cross-products accurately for most of the subdeterminants.

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Cofactor Sign Error

no

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

You omitted the alternating negative sign required for the (1,2)(1,2) cofactor when expanding a 3×33 \times 3 determinant across the first row, and miscopied an entry when evaluating the first minor of DzD_z.

REASONING PATH
Your ACEpath teacher’s suggested approach
Cofactor Checkerboard Pattern
  • Every element aija_{ij} in an expansion carries the sign factor (−1)i+j(-1)^{i+j}, giving the sign pattern (+−+−+−+−+)\begin{pmatrix} + & - & + \\ - & + & - \\ + & - & + \end{pmatrix}.

  • Always write the alternating signs ++, −-, ++ explicitly above row 1 before multiplying by each minor.

Minor Extraction Verification
  • The minor MijM_{ij} is formed by deleting row ii and column jj from the matrix.

  • Cover row 1 and the active column with your finger or pen to verify all four remaining numbers before multiplying diagonals.

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. Apply the alternating cofactor signs along row 1 to evaluate DD: D=1(−3)−2(1)−1(5)=−3−2−5=−10D = 1(-3) - 2(1) - 1(5) = -3 - 2 - 5 = -10.

  2. Form the first minor of DzD_z accurately: ∣−13111∣=(−1)(11)−(3)(1)=−14\begin{vmatrix} -1 & 3 \\ 1 & 11 \end{vmatrix} = (-1)(11) - (3)(1) = -14.

  3. Evaluate DzD_z with the correct terms: Dz=1(−14)−2(13)+4(5)=−14−26+20=−20D_z = 1(-14) - 2(13) + 4(5) = -14 - 26 + 20 = -20.

  4. Divide to find zz: z=DzD=−20−10=2z = \frac{D_z}{D} = \frac{-20}{-10} = 2.

Final answer

z=2z = 2

NEXT STEPS
Final Takeaways from Your Teacher
  • Memorize the sign grid (+−+−+−+−+)\begin{pmatrix} + & - & + \\ - & + & - \\ + & - & + \end{pmatrix} to ensure the middle term of a first-row cofactor expansion is always subtracted.

  • Practice checking off each element when copying 2×22 \times 2 submatrices during cofactor expansion.

OverviewACEpath Teacher's Diagnosis

02 The student replaces the wrong column with the constant vector by placing the constants into the first column instead of the third column for Dz.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Partially correct
  1. Step 1

    D=1((−1)(2)−(1)(1))−2((2)(2)−(1)(3))−1((2)(1)−(−1)(3))  ⟹  D=1(−3)−2(1)−1(5)=−10D = 1((-1)(2) - (1)(1)) - 2((2)(2) - (1)(3)) - 1((2)(1) - (-1)(3)) \implies D = 1(-3) - 2(1) - 1(5) = -10

  2. Step 2

    Dz=4((−1)(2)−(1)(1))−2((3)(2)−(1)(11))−1((3)(1)−(−1)(11))  ⟹  Dz=4(−3)−2(−5)−1(14)=−16D_z = 4((-1)(2) - (1)(1)) - 2((3)(2) - (1)(11)) - 1((3)(1) - (-1)(11)) \implies D_z = 4(-3) - 2(-5) - 1(14) = -16

    Correct

    Dz=∣1242−133111∣=1(−14)−2(13)+4(5)=−20D_z = \begin{vmatrix} 1 & 2 & 4 \\ 2 & -1 & 3 \\ 3 & 1 & 11 \end{vmatrix} = 1(-14) - 2(13) + 4(5) = -20

    You placed the column of constants (4311)\begin{pmatrix} 4 \\ 3 \\ 11 \end{pmatrix} into the first column rather than the third column. Replacing column 1 calculates DxD_x, whereas calculating DzD_z requires replacing column 3.

  3. Step 3

    z=DzD=−16−10=85z = \frac{D_z}{D} = \frac{-16}{-10} = \frac{8}{5}

    Correct

    z=DzD=−20−10=2z = \frac{D_z}{D} = \frac{-20}{-10} = 2

    You applied Cramer's Rule ratio correctly as DzD\frac{D_z}{D}, but the value was affected by using Dx=−16D_x = -16 instead of Dz=−20D_z = -20.

WHAT YOU DID WELL
Compliments from Your Teacher

You correctly formed the coefficient determinant DD from the system of equations.

You evaluated 3×33 \times 3 determinants accurately using first-row cofactor expansion and correct sign alternation.

You correctly applied the ratio formula of Cramer's Rule.

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Column Substitution Error in Cramer's Rule

You accidentally placed the constants into column 1 instead of column 3 when evaluating DzD_z.

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

Confusing the variable position with the column index: in a standard (x,y,z)(x, y, z) linear system, xx corresponds to column 1, yy corresponds to column 2, and zz corresponds to column 3. To find DzD_z, only the third column should be replaced by the constants.

REASONING PATH
Your ACEpath teacher’s suggested approach
Match Variable to Column Index
  • For variables ordered (x,y,z)(x, y, z), DxD_x replaces column 1, DyD_y replaces column 2, and DzD_z replaces column 3 with the constant vector.

  • Before expanding, write down the full matrix with column 3 highlighted to verify that columns 1 and 2 remain identical to the original coefficient matrix.

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. Set up the determinant with column 3 replaced: Dz=∣1242−133111∣D_z = \begin{vmatrix} 1 & 2 & 4 \\ 2 & -1 & 3 \\ 3 & 1 & 11 \end{vmatrix}.

  2. Expand along row 1: Dz=1⋅∣−13111∣−2⋅∣23311∣+4⋅∣2−131∣D_z = 1 \cdot \begin{vmatrix} -1 & 3 \\ 1 & 11 \end{vmatrix} - 2 \cdot \begin{vmatrix} 2 & 3 \\ 3 & 11 \end{vmatrix} + 4 \cdot \begin{vmatrix} 2 & -1 \\ 3 & 1 \end{vmatrix}.

  3. Evaluate the 2×22 \times 2 minors: 1((−1)(11)−(3)(1))−2((2)(11)−(3)(3))+4((2)(1)−(−1)(3))=1(−14)−2(13)+4(5)=−14−26+20=−201((-1)(11) - (3)(1)) - 2((2)(11) - (3)(3)) + 4((2)(1) - (-1)(3)) = 1(-14) - 2(13) + 4(5) = -14 - 26 + 20 = -20.

  4. Compute z=DzD=−20−10=2z = \frac{D_z}{D} = \frac{-20}{-10} = 2.

Final answer

D=−10D = -10, Dz=−20D_z = -20; z=2z = 2

NEXT STEPS
Final Takeaways from Your Teacher
  • Review Cramer's Rule column-replacement convention: always replace the column corresponding to the variable being solved.

  • Practice identifying and writing out DxD_x, DyD_y, and DzD_z side-by-side before evaluating the determinants.

OverviewACEpath Teacher's Diagnosis

03 The student inverts the ratio in Cramer's Rule, computing z as D / Dz instead of Dz / D.

Sample Student Work

Reviewed by ACEpath Teacher
Step-by-Step Review
Walk Through It with Your Teacher
Incorrect
  1. Step 1

    D=1((−1)(2)−(1)(1))−2((2)(2)−(1)(3))−1((2)(1)−(−1)(3))  ⟹  D=1(−3)−2(1)−1(5)=−10D = 1((-1)(2) - (1)(1)) - 2((2)(2) - (1)(3)) - 1((2)(1) - (-1)(3)) \implies D = 1(-3) - 2(1) - 1(5) = -10

  2. Step 2

    Dz=1((−1)(11)−(1)(1))−2((2)(11)−(3)(3))+4((2)(1)−(−1)(3))  ⟹  Dz=1(−12)−2(13)+4(5)=−18D_z = 1((-1)(11) - (1)(1)) - 2((2)(11) - (3)(3)) + 4((2)(1) - (-1)(3)) \implies D_z = 1(-12) - 2(13) + 4(5) = -18

    Correct

    Dz=1((−1)(11)−(3)(1))−2((2)(11)−(3)(3))+4((2)(1)−(−1)(3))  ⟹  Dz=1(−14)−2(13)+4(5)=−20D_z = 1((-1)(11) - (3)(1)) - 2((2)(11) - (3)(3)) + 4((2)(1) - (-1)(3)) \implies D_z = 1(-14) - 2(13) + 4(5) = -20

    In your first 2×22 \times 2 minor, you wrote (−1)(11)−(1)(1)(-1)(11) - (1)(1) instead of (−1)(11)−(3)(1)(-1)(11) - (3)(1). This gave −12-12 instead of −14-14, leading to Dz=−18D_z = -18 instead of −20-20.

  3. Step 3

    z=DDz=−10−18=59z = \frac{D}{D_z} = \frac{-10}{-18} = \frac{5}{9}

    Correct

    z=DzD=−20−10=2z = \frac{D_z}{D} = \frac{-20}{-10} = 2

    You inverted the Cramer's Rule ratio. The variable is solved by placing the modified determinant in the numerator and the coefficient determinant in the denominator: z=DzDz = \frac{D_z}{D}.

WHAT YOU DID WELL
Compliments from Your Teacher

You correctly set up and computed the coefficient determinant D=−10D = -10.

You recognized that solving for zz requires replacing the third column with the constant vector (4,3,11)T(4, 3, 11)^T.

THE ERROR
Where Your ACEpath Teacher Spotted the Mistake
Inverted Cramer's Rule Ratio

You substituted (1)(1)(1)(1) instead of (3)(1)(3)(1) in the off-diagonal product of the first minor of DzD_z.

WHY IT HAPPENED
ACEpath Teacher's Diagnosis

You placed the coefficient determinant DD in the numerator and the variable determinant DzD_z in the denominator, reversing the fundamental ratio z=DzDz = \frac{D_z}{D}.

REASONING PATH
Your ACEpath teacher’s suggested approach
Cramer's Rule Ratio Placement
  • Each unknown variable equals its modified determinant divided by the coefficient determinant: xi=DxiDx_i = \frac{D_{x_i}}{D}.

  • Always place the base coefficient determinant DD in the denominator.

$2 \times 2$ Minor Cross-Multiplication
  • For ∣abcd∣\begin{vmatrix} a & b \\ c & d \end{vmatrix}, the value is ad−bcad - bc.

  • Carefully verify each off-diagonal entry from the original 3×33 \times 3 matrix before multiplying.

CORRECTED PATH
ACEpath Teacher's Demonstration
  1. Recalculate DzD_z with the correct entry 33: Dz=1(−14)−2(13)+4(5)=−14−26+20=−20D_z = 1(-14) - 2(13) + 4(5) = -14 - 26 + 20 = -20.

  2. Apply Cramer's Rule with DD in the denominator: z=DzD=−20−10=2z = \frac{D_z}{D} = \frac{-20}{-10} = 2.

Final answer

z=2z = 2

NEXT STEPS
Final Takeaways from Your Teacher
  • Write out the formula z=DzDz = \frac{D_z}{D} explicitly before substituting numerical values to prevent ratio inversion.

  • Double-check individual matrix entries when setting up 2×22 \times 2 minors from a 3×33 \times 3 determinant.

Lock it in

Similar question

01

Evaluate the determinant of the matrix A=(2130−1412−2)A = \begin{pmatrix} 2 & 1 & 3 \\ 0 & -1 & 4 \\ 1 & 2 & -2 \end{pmatrix} by expanding along the first row.

Answer

det⁡(A)=−5\det(A) = -5. Expanding across row 1: 2((−1)(−2)−(4)(2))−1((0)(−2)−(4)(1))+3((0)(2)−(−1)(1))=2(−6)−1(−4)+3(1)=−12+4+3=−52((-1)(-2) - (4)(2)) - 1((0)(-2) - (4)(1)) + 3((0)(2) - (-1)(1)) = 2(-6) - 1(-4) + 3(1) = -12 + 4 + 3 = -5.

02

Use Cramer's Rule to solve for yy in the two-variable system: {2x+y=5x−3y=−1\begin{cases} 2x + y = 5 \\ x - 3y = -1 \end{cases}.

Answer

y=1y = 1. The coefficient determinant is D=∣211−3∣=2(−3)−(1)(1)=−7D = \begin{vmatrix} 2 & 1 \\ 1 & -3 \end{vmatrix} = 2(-3) - (1)(1) = -7. Replacing column 2 gives Dy=∣251−1∣=2(−1)−(5)(1)=−7D_y = \begin{vmatrix} 2 & 5 \\ 1 & -1 \end{vmatrix} = 2(-1) - (5)(1) = -7. Thus, y=DyD=−7−7=1y = \frac{D_y}{D} = \frac{-7}{-7} = 1.

03

For the system {x+y+z=62x−y+z=3x+2y−z=2\begin{cases} x + y + z = 6 \\ 2x - y + z = 3 \\ x + 2y - z = 2 \end{cases}, evaluate DD and DxD_x, then find xx using Cramer's Rule.

Answer

x=1x = 1. First, D=1(1−2)−1(−2−1)+1(4−(−1))=−1+3+5=7D = 1(1 - 2) - 1(-2 - 1) + 1(4 - (-1)) = -1 + 3 + 5 = 7. Next, replace column 1 with the constants: Dx=∣6113−1122−1∣=6(1−2)−1(−3−2)+1(6−(−2))=−6+5+8=7D_x = \begin{vmatrix} 6 & 1 & 1 \\ 3 & -1 & 1 \\ 2 & 2 & -1 \end{vmatrix} = 6(1 - 2) - 1(-3 - 2) + 1(6 - (-2)) = -6 + 5 + 8 = 7. Therefore, x=DxD=77=1x = \frac{D_x}{D} = \frac{7}{7} = 1.

Loading workspace…