Copyright © Cengage Learning. All rights reserved.

Slides:



Advertisements
Similar presentations
Copyright © Cengage Learning. All rights reserved.
Advertisements

4.3 Matrix Approach to Solving Linear Systems 1 Linear systems were solved using substitution and elimination in the two previous section. This section.
Chapter 4 Systems of Linear Equations; Matrices Section 2 Systems of Linear Equations and Augmented Matrics.
1 Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter 4-1 Systems of Equations and Inequalities Chapter 4.
Lesson 8 Gauss Jordan Elimination
Linear Systems and Matrices
10.1 Gaussian Elimination Method
Linear Systems The definition of a linear equation given in Chapter 1 can be extended to more variables; any equation of the form for real numbers.
LIAL HORNSBY SCHNEIDER
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
Lesson 8.1, page 782 Matrix Solutions to Linear Systems
Chapter 1 Section 1.2 Echelon Form and Gauss-Jordan Elimination.
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2011 Hawkes Learning Systems. All rights reserved. Hawkes Learning Systems College Algebra.
Introduction Information in science, business, and mathematics is often organized into rows and columns to form rectangular arrays called “matrices” (plural.
Systems of linear equations. Simple system Solution.
Linear Algebra – Linear Equations
Chapter 4 Systems of Linear Equations; Matrices
Multivariate Linear Systems and Row Operations.
SYSTEMS OF LINEAR EQUATIONS
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Chap. 1 Systems of Linear Equations
Multivariable Linear Systems
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Systems and Matrices (Chapter5)
Rev.S08 MAC 1140 Module 10 System of Equations and Inequalities II.
Matrices King Saud University. If m and n are positive integers, then an m  n matrix is a rectangular array in which each entry a ij of the matrix is.
Copyright © Cengage Learning. All rights reserved. 7.4 Matrices and Systems of Equations.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Sec 3.1 Introduction to Linear System Sec 3.2 Matrices and Gaussian Elemination The graph is a line in xy-plane The graph is a line in xyz-plane.
Matrix Algebra. Quick Review Quick Review Solutions.
SYSTEMS OF EQUATIONS MATRIX SOLUTIONS TO LINEAR SYSTEMS
Three variables Systems of Equations and Inequalities.
Row Reduction Method Lesson 6.4.
Row rows A matrix is a rectangular array of numbers. We subscript entries to tell their location in the array Matrices are identified by their size.
8.1 Matrices and Systems of Equations. Let’s do another one: we’ll keep this one Now we’ll use the 2 equations we have with y and z to eliminate the y’s.
Chapter 6 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Matrix Solutions to Linear Systems.
Systems of Linear Equations: Matrices Chapter Overview A matrix is simply a rectangular array of numbers. Matrices are used to organize information.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Systems of Equations and Inequalities Systems of Linear Equations: Substitution and Elimination Matrices Determinants Systems of Non-linear Equations Systems.
4.3 Gauss Jordan Elimination Any linear system must have exactly one solution, no solution, or an infinite number of solutions. Just as in the 2X2 case,
Copyright © 2011 Pearson Education, Inc. Solving Linear Systems Using Matrices Section 6.1 Matrices and Determinants.
Matrices and Systems of Equations
Matrices and Systems of Linear Equations
Copyright © 2009 Pearson Education, Inc. CHAPTER 9: Systems of Equations and Matrices 9.1 Systems of Equations in Two Variables 9.2 Systems of Equations.
Linear Equation System Pertemuan 4 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
 SOLVE SYSTEMS OF EQUATIONS USING MATRICES. Copyright © 2012 Pearson Education, Inc. Publishing as Addison Wesley 9.3 Matrices and Systems of Equations.
Matrices and Systems of Equations
Meeting 19 System of Linear Equations. Linear Equations A solution of a linear equation in n variables is a sequence of n real numbers s 1, s 2,..., s.
Slide Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley A set of equations is called a system of equations. The solution.
7.3 & 7.4 – MATRICES AND SYSTEMS OF EQUATIONS. I N THIS SECTION, YOU WILL LEARN TO  Write a matrix and identify its order  Perform elementary row operations.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Arab Open University Faculty of Computer Studies M132: Linear Algebra
H.Melikian/12101 Gauss-Jordan Elimination Dr.Hayk Melikyan Departhmen of Mathematics and CS Any linear system must have exactly one solution,
Student Handbook 1. Matrices A matrix (plural: matrices, not matrixes) is a rectangular array of numbers such as Matrices are useful when modelling a.
Section 5.3 MatricesAnd Systems of Equations. Systems of Equations in Two Variables.
Slide Copyright © 2009 Pearson Education, Inc. 7.4 Solving Systems of Equations by Using Matrices.
Multivariable linear systems.  The following system is said to be in row-echelon form, which means that it has a “stair-step” pattern with leading coefficients.
Gaussian Elimination Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 Gaussian elimination with back-substitution.
College Algebra Chapter 6 Matrices and Determinants and Applications
Linear Equations in Linear Algebra
Section 6.1 Systems of Linear Equations
Gaussian Elimination and Gauss-Jordan Elimination
Solving Systems of Equations Using Matrices
Matrices and Systems of Equations 8.1
Matrices and Systems of Equations
College Algebra Chapter 6 Matrices and Determinants and Applications
Linear Equations in Linear Algebra
Matrices are identified by their size.
Presentation transcript:

Copyright © Cengage Learning. All rights reserved. Systems of Equations and Inequalities Copyright © Cengage Learning. All rights reserved.

10.3 Matrices and Systems Of Linear Equations Copyright © Cengage Learning. All rights reserved.

Objectives Matrices The Augmented Matrix of a Linear System Elementary Row Operations Gaussian Elimination

Objectives Gauss-Jordan Elimination Inconsistent and Dependent Systems Modeling with Linear Systems

Matrices and Systems Of Linear Equations A matrix is simply a rectangular array of numbers. Matrices are used to organize information into categories that correspond to the rows and columns of the matrix. For example, a scientist might organize information on a population of endangered whales as follows:

Matrices and Systems Of Linear Equations In this section we represent a linear system by a matrix, called the augmented matrix of the system: The augmented matrix contains the same information as the system, but in a simpler form. The operations we learned for solving systems of equations can now be performed on the augmented matrix.

Matrices

Matrices We begin by defining the various elements that make up a matrix.

Matrices Here are some examples of matrices. Matrix Dimension 2  3 [6 –5 0 1] 1  4 2 rows by 3 columns 1 row by 4 columns

The Augmented Matrix of a Linear System

The Augmented Matrix of a Linear System We can write a system of linear equations as a matrix, called the augmented matrix of the system, by writing only the coefficients and constants that appear in the equations. Here is an example. Linear system Augmented matrix Notice that a missing variable in an equation corresponds to a 0 entry in the augmented matrix.

Example 1 – Finding the Augmented Matrix of a Linear System Write the augmented matrix of the system of equations. Solution: First we write the linear system with the variables lined up in columns.

Example 1 – Solution cont’d The augmented matrix is the matrix whose entries are the coefficients and the constants in this system.

Elementary Row Operations

Elementary Row Operations Note that performing any of these operations on the augmented matrix of a system does not change its solution.

Elementary Row Operations We use the following notation to describe the elementary row operations: Symbol Description Ri + kRj  Ri Change the ith row by adding k times row j to it, and then put the result back in row i. kRi Multiply the ith row by k. Ri Rj Interchange the ith and jth rows. In the next example we compare the two ways of writing systems of linear equations.

Example 2 – Using Elementary Row Operations to Solve a Linear System Solve the system of linear equations. Solution: Our goal is to eliminate the x-term from the second equation and the x- and y-terms from the third equation. For comparison, we write both the system of equations and its augmented matrix.

Example 2 – Solution System Augmented matrix cont’d Add (–1)  Equation 1 to Equation 2. Add (–3)  Equation 1 to Equation 3.

Example 2 – Solution System Augmented matrix cont’d Multiply Equation 3 by . Add (–3)  Equation 3 to Equation 2 (to eliminate y from Equation 2). R2 – 3R3  R2

Example 2 – Solution System Augmented matrix cont’d System Augmented matrix Now we use back-substitution to find that x = 2, y = 7, and z = 3. The solution is (2, 7, 3). Interchange Equations 2 and 3. R2 R3

Gaussian Elimination

Gaussian Elimination In general, to solve a system of linear equations using its augmented matrix, we use elementary row operations to arrive at a matrix in a certain form. This form is described in the following box.

Gaussian Elimination In the following matrices, the first one is not in row-echelon form. Not in row-echelon form

Gaussian Elimination The second one is in row-echelon form, and the third one is in reduced row-echelon form. The entries in red are the leading entries. Row-echelon form Reduced row-echelon form

Gaussian Elimination Here is a systematic way to put a matrix in row-echelon form using elementary row operations: Start by obtaining 1 in the top left corner. Then obtain zeros below that 1 by adding appropriate multiples of the first row to the rows below it. Next, obtain a leading 1 in the next row, and then obtain zeros below that 1.

Gaussian Elimination At each stage make sure that every leading entry is to the right of the leading entry in the row above it—rearrange the rows if necessary. Continue this process until you arrive at a matrix in row-echelon form. This is how the process might work for a 3  4 matrix:

Gaussian Elimination Once an augmented matrix is in row-echelon form, we can solve the corresponding linear system using back substitution. This technique is called Gaussian elimination, in honor of its inventor, the German mathematician C. F. Gauss.

Example 3 – Solving a System Using Row-Echelon Form Solve the system of linear equations using Gaussian elimination. Solution: We first write the augmented matrix of the system, and then we use elementary row operations to put it in row-echelon form. Augmented matrix:

Example 3 – Solution cont’d

Example 3 – Solution cont’d Row-echelon form: R3 – 5R2  R3

Example 3 – Solution cont’d We now have an equivalent matrix in row-echelon form, and the corresponding system of equations is Back-substitute: We use back-substitution to solve the system. y + 2(– 2) = –3 y = 1 Back-substitute z = –2 into Equation 2 Solve for y

Example 3 – Solution x + 2(1) – (–2) = 1 x = –3 cont’d x + 2(1) – (–2) = 1 x = –3 So the solution of the system is (–3, 1, –2). Back-substitute y = 1 and z = –2 into Equation 1 Solve for x

Gauss-Jordan Elimination

Gauss-Jordan Elimination If we put the augmented matrix of a linear system in reduced row-echelon form, then we don’t need to back substitute to solve the system. To put a matrix in reduced row-echelon form, we use the following steps. Use the elementary row operations to put the matrix in row-echelon form. Obtain zeros above each leading entry by adding multiples of the row containing that entry to the rows above it. Begin with the last leading entry and work up.

Gauss-Jordan Elimination Here is how the process works for a 3  4 matrix:   Using the reduced row-echelon form to solve a system is called Gauss-Jordan elimination. The process is illustrated in the next example.

Example 4 – Solving a System Using Reduced Row-Echelon Form Solve the system of linear equations, using Gauss-Jordan elimination. Solution: In Example 3 we used Gaussian elimination on the augmented matrix of this system to arrive at an equivalent matrix in row-echelon form.

Example 4 – Solution cont’d We continue using elementary row operations on the last matrix in Example 3 to arrive at an equivalent matrix in reduced row-echelon form. R2 – 4R3  R2 R1 + R3  R1

Example 4 – Solution cont’d We now have an equivalent matrix in reduced row-echelon form, and the corresponding system of equations is Hence we immediately arrive at the solution (–3, 1, –2). R1 – 2R2  R1

Inconsistent and Dependent Systems

Inconsistent and Dependent Systems The systems of linear equations that we considered in Examples 1–4 had exactly one solution. But as we know, a linear system may have one solution, no solution, or infinitely many solutions.

Inconsistent and Dependent Systems Fortunately, the row-echelon form of a system allows us to determine which of these cases applies, as described in the following box.

Inconsistent and Dependent Systems First we need some terminology. A leading variable in a linear system is one that corresponds to a leading entry in the row-echelon form of the augmented matrix of the system. The matrices below, all in row-echelon form, illustrate the three cases described in the box. No solution One solution Infinitely many solutions

Example 5 – A System with No Solution Solve the system. Solution: We transform the system into row-echelon form. R2 – 2R1  R2 R3 – R1  R3

Example 5 – Solution cont’d This last matrix is in row-echelon form, so we can stop the Gaussian elimination process. Now if we translate the last row back into equation form, we get 0x + 0y + 0z = 1, or 0 = 1, which is false. No matter what values we pick for x, y, and z, the last equation will never be a true statement. This means that the system has no solution. R3 – R2  R3

Example 6 – A System with Infinitely Many Solutions Find the complete solution of the system. Solution: We transform the system into reduced row-echelon form. R1 R3

Example 6 – Solution The third row corresponds to the equation 0 = 0. cont’d The third row corresponds to the equation 0 = 0. This equation is always true, no matter what values are used for x, y, and z. Since the equation adds no new information about the variables, we can drop it from the system. R2 + R1  R2 R3 + 2R2  R3 R3 + 3R1  R3 R1 – R2  R1

Example 6 – Solution So the last matrix corresponds to the system cont’d So the last matrix corresponds to the system Now we solve for the leading variables x and y in terms of the nonleading variable z: x = 7z – 5 y = 3z + 1 Equation 1 Equation 2 Solve for x in Equation 1 Solve for y in Equation 2

Example 6 – Solution cont’d To obtain the complete solution, we let t represent any real number, and we express x, y, and z in terms of t: x = 7t – 5 y = 3t + 1 z = t We can also write the solution as the ordered triple (7t – 5, 3t + 1, t), where t is any real number.

Modeling with Linear Systems

Modeling with Linear Systems Linear equations, often containing hundreds or even thousands of variables, occur frequently in the applications of algebra to the sciences and to other fields. For now, let’s consider an example that involves only three variables.

Example 8 – Nutritional Analysis Using a System of Linear Equations A nutritionist is performing an experiment on student volunteers. He wishes to feed one of his subjects a daily diet that consists of a combination of three commercial diet foods: MiniCal, LiquiFast, and SlimQuick. For the experiment it is important that the subject consume exactly 500 mg of potassium, 75 g of protein, and 1150 units of vitamin D every day.

Example 8 – Nutritional Analysis Using a System of Linear Equations cont’d The amounts of these nutrients in one ounce of each food are given in the table. How many ounces of each food should the subject eat every day to satisfy the nutrient requirements exactly?

Example 8 – Solution Let x, y, and z represent the number of ounces of MiniCal, LiquiFast, and SlimQuick, respectively, that the subject should eat every day. This means that he will get 50x mg of potassium from MiniCal, 75y mg from LiquiFast, and 10z mg from SlimQuick, for a total of 50x + 75y + 10z mg potassium in all.

Example 8 – Solution cont’d Since the potassium requirement is 500 mg, we get the first equation below. Similar reasoning for the protein and vitamin D requirements leads to the system Dividing the first equation by 5 and the third one by 10 gives the system Potassium Protein Vitamin D

Example 8 – Solution cont’d We can solve this system using Gaussian elimination, or we can use a graphing calculator to find the reduced row echelon form of the augmented matrix of the system. From the reduced row-echelon form we see that x = 5, y = 2, z = 10. The subject should be fed 5 oz of Mini-Cal, 2 oz of LiquiFast, and 10 oz of SlimQuick every day.

Example 8 – Solution cont’d Check Your Answer: x = 5, y = 2, z = 10