How do you solve x+3y-z=13, 2x-5z=23, 4x-y-2z=14?

1 Answer
Oct 8, 2015

x=366/114x=366114

y=738/342y=738342

z=(-189)/57z=18957

Explanation:

x+3y-z=13x+3yz=13 ------------------(1)
2x-5z=232x5z=23------------------(2)
4x-y-2z=144xy2z=14 ----------------(3)

Solve equations (1) and (2)

x+3y-z=13x+3yz=13 ------------------(1)
2x-5z=232x5z=23------------------(2)

Multiply equation (1) with 22 to eliminate xx term

x+3y-z=13 xx 2x+3yz=13×2 ------------------(1)
2x+0y-5z=232x+0y5z=23------------------(2)

2x+6y-2z=26 2x+6y2z=26 ------------------(1) Subtract (2) from (1)
2x+0y-5z=232x+0y5z=23------------------(2)
6y+3z=36y+3z=3 ----------------(4)

Solve equations (2) and (3) and eliminate xx term

2x+0y-5z=232x+0y5z=23------------------(2)
4x-y-2z=144xy2z=14 ----------------(3)

Multiply (2) with 22

2x+0y-5z=23 xx 22x+0y5z=23×2------------------(2)
4x-y-2z=144xy2z=14 ----------------(3)

4x+0y-10z=464x+0y10z=46------------------(2) Subtract (3) from (2)
4x-y-2z=144xy2z=14 ----------------(3)
y-8z=32y8z=32 ----------------(5)

Take equations (4) and (5)

6y+3z=36y+3z=3 ----------------(4)
y-8z=32y8z=32 ----------------(5)

Multiply equation (5) with 66

6y+3z=36y+3z=3 ----------------(4) Subtract (5) from (4)
6y-54z=1926y54z=192 ----------------(5)
57z=-18957z=189

z=(-189)/57z=18957

Substitute the value of zz in equation (2)

2x-5z=232x5z=23------------------(2)
2x-5((-189)/57)=232x5(18957)=23------------------(2)
2x+945/57=232x+94557=23------------------(2) Multiply both sides by 5757
114x+945=1311114x+945=1311-------- Solve it for xx
114x=1311-945=366114x=1311945=366

x=366/114x=366114

Substitute the value of xx and zz in equation (1)

x+3y-z=13x+3yz=13 ------------------(1)
366/114+3y-(-189)/57=13366114+3y18957=13
366/114+3y+189/57=13366114+3y+18957=13 ---- Multiply both sides with 114114
366+342y+378=1482366+342y+378=1482-------solve it for yy

744+342y=1482744+342y=1482
342y=1482-744=738342y=1482744=738

y=738/342y=738342