Solving simultaneous equations using the inverse matrix



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

8.1. Cramer s Rule for Solving Simultaneous Linear Equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

is identically equal to x 2 +3x +2

3.1. Solving linear equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

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

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

Equations, Inequalities & Partial Fractions

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

5.5. Solving linear systems by the elimination method

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

Matrices 2. Solving Square Systems of Linear Equations; Inverse Matrices

Sequences. A sequence is a list of numbers, or a pattern, which obeys a rule.

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

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes

Solving Systems of Linear Equations Using Matrices

5 Systems of Equations

3.6. Partial Fractions. Introduction. Prerequisites. Learning Outcomes

1 Introduction to Matrices

Typical Linear Equation Set and Corresponding Matrices

Solving Linear Systems, Continued and The Inverse of a Matrix

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

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.

LS.6 Solution Matrices

Linear Programming. March 14, 2014

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.

1 Determinants and the Solvability of Linear Systems

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

Systems of Linear Equations

Continued Fractions and the Euclidean Algorithm

Solving Systems of Linear Equations

is identically equal to x 2 +3x +2

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2

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

Linear Algebra Notes for Marsden and Tromba Vector Calculus

Part 1 Expressions, Equations, and Inequalities: Simplifying and Solving

Introduction to Matrix Algebra

Operation Count; Numerical Linear Algebra

Row Echelon Form and Reduced Row Echelon Form

Partial Fractions. p(x) q(x)

1.5. Factorisation. Introduction. Prerequisites. Learning Outcomes. Learning Style

MATHEMATICS FOR ENGINEERING BASIC ALGEBRA

Introduction to Matrices for Engineers

Solving Systems of Two Equations Algebraically

1.2 Solving a System of Linear Equations

What is Linear Programming?

Math 2524: Activity 3 (Excel and Matrices, continued) Fall 2002

Lecture 1: Systems of Linear Equations

1 Review of Least Squares Solutions to Overdetermined Systems

1 Solving LPs: The Simplex Algorithm of George Dantzig

Reciprocal Cost Allocations for Many Support Departments Using Spreadsheet Matrix Functions

3.1. RATIONAL EXPRESSIONS

3.2 Matrix Multiplication

Excel supplement: Chapter 7 Matrix and vector algebra

The Characteristic Polynomial

Indicator 2: Use a variety of algebraic concepts and methods to solve equations and inequalities.

CURVE FITTING LEAST SQUARES APPROXIMATION

University of Lille I PC first year list of exercises n 7. Review

THE DIMENSION OF A VECTOR SPACE

Factoring Quadratic Expressions

Click on the links below to jump directly to the relevant section

Solutions of Linear Equations in One Variable

LINEAR EQUATIONS IN TWO VARIABLES

Linear Programming Notes V Problem Transformations

Partial Fractions. Combining fractions over a common denominator is a familiar operation from algebra:

Solutions to Math 51 First Exam January 29, 2015

Solving Systems of Linear Equations

Chapter 19. General Matrices. An n m matrix is an array. a 11 a 12 a 1m a 21 a 22 a 2m A = a n1 a n2 a nm. The matrix A has n row vectors

The Method of Partial Fractions Math 121 Calculus II Spring 2015

1.7. Partial Fractions Rational Functions and Partial Fractions. A rational function is a quotient of two polynomials: R(x) = P (x) Q(x).

No Solution Equations Let s look at the following equation: 2 +3=2 +7

1.7. formulae and transposition. Introduction. Prerequisites. Learning Outcomes. Learning Style


Mathematical goals. Starting points. Materials required. Time needed

Chapter 9. Systems of Linear Equations

Linear Equations in One Variable

Linear Algebra Notes

160 CHAPTER 4. VECTOR SPACES

DERIVATIVES AS MATRICES; CHAIN RULE

CITY UNIVERSITY LONDON. BEng Degree in Computer Systems Engineering Part II BSc Degree in Computer Systems Engineering Part III PART 2 EXAMINATION

MATH APPLIED MATRIX THEORY

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

Systems of Equations

1.6 The Order of Operations

