Algebra · real student question

Solve the system x2 + 4x3 = -4, x1 + 3x2 + 3x3 = -2, 3x1 + 7x2 + 5x3 = 6.

Question

Solve the system x2+4x3=4x1+3x2+3x3=23x1+7x2+5x3=6\begin{aligned} x_2+4x_3 &= -4 \\ x_1+3x_2+3x_3 &= -2 \\ 3x_1+7x_2+5x_3 &= 6 \end{aligned}

Step-by-step solution

  1. Write the augmented matrix and fix the variable order. With columns for x1,x2,x3x_1,x_2,x_3 and the constants, the first equation has no x1x_1, so it contributes a leading 00: [014413323756]\left[\begin{array}{ccc|c} 0&1&4&-4\\ 1&3&3&-2\\ 3&7&5&6 \end{array}\right]

  2. Swap rows so the first pivot is a 1. Exchanging R1R_1 and R2R_2 puts a leading 11 in the top-left corner and avoids fractions later: [133201443756]\left[\begin{array}{ccc|c} 1&3&3&-2\\ 0&1&4&-4\\ 3&7&5&6 \end{array}\right]

  3. Clear below the first pivot. R3R33R1R_3 \leftarrow R_3-3R_1 gives [3,7,56]3[1,3,32]=[0,2,412][3,7,5\mid 6]-3[1,3,3\mid -2] = [0,-2,-4\mid 12], so the third row becomes 0,2,4120,-2,-4\mid 12. The second pivot is already 11 in R2R_2.

  4. Clear below the second pivot. R3R3+2R2R_3 \leftarrow R_3+2R_2 gives [0,2,412]+2[0,1,44]=[0,0,44][0,-2,-4\mid12]+2[0,1,4\mid-4] = [0,0,4\mid4]. Scaling by 14\tfrac14 gives [0,0,11][0,0,1\mid1], so x3=1x_3 = 1 - the matrix is now in row echelon form.

  5. Back-substitute by clearing above the pivots. R2R24R3R_2 \leftarrow R_2-4R_3 turns [0,1,44][0,1,4\mid-4] into [0,1,08][0,1,0\mid-8]; R1R13R3R_1 \leftarrow R_1-3R_3 turns [1,3,32][1,3,3\mid-2] into [1,3,05][1,3,0\mid-5]; finally R1R13R2R_1 \leftarrow R_1-3R_2 gives [1,0,019][1,0,0\mid19].

  6. Read off and verify the unique solution. The reduced matrix is the identity augmented by (19,8,1)(19,-8,1), so x1=19x_1=19, x2=8x_2=-8, x3=1x_3=1. Checking all three originals: 8+4(1)=4-8+4(1)=-4; 19+3(8)+3(1)=1924+3=219+3(-8)+3(1)=19-24+3=-2; 3(19)+7(8)+5(1)=5756+5=63(19)+7(-8)+5(1)=57-56+5=6. Three pivots for three unknowns means the solution is unique.

Answer

x1=19,x2=8,x3=1x_1 = 19, \quad x_2 = -8, \quad x_3 = 1

Need to solve a different problem like this? Open the solver →