Gaussian Elimination
Gaussian Elimination
A method of solving a linear system of equations. This is done by transforming the system's augmented matrix into row-echelon form by means of row operations. Then the system is solved by back-substitution.

See also
Key Formula
a11a21a31a12a22a32a13a23a33b1b2b3row opsa11′00a12′a22′0a13′a23′a33′b1′b2′b3′
Where:
- 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=9
2x+5y+2z=21
3x+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=10
3x+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 [0 0 ⋯ 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
- Row-Echelon Form of a Matrix — The target form after forward elimination
- Row Operations — The three operations used to transform the matrix
- Back-Substitution — The final step to extract the solution
- Gauss-Jordan Elimination — Extended method that eliminates back-substitution
- Linear System of Equations — The type of problem Gaussian Elimination solves
- Solve — General concept of finding values satisfying equations