Lecture Notes 2: Matrices as Systems of Linear Equations

Arithmetic and Algebra of Matrices

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

Number Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may

MATH Fundamental Mathematics IV

Second Order Linear Nonhomogeneous Differential Equations; Method of Undetermined Coefficients. y + p(t) y + q(t) y = g(t), g(t) 0.

Name: Section Registered In:

High School Algebra Reasoning with Equations and Inequalities Solve systems of equations.

Introduction to Engineering Analysis - ENGR1100 Course Description and Syllabus Monday / Thursday Sections. Fall '15.

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial VI

( ) which must be a vector

IV. ALGEBRAIC CONCEPTS

2 Session Two - Complex Numbers and Vectors

6.1. The Exponential Function. Introduction. Prerequisites. Learning Outcomes. Learning Style

Integrating algebraic fractions

Linear Equations and Inequalities

Transcription:

Solving simultaneous equations using the inverse matrix 8.2 Introduction The power of matrix algebra is seen in the representation of a system of simultaneous linear equations as a matrix equation. Matrix algebra allows us to write the solution of the system using the inverse matrix of the coefficients. In practice the method is suitable only for small systems. Its main use is the theoretical insight into such problems which it provides. Prerequisites Before starting this Block you should... Learning Outcomes After completing this Block you should be able to... use the inverse matrix of coefficients to solve a system of two linear simultaneous equations use the inverse matrix of coefficients to solve a system of three linear simultaneous equations Recognise and identify cases where there is no unique solution be familiar with the basic rules of matrix algebra be able to evaluate 2 2and 3 3 determinants be able to find the inverse of 2 2and 3 3 matrices Learning Style To achieve what is expected of you... allocate sufficient study time briefly revise the prerequisite material attempt every guided exercise and most of the other exercises

1. Using the inverse matrix on a system of two equations If we have one linear equation ax = b in which the unknown is x and a and b are constants then there are just three possibilities a 0 then x = b a a 1 b. The equation ax = b has a unique solution for x. a =0,b = 0 then the equation ax = b becomes 0 = 0 and any value of x will do. There are infinitely many solutions to the equation ax = b. a = 0 and b 0 then ax = b becomes 0 = b which is a contradiction. In this case the equation ax = b has no solution for x. What happens if we have more than one equation and more than one unknown? In this block we copy the algebraic solution x = a 1 b used for a single equation to solve a system of linear equations. As we shall see, this will be a very natural way of solving the system if it is first written in matrix form. Consider the system 2x 1 +3x 2 = 5 x 1 2x 2 = 1. In matrix form this becomes [ 2 3 1 2 ][ x1 x 2 ] [ = 5 1 ] which is of the form AX = B. If A 1 exists then the solution is X = A 1 B. (compare the solution x = a 1 b above) Try each part of this exercise Part (a) Given the matrix A = A 1? [ 2 3 1 2 ] find its determinant. What does this tell you about Part (b) Now find A 1 To solve the system AX = B we use X = A 1 B Now do this exercise [ 2 3 Solve the system AX = B where A = 1 2 [ ] [ ] [ ] 5 1 0 (i) (ii) (iii). 1 4 0 ] and B is Engineering Mathematics: Open Learning Unit Level 1 2

