m40 s12 Lecture4
m40 s12 Lecture4
DAGAN KARP
In our last lecture, we were introduced to the notion that matrices are useful tools for solving linear systems in two variables. In this lecture, we extend this to higher dimensions, point out key ideas and features, and prove a theorem which tells us how to detect innite solutions to our linear system based on its augmented matrix. Denition 1. A linear equation in Rn is of the form a1 x1 + a2 x2 + + an xn = b, where a1 , . . . , an , b are real numbers. Denition 2. An m n real matrix is an array of real numbers with m rows and n columns. a11 a12 a1n a21 a22 a2n . . .. . . . . . am1 am2 amn Denition 3. Let a11 x1 + a21 x2 + + a1n xn = b1 . . . am1 x1 + am2 x2 + + amn xn = bm be a system of m linear equations in Rn . Its augmented matrix is a11 a12 a1n b1 a21 a22 a2n b2 . . . .. . . . . . . . am1 am2 amn bm Remark 4. Note that it is easiest to solve a linear system if its augmented matrix is in a nice and friendly form. Denition 5. A matrix is in row echelon form if (1) any all-zero rows are at the bottom; and (2) in each nonzero row, the rst nonzero entry (leading term) is in a column to the left of any leading terms below it. Denition 6. A matrix is in reduced row echelon form if (1) it is in row echelon form;
Date: January 24, 2012. These are lecture notes for HMC Math 40: Introduction to Linear Algebra and roughly follow our course text Linear Algebra by David Poole.
1
(2) the leading entry in each nonzero row is 1; and (3) each column containing a leading 1 has zeros everywhere else. Denition 7. Gaussian Elimination is the process of solving a linear system by forming its augmented matrix, reducing to reduced row echelon form, and solving the equation (if the system is consistent). Example 8. Lets solve the linear system x + y 2z = 0 2x + 2y 3z = 1 3x + 3y + z = 7. We use Gaussian elimination. First we form the augmented matrix 1 1 2 0 2 2 3 1 . 3 3 1 7 Now, we reduce to reduced row echelon form using allowable moves (elementary row operations). 1 1 2 0 1 1 2 0 1 1 2 0 1 1 2 0 2 2 3 1 0 0 1 1 0 0 1 1 0 0 1 1 3 3 1 7 3 3 1 7 0 0 7 7 0 0 0 0 Therefore, we have x + y 2z = 0 z = 1. Denition 9. Variables corresponding to leading terms are called leading variables. The other variables are free variables. Example 10. In Example 8 above, the leading terms occur in positions (1, 1) and (2, 3). The corresponding variables are x and z. Thus x and z are leading variables in this linear system, and y is a free variable. Remark 11. Note that Gaussian elimination allows one to solve for leading variables in terms of the free variables. In Example 8, we have x = y 2 z = 1. Denition 12. Two matrices A and B are row equivalent if there is a sequence of elementary row operations taking A to B. Theorem 13. Two matrices A and B are row equivalent if and only if they can be reduced to the same row echelon form. Denition 14. The rank of a matrix is the number of nonzero rows in its row echelon form. Theorem 15 (Rank Theorem). Let A be the coefcient matrix of a system of linear equations in n variables. If the system is consistent, then number of free variables = n rank(A).
2
Example 16. In Example 8, we have 3 2 = 1. Denition 17. A system of linear equations is called homogeneous if the constant term in each equation is zero. Theorem 18. A homogeneous system of m linear equations in n variables has innitely many solutions if m < n. P ROOF. The system is consistent since the point (0,. . . ,0) is a solution to any homogeneous equation. The augmented matrix (A|0) has m rows, so the number of nonzero nows is m. Thus rank(A) m. By the Rank Theorem, number of free variables = n rank(A) n m > 0. Therefore this system has at least one free variable, and hence innitely many solutions.