The Gauss method.
We write the system in the form:
( 1 2 3 3 − 1 2 4 − 6 − 4 ) = ( 5 8 − 2 ) \left( \begin{array}{cc} 1 & 2 & 3 \\ 3 & -1 & 2 \\ 4 & -6 & -4 \end{array} \right) = \left( \begin{array}{c} 5 \\ 8 \\ -2 \end{array} \right) ⎝ ⎛ 1 3 4 2 − 1 − 6 3 2 − 4 ⎠ ⎞ = ⎝ ⎛ 5 8 − 2 ⎠ ⎞
We multiply the first row in (3). Multiplying the second row by (-1). Add the second line to the first:
( 0 7 7 3 − 1 2 4 − 6 − 4 ) = ( 7 8 − 2 ) \left( \begin{array}{ccc} 0 & 7 & 7 \\ 3 & -1 & 2 \\ 4 & -6 & -4 \end{array} \right) = \left( \begin{array}{c} 7 \\ 8 \\ -2 \end{array} \right) ⎝ ⎛ 0 3 4 7 − 1 − 6 7 2 − 4 ⎠ ⎞ = ⎝ ⎛ 7 8 − 2 ⎠ ⎞
Multiplying the second row in (4). Multiplying the 3-th row in (3). Add the 3rd row to the second:
( 0 7 7 0 14 20 4 − 6 − 4 ) = ( 7 38 − 2 ) \left( \begin{array}{ccc} 0 & 7 & 7 \\ 0 & 14 & 20 \\ 4 & -6 & -4 \end{array} \right) = \left( \begin{array}{c} 7 \\ 38 \\ -2 \end{array} \right) ⎝ ⎛ 0 0 4 7 14 − 6 7 20 − 4 ⎠ ⎞ = ⎝ ⎛ 7 38 − 2 ⎠ ⎞
We multiply the first row in (2). Multiplying the second row by (-1). Add the second line to the first:
( 0 0 − 6 0 14 20 4 − 6 − 4 ) = ( − 24 38 − 2 ) \left( \begin{array}{cc} 0 & 0 & -6 \\ 0 & 14 & 20 \\ 4 & -6 & -4 \end{array} \right) = \left( \begin{array}{c} -24 \\ 38 \\ -2 \end{array} \right) ⎝ ⎛ 0 0 4 0 14 − 6 − 6 20 − 4 ⎠ ⎞ = ⎝ ⎛ − 24 38 − 2 ⎠ ⎞
From the first line express x3 --- c
x 3 = − 24 − 6 = 4 x_3 = \frac{-24}{-6} = 4 x 3 = − 6 − 24 = 4
From the second row express x2 --- b
x 2 = 38 − 20 ⋅ 4 14 = − 42 14 = − 3 x_2 = \frac{38 - 20 \cdot 4}{14} = \frac{-42}{14} = -3 x 2 = 14 38 − 20 ⋅ 4 = 14 − 42 = − 3
From the 3rd row express x1 --- a
x 1 = − 2 − ( − 6 ) ⋅ ( − 3 ) − ( − 4 ) ⋅ 4 4 = − 4 4 = − 1 x_1 = \frac{-2 - (-6) \cdot (-3) - (-4) \cdot 4}{4} = \frac{-4}{4} = -1 x 1 = 4 − 2 − ( − 6 ) ⋅ ( − 3 ) − ( − 4 ) ⋅ 4 = 4 − 4 = − 1 b = − 3 b = -3 b = − 3