Je bent je ingevulde velden bij deze pagina aan het verwijderen. Ben je zeker dat je dit wilt doen?
You are erasing your filled-in fields on this page. Are you sure that is what you want?
Nieuwe Versie BeschikbaarNew Version Available
Er is een update van deze pagina. Als je update naar de meest recente versie, verlies je mogelijk je huidige antwoorden voor deze pagina. Hoe wil je verdergaan ?
There is an updated version of this page. If you update to the most recent version, then your current progress on this page will be erased. Regardless, your record of completion will remain. How would you like to proceed?
In Section LinSystems we introduced Gaussian Elimination as a means of transforming a system of linear equations into
triangular form with the ultimate goal of producing an equivalent system of linear equations which is easier to
solve. If we take a step back and study the process, we see that all of our moves are determined entirely by
the coefficients of the variables involved, and not the variables themselves. Much the same thing happened
when we studied long division in Section Polydivision. Just as we developed synthetic division to streamline that process,
in this section, we introduce a similar bookkeeping device to help us solve systems of linear equations, the
matrix.
A matrix as a rectangular array of real numbers. We typically enclose matrices with ‘square brackets’ of the likes of ‘\(\left [ \right .\)’ and ‘\(\left . \right ]\)’,
and we size matrices by the number of rows and columns they have. For example, the size (sometimes called the dimension)
of
is \(2 \times 3\) because it has \(2\) rows and \(3\) columns. The individual numbers in a matrix are called its entries and are usually labeled with
double subscripts: the first tells which row the element is in and the second tells which column it is in. The rows are numbered
from top to bottom and the columns are numbered from left to right. Matrices themselves are usually denoted by
uppercase letters (\(A\), \(B\), \(C\), etc.) while their entries are usually denoted by the corresponding letter. So, for instance, if we
have
then \(a_{11} = 3\), \(a_{12} = 0\), \(a_{13} = -1\), \(a_{21} = 2\), \(a_{22} = -5\), and \(a_{23} = 10\). We shall explore matrices as mathematical objects with their own algebra in Section MatArithmetic and introduce
them here solely as a bookkeeping device. Consider the system of linear equations from number 2 in Example
GaussEqnEx
We encode this system into a matrix by assigning each equation to a corresponding row. Within that row, each variable and
the constant gets its own column, and to separate the variables on the left hand side of the equation from the constants on the
right hand side, we use a vertical bar, \(|\). Note that in \(E2\), since \(y\) is not present, we record its coefficient as \(0\). The matrix associated
with this system is
This matrix is called an augmented matrix because the column containing the constants is appended to the matrix containing
the coefficients. (We shall study the coefficient and constant matrices separately in Section MatArithmetic.) To solve this system, we
can use the same kind operations on the rows of the matrix that we performed on the equations of the system. More
specifically, we have the following analog of Theorem equationmoves below.
Row Operations: Given an augmented matrix for a system of linear equations, the following row operations produce an
augmented matrix which corresponds to an equivalent system of linear equations.
Interchange any two rows.
Replace a row with a nonzero multiple of itself. (That is, the row obtained by multiplying each entry in the
row by the same nonzero number.)
Replace a row with itself plus a nonzero multiple of another row. (Where we add entries in corresponding
columns.)
As a demonstration of the moves in Theorem rowops, we revisit some of the steps that were used in solving the systems of linear
equations in Example GaussEqnEx of Section LinSystems. The reader is encouraged to perform the indicated operations on the rows of the
augmented matrix to see that the machinations are identical to what is done to the coefficients of the variables in
the equations. We first see a demonstration of switching two rows using the first step of part 1 in Example
GaussEqnEx.
The matrix equivalent of ‘triangular form’ is row echelon form. The reader is encouraged to refer to Definition systemtriangularform for comparison.
Note that the analog of ‘leading variable’ of an equation is ‘leading entry’ of a row. Specifically, the first nonzero entry (if it
exists) in a row is called the leading entry of that row.
A matrix is said to be in row echelon form provided all of the following conditions hold:
The first nonzero entry in each row is \(1\).
The leading \(1\) of a given row must be to the right of the leading \(1\) of the row above it.
Any row of all zeros cannot be placed above a row with nonzero entries.
To solve a system of a linear equations using an augmented matrix, we encode the system into an augmented matrix and
apply Gaussian Elimination to the rows to get the matrix into row-echelon form. We then decode the matrix and back
substitute. The next example illustrates this nicely.
Use an augmented matrix to transform the following system of linear equations into triangular form. Solve the system.
\[\left \{ \begin{array}{rcl} 3x - y + z & = & 8 \\ x + 2y - z & = & 4 \\ 2x+ 3y - 4z & = & 10 \\ \end{array} \right .\]
Solution. We first encode the system into an augmented matrix.
Thinking back to Gaussian Elimination at an equations level, our first order of business is to get \(x\) in \(E1\) with a coefficient of \(1\). At the
matrix level, this means getting a leading \(1\) in \(R1\). This is in accordance with the first criteria in Definition rowechelonform. To that end, we
interchange \(R1\) and \(R2\).
Our next step is to eliminate the \(x\)’s from \(E2\) and \(E3\). From a matrix standpoint, this means we need \(0\)’s below the leading \(1\) in \(R1\). This
guarantees the leading \(1\) in \(R2\) will be to the right of the leading \(1\) in \(R1\) in accordance with the second requirement of Definition
rowechelonform.
We get \(z=-1\), \(y = \frac {4}{7} z + \frac {4}{7} = \frac {4}{7}(-1)+\frac {4}{7} = 0\) and \(x = -2y+z+4 = -2(0)+(-1)+4 = 3\) for a final answer of \((3,0,-1)\). We leave it to the reader to check. □
As part of Gaussian Elimination, we used row operations to obtain \(0\)’s beneath each leading \(1\) to put the matrix into row echelon
form. If we also require that \(0\)’s are the only numbers above a leading \(1\), we have what is known as the reduced row echelon
form of the matrix.
A matrix is said to be in reduced row echelon form provided both of the following conditions hold:
The matrix is in row echelon form.
The leading \(1\)s are the only nonzero entry in their respective columns.
Of what significance is the reduced row echelon form of a matrix? To illustrate, let’s take the row echelon form from Example GaussExMatrix
and perform the necessary steps to put into reduced row echelon form. We start by using the leading \(1\) in \(R3\) to zero out the
numbers in the rows above it.
Note that in the previous discussion, we could have started with \(R2\) and used it to get a zero above its leading \(1\) and then done the
same for the leading \(1\) in \(R3\). By starting with \(R3\), however, we get more zeros first, and the more zeros there are, the faster the
remaining calculations will be. (Carl also finds starting with \(R3\) to be more symmetric, in a purely poetic way.) It is also
worth noting that while a matrix has several (infinite, in fact) row echelon forms, it has only one reduced row
echelon form. The process by which we have put a matrix into reduced row echelon form is called Gauss-Jordan
Elimination.
Solve the following system using an augmented matrix. Use Gauss-Jordan Elimination to put the augmented matrix into
reduced row echelon form.
The matrix is now in row echelon form. To get the reduced row echelon form, we start with the last leading \(1\) we produced and
work to get \(0\)’s above it.
We see \(x_4\) is free and assign it the parameter \(t\). We obtain \(x_3 = -\frac {5}{24} t + \frac {35}{24}\), \(x_2 = \frac {1}{4} t + \frac {3}{4}\), and \(x_1 = \frac {5}{12}t - \frac {5}{12}\). Our solution is \(\left \{ \left ( \frac {5}{12}t - \frac {5}{12}, \frac {1}{4} t + \frac {3}{4}, -\frac {5}{24} t + \frac {35}{24}, t \right ) : -\infty < t < \infty \right \}\) which we leave to the reader to
check. □
Like all good algorithms, putting a matrix in row echelon or reduced row echelon form can easily be programmed into a
calculator, and, doubtless, your graphing calculator has such a feature. We make use of thus feature in next example to avoid
tedious arithmetic.
Find the quadratic function passing through the points \((-1,3)\), \((2,4)\), \((5,-2)\).
Solution. According to Definition quadraticfunction, a quadratic function has the form \(f(x) =ax^2+bx+c\) where \(a \neq 0\). Our goal is to find \(a\), \(b\) and \(c\) so that the three given
points are on the graph of \(f\).
Since \((-1,3)\) is on the graph of \(f\), we now \(f(-1) = 3\). This gives \(a(-1)^2+b(-1) + c = 3\), or \(a-b+c=3\). This last equation is a linear equation with the variables \(a\), \(b\) and \(c\). Similarly, if
the point \((2,4)\) is on the graph of \(f\), then \(f(2) = 4\), so \(4a+2b+c = 4\). Lastly, the point \((5,-2)\) is on the graph of \(f\) gives us \(25a+5b+c = -2\). Putting these together, we obtain a
system of three linear equations, which we encode into the matrix below.
Using a calculator or graphing utility, (We’ve tortured you enough already with fractions in this exposition!) we find \(a = -\frac {7}{18}\), \(b = \frac {13}{18}\)
and \(c = \frac {37}{9}\). Hence, the one and only quadratic which fits the bill is \(f(x) = -\frac {7}{18} x^2 + \frac {13}{18} x + \frac {37}{9}\). To verify this analytically, we see that \(f(-1) = 3\), \(f(2) = 4\), and
\(f(5) = -2\). We can use the calculator to check our solution as well by plotting the three data points and the function
\(f\).