Writing the system as AX=B:
A=2101−231−1−5,X=xyz,B=1239
Step 1: the determinant. Expanding along the first row,
∣A∣=(2)(13)−(1)(−5)+(1)(3)=34
Since ∣A∣=34=0, A−1 exists and the system has a unique solution X=A−1B.
Step 2: the cofactors.
A11=+−23−1−5=13
A12=−10−1−5=5
A13=+10−23=3
A21=−131−5=8
A22=+201−5=−10
A23=−2013=−6
A31=+1−21−1=1
A32=−211−1=3
A33=+211−2=−5
Step 3: the adjoint (transpose of the cofactor matrix):
adjA=13538−10−613−5
Step 4: solve.
X=34113538−10−613−51239=341(13)(1)+(8)(23)+(1)(9)(5)(1)+(−10)(23)+(3)(9)(3)(1)+(−6)(23)+(−5)(9)=3413417−51=121−23
Hence x=1,y=21,z=−23.
Check: (2)(1)+(1)(21)+(1)(−23)=1; (1)(1)+(−2)(21)+(−1)(−23)=23; (0)(1)+(3)(21)+(−5)(−23)=9. ✓