P1 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Solving Linear Equations Given the equations 3x + 4y = 10 2x + z = 7 y + 2z = 7 Solve by removing.

Slides:



Advertisements
Similar presentations
§ 3.4 Matrix Solutions to Linear Systems.
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.
East Los Angeles College
Gauss – Jordan Elimination Method: Example 2 Solve the following system of linear equations using the Gauss - Jordan elimination method Slide 1.
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
Lesson 8 Gauss Jordan Elimination
Solving Systems of Linear Equations Part Pivot a Matrix 2. Gaussian Elimination Method 3. Infinitely Many Solutions 4. Inconsistent System 5. Geometric.
Matrices. Special Matrices Matrix Addition and Subtraction Example.
Chapter 2 Section 1 Solving a System of Linear Equations (using Matrices)
Chapter 1 Systems of Linear Equations
Linear Systems and Matrices
10.1 Gaussian Elimination Method
Gauss-Jordan Matrix Elimination Brought to you by Tutorial Services – The Math Center.
LIAL HORNSBY SCHNEIDER
Chapter 1 Section 1.2 Echelon Form and Gauss-Jordan Elimination.
Section 8.1 – Systems of Linear Equations
Table of Contents Solving Linear Systems - Elementary Row Operations A linear system of equations can be solved in a new way by using an augmented matrix.
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2011 Hawkes Learning Systems. All rights reserved. Hawkes Learning Systems College Algebra.
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Table of Contents Solving Systems of Linear Equations - Gaussian Elimination The method of solving a linear system of equations by Gaussian Elimination.
Linear Algebra – Linear Equations
Multivariate Linear Systems and Row Operations.
SYSTEMS OF LINEAR EQUATIONS
Elementary Linear Algebra Howard Anton Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 1.
Notes 7.3 – Multivariate Linear Systems and Row Operations.
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.
Copyright © 2011 Pearson, Inc. 7.3 Multivariate Linear Systems and Row Operations.
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.
Gaussian Elimination, Rank and Cramer
Matrix Algebra. Quick Review Quick Review Solutions.
Three variables Systems of Equations and Inequalities.
MATH 250 Linear Equations and Matrices
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 2 MATRIX. CHAPTER OUTLINE 2.1 Introduction 2.2 Types of Matrices 2.3 Determinants 2.4 The Inverse of a Square Matrix 2.5 Types of Solutions to.
Sec 3.2 Matrices and Gaussian Elemination Coefficient Matrix 3 x 3 Coefficient Matrix 3 x 3 Augmented Coefficient Matrix 3 x 4 Augmented Coefficient Matrix.
Using Matrices A matrix is a rectangular array that can help us to streamline the solving of a system of equations The order of this matrix is 2 × 3 If.
Chapter 11 Section 11.4 Solving Larger Systems of Equations.
We will use Gauss-Jordan elimination to determine the solution set of this linear system.
Chapter 1 Section 1.1 Introduction to Matrices and systems of Linear Equations.
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,
Section 7-3 Solving 3 x 3 systems of equations. Solving 3 x 3 Systems  substitution (triangular form)  Gaussian elimination  using an augmented matrix.
Linear Equation System Pertemuan 4 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
Chapter 1 Linear Algebra S 2 Systems of Linear 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.
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.
Chapter 1 Systems of Linear Equations Linear Algebra.
P1 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 3 Determinants and Inverses Consider the weight suspended by wires problem: One (poor) way is to.
Math 1320 Chapter 3: Systems of Linear Equations and Matrices 3.2 Using Matrices to Solve Systems of Equations.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
1 SYSTEM OF LINEAR EQUATIONS BASE OF VECTOR SPACE.
College Algebra Chapter 6 Matrices and Determinants and Applications
Multivariable Linear Systems and Row Operations
Chapter 7: Systems of Equations and Inequalities; Matrices
Gaussian Elimination and Gauss-Jordan Elimination
Gaussian Elimination and Gauss-Jordan Elimination
Solving Systems of Equations Using Matrices
MATHEMATICS Linear Equations
Matrices 3 1.
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
Gaussian Elimination and Gauss-Jordan Elimination
Larger Systems of Linear Equations and Matrices
Matrix Solutions to Linear Systems
College Algebra Chapter 6 Matrices and Determinants and Applications
Section 8.1 – Systems of Linear Equations
Matrices are identified by their size.
EG1C2 Matrix Algebra - Information Sheet
Presentation transcript:

