Example: The system of equations ⎩⎨⎧x+y+z2x+3y+7zx+3y−2z=3=0=17 has augmented matrix 12113317−23017.Row operations can be used to express the matrix in row-echelon form.12113317−23017→10011215−33−614→10011015−133−626→1001101513−6−2The system has become ⎩⎨⎧x+y+zy+5zz=3=−6=−2. By back-substitution we find that x=1,y=4, and z=−2.
aij = Coefficients of the variables in the original system
bi = Constants on the right-hand side of each equation
aij′ = Transformed coefficients after row operations
bi′ = Transformed constants after row operations
Worked Example
Problem:Solve the system of equations:
x+2y+z=92x+5y+2z=213x+7y+4z=30
Step 1: Write the augmented matrix for the system.
12325712492130
Step 2:Eliminate the first column below the pivot. Replace R2 with R2−2R1, and replace R3 with R3−3R1.
100211101933
Step 3:Eliminate the second column below the second pivot. Replace R3 with R3−R2.
100210101930
Step 4:The matrix is now in row-echelon form. Back-substitute starting from the last row. Row 3 gives z=0. Row 2 gives y=3. Row 1 gives x+2(3)+0=9, so x=3.
z=0,y=3,x=9−6−0=3
Answer:x=3, y=3, z=0.
Another Example
This example shows what happens when the system has dependent equations (a row of zeros), leading to infinitely many solutions rather than a unique solution.
Problem:Solve the system of equations:
2x+4y=103x+6y=15
Step 1: Write the augmented matrix.
[23461015]
Step 2:Divide R1 by 2 to make the leading coefficient 1.
[1326515]
Step 3:Replace R2 with R2−3R1 to eliminate the first entry in row 2.
[102050]
Step 4:Row 2 is all zeros, meaning the two equations are dependent. The system has infinitely many solutions. From row 1: x+2y=5, so x=5−2t where y=t is a free variable.
x=5−2t,y=t,t∈R
Answer:Infinitely many solutions: x=5−2t, y=t for any real number t.
Frequently Asked Questions
What is the difference between Gaussian Elimination and Gauss-Jordan Elimination?
Gaussian Elimination reduces the augmented matrix to row-echelon form (upper triangular with zeros below each pivot), then uses back-substitution to find the solution. Gauss-Jordan Elimination goes further, reducing the matrix to reduced row-echelon form (with zeros both above and below each pivot and leading 1s), so you can read the solution directly without back-substitution. Gauss-Jordan requires more row operations but eliminates the need for the back-substitution step.
When does Gaussian Elimination fail or give no solution?
Gaussian Elimination reveals an inconsistent system when a row reduces to the form [00⋯0∣c] where c=0. This represents the equation 0=c, which is impossible, meaning the system has no solution. The method itself does not fail — it reliably detects whether a system has one solution, infinitely many solutions, or no solution at all.
What are the three allowed row operations in Gaussian Elimination?
The three elementary row operations are: (1) swap two rows, (2) multiply a row by a nonzero constant, and (3) add a multiple of one row to another row. These operations change the appearance of the augmented matrix but do not change the solution set of the system.
Gaussian Elimination vs. Gauss-Jordan Elimination
Gaussian Elimination
Gauss-Jordan Elimination
Goal
Reduce to row-echelon form (zeros below pivots)
Reduce to reduced row-echelon form (zeros above and below pivots, leading 1s)
Final step
Requires back-substitution to find the solution
Solution is read directly from the final matrix
Number of operations
Fewer row operations needed
More row operations needed
When to use
Solving a system by hand; efficient for large systems
Finding the inverse of a matrix; when you want a clean final form
Why It Matters
Gaussian Elimination is one of the most fundamental algorithms in linear algebra and appears in nearly every introductory course. You will use it to solve systems of equations, determine whether a system is consistent, find the rank of a matrix, and compute determinants. It also forms the backbone of how computers solve large linear systems in engineering, physics, and data science applications.
Common Mistakes
Mistake: Performing a row operation incorrectly by subtracting the multiplier from only some entries in the row instead of all entries, including the constant on the right side of the augmented matrix.
Correction:When you perform Ri←Ri−kRj, you must apply the operation to every entry in the row, including the entry in the augmented column. Skipping the constant column will produce a wrong answer.
Mistake: Forgetting to do back-substitution and misreading the row-echelon form as the final answer.
Correction: Row-echelon form is not the solution — it is an intermediate step. After reaching row-echelon form, you must substitute the known values from the bottom row upward to solve for each variable in turn.
Related Terms
Augmented Matrix — The matrix form used as input for elimination