解: 增广矩阵 =
3 2 0 0 1
1 3 2 0 0
0 1 3 2 0
0 0 1 3 -2
r2-2r4,r3-3r4
3 2 0 0 1
1 3 0 -6 4
0 1 0 -7 6
0 0 1 3 -2
r1-2r3,r2-3r3
3 0 0 14 -11
1 0 0 15 -14
0 1 0 -7 6
0 0 1 3 -2
r1-3r2
0 0 0 -31 31
1 0 0 15 -14
0 1 0 -7 6
0 0 1 3 -2
r1*(-1/31),r2-15r1,r3+7r1,r4-3r1
0 0 0 1 -1
1 0 0 0 1
0 1 0 0 -1
0 0 1 0 1
交换行
1 0 0 0 1
0 1 0 0 -1
0 0 1 0 1
0 0 0 1 -1
方程组的解为: (1,-1,1,-1)^T.