your solution employing x = inv(A)*d and x=A\d.
x12x2 + 3x3 = 0
-4x1 + x2 - 2x3 = -1
-3x16x2 + 2x3 = 2
Fig: 1