From equations to a matrix
By Amiro
How a system of linear equations becomes a matrix: the numbers are lifted out of the equations into a table, beside a column of unknowns and a column of right-hand sides, so the whole system reads A x = b.
A lesson of Linear Algebra
Transcript
- 0:00 What is a system of equations really made of? Take the two from last time. Two x plus y equals four is a line, and x plus two y equals five is another. They cross at one point, one comma two: the solution, the one pair of numbers that makes both equations true.
- 0:18 Now look at what is actually written. There are letters, x and y. There are plus signs and equals signs. And there are numbers. Any other system of two equations in x and y would use the same two letters. What changes from one system to the next is the numbers. So the numbers are what make this system this one.
- 0:40 But one number is hiding. How many y's are there in two x plus y? Just one. We simply don't write it. The same goes for the x in the second equation. Let's write those ones in, so every number is out in the open.
- 0:55 Now let's lift the numbers out and keep them together. The four numbers on the left go into a square table, each in the same place it had in the equations. The unknowns, x and y, go into a column of their own. And the numbers on the right, four and five, make a second column.
- 1:12 Each piece has a name. The square table of numbers is a matrix, and we'll call this one A. The column of unknowns we'll call bold x, and the column on the right, bold b. Put the three together, and the whole system reads: A x equals b.
- 1:29 But does this short line really say the same as the two equations? Let's read it back. Take the first row of A, two and one, and the column x, y. Multiply across and add up, two times x, plus one times y. That has to equal the first number of b, four. That's our first equation. The second row does the same: one times x plus two times y equals five. Each row of A, times the column, gives back one equation.
- 2:00 So each row of the matrix is one equation. And each column belongs to one unknown. The first column holds every number that multiplies x, and the second holds every number that multiplies y. Two equations in two unknowns make a matrix with two rows and two columns. We call it a two by two matrix.
- 2:20 Your turn. Here's a new system: x plus y equals three, and y equals one. What is its matrix? Pause the video and write it down.
- 2:35 Here it is. One and one in the first row, and zero and one in the second. Where does that zero come from? The second equation has no x at all, and no x means zero times x. A missing term isn't a blank in the matrix. It's a zero. And on the left, its two lines cross at two comma one.
- 2:55 This works for any number of equations. Here are three equations in three unknowns, x, y and z. Lift out their numbers, and you get a matrix with three rows and three columns. We'll meet this system again, when we learn to solve systems like it step by step.
- 3:12 So here's what we found. A system of equations is really its numbers. Gather them into a matrix A, the unknowns into a column x, and the right-hand sides into a column b. Then the whole system becomes one short line: A x equals b.
- 3:29 One last look at A. Its columns, two, one and one, two, are pairs of numbers. In the next lesson, pairs like these become arrows: two steps across and one up, one step across and two up. And that's where the pictures begin.
More explanations on Sifr