Linear Simultaneous Equations

Slides:



Advertisements
Similar presentations
4.5 Inverses of Matrices.
Advertisements

PRECALCULUS I SOLVING SYSTEMS OF EQUATIONS Dr. Claude S. Moore Cape Fear Community College Chapter 8.
Chapter 4 Systems of Linear Equations; Matrices Section 6 Matrix Equations and Systems of Linear Equations.
Chapter 1 Computing Tools Data Representation, Accuracy and Precision Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Chapter 2 Basic Linear Algebra
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Part 31 Chapter.
Pam Perlich Urban Planning 5/6020
MATRICES Using matrices to solve Systems of Equations.
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.
Solving System of Equations Using Graphing
Matrix Mathematics in MATLAB and Excel
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
Non-Linear Simultaneous Equations
Chapter 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Linear Algebraic Equations ~ Gauss Elimination Chapter.
Matrix Equations Step 1: Write the system as a matrix equation. A three-equation system is shown below.
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.
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
Systems of Equations and Inequalities
Systems of Linear Equations
Math 71A 3.1 – Systems of Linear Equations in Two Variables 1.
Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
Introduction to MATLAB for Engineers, Third Edition William J. Palm III Chapter 8 Linear Algebraic Equations PowerPoint to accompany Copyright © 2010.
3.5 Solution by Determinants. The Determinant of a Matrix The determinant of a matrix A is denoted by |A|. Determinants exist only for square matrices.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
Presentation by: H. Sarper
Chapter 6 Finding the Roots of Equations
Chapter 2 Systems of Linear Equations and Matrices Section 2.1 Solutions of Linear Systems.
Copyright © 1999 by the McGraw-Hill Companies, Inc. Barnett/Ziegler/Byleen Precalculus: Functions & Graphs, 4 th Edition Chapter Eight Systems of Equations.
Inverses and Systems Section Warm – up:
4.6 Matrix Equations and Systems of Linear Equations In this section, you will study matrix equations and how to use them to solve systems of linear equations.
Copyright © 2007 Pearson Education, Inc. Slide 7-1.
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.
Part 3 Chapter 11 Matrix Inverse and Condition PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
13.6 MATRIX SOLUTION OF A LINEAR SYSTEM.  Examine the matrix equation below.  How would you solve for X?  In order to solve this type of equation,
Part 3 Chapter 11 Matrix Inverse and Condition Part A All images copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 3 - Chapter 9 Linear Systems of Equations: Gauss Elimination.
Slide 7- 1 Copyright © 2012 Pearson Education, Inc.
Working with Arrays in MATLAB
Newton’s Method, Root Finding with MATLAB and Excel
1 Section 5.3 Linear Systems of Equations. 2 THREE EQUATIONS WITH THREE VARIABLES Consider the linear system of three equations below with three unknowns.
Chapter 4 MATLAB Programming MATLAB Troubleshooting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright © 2014, The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Matrix Algebra Basics Chapter 3 Section 5. Algebra.
Systems of Linear Equations: An Introduction Unique Solutions Underdetermined and Overdetermined Systems Multiplication of Matrices The Inverse of a Square.
Chapter 2 Lesson 3 Systems of Linear Equations in Two Variables.
Copyright © Cengage Learning. All rights reserved. 8 Matrices and Determinants.
Mathematical Applications By Matlab 3 rd Day Dr. Wael Khedr CSI Dept.
College Algebra Chapter 6 Matrices and Determinants and Applications
Use Inverse Matrices to Solve Linear Systems
Chapter 7 Matrix Mathematics
The Inverse of a Square Matrix
Matrix Inverse and Condition
Movable lines class activity.
Solving Systems of Linear Equations
Systems of Linear Equations
Chapter 7: Matrices and Systems of Equations and Inequalities
Using matrices to solve Systems of Equations
Systems of Linear Equations
Use Inverse Matrices to Solve 2 Variable Linear Systems
Section 9.5 Inverses of Matrices
Chapter 3 Section 1 Systems of Linear Equations in Two Variables All graphs need to be done on graph paper. Four, five squares to the inch is the best.
Systems of Linear Equations
Using matrices to solve Systems of Equations
Matrices and Linear Equations
Solving Linear Systems of Equations - Inverse Matrix
Presentation transcript:

Linear Simultaneous Equations Chapter 8 Solving Simultaneous Equations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Review: Linear Simultaneous Equations If equations contain only linear terms of the independent variables – that is, only constants multiplied by each variable – and constants, then the equation is linear If the equation contains any terms such as x2, cos(x), ex, etc., then the equation is non-linear Consider these two linear equations: Engineering Computation: An Introduction Using MATLAB and Excel

Solution to Simultaneous Equations Are there values of x and y that fit both equations? That is, are there values of x and y that simultaneously satisfy both equations? For two equations, it is easy to find the solution by substitution: Write the second equation as: Engineering Computation: An Introduction Using MATLAB and Excel

Solution by Substitution Substitute the second equation into the first: Solve for x: Substitute x into the second equation: Engineering Computation: An Introduction Using MATLAB and Excel

