How do you use the matrix method?
do you mean the metric system?
did you
yes, sorry had to step away from the computer.
But no Matrics like in Algebra 2
It's similar to the substitution method
oh i was going to say goin slow
Wouldn't happen to know how to do that anyway would you? lol
no im in the 8th grade sowwy
but mostlikely if you google it it will know
Lol s'okay. Good luck with your work then. :)
thanks you too goos luck finding it
thnx
np
Matrix method for solving systems of equations?
Yea
How many equations are you talking about?
3
But I need to be taught how to do it with two as well (unless by some miricle I understand when you explain how to do three. lol)
If you can do it with three equations, then you can definitely do it with two!
Alright, do you have an example you want to work on, or should I make something up?
Those aren't equations, and the question is just asking for the element in position 1,2
We can use that as a coefficient matrix if you like and make up a constant matrix to go with it.
Sure.
Ok, I'll make this easy, the constant matrix will be \[\large \left(\begin{matrix}-2 \\ 5 \\ 37\end{matrix}\right)\]
So we'll use \[\left[\begin{matrix}8 & -2 & -2 \\ 2 & 6 & -3 \\ 9 & 5 & 6 \end{matrix}\right]\left[\begin{matrix}x & y & z \end{matrix}\right]=\left[\begin{matrix}-2 \\ 5 \\ 37 \end{matrix}\right]\] \[\large \matrix \]
This represents the equations 8x -2y -2z = -2 2x +6y -3z = 5 9x +5y +6z = 37 Cool so far?
Yeah I get that.
Great, so I'm going to condense the matrix equation into a single augmented matrix, then we are going to do a series of row operations to get it what is called reduced-row echelon form.
\[\large \left[ \begin{matrix} 8 & -2 & -2 & -2 \\ 2 & 6 & -3 & 5 \\ 9 & 5 & 6 & 37\end{matrix} \right]\]
The first step is to make the number in the upper left corner into 1.
The easiest way to do that is to divide everything in row one by 8.
Alright =-0.25
Right, but I'll show another trick that might make things easier.
Wait is row 1 going down?
What do you mean by "going down?"
oh okay
I'm going to swap rows one and two to get a smaller number in the first position to start \[\large \left[ \begin{matrix} 2 & 6 & -3 & 5 \\ 8 & -2 & -2 & -2 \\ 9 & 5 & 6 & 37\end{matrix} \right]\]
Now, to get a 1 in the first pivot, I'll divide by 2. \[\large \left[ \begin{matrix} 1 & 3 & -3/2 & 5/2 \\ 8 & -2 & -2 & -2 \\ 9 & 5 & 6 & 37\end{matrix} \right]\]
The next step is to turn everything else in that first column into a zero. This will be done by subtracting multiples of row one from rows two and three.
Can you see a way to do that? Remember, this is very similar to elimination method with systems of equations. (actually it is exactly the same thing, just in a different notation.)
(Also, a warning: if your arithmetic skills are a little shaky, you might not like where this is going, there is going to be a lot of operations with fractions)
Damn. xD Well I'll try to keep up with it. Would it still be simple if I converted the fractions to decimal tho?
That depends on your preference and if you're using a calculator to help you. I use fractions and do the arithmetic in my head. To move this along, I'll just show the next step. To get a zero under that first pivot, I'm going to subtract 8 times row one from frow two: \[\large \left[ \begin{matrix} 1 & 3 & -3/2 & 5/2 \\ 0 & -26 & 10 & -22 \\ 9 & 5 & 6 & 37\end{matrix} \right]\] Make sure you understand how I got the above matrix.
So you used the same 8 from earlier to do that?
Sortof, it works out like that coincidentally here. The important thing is to see that I had an 8 in the first position of row two and I wanted to eliminate it. There is a 1 right above it so if I multiply that 1 by 8 and subtract that from the 8 in the second row, I get the zero that I want, but I have to do the same thing to everything else in the row.
I think it's also a good time to show what the ultimate goal looks like. We want to continue to do this series of row operations until the matrix looks like this. \[\large \left[ \begin{matrix} 1 & 0 & 0 & c_1 \\ 0 & 1 & 0 & c_2 \\ 0 & 0 & 1 & c_3\end{matrix} \right]\]
(c1, c2, c3) will be the solutions for (x, y, z)
Alright, so we still have \[\large \left[ \begin{matrix} 1 & 3 & -3/2 & 5/2 \\ 0 & -26 & 10 & -22 \\ 9 & 5 & 6 & 37\end{matrix} \right]\] What do you suppose we should do to get a zero in the first position of row three?
Sorry window froze and we multiply it by the others right?
Have to multiply something by something and add that to row three.
It'll be very similar to what was done to eliminate that 8 from row two.
1x9 like the 8?
Yep, If you multiply row one by 9 and subtract that from row three, then you'll get the following \[\large \left[ \begin{matrix} 1 & 3 & -3/2 & 5/2 \\ 0 & -26 & 10 & -22 \\ 0 & -22 & 39/2 & 29/2\end{matrix} \right]\] Make sure you're also checking my arithmetic at each step. Like I said, I'm adding these fractions in my head, so I might be making mistakes...
okay. but what for the steps that don't start with one? Can we use the one to make the three into a one or...?
You mean the other columns? We'll get to those next. If you can verify for me that those numbers look correct to you, then I'll show another simplifying step to make life easier.
There is an algorithm to it - a repeated process of similar steps until it's all broken down - kinda like long division or synthetic division: multiply, add; multiply, add; multiply, add; etc. until it's done.
Okay then, btw your math seems right to me.
Ok, so here's the simplifying step (this is optional, but might make it look a little prettier before we go on): See how all the numbers in row two are even? I can divide row two by 2 to make the numbers smaller. Likewise, in row three, there are some fractions with denominators of 2, so I can multiply row three by 2 to clear the fractions. Dig it?
Yea. A lot simplilar like that.
So now the matrix looks like \[\large \left[ \begin{matrix} 1 & 3 & -3/2 & 5/2 \\ 0 & -13 & 5 & -11 \\ 0 & -44 & 39 & 29\end{matrix} \right]\]
Ok, now let's get on with column two. First step is to make that -13 into a 1 (that's the second pivot).
Unfortunately, the best way to do that is to divide everything in row two by -13. That will make fractions with 13 in the denominator, which is a bit of a drag, but whatever; they're numbers and we'll treat them the same as any other numbers.
\[\large \left[ \begin{matrix} 1 & 3 & -3/2 & 5/2 \\ 0 & 1 & -5/13 & 11/13 \\ 0 & -44 & 39 & 29\end{matrix} \right]\] Ewww, I know, but it gets the job done.
Here is where using a calculator and decimals will fail you as those fractions have endlessly repeating blocks of decimal digits.
Anyway, onward. Now, usually, since I like to go all the way down to reduced-row echelon form, I'll go ahead and make that 3 in row one into a zero, but I think we'll take care of row three first, so I can talk about row echelon form.
Alright
So, how do you figure we can change that -44 in row three into a zero?
1x-44 + 44? The reverse of what we did for the others.
Be more specific, though; I want to make sure you got the process.
We had to multiply a number by one and then cancle it out by adding it's inverse like the 8 with -8. Now we already have the -44 so we need to cancle it out with +44
Ok, good, but make sure you know that the actual operation is to take 44 times row two and add that to row three.
That operation leads to \[\large \left[ \begin{matrix} 1 & 3 & -3/2 & 5/2 \\ 0 & 1 & -5/13 & 11/13 \\ 0 & 0 & 287/13 & 861/13\end{matrix} \right]\] Which looks ugly, but remember: now you can multiply row three by 13 to cancel the fractions.
\[\large \left[ \begin{matrix} 1 & 3 & -3/2 & 5/2 \\ 0 & 1 & -5/13 & 11/13 \\ 0 & 0 & 287 & 861\end{matrix} \right]\] And for a really nice trick, try dividing everything in row three by 287 to get a 1 in that third pivot.
How did doing that remove 13 asthe denominator from 287?
If you multipy 287/13 by 13, the 13 cancels out.
Ahhh makes sense.
Now, after this step \[\large \left[ \begin{matrix} 1 & 3 & -3/2 & 5/2 \\ 0 & 1 & -5/13 & 11/13 \\ 0 & 0 & 1 & 3\end{matrix} \right]\] You can actually quit using matrices, and put this back into equations and do back substitution. x + 3y -3z/2 = 5/2 y - 5z/13 = 11/13 z = 3.
That process is called Gaussian Elimination and gets the matrix in 'row echelon form.' You can also continue the same algorithm of row operations to get the matrix into 'reduced-row echelon form' then it'll be completely solved without ever having to look at the equations again.
I hope you have the idea. I need to go now. If you want to continue to reduced-row echelon form from \[\large \left[ \begin{matrix} 1 & 3 & -3/2 & 5/2 \\ 0 & 1 & -5/13 & 11/13 \\ 0 & 0 & 1 & 3\end{matrix} \right]\] First change that 3 in a12 to a zero, then get zeros in a13 and a23. Once you do that, the solutions will be in vector form in the fourth column. Good luck.
See here http://tutorial.math.lamar.edu/Classes/LinAlg/SolvingSystemsOfEqns.aspx and here http://www.youtube.com/watch?v=ZK3O402wf1c for more info.
Thanks for all the help.
Join our real-time social learning platform and learn together with your friends!