2. Non-unique solutions The key to obtaining a unique solution of the system AX = B is to find A 1. What happens when A 1 does not exist? Consider the system 2x 1 +3x 2 = 5 (i) 4x 2 +6x 2 = 10. (ii) In matrix form this becomes [ 2 3 4 6 ][ x1 x 2 ] = [ 5 10 ]. Now do this exercise Identify the matrix A and hence find A 1. Looking at the original system we see that equation (ii) is simply equation (i) with all coefficients doubled. In effect we have only one equation for the two unknowns x 1 and x 2. The equations are consistent but have infinitely many solutions. If we let x 2 assume a particular value, t say, then x 1 must take the value x 1 = 1 (5 3t) i.e. 2 the solution to the given equations is: x 2 = t, x 1 = 1 (5 3t) 2 For each value of t there are values for x 1 and x 2 which satisfy the original system of equations. For example, if t = 1, then x 2 =1,x 1 =1,ift = 3 then x 2 = 3, x 1 = 7 and so on. Now consider the system 2x 1 +3x 2 = 5 (i) 4x 1 +6x 2 = 9 (ii) Since the left-hand sides are the same as those in the previous system then A is the same and again A 1 does not exist. There is no unique solution to the equations (i) and (ii). However, if we double equation (i) we obtain 4x 1 +6x 2 =10, which conflicts with equation (ii). There are thus no solutions to (i) and (ii) and the equations are said to be inconsistent. Try each part of this exercise What can you conclude about the solutions of the systems (i) x 1 2x 2 = 1 3x 1 6x 2 = 3 (ii) 3x 1 + 2x 2 = 7 6x 1 4x 2 = 5 Part (a) First write the systems in matrix form and find A. 3 Engineering Mathematics: Open Learning Unit Level 1

Part (b) Now compare the equations in each system. 3. Three equations in three unknowns It is much more tedious to use the inverse matrix to solve a system of three equations although in principle, the method is the same as for two equations. Consider the system x 1 2x 2 + x 3 = 3 2x 1 + x 2 x 3 = 5 3x 1 x 2 +2x 3 = 12. We met this system in Block 8.1 where we found that Hence A 1 exists. Try each part of this exercise Find A 1 by the method of determinants. A =10. Part (a) First form the matrix where each element of A is replaced by its minor. Part (b) Now use the 3 3 array of signs to obtain the matrix of cofactors. Part (c) Now transpose this matrix and divide by A to obtain A 1. Part (d) Now use X = A 1 B to solve the system of linear equations. Comparing this approach to the use of Cramer s rule for three equations in section 2of Block 8.1 we can say that the two methods are both rather tedious. Engineering Mathematics: Open Learning Unit Level 1 4

Equations with no unique solution If A =0,A 1 does not exist and therefore, early on, it is easy to see that the system of equations has no unique solution. But it is not obvious whether this is because the equations are inconsistent or whether they have infinitely many solutions. Try each part of this exercise Consider the systems (i) x 1 x 2 + x 3 = 4 2x 1 +3x 2 2x 3 = 3 3x 1 +2x 2 x 3 = 7 (ii) x 1 x 2 + x 3 = 4 2x 1 +3x 2 2x 3 = 3 x 1 11x 2 +9x 3 = 13 Part (a) In system (i) add the first equation to the second. What does this tell you about the system? Part (b) In system (ii) take the combination 5 times the first equation minus 2times the second equation. What does this tell you about the system? In practice, systems containing three or more linear equations are best solved by the method which we shall introduce in Block 8.3. More exercises for you to try 1. Solve the following using the inverse matrix approach: (a) 2x 3y = 1 4x + 4y = 2 (b) 2x 5y = 2 4x + 10y = 1 (c) 6x y = 0 2x 4y = 1 2. Solve the following equations using matrix methods: (a) 2x 1 + x 2 x 3 = 0 x 1 + x 3 = 4 x 1 + x 2 + x 3 = 0 (b) x 1 x 2 + x 3 = 1 x 1 + x 3 = 1 x 1 + x 2 x 3 = 0 5 Engineering Mathematics: Open Learning Unit Level 1

4. Computer Exercise or Activity For this exercise it will be necessary for you to access the computer package DERIVE. Derive is capable of doing matrix algebra and can be used to obtain matrix inverses, and so can be used to solve systems of linear equations using the inverse matrix approach. For example to solve: x 1 2x 2 + x 3 = 3 2x 1 + x 2 x 3 = 5 3x 1 x 2 +2x 3 = 12. we would key in the coefficient matrix A and the matrix of constants B on the right-hand-sides. If these are labelled as A and B so that DERIVE responds: 1 2 1 a := 2 1 1 3 1 2 b := 3 5 12 Now key Author:Expression a ( 1)b. DERIVE responds with a 1 b Now hit Simplify:Basic and DERIVE responds with: 3 1 2 which are the required solutions. It will be a useful exercise to solve the problems in this block using the matrix facilities of DERIVE. Engineering Mathematics: Open Learning Unit Level 1 6

