Gauss Elimination Method (original) (raw)

Last Updated : 7 Aug, 2025

The Gaussian Elimination Method is a fundamental algorithm in linear algebra used to solve systems of linear equations. By transforming a system into an upper triangular matrix through a series of row operations. It allows us to find the values of unknowns (like x, y, z) using a series of row operations.

This method is a cornerstone of computational mathematics, with applications spanning engineering, physics, economics, and computer science.

**Categories of Linear Equation Systems:

These categories depend on the relationship between the number of equations, variables, and their coefficients.

How to Solve an Equation using Gauss Elimination?

Gauss Elimination is a step-by-step procedure for solving systems of linear equations by reducing the system to row echelon form and then applying back-substitution.

Steps of Gaussian Elimination

  1. **Form the Augmented Matrix: Represent the system as an augmented matrix combining coefficients and constants.
  2. **Forward Elimination: Use row operations—swapping rows, scaling rows, or adding multiples of one row to another—to convert the matrix into row echelon (upper triangular) form.
  3. **Back-Substitution: Solve the resulting triangular system from the bottom up to find the values of the variables.

**Example: Consider the system:

The augmented matrix is: \begin{bmatrix} 2 & 1 & -1 &| \ 8 \\ -3 & -1 & 2 &|\ -11 \\ -2 & 1 & 2 & |\ -3 \end{bmatrix}

Use of Gauss Elimination in Maths

We can use this method to estimate either of the following:

Applications of Gaussian Elimination Method

Gaussian elimination is used in CS, especially in foundational areas involving linear systems.

**Numerical Analysis / Scientific Computing

**Computer Graphics

**Machine Learning / Data Science

**Cryptography / Coding Theory

**Computer Vision

**Robotics / Control Systems

Solved Questions on Gauss Elimination

**Question 1: Solve this Equation

x + 2y = 8
3x + 4y = 18

**Solution :

x + 2y = 8
3x + 4y = 18

\left[\begin{array}{cc|c}1 & 2 & 8 \\3 & 4 & 18\end{array}\right]

R_2 \rightarrow R_2 - 3 \cdot R_1\left[\begin{array}{cc|c}1 & 2 & 8 \\0 & -2 & -6\end{array}\right]

Now solving the equation:

- 2y = - 6
= y = 3

Substitute into x + 2y = 8

x + 2(3) = 8
x + 6 = 8
x = 2

So, x = 2 and y = 3

**Question 2: Solve using Gauss Elimination:

x + y + z = 6
2x + y + z = 14
x + 2y + 3z = 14

**Solution:

x + y + z = 6
2x + y + z = 14
x + 2y + 3z = 14

\left[\begin{array}{ccc|c}1 & 1 & 1 & 6 \\ 2 & 1 & 1 & 14 \\ 1 & 2 & 3 & 14\end{array}\right]

Estimate below the first 1

R2 → 2R1 - R2

R3 → 1R - R3

\left[\begin{array}{ccc|c}1 & 1 & 1 & 6 \\0 & -1 & -1 & 2 \\0 & 1 & 2 & 8\end{array}\right]

R2 → R2​/-1 (dividing Row 2 by -1)​

\left[\begin{array}{ccc|c}1 & 1 & 1 & 6 \\0 & 1 & 1 & -2 \\1 & 1 & 2 & 8\end{array}\right]

R1 → 1 R2 - R1

\left[\begin{array}{ccc|c}1 & 0 & 0 & 8 \\0 & 1 & 1 & -2 \\0 & 0 & 1 & 10\end{array}\right]

R2 → R3 - R1

\left[\begin{array}{ccc|c}1 & 0 & 0 & 8 \\0 & 1 & 0 & -12 \\0 & 0 & 1 & 10\end{array}\right]

Unsolved Questions on Gauss Elimination Method

**Question 1: Solve the following system of equations using Gauss Elimination Method:
3x + 2y = 16
4x - y = 9

**Question 2: Solve the following system of equations using Gauss Elimination Method:
2x + 5y = 11
6x - 3y = 9

**Question 3: Solve the following system of equations using Gauss Elimination Method:
2x + y - z = 1
4x - 6y = -2
-2x + 7y + 2z = 9

**Question 4: Solve the following system of equations using Gauss Elimination Method:
x + y + z = 9
2x - 3y + 4z = 13
3x + 2y - z = 3