Graphical Solution For equations with two variables, a graphical solution is possible For each equation, plot two points to define a line If the lines intersect, then the intersection point is a solution to both equations Engineering Computation: An Introduction Using MATLAB and Excel

Graphical Solution Equation 1 Equation 2 Engineering Computation: An Introduction Using MATLAB and Excel

Review: Equations in Matrix Form The first step in using matrix methods to solve a series of linear simultaneous equations is to write them in matrix form For n simultaneous equations and n unknowns: where A is the coefficient matrix (n × n); X is the matrix of unknowns (n × 1), and C is the constant matrix (n × 1) Engineering Computation: An Introduction Using MATLAB and Excel

Review: Linear Simultaneous Equations Recall that if there are more unknowns then equations, then we cannot find a unique solution If there are more equations than unknowns, then some equations must be redundant If there are exactly the same number of equations and unknowns, then there may be a unique solution. In this case the coefficient matrix will be square Engineering Computation: An Introduction Using MATLAB and Excel

Solution of System of Linear Equations Multiply both sides of the equation by the inverse of the coefficient matrix. Remember that the order of multiplication is important. Since the inverse of a matrix times that matrix is equal to the identity matrix, Engineering Computation: An Introduction Using MATLAB and Excel

Solution of System of Linear Equations Since the identity matrix times another matrix is equal to that matrix, Therefore, we can find the unknown variables by multiplying the inverse of the coefficient matrix by the constant matrix Engineering Computation: An Introduction Using MATLAB and Excel

Example – 2 Equations Let’s use the matrix approach to solve the equations of the earlier example: The first step is to write the equations in matrix form: Engineering Computation: An Introduction Using MATLAB and Excel

Example – 2 Equations Next, we need to find the inverse of the A matrix: Engineering Computation: An Introduction Using MATLAB and Excel

Example – 2 Equations To find x and y, multiply the inverse of A by C: Engineering Computation: An Introduction Using MATLAB and Excel

MATLAB Solution >> A = [2 3;-4 1]; >> C = [14;28]; >> X = inv(A)*C X = -5 8 >> Engineering Computation: An Introduction Using MATLAB and Excel

Another Example Consider these two equations: MATLAB: >> X = inv(A)*C Warning: Matrix is singular to working precision. X = Inf Engineering Computation: An Introduction Using MATLAB and Excel

What’s Wrong? Solve with substitution: Second equation in terms of y: Substitute into first equation: Engineering Computation: An Introduction Using MATLAB and Excel

What’s Wrong? Solve: Any value of x will satisfy this equation Engineering Computation: An Introduction Using MATLAB and Excel

Graphical Solution Engineering Computation: An Introduction Using MATLAB and Excel

Interpretation of Solution The second equation is equal to the first equation multiplied by a constant Therefore, both equations are the same, as noted by the fact that they define the same line Any point on the line will satisfy both equations Therefore, there are an infinite number of solutions to these equations Engineering Computation: An Introduction Using MATLAB and Excel

A Third Example Consider these two equations: MATLAB: >> X = inv(A)*C Warning: Matrix is singular to working precision. X = Inf Engineering Computation: An Introduction Using MATLAB and Excel

What’s Wrong? Solve with substitution: Second equation in terms of y: Substitute into first equation: Engineering Computation: An Introduction Using MATLAB and Excel

What’s Wrong? Solve: No value of x will satisfy this equation Engineering Computation: An Introduction Using MATLAB and Excel

Graphical Solution Engineering Computation: An Introduction Using MATLAB and Excel

Interpretation of Solution The graphical solution shows that the two equations define parallel lines Since parallel lines never intersect, there is no point that satisfies both equations Therefore, there is no solution to these equations Note that MATLAB (or Excel) solution will result in the same error – the inverse of the coefficient matrix does not exist Engineering Computation: An Introduction Using MATLAB and Excel

Summary If the inverse of the coefficient matrix exists, then there is a solution, and that solution is unique If the inverse does not exist, then there are two possibilities: The equations are incompatible, and so there are no solutions, or At least two of the equations are redundant, and so there are more unknowns than unique equations. Therefore, there are an infinite number of solutions Engineering Computation: An Introduction Using MATLAB and Excel

Example – 3 Equations Write these equations in matrix form: Engineering Computation: An Introduction Using MATLAB and Excel

Example – 3 Equations MATLAB solution: >> C = [-30; 11; 42]; >> X = inv(A)*C X = 7.0000 -2.0000 5.0000 >> Engineering Computation: An Introduction Using MATLAB and Excel

Excel Solution Enter coefficient and constant matrices: Engineering Computation: An Introduction Using MATLAB and Excel

Excel Solution Label and highlight cells for matrix of unknown variables: Engineering Computation: An Introduction Using MATLAB and Excel

Excel Solution Enter formula to invert A matrix and multiply the result by the C matrix. This can be done in two steps or with nested commands as shown here: Engineering Computation: An Introduction Using MATLAB and Excel

Excel Solution Apply formula to the selected array of cells by pressing Ctrl + Shift + Enter: Engineering Computation: An Introduction Using MATLAB and Excel