End of Block 8.2 7 Engineering Mathematics: Open Learning Unit Level 1

A =2 ( 2) 1 3= 7 since A 0 then A 1 exists. Engineering Mathematics: Open Learning Unit Level 1 8

[ 2 3 A 1 = 1 ( 7) 1 2 ] = 1 7 [ 2 3 1 2 ] 9 Engineering Mathematics: Open Learning Unit Level 1

[ ][ ] 2 3 (i) X = 1 5 7 1 2 1 [ ][ ] 2 3 1 (ii) X = 1 7 1 2 4 [ ][ ] 2 3 0 (iii) X = 1 7 1 2 0 expected. = 1 7 = 1 7 = 1 7 [ ] [ ] 7 1 =. Hence x 7 1 1 =1,x 2 =1. [ ] [ ] 14 2 =. Hence x 7 1 1 =2,x 2 = 1. [ ] [ ] 0 0 =. Hence x 0 0 1 =0,x 2 =0, as might have been Engineering Mathematics: Open Learning Unit Level 1 10

[ 2 3 A = 4 6 ] and A =2 6 4 3=0. Hence A 1 does not exist. 11 Engineering Mathematics: Open Learning Unit Level 1

(i) (ii) [ 1 2 3 6 [ 3 2 6 4 ][ x1 x 2 ][ x1 ] [ ] 1 = 3 ] [ 7 = 5 x 2 ] A = 6+6=0; A = 12+12=0. Engineering Mathematics: Open Learning Unit Level 1 12

(i) The second equation is 3 times the first equation. There are infinitely many solutions of the form x 2 = t, x 1 =1+2t where t is arbitrary. (ii) If we multiply the first equation by ( 2) we obtain 6x 1 4x 2 = 14 which is in conflict with the second equation. The equations are inconsistent and have no solution. 13 Engineering Mathematics: Open Learning Unit Level 1

1 1 1 2 2 1 1 2 2 1 1 1 2 1 3 2 1 1 3 2 1 1 2 1 2 1 3 1 1 2 3 1 1 2 2 1 = 1 7 5 3 1 5 1 3 5. Engineering Mathematics: Open Learning Unit Level 1 14

The array of signs is + + + + + so that we obtain 1 7 5 3 1 5 1 3 5. 15 Engineering Mathematics: Open Learning Unit Level 1

Transposing gives 1 3 1 7 1 3 5 5 5. Finally, A 1 = 1 10 1 3 1 7 1 3 5 5 5. Engineering Mathematics: Open Learning Unit Level 1 16

X = 1 10 1 3 1 7 1 3 5 5 5 3 5 12 = 1 10 30 10 20 = 3 1 2 Then x 1 =3,x 2 =1,x 3 =2. 17 Engineering Mathematics: Open Learning Unit Level 1

The sum is 3x 1 +2x 2 x 3 = 7, which is identical to the third equation. Thus, essentially, there are only two equations x 1 x 2 + x 3 = 4 and 3x 1 +2x 2 x 3 = 7. Now adding these two gives 4x 1 + x 2 =11orx 2 =11 4x 1 and then x 3 =4 x 1 + x 2 =4 x 1 +11 4x 1 =15 5x 1 Hence if we give x 1 a value, t say, then x 2 =11 4t and x 3 =15 5t. Thus there are an infinite number of solutions (one for each value of t). Engineering Mathematics: Open Learning Unit Level 1 18

The combination is x 1 11x 2 +9x 3 =14, which conflicts with the third equation. There are thus no solutions. 19 Engineering Mathematics: Open Learning Unit Level 1

1. (a) x = 1 2,y= 0 (b) A 1 does not exist. (c) x = 1 22,y= 3 11 2. (a) x 1 = 8 3,x 2 = 4, x 3 = 4 3 (b) x 1 = 1 2,x 2 = 1 2,x 3 =1 Engineering Mathematics: Open Learning Unit Level 1 20