8.2 Systems of Linear Equations: Augmented Matrices

Similar documents
Arithmetic and Algebra of Matrices

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

Solving Systems of Linear Equations Using Matrices

Linear Equations ! $ & " % & " 11,750 12,750 13,750% MATHEMATICS LEARNING SERVICE Centre for Learning and Professional Development

Section 8.2 Solving a System of Equations Using Matrices (Guassian Elimination)

Question 2: How do you solve a matrix equation using the matrix inverse?

Reduced echelon form: Add the following conditions to conditions 1, 2, and 3 above:

10.2 Systems of Linear Equations: Matrices

1.2 Solving a System of Linear Equations

Systems of Linear Equations

Solving Systems of Linear Equations

Row Echelon Form and Reduced Row Echelon Form

3.2 The Factor Theorem and The Remainder Theorem

3.2. Solving quadratic equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

Methods for Finding Bases

Similar matrices and Jordan form

5 Homogeneous systems

Lecture 1: Systems of Linear Equations

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

Solving simultaneous equations using the inverse matrix

5.5. Solving linear systems by the elimination method

Solving Linear Systems, Continued and The Inverse of a Matrix

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

Direct Methods for Solving Linear Systems. Matrix Factorization

Unit 1 Equations, Inequalities, Functions

Lecture Notes 2: Matrices as Systems of Linear Equations

Introduction to Matrix Algebra

8.2. Solution by Inverse Matrix Method. Introduction. Prerequisites. Learning Outcomes

POLYNOMIAL FUNCTIONS

Systems of Linear Equations

Polynomial and Synthetic Division. Long Division of Polynomials. Example 1. 6x 2 7x 2 x 2) 19x 2 16x 4 6x3 12x 2 7x 2 16x 7x 2 14x. 2x 4.

Using row reduction to calculate the inverse and the determinant of a square matrix

Solving Systems of Linear Equations

Notes on Determinant

Lecture notes on linear algebra

8 Square matrices continued: Determinants

Operation Count; Numerical Linear Algebra

March 29, S4.4 Theorems about Zeros of Polynomial Functions

MAT 200, Midterm Exam Solution. a. (5 points) Compute the determinant of the matrix A =

MATH 423 Linear Algebra II Lecture 38: Generalized eigenvectors. Jordan canonical form (continued).

BookTOC.txt. 1. Functions, Graphs, and Models. Algebra Toolbox. Sets. The Real Numbers. Inequalities and Intervals on the Real Number Line

Zeros of Polynomial Functions

Algebra 2 Chapter 1 Vocabulary. identity - A statement that equates two equivalent expressions.

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

CURVE FITTING LEAST SQUARES APPROXIMATION

Linear Algebra Notes for Marsden and Tromba Vector Calculus

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

( ) which must be a vector

Recall that two vectors in are perpendicular or orthogonal provided that their dot

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

Au = = = 3u. Aw = = = 2w. so the action of A on u and w is very easy to picture: it simply amounts to a stretching by 3 and 2, respectively.

Linearly Independent Sets and Linearly Dependent Sets

Some Lecture Notes and In-Class Examples for Pre-Calculus:

MATH2210 Notebook 1 Fall Semester 2016/ MATH2210 Notebook Solving Systems of Linear Equations... 3

MATH 304 Linear Algebra Lecture 18: Rank and nullity of a matrix.

Zeros of a Polynomial Function

K80TTQ1EP-??,VO.L,XU0H5BY,_71ZVPKOE678_X,N2Y-8HI4VS,,6Z28DDW5N7ADY013

9.2 Summation Notation

by the matrix A results in a vector which is a reflection of the given

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Style. Learning Outcomes

2.5 Zeros of a Polynomial Functions

DERIVATIVES AS MATRICES; CHAIN RULE

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2

1.5 SOLUTION SETS OF LINEAR SYSTEMS

Continued Fractions and the Euclidean Algorithm

1 Introduction to Matrices

7 Gaussian Elimination and LU Factorization

Algebra Unpacked Content For the new Common Core standards that will be effective in all North Carolina schools in the school year.

1 Determinants and the Solvability of Linear Systems

Solutions to Math 51 First Exam January 29, 2015

1 Solving LPs: The Simplex Algorithm of George Dantzig

How To Understand And Solve Algebraic Equations

Zeros of Polynomial Functions

Section 1.1 Linear Equations: Slope and Equations of Lines

Solving Systems of Two Equations Algebraically

2013 MBA Jump Start Program

MATH APPLIED MATRIX THEORY

MATHEMATICS FOR ENGINEERING BASIC ALGEBRA

Systems of Equations

Linear Algebra Notes

Data Mining: Algorithms and Applications Matrix Math Review

Solution to Homework 2

Examination paper for TMA4115 Matematikk 3

Elementary Matrices and The LU Factorization

The Characteristic Polynomial

Linear Equations in Linear Algebra

