You are on page 1of 3

Your matrix

X1 X2 X3 X4 b

1 2 -4 12 -10 58

2 -1 2 -3 2 -14

3 2 -4 9 -6 44

Find the pivot in the 1st column (inversing the sign in the whole row) and swap the 2nd and the 1st rows

X1 X2 X3 X4 b

1 1 -2 3 -2 14

2 2 -4 12 -10 58

3 2 -4 9 -6 44

Multiply the 1st row by 2

X1 X2 X3 X4 b

1 2 -4 6 -4 28

2 2 -4 12 -10 58

3 2 -4 9 -6 44

Subtract the 1st row from the 2nd row

X1 X2 X3 X4 b

1 2 -4 6 -4 28

2 0 0 6 -6 30

3 2 -4 9 -6 44

Subtract the 1st row from the 3rd row and restore it

X1 X2 X3 X4 b

1 1 -2 3 -2 14

2 0 0 6 -6 30

3 0 0 3 -2 16
Make the pivot in the 3rd column by dividing the 2nd row by 6

X1 X2 X3 X4 b

1 1 -2 3 -2 14

2 0 0 1 -1 5

3 0 0 3 -2 16

Multiply the 2nd row by 3

X1 X2 X3 X4 b

1 1 -2 3 -2 14

2 0 0 3 -3 15

3 0 0 3 -2 16

Subtract the 2nd row from the 1st row

X1 X2 X3 X4 b

1 1 -2 0 1 -1

2 0 0 3 -3 15

3 0 0 3 -2 16

Subtract the 2nd row from the 3rd row and restore it

X1 X2 X3 X4 b

1 1 -2 0 1 -1

2 0 0 1 -1 5

3 0 0 0 1 1

Find the pivot in the 4th column in the 3rd row

X1 X2 X3 X4 b

1 1 -2 0 1 -1

2 0 0 1 -1 5

3 0 0 0 1 1
Subtract the 3rd row from the 1st row

X1 X2 X3 X4 b

1 1 -2 0 0 -2

2 0 0 1 -1 5

3 0 0 0 1 1

Multiply the 3rd row by -1

X1 X2 X3 X4 b

1 1 -2 0 0 -2

2 0 0 1 -1 5

3 0 0 0 -1 -1

Subtract the 3rd row from the 2nd row and restore it

X1 X2 X3 X4 b

1 1 -2 0 0 -2

2 0 0 1 0 6

3 0 0 0 1 1

You might also like