> For the complete documentation index, see [llms.txt](https://julienbeaulieu.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://julienbeaulieu.gitbook.io/wiki/sciences/math/linear-algebra/gaussian-elimination.md).

# Gaussian Elimination

&#x20;**Gaussian elimination** is an algorithm to solve systems of equations.

Process to solve problems:&#x20;

{% hint style="info" %}

* Determine a “pivot,” i.e. the top leftmost nonzero number that isn’t in a row/column already used. If necessary, scale this whole row to make the pivot entry 1.
* For each row  below the pivot row  multiply the pivot row by the leading entry and subtract:  Each row below the pivot row will be left with zeros in that column.
* Repeat until there are no more pivots. At this point, the matrix will have all 0s in the lower left triangle.
  {% endhint %}

For example, starting with the above matrix, we have

![](/files/-LeS-Uh3XigwxPb4R5El)

Here, the pivots are shown in blue. Now let’s look at that last row--the equation it represents is z = 1. Then we can find and directly.

**Gaussian elimination** provides solutions to matrix equations of the form **Ax = b** where **A** is the matrix of&#x20;

coefficients, **x** is the matrix of variables, **b** and is the matrix of RHSs (right hand side).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://julienbeaulieu.gitbook.io/wiki/sciences/math/linear-algebra/gaussian-elimination.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
