if you know how to multiply two matrices then always write them down.
Matrix[coefficient]*Matrix[variable] = [constant]
so here would be your matrix (being the coefficient matrix) multiply by the variable matrix
what should be the size of variable matrix (or how many variable are there)? ask yourself if I have a 3*4 matrix could it be multiply by a 2*1 matrix (only x and y as variable)?
Do you see the difference between this and your equations? You have to be careful about where each variable goes.
Now, if your equations had been correct, then (apart from your constantly renaming variables, and using 2 where you meant 5, and doing the arithmetic wrong) your work would have been (sort of) right ...
x - 3y + 4z = 7 ...(1)
y + 2z = 2 ...(2)
z = 5
plug z into eqn (2)
y + 2(5) = 2
y + 10 = 2
y = 2 - 10
y = -8
plug y into eqn (1)
x - 3(-8) + 4(5) = 7
x + 24 + 20 = 7
x + 44 = 7
x = 7 - 44
x = -37
x - 3y + 4z = 7 --> -37 - 3(-8) + 4(5) = 7 good
y + 2z = 2 --> -8 + 2(5) = 2 good
z = 5 good
And now you see what I meant by solving from the bottom up (which is not a standard term to my knowledge). There are more advanced ways to do all this in linear algebra (including what Jagulba has mentioned), but I assume you are just being introduced to matrix methods for solving a system, and have not learned things like matrix multiplication.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.