Bareiss-Montante Method

A theoretical guide for solving systems of linear equations step by step.

What is the Bareiss-Montante method?

The Bareiss-Montante method is an elimination method used to solve systems of linear equations through an augmented matrix. Its objective is similar to Gauss-Jordan reduction: to transform the matrix into a form where the solution can be read clearly.

One advantage of this method is that it usually preserves integer values during the process, which makes the calculations cleaner. The method advances through a fixed number of stages based on the number of rows in the matrix.

Main formula

At each stage, the method uses the current pivot and the previous pivot to calculate the new values of the matrix.

Bareiss-Montante main formula

In the first stage, the previous pivot is equal to 1. After that, the previous pivot becomes the pivot from the stage before.

Augmented matrix

A system with n variables can be represented using an augmented matrix with n rows and n + 1 columns. The last column contains the constants from the right side of the equations.

Example of augmented matrix

Step-by-step procedure

  1. Select the pivot from the main diagonal. The pivot must be different from zero.
  2. Keep the pivot row unchanged.
  3. Turn the other values in the pivot column into zero.
  4. Calculate the rest of the new matrix using the Bareiss-Montante formula.
  5. Repeat the process with the next pivot.
  6. At the end, divide each row by its diagonal value to obtain the identity matrix.

Example

Using the same augmented matrix, the first step is to copy the pivot row and place zeros in the pivot column, except in the pivot position.

First pivot row and pivot column

Since this is the first stage, the previous pivot is 1. For example:

Calculation of a prime 22
First calculated value in the new matrix

The same formula is used for the next position:

Calculation of next matrix value
Second calculated value in the new matrix

The process continues by changing the row and column values according to the position being calculated.

Calculation of another matrix value
Third calculated value in the new matrix

After completing all the required positions, the first stage is finished.

First stage completed

Second stage

The second stage uses the matrix obtained from the previous step. The next pivot is selected from the main diagonal.

Second pivot row and column

Now the pivot is the second diagonal value, and the previous pivot is the pivot from the first stage.

Second stage first calculation
Second stage first calculated value

The same formula is repeated for the other positions that are not in the pivot row or pivot column.

Second stage next calculation
Second stage next calculated value

After repeating the process through the matrix, the second stage is completed.

Second stage completed

Third stage

The method continues with the next pivot. In this stage, the previous pivot is no longer 1, so the denominator in the formula changes.

Third pivot row and column
Third stage first calculation
Third stage first calculated value

The same process is repeated until every required value in the new matrix has been calculated.

Third stage next calculation
Third stage next calculated value

At the end of the Bareiss-Montante process, a diagonal matrix is obtained.

Final diagonal matrix

Final normalization

Finally, each row is divided by its diagonal value. This turns the coefficient matrix into the identity matrix and allows the solution to be read directly from the last column.

Normalized final matrix

Special cases

Infinitely many solutions

If a complete zero row appears, it means that at least one equation depends on the others. In this case, the system has free variables and therefore has infinitely many solutions.

Infinitely many solutions example

No solution

If the coefficients in a row are all zero but the augmented value is not zero, the system contains a contradiction. The left side is always zero, so it cannot be equal to a nonzero number.

No solution example