ArticleslgStudy

mathematics

Gaussian elimination

Gaussian elimination is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Gaussian elimination rather than just read about it. In short: In mathematics, Gaussian elimination, also known as row reduction, is an algorithm for solving systems of linear equations. It consists of a sequence of row-wise operations performed on the corresponding matrix of coefficients.

Gaussian elimination — main illustration
Gaussian elimination — illustration

Key takeaways

  • Gaussian elimination belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Gaussian elimination to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Gaussian elimination from memory before moving on to harder problems.

Reference excerpt

In mathematics, Gaussian elimination, also known as row reduction, is an algorithm for solving systems of linear equations. It consists of a sequence of row-wise operations performed on the corresponding matrix of coefficients. This method can also be used to compute the rank of a matrix, the determinant of a square matrix, and the inverse of an invertible matrix. The method is named after Carl Friedrich Gauss (1777–1855). To perform row reduction on a matrix, one uses a sequence of elementary row operations to modify the matrix until the lower left-hand corner of the matrix is filled with zeros, as much as possible. There are three types of elementary row operations:

swapping two rows, multiplying a row by a nonzero number, and adding a multiple of one row to another row. Using these operations, a matrix can always be transformed into reduced row echelon form: each nonzero row is above every zero row, each nonzero row has leftmost nonzero entry equal to 1, the columns containing these leading 1s have all other entries 0, and the leading 1 in each nonzero row is to the right of the leading 1 in the previous row. This final form is unique; in other words, it is independent of the sequence of row operations used. For example, in the following sequence of row operations (where two elementary operations on different rows are done at the first and third steps), the third and fourth matrices are the ones in row echelon form, and the final matrix is the unique reduced row echelon form. [131911−11311535]→[13190−2−2−80228]→[13190−2−2−80000]→[10−2−301140000]

Using row operations to convert a matrix into reduced row echelon form is sometimes called Gauss–Jordan elimination. In this case, the term Gaussian elimination refers to the process until it has reached its upper triangular, (unreduced) row echelon form. For computational reasons, when solving systems of linear equations, it is sometimes preferable to stop row operations before the matrix is completely reduced.

Definitions and example of algorithm The process of row reduction makes use of elementary row operations, and can be divided into two parts. The first part (sometimes called forward elimination) reduces a given system to row echelon form, from which one can tell whether there are no solutions, a unique solution, or infinitely many solutions. The second part (sometimes called back substitution) continues to use row operations until the solution is found; in other words, it puts the matrix into reduced row echelon form. Another point of view, which turns out to be very useful to analyze the algorithm, is that row reduction produces a matrix decomposition of the original matrix. The elementary row operations may be viewed as the multiplication on the left of the original matrix by elementary matrices.

Alternatively, a sequence of elementary operations that reduces a single row may be viewed as multiplication by a Frobenius matrix. Then the first part of the algorithm computes an LU decomposition, while the second part writes the original matrix as the product of a uniquely determined invertible matrix and a uniquely determined reduced row echelon matrix.

Row operations There are three types of elementary row operations which may be performed on the rows of a matrix:

Interchanging two rows. Multiplying a row by a non-zero scalar. Adding a scalar multiple of one row to another. If the matrix is associated to a system of linear equations, then these operations do not change the solution set. Therefore, if one's goal is to solve a system of linear equations, then using these row operations could make the problem easier.

Echelon form

For each row in a matrix, if the row does not consist of only zeros, then the leftmost nonzero entry is called the leading entry (or pivot) of that row. If two leading entries are in the same column, then a row operation of type 3 can be used to make one of those entries zero. Then by using the row swapping operation, one can always order the rows so that for every non-zero row, the leading entry is to the right of the leading entry of the row above. If this is the case, the matrix is said to be in row echelon form. In this form, the lower left part of the matrix contains only zeros, and all of the zero rows are below the non-zero rows. The word "echelon" is used here because one can roughly think of the rows being ranked by their size, with the largest being at the top and the smallest being at the bottom. For example, the following matrix is in row echelon form, and its leading entries are shown in red: [0𝟐1−100𝟑10000]. It is in echelon form because the zero row is at the bottom and the leading entry of the second row (in the third column) is to the right of the leading entry of the first row (in the second column). A matrix is said to be in reduced row echelon form if furthermore all of the leading entries are equal to 1 (which can be achieved by using the elementary row operation of type 2), and in every column containing a leading entry, all of the other entries in that column are zero (which can be achieved by using elementary row operations of type 3).

Example of the algorithm Suppose the goal is to find and describe the set of solutions to the following system of linear equations: 2x+y−z=8(L1)−3x−y+2z=−11(L2)−2x+y+2z=−3(L3) The table below is the row reduction process applied simultaneously to the system of equations and its associated augmented matrix. In practice, one does not usually deal with the systems in terms of equations, but instead makes use of the augmented matrix, which is more suitable for computer manipulations. The row reduction procedure may be summarized as follows: eliminate x from all equations below L1, and then eliminate y from all equations below L2. This will put the system into triangular form. Then, using back-substitution, each unknown can be solved for.

… excerpt ends here. Continue reading the full article.

Illustrations

Gaussian elimination: Animation of Gaussian elimination. Red row eliminates the following rows, green rows change their order.
Animation of Gaussian elimination. Red row eliminates the following rows, green rows change their order.
Gaussian elimination: Animated row-normal-plane view of Gaussian elimination for the example system above, whose solution set is a line
Animated row-normal-plane view of Gaussian elimination for the example system above, whose solution set is a line
Gaussian elimination: Row reduction of an invertible matrix expressed as left multiplication by elementary matrices
Row reduction of an invertible matrix expressed as left multiplication by elementary matrices

Worked examples

Example 1 — a first encounter with Gaussian elimination

Start with the simplest possible case. Write down what Gaussian elimination claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Gaussian elimination before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Gaussian elimination ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Gaussian elimination

In research
Gaussian elimination appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Gaussian elimination in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Gaussian elimination is common in secondary-school and first-year university syllabi. It links to neighbouring topics Exchange algorithms, Numerical linear algebra, so understanding it makes those chapters shorter.
In everyday life
Look for Gaussian elimination outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Gaussian elimination” →

How to study Gaussian elimination in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Gaussian elimination means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Gaussian elimination out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Gaussian elimination in simple terms?

In mathematics, Gaussian elimination, also known as row reduction, is an algorithm for solving systems of linear equations. It consists of a sequence of row-wise operations performed on the corresponding matrix of coefficients.

Why does Gaussian elimination matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Gaussian elimination?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Gaussian elimination.

Tags

  • Exchange algorithms
  • Numerical linear algebra

Keep exploring