z. B. mit Gauß:
⎡ -1 -1 0 1 0 0 ⎤
⎢ 2 4 -1 0 1 0 ⎥
⎣ 0 1 2 0 0 1 ⎦
⎡ -1 -1 0 1 0 0 ⎤
⎢ 0 2 -1 2 1 0 ⎥ Z2 + 2 * Z1
⎣ 0 1 2 0 0 1 ⎦
⎡ -1 -1 0 1 0 0 ⎤
⎢ 0 2 -1 2 1 0 ⎥
⎣ 0 0 5/2 -1 -1/2 1 ⎦ Z3 - 1/2 * Z2
⎡ -1 -1 0 1 0 0 ⎤
⎢ 0 2 0 8/5 4/5 2/5 ⎥ Z2 + 2/5 * Z3
⎣ 0 0 5/2 -1 - 1/2 1 ⎦
⎡ -1 0 0 9/5 2/5 1/5 ⎤ Z1 + 1/2 * Z2
⎢ 0 2 0 8/5 4/5 2/5 ⎥
⎣ 0 0 5/2 -1 - 1/2 1 ⎦
Division durch die Elemente der Hauptdiagonalen
⎡ 1 0 0 -9/5 -2/5 -1/5 ⎤
⎢ 0 1 0 4/5 2/5 1/5 ⎥
⎣ 0 0 1 -2/5 -1/5 2/5 ⎦