p1 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Solving Linear Equations Given the equations 3x + 4y = 10 2x + z = 7 y + 2z = 7 Solve by removing x and y, to find z, and thence find x and y. First equation * 2 - second equation * 3 gives 8y - 3z = -1 That equation - third equation * 8 gives -19z = -57, so z = 3. So y = 7 - 2z = 1 2x = 7 - z = 4 So x = 2 We now present a matrix method for doing that.

p2 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Linear Equations and Gaussian Elimination A linear system, described by n equations in n unknowns, 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 : : : : a n1 x 1 + a n2 x a nn x n = b n can be expressed in matrix terms: A x = b; where Can use inverses to find x. Better method - Gaussian elimination. Reduce A to a triangular matrix (echelon form) then find each x.

p3 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Form Augmented Matrix then process Augmented Matrix is A and b combined Make A part triangular Hence x n found easily, then x n-1, x n-2, etc. This means

p4 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Demonstrate this by example The equations describing the above are:

p5 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Call the first row the pivot row, and the first element the pivot. Use the pivot row to eliminate the value in the pivot column in all the rows below the pivot, i.e. to make these elements 0. Second row: subtract 2rd row from 3 * the pivot row. Get [3*1 -3 3*-1-5 3* ] = [ ]. Third row - element is already 0 - don’t need to do anything.

p6 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Next eliminate the 5 in row 3. Pivot row is row 2, pivot is -8 Then add 5 * pivot row to 8 * third row, so row 3 becomes [0 -8*5 + 5*8 -3*5 + -2*8 -14*5 + 8 * 1] = [ ] Last row represents: -31*i 3 = -62;i 3 = 2A. Second row represents: -8*i 2 - 3*i 3 = -14; i 2 = (14-3*2)/8 = 1A. First row represents i 1 = i 2 + i 3 ;i 1 = 3A. As a check: 5i i 3 = 5-4 = 1 and 3i i 2 = 9+5 = 14 Good! Comment - At start of process, if a diagonal has a zero value, swap its row with one which has a non-zero value. Note, when doing by hand good idea to multiply rows by integers.

p7 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Exercise A cantilever beam bends due to its own weight and an applied force. The relative heights at points along the beam are given by: -3 y 1 + y 2 = -2; y y 2 + y 3 = -5; 2 y y 3 = -7 Use Gaussian elimination to find values y 1, y 2 and y 3. Put equations in form: A y = b

p8 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Make first element in row2 zero; do row2 := row1 + 3 * row2: [ ] = [ ] Make second element in row3 zero; do row3 := row2 + 4 * row3: [ ] = [ ] Row3 means: * y 3 = so y 3 = Row2 means: * y 2 + * y 3 = so y 2 = Row1 means: * y 1 + * y 2 + * y 3 = so y 1 =

p9 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Comments on Method Matrices are processed by ‘elementary row operations’: each row processed by: rowX := p*rowY + q*rowZ (p,q <> 0) Equivalent to processing equations in this way. If the equations represent a linear system, then this is valid. To verify, consider equations: 3x + 2y = 5 and 4x - y = 3. The solution to this is x = y = 1. Form p*first equation + q*second? Is x = y = 1 still a solution? 3px +2py + 4qx-qy = 5p+3q. That is p (3x+2y) + q (4x - y) = 5p+3q Clearly x = y = 1 is still a solution to this equation. Thus the method seems to be valid. This method can in fact be extended - for finding inverses

p10 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Gauss Jordan Method for Matrix Inverse The adjoint inverse method is computationally poor - particularly for large matrices. Consider instead the Gauss-Jordan method. First write a matrix comprising A and I as one. For a 3*3 matrix: Process this so left half is unit matrix. Then right half is inverse. Do by processing rows: Row X = p * Row Y + q * Row Z, so that a suitable element in the row becomes 0 or 1. First ensure bottom two rows have 0 in their first column: Row 2 = Row * Row 2 & Row3 = Row * Row 3:

p11 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Next do Row 3 = Row 2 – 4 * Row 3, so 2 nd column in row 3 is 0: Next process top two rows so their entries in column 3 are 0. Row 1 = Row * Row 1; Row 2 = 13 * Row * Row 2

p12 RJM 07/08/02EG1C2 Engineering Maths: Matrix Algebra 5 Now set diagonals of the left half of the matrix to 1: Row 1 = Row 1 / 360; Row 2 = Row 2 / 120; Row 3 = Row 3 / -15. Then, make Row 1 column 2 = 0: Row 1 = Row * Row 1