Curious Minds

Clear answers to science and history questions

How to Do Back Substitution in Algebra

· 4 min read · Science

Skipping the forward pass or misapplying signs during back substitution leads to wrong solutions. Always solve the system after Gaussian elimination, starting from the last equation with one variable, and substitute values upward.

Solve the Last Equation First

Begin with the bottom row of the upper-triangular matrix, which contains only one variable. Isolate that variable using basic algebra.

  1. Take the last equation, which looks like az = b, and divide both sides by a to get z = b/a.
  2. Ensure a ≠ 0; if it is zero, the system may be inconsistent or dependent—recheck the elimination steps.
  3. Write down the value of z clearly; you will use it in the next step.

Substitute Into the Previous Equation

Move up one row and plug the known value into the next higher equation, which will have one more variable.

  1. Take the second-to-last equation, which likely looks like by + cz = d.
  2. Replace z with the value found in the previous step.
  3. Simplify the equation by multiplying c and the known z, then combine constants.
  4. Solve for y by subtracting the constant term from both sides and dividing by b.

Continue Upward With Each Variable

Repeat substitution and solving for each remaining variable, moving up one row at a time.

  1. Move to the next higher equation, which will include x, y, and z (or more variables if the system is larger).
  2. Substitute the known values of y and z into their respective terms.
  3. Combine constant terms on the right-hand side.
  4. Isolate x by dividing the result by its coefficient.
  5. Repeat until all variables are solved.

Check for Consistent Matrix Structure

Back substitution only works if the system is in row-echelon form—each leading variable corresponds to a pivot in a staggered diagonal.

System Size Variables Equations Needed Pivot Positions
2×2 x, y 2 1st equation: x, 2nd: y
3×3 x, y, z 3 1st: x, 2nd: y, 3rd: z
4×4 w, x, y, z 4 1st: w, 2nd: x, 3rd: y, 4th: z

If a row has all zero coefficients but a nonzero constant, the system has no solution. If a row has all zeros including the constant, it may have infinitely many solutions—back substitution still applies to the pivot variables.

Use Coefficients and Constants Accurately

Mistakes in copying coefficients or signs from the augmented matrix ruin the result.

  1. Write the augmented matrix clearly before starting back substitution.
  2. Mark each pivot (the first nonzero number in each row).
  3. When substituting, use parentheses around substituted values to avoid sign errors.
  4. Double-check arithmetic when multiplying coefficients by known variable values.
  5. Keep fractions as fractions until the final step to prevent rounding errors.

Verify the Solution in All Original Equations

Plug the solved values back into the original system to confirm they satisfy every equation.

  1. Take the first original equation with all variables.
  2. Replace each variable with its solved value.
  3. Compute the left-hand side and compare it to the right-hand side.
  4. Repeat for all equations.
  5. If any equation fails, recheck substitution steps and arithmetic.

Worked Example: 3×3 System

Solve this system after Gaussian elimination:

x + 2y + 3z = 9
y + 4z = 8
z = 2

  1. From the third equation, z = 2.
  2. Substitute z = 2 into the second equation: y + 4(2) = 8 → y + 8 = 8 → y = 0.
  3. Substitute y = 0, z = 2 into the first equation: x + 2(0) + 3(2) = 9 → x + 6 = 9 → x = 3.
  4. Solution: x = 3, y = 0, z = 2.
  5. Verify: 3 + 2(0) + 3(2) = 9 ✓, 0 + 4(2) = 8 ✓, z = 2 ✓.

Fix Common Substitution Errors

Incorrect signs, missed terms, or arithmetic mistakes are the main causes of wrong answers.

  • Sign errors: When substituting negative values, use parentheses. For example, if z = -3 and the term is -2z, compute -2(-3) = 6, not -6.
  • Skipping verification: Always plug the solution back into the original equations. If one fails, trace backward from the last substitution.
  • Incorrect order: Never skip equations or substitute into a lower row. Work strictly from bottom to top.
  • Fraction mishandling: Keep values as fractions. For example, if y = 5/2, write 2y = 2(5/2) = 5, not 2.5 × 2 = 5.0.
  • Zero coefficients: If a variable is missing in an equation, its coefficient is zero. Do not invent a value.

Choose the Right Method for the System

Back substitution applies only after forward elimination creates an upper-triangular system.

Decide based on the matrix form:

  • If the system is already upper-triangular: use back substitution.
  • If the system is not triangular: perform Gaussian elimination first.
  • If equations are not linear: back substitution does not apply.
  • If there are more variables than equations: solve for pivot variables in terms of free variables using back substitution.

Scale Results for Larger Systems

The method works the same for 4×4, 5×5, or larger systems—just more steps.

  1. Solve the last equation for the last variable.
  2. Move up one row, substitute all known values, solve for the next variable.
  3. Repeat until the first variable is found.
  4. For a 4×4 system with variables w, x, y, z, solve for z, then y, then x, then w.
  5. Use a table to track solved values and avoid confusion.
In this article
  1. Solve the Last Equation First
  2. Substitute Into the Previous Equation
  3. Continue Upward With Each Variable
  4. Check for Consistent Matrix Structure
  5. Use Coefficients and Constants Accurately
  6. Verify the Solution in All Original Equations
  7. Worked Example: 3×3 System
  8. Fix Common Substitution Errors
  9. Choose the Right Method for the System
  10. Scale Results for Larger Systems