SOLVING LINEAR SYSTEMS

Integrating algebraic fractions

General Framework for an Iterative Solution of Ax b. Jacobi s Method

Eigenvalues, Eigenvectors, Matrix Factoring, and Principal Components

Notes on Orthogonal and Symmetric Matrices MENU, Winter 2013

1 VECTOR SPACES AND SUBSPACES

LINEAR ALGEBRA. September 23, 2010

Section 3.1 Quadratic Functions and Models

DATA ANALYSIS II. Matrix Algorithms

Polynomial and Rational Functions

ALGEBRA 2 CRA 2 REVIEW - Chapters 1-6 Answer Section

Transcription:

8. Systems of Linear Equations: Augmented Matrices 567 8. Systems of Linear Equations: Augmented Matrices In Section 8. 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.. 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. To that end, we define a matrix as a rectangular array of real numbers. We typically enclose matrices with square brackets, [ and ], and we size matrices by the number of rows and columns they have. For example, the size (sometimes called the dimension) of [ 0 5 0 is because it has rows and 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 A = ] [ 0 5 0 then a =, a = 0, a =, a =, a = 5, and a = 0. We shall explore matrices as mathematical objects with their own algebra in Section 8. and introduce them here solely as a bookkeeping device. Consider the system of linear equations from number in Example 8.. (E) x + y z = (E) 0x z = (E) 4x 9y + z = 5 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 E, since y is not present, we record its coefficient as 0. The matrix associated with this system is ] (E) (E) (E) x y z c 0 0 4 9 5

568 Systems of Equations and Matrices This matrix is called an augmented matrix because the column containing the constants is appended to the matrix containing the coefficients. 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 8. below. Theorem 8.. 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. a Replace a row with itself plus a nonzero multiple of another row. b a That is, the row obtained by multiplying each entry in the row by the same nonzero number. b Where we add entries in corresponding columns. As a demonstration of the moves in Theorem 8., we revisit some of the steps that were used in solving the systems of linear equations in Example 8.. of Section 8.. 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 in Example 8... (E) x y + z = (E) x 4y + z = 6 (E) x y + z = 5 4 6 5 Switch E and E Switch R and R (E) x y + z = 5 (E) x 4y + z = 6 (E) x y + z = 5 4 6 Next, we have a demonstration of replacing a row with a nonzero multiple of itself using the first step of part in Example 8... (E) x + x + x 4 = 6 (E) x + x x = 4 (E) x x x 4 = 0 0 6 0 4 0 0 Replace E with E Replace R with R (E) x + x + x 4 = (E) x + x x = 4 (E) x x x 4 = 0 0 0 4 0 0 Finally, we have an example of replacing a row with itself plus a multiple of another row using the second step from part in Example 8... We shall study the coefficient and constant matrices separately in Section 8..

8. Systems of Linear Equations: Augmented Matrices 569 (E) x + y z = (E) 0x z = (E) 4x 9y + z = 5 0 0 4 9 5 Replace E with 0E + E Replace E with 4E + E Replace R with 0R + R Replace R with 4R + R (E) x + y z = (E) 5y + 4z = (E) 5y + 4z = 0 5 4 0 5 4 The matrix equivalent of triangular form is row echelon form. The reader is encouraged to refer to Definition 8. 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. Definition 8.4. 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.. The leading of a given row must be to the right of the leading 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. Example 8... Use an augmented matrix to transform the following system of linear equations into triangular form. Solve the system. x y + z = 8 x + y z = 4 x + y 4z = 0 Solution. We first encode the system into an augmented matrix. x y + z = 8 x + y z = 4 x + y 4z = 0 Encode into the matrix 8 4 0 Thinking back to Gaussian Elimination at an equations level, our first order of business is to get x in E with a coefficient of. At the matrix level, this means getting a leading in R. This is in accordance with the first criteria in Definition 8.4. To that end, we interchange R and R. 8 4 0 Switch R and R 8 4 0

570 Systems of Equations and Matrices Our next step is to eliminate the x s from E and E. From a matrix standpoint, this means we need 0 s below the leading in R. This guarantees the leading in R will be to the right of the leading in R in accordance with the second requirement of Definition 8.4. 8 4 0 Replace R with R + R Replace R with R + R 0 7 4 4 0 Now we repeat the above process for the variable y which means we need to get the leading entry in R to be. 0 7 4 4 0 Replace R with 7 R 0 4 4 0 To guarantee the leading in R is to the right of the leading in R, we get a 0 in the second column of R. 0 4 4 Replace R with R + R 0 4 4 0 0 0 8 8 Finally, we get the leading entry in R to be. 0 4 4 Replace R with 7 8 R 0 0 8 8 Decoding from the matrix gives a system in triangular form 0 4 4 Decode from the matrix 0 0 0 4 4 0 0 x + y z = 4 y 4 7 z = 4 7 z = We get z =, y = 4 7 z + 4 7 = 4 7 ( ) + 4 7 = 0 and x = y + z + 4 = (0) + ( ) + 4 = for a final answer of (, 0, ). We leave it to the reader to check. As part of Gaussian Elimination, we used row operations to obtain 0 s beneath each leading to put the matrix into row echelon form. If we also require that 0 s are the only numbers above a leading, we have what is known as the reduced row echelon form of the matrix. Definition 8.5. 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 s are the only nonzero entry in their respective columns.

