ELIAS EBNER

  • Home
  • Blog
  • Courses
  • About

Linear Algebra

  1. Vectors
    1. Scalars
    2. Vectors vs Sets
    3. Addition and Subtraction
    4. Scalar Multiplication
    5. Zero Vectors
    6. Linear Combinations
    7. Real Dot Product
    8. Length of a Vector
    9. Orthogonal Vectors
    10. Parallel Vectors
    11. Angle Between Vectors
    12. Unit Vectors
  2. Matrices
    1. Notation
    2. Indexing
    3. Submatrices
    4. Matrix-by-Vector Product
    5. Addition and Subtraction
    6. Scalar Multiplication
    7. Transpose
    8. Symmetries
    9. Matrix Multiplication
    10. Identity Matrix
    11. Non-Negative Integer Powers
    12. Reverse Order Law of Transposition
  3. Linear Systems
    1. Inverse Matrices
    2. Singular Matrices
    3. Linear Dependence
    4. Solutions
  4. Planes
    1. Vector Cross Product
  5. Gaussian Elimination
Linear Algebra ›Gaussian Elimination

Gaussian Elimination - Introduction

Gaussian elimination is a systematic process (algorithm) to solve any linear system. On top of being systematic, it is relatively simple and allows for finding the solution to a linear system quite quickly compared to traditional methods commonly learned in high school.

Before we get into the actual steps, it’s important that we lay the correct foundation.

Upper Triangular Matrices

A triangular matrix is a square matrix where everything on one side of the main diagonal are zero entries. The main diagonal of a matrix is the diagonal going from the top left to the bottom right of the matrix.

An upper triangular matrix specifically is a triangular matrix where the non-zero entries are found above - and on - the diagonal, and the zero entries are found below the diagonal.

Here is an example of a 3×33 \times 33×3 upper triangular matrices:

[231054007].\begin{bmatrix} 2 & 3 & 1 \\ 0 & 5 & 4 \\ 0 & 0 & 7 \end{bmatrix}.​200​350​147​​.

As you can see, in the bottom left (below the diagonal) we only find 000s. All other entries can be non-zero (they don’t have to, they could also be 000).

Here is a 4×44 \times 44×4 upper triangular matrix:

[12340567008900010].\begin{bmatrix} 1 & 2 & 3 & 4 \\ 0 & 5 & 6 & 7 \\ 0 & 0 & 8 & 9 \\ 0 & 0 & 0 & 10 \end{bmatrix}.​1000​2500​3680​47910​​.

Lower Triangular Matrices

It is less vital for Gaussian elimination, but for the sake of completion I would like to mention that there is also the concept of lower triangular matrices, which is the same idea, but the zero entries are now above the main diagonal.

For example:

[10002300456078910].\begin{bmatrix} 1 & 0 & 0 & 0 \\ 2 & 3 & 0 & 0 \\ 4 & 5 & 6 & 0 \\ 7 & 8 & 9 & 10 \end{bmatrix}.​1247​0358​0069​00010​​.

The Zero Matrix

By definition, the zero matrix is an upper triangular matrix and a lower triangular matrix at the same time, since the requirement for an upper triangular matrix is to have all zeros below the main diagonal and for a lower triangular matrix the requirement is to have all zeros above the main diagonal. The zero matrix has zeros everywhere, so it is both at the same time.

The Idea of Gaussian Elimination

The goal of Gaussian elimination is to reduce any given linear system to an upper triangular system (which is just a linear system with an upper triangular matrix).

This is convenient because the next step (which we will see is called back substitution) is very fast once we have an upper triangular system.

Here is a quick overview:

Take the linear system

{x+y=52x+3y=11.\begin{cases} x + y = 5 \\ 2x + 3y = 11. \end{cases}{x+y=52x+3y=11.​

Through Gaussian elimination, this can be reduced to the system

{x+y=5y=1.\begin{cases} x + y = 5 \\ y = 1. \end{cases}{x+y=5y=1.​

which is equivalent to the system we started with (i.e. it has the same solution).

And then the process of back substitution involves substituting the known variables back into the equations from bottom to top. Right now we know that y=1y = 1y=1, and there is only one equation left. We substitute for y=1y = 1y=1 in the first equation to get

{x+1=5y=1{x=4y=1.\begin{align*} &\begin{cases} x + 1 = 5 \\ y = 1 \end{cases} \\ &\begin{cases} x = 4 \\ y = 1. \end{cases} \end{align*}​{x+1=5y=1​{x=4y=1.​​

The system is now solved. The solution is

x=4,y=1.x = 4, \quad y = 1.x=4,y=1.

This is not supposed to be a comprehensive guide, just an introduction to what’s ahead.

Previous
Vector Cross Product
This website does not collect personal data, does not use cookies, and does not perform any tracking.