An extremely useful application of matrices is for solving systems of linear equations. Consider the following system of equations in its algebraic form.
a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3
This system of equations can be represented using vectors and their linear combination operations that we discussed in the previous exercise. We combine the coefficients of the same unknown variables, as well as the equation solutions, into vectors. These vectors are then scalar multiplied by their unknown variable and summed.
x⎣⎡a1a2a3⎦⎤+y⎣⎡b1b2b3⎦⎤+z⎣⎡c1c2c3⎦⎤=⎣⎡d1d2d3⎦⎤
Our final goal is going to be to represent this system in form Ax = b, using matrices and vectors. As we learned earlier, we can combine vectors to create a matrix, which we’ll do with the coefficient vectors to create matrix A. We can also convert the unknown variables into vector x. We end up with the following Ax = b form:
⎣⎡a1a2a3b1b2b3c1c2c3⎦⎤⎣⎡xyz⎦⎤=⎣⎡d1d2d3⎦⎤
Click below if you would like to see how these two expressions are equivalent:
⎣⎡a1a2a3b1b2b3c1c2c3⎦⎤⎣⎡xyz⎦⎤=x⎣⎡a1a2a3⎦⎤+y⎣⎡b1b2b3⎦⎤+z⎣⎡c1c2c3⎦⎤
Click to see proof
First Step: Matrix Multiplication
⎣⎡a1a2a3b1b2b3c1c2c3⎦⎤⎣⎡xyz⎦⎤=⎣⎡a1x+b1y+c1za2x+b2y+c2za3x+b3y+c3z⎦⎤
Second Step: Separate Terms
⎣⎡a1x+b1y+c1za2x+b2y+c2za3x+b3y+c3z⎦⎤=⎣⎡a1xa2xa3x⎦⎤+⎣⎡b1yb2yb3y⎦⎤+⎣⎡c1zc2zc3z⎦⎤
Third Step: Take out the Coefficients
⎣⎡a1xa2xa3x⎦⎤+⎣⎡b1yb2yb3y⎦⎤+⎣⎡c1zc2zc3z⎦⎤=x⎣⎡a1a2a3⎦⎤+y⎣⎡b1b2b3⎦⎤+z⎣⎡c1c2c3⎦⎤
Therefore, we can say:
⎣⎡a1a2a3b1b2b3c1c2c3⎦⎤⎣⎡xyz⎦⎤=x⎣⎡a1a2a3⎦⎤+y⎣⎡b1b2b3⎦⎤+z⎣⎡c1c2c3⎦⎤
We can also write Ax = b in the following form:
Ax=b→[A∣∣b]
This means we can write our Ax = b equation above as:
⎣⎡a1a2a3b1b2b3c1c2c3⎦⎤⎣⎡xyz⎦⎤=⎣⎡d1d2d3⎦⎤→⎣⎡a1a2a3b1b2b3c1∣∣d1c2∣∣d2c3∣∣d3⎦⎤
This is what is known as an augmented matrix, and we will use these in the following exercises to solve for linear systems!