8. Systems of Linear Equations: Augmented Matrices 57 Of what significance is the reduced row echelon form of a matrix? To illustrate, let s take the row echelon form from Example 8.. and perform the necessary steps to put into reduced row echelon form. We start by using the leading in R to zero out the numbers in the rows above it. 0 4 4 0 0 Replace R with R + R Replace R with 4 R + R 7 0 0 0 0 0 0 Finally, we take care of the in R above the leading in R. 0 0 0 0 0 0 Replace R with R + R 0 0 0 0 0 0 0 To our surprise and delight, when we decode this matrix, we obtain the solution instantly without having to deal with any back-substitution at all. 0 0 x = 0 0 0 Decode from the matrix y = 0 0 0 z = Note that in the previous discussion, we could have started with R and used it to get a zero above its leading and then done the same for the leading in R. By starting with R, however, we get more zeros first, and the more zeros there are, the faster the remaining calculations will be. It is also worth noting that while a matrix has several 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. Example 8... Solve the following system using an augmented matrix. Use Gauss-Jordan Elimination to put the augmented matrix into reduced row echelon form. x x + x 4 = x + 4x = 5 4x x 4 = Solution. We first encode the system into a matrix. (Pay attention to the subscripts!) x x + x 4 = x + 4x = 5 4x x 4 = Encode into the matrix Next, we get a leading in the first column of R. 0 0 4 0 5 Replace R with R 0 4 0 Carl also finds starting with R to be more symmetric, in a purely poetic way. infinite, in fact 0 0 4 0 5 0 4 0 0 4 0 5 0 4 0

57 Systems of Equations and Matrices Now we eliminate the nonzero entry below our leading. 0 4 0 5 0 4 0 We proceed to get a leading in R. 9 0 4 0 4 0 Replace R with R + R Replace R with R We now zero out the entry below the leading in R. 9 0 6 0 4 0 Next, it s time for a leading in R. 9 0 6 0 0 4 5 5 Replace R with 4R + R Replace R with 4 R 9 0 4 0 4 0 0 6 9 0 4 0 0 6 9 0 0 4 5 5 0 6 9 0 0 5 4 The matrix is now in row echelon form. To get the reduced row echelon form, we start with the last leading we produced and work to get 0 s above it. 9 Replace R with 6R + R 0 6 0 4 4 5 5 5 5 0 0 4 4 0 0 4 4 Lastly, we get a 0 above the leading of R. 0 4 4 Replace R with R + R 5 5 0 0 4 4 At last, we decode to get 0 0 5 5 0 4 4 0 0 5 4 5 4 Decode from the matrix 5 4 0 0 5 5 0 4 4 0 0 5 4 x 5 x 4 = 5 x 4 x 4 = 4 x + 5 4 x 5 4 = 4 We have that x 4 is free and we assign it the parameter t. We obtain x = 5 4 t + 5 4, x = 4 t + 4, and x = 5 t 5. Our solution is {( 5 t 5, 4 t + 4, 5 4 t + 5 4, t) : < t < } and leave it to the reader to check. 5 4

8. Systems of Linear Equations: Augmented Matrices 57 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 use this in our next example. Example 8... Find the quadratic function passing through the points (, ), (, 4), (5, ). Solution. According to Definition.5, a quadratic function has the form f(x) = ax +bx+c where a 0. Our goal is to find a, b and c so that the three given points are on the graph of f. If (, ) is on the graph of f, then f( ) =, or a( ) + b( ) + c = which reduces to a b + c =, an honest-to-goodness linear equation with the variables a, b and c. Since the point (, 4) is also on the graph of f, then f() = 4 which gives us the equation 4a + b + c = 4. Lastly, the point (5, ) is on the graph of f gives us 5a + 5b + c =. Putting these together, we obtain a system of three linear equations. Encoding this into an augmented matrix produces a b + c = 4a + b + c = 4 5a + 5b + c = Encode into the matrix 4 4 5 5 Using a calculator, 4 we find a = 7 8, b = 8 and c = 7 9. Hence, the one and only quadratic which fits the bill is f(x) = 7 8 x + 8 x+ 7 9. To verify this analytically, we see that f( ) =, f() = 4, and f(5) =. We can use the calculator to check our solution as well by plotting the three data points and the function f. The graph of f(x) = 7 8 x + 8 x + 7 9 with the points (, ), (, 4) and (5, ) 4 We ve tortured you enough already with fractions in this exposition!