Systems of Linear Equations

Slides:



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

Chapter 4 Systems of Linear Equations; Matrices
4.3 Matrix Approach to Solving Linear Systems 1 Linear systems were solved using substitution and elimination in the two previous section. This section.
Gauss Elimination.
Chapter 4 Systems of Linear Equations; Matrices Section 2 Systems of Linear Equations and Augmented Matrics.
Systems of Linear Equations Examples Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Linear Systems and Matrices
10.1 Gaussian Elimination Method
Solving Systems of Linear Equations using Elimination
7.1 Systems of Linear Equations: Two Equations Containing Two Variables.
Solving System of Linear Equations. 1. Diagonal Form of a System of Equations 2. Elementary Row Operations 3. Elementary Row Operation 1 4. Elementary.
Table of Contents Solving Systems of Linear Equations - Gaussian Elimination The method of solving a linear system of equations by Gaussian Elimination.
Introduction Information in science, business, and mathematics is often organized into rows and columns to form rectangular arrays called “matrices” (plural.
Linear Algebra – Linear Equations
Systems of Linear Equations and Row Echelon Form.
SYSTEMS OF LINEAR EQUATIONS
Systems of Linear Equations: Substitution and Elimination
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Chapter 1 Systems of Linear Equations and Matrices
System of Linear Equations Nattee Niparnan. LINEAR EQUATIONS.
Sect 8.1 Systems of Linear Equations A system of linear equations is where all the equations in a system are linear ( variables raised to the first power).
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.
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.
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.
Chapter 7 Notes Honors Pre-Calculus. 7.1/7.2 Solving Systems Methods to solve: EXAMPLES: Possible intersections: 1 point, 2 points, none Elimination,
Systems of Linear Equations Gaussian Elimination Types of Solutions Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Section 2.2 Echelon Forms Goal: Develop systematic methods for the method of elimination that uses matrices for the solution of linear systems. The methods.
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,
The Inverse of a Matrix Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Copyright © 2011 Pearson Education, Inc. Solving Linear Systems Using Matrices Section 6.1 Matrices and Determinants.
Matrices and Systems of Equations
Section 7-3 Solving 3 x 3 systems of equations. Solving 3 x 3 Systems  substitution (triangular form)  Gaussian elimination  using an augmented matrix.
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.
Systems of Linear Equations in Vector Form Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
Chapter 1 Systems of Linear Equations Linear Algebra.
H.Melikian/12101 Gauss-Jordan Elimination Dr.Hayk Melikyan Departhmen of Mathematics and CS Any linear system must have exactly one solution,
1 SYSTEM OF LINEAR EQUATIONS BASE OF VECTOR SPACE.
Mathematics Medicine THE SOLUTIONS OF A SYSTEM OF EQUATIONS A system of equations refers to a number of equations with an equal number of variables.
Linear Equations in Linear Algebra
Chapter 4 Systems of Linear Equations; Matrices
Systems of linear equations
Gaussian Elimination and Gauss-Jordan Elimination
Gaussian Elimination and Gauss-Jordan Elimination
Solving Systems of Equations Using Matrices
Vector Spaces Prepared by Vince Zaccone
Systems of Linear Equations
Differential Equations
Chapter 8: Lesson 8.1 Matrices & Systems of Equations
Systems of Linear Equations
Systems of Linear Equations
Chapter 1 Systems of Linear Equations and Matrices
Linear Independence Prepared by Vince Zaccone
Vector Spaces Prepared by Vince Zaccone
Gaussian Elimination and Gauss-Jordan Elimination
Systems of Linear Equations
Elementary Row Operations Gaussian Elimination Method
Linear Equations in Linear Algebra
The Inverse of a Matrix Prepared by Vince Zaccone
Systems of Linear Equations
Systems of Linear Equations
Linear Equations in Linear Algebra
Matrices are identified by their size.
Linear Equations in Linear Algebra
Chapter 4 Systems of Linear Equations; Matrices
Presentation transcript:

Systems of Linear Equations Gaussian Elimination Types of Solutions Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

A linear equation is an equation that can be written in the form: The coefficients ai and the constant b can be real or complex numbers. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

A linear equation is an equation that can be written in the form: The coefficients ai and the constant b can be real or complex numbers. A Linear System is a collection of one or more linear equations in the same variables. Here are a few examples of linear systems: Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

A linear equation is an equation that can be written in the form: The coefficients ai and the constant b can be real or complex numbers. A Linear System is a collection of one or more linear equations in the same variables. Here are a few examples of linear systems: Any system of linear equations can be put into matrix form: The matrix A contains the coefficients of the variables, and the vector x has the variables as its components. For example, for the first system above the matrix version would be: Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Consider the following sets of equations: Before diving into larger systems we will look at some familiar 2-variable cases. If the equation has two variables we think of one of them as being dependent on the other. Thus we have only one independent variable. A one-dimensional object is a line, so solutions to these two-equation systems can be thought of as the intersection points of two lines. We will generalize this concept when dealing with larger systems. Consider the following sets of equations: Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Before diving into larger systems we will look at some familiar 2-variable cases. If the equation has two variables we think of one of them as being dependent on the other. Thus we have only one independent variable. A one-dimensional object is a line, so solutions to these two-equation systems can be thought of as the intersection points of two lines. We will generalize this concept when dealing with larger systems. Consider the following sets of equations: Unique Solution These two lines intersect in a single point. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Before diving into larger systems we will look at some familiar 2-variable cases. If the equation has two variables we think of one of them as being dependent on the other. Thus we have only one independent variable. A one-dimensional object is a line, so solutions to these two-equation systems can be thought of as the intersection points of two lines. We will generalize this concept when dealing with larger systems. Consider the following sets of equations: Unique Solution These two lines intersect in a single point. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Unique Solution No Solution Before diving into larger systems we will look at some familiar 2-variable cases. If the equation has two variables we think of one of them as being dependent on the other. Thus we have only one independent variable. A one-dimensional object is a line, so solutions to these two-equation systems can be thought of as the intersection points of two lines. We will generalize this concept when dealing with larger systems. Consider the following sets of equations: Unique Solution These two lines intersect in a single point. No Solution Here the lines are parallel, so never intersect. In this case we call the system inconsistent. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Unique Solution No Solution Before diving into larger systems we will look at some familiar 2-variable cases. If the equation has two variables we think of one of them as being dependent on the other. Thus we have only one independent variable. A one-dimensional object is a line, so solutions to these two-equation systems can be thought of as the intersection points of two lines. We will generalize this concept when dealing with larger systems. Consider the following sets of equations: Unique Solution These two lines intersect in a single point. No Solution Here the lines are parallel, so never intersect. In this case we call the system inconsistent. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Infinitely many solutions Before diving into larger systems we will look at some familiar 2-variable cases. If the equation has two variables we think of one of them as being dependent on the other. Thus we have only one independent variable. A one-dimensional object is a line, so solutions to these two-equation systems can be thought of as the intersection points of two lines. We will generalize this concept when dealing with larger systems. Consider the following sets of equations: Unique Solution These two lines intersect in a single point. No Solution Here the lines are parallel, so never intersect. In this case we call the system inconsistent. Infinitely many solutions The two lines coincide in this case, so they have an infinite number of intersection points. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Infinitely many solutions Here are some 3-variable systems. Each equation represents a plane (a 2-dimensional subset of ℝ3). We are looking for intersections of these planes. Unique Solution If the coefficient matrix reduces to the identity matrix there will be a unique (constant) solution to the system. No Solution If the system is inconsistent there will be no solutions. In this case there will be a contradiction that appears during the solution process. Infinitely many solutions If, after row reduction, there are more variables than nonzero rows, the system will have a family of solutions that can be written in parametric form. We will use a procedure called Gaussian Elimination to solve systems such as these. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Elementary Row Operations Here is our first 3x3 system. To start the Gaussian Elimination procedure (also called Row Reduction), form the Augmented Matrix for the system. This is simply the coefficient matrix with the vector from the right-hand-side next to it. The procedure will use “Elementary Row Operations” to give us a matrix in “Reduced Echelon Form”. Augmented Matrix Elementary Row Operations Add a multiple of one row to another row Switch two rows Multiply any row by a (nonzero) constant Performing any of these operations will not change the solutions to the system. We say that systems are “row-equivalent” when they have the same solution set. Echelon Form All nonzero rows are above any rows of all zeros. Each leading entry of a nonzero row is in a column to the right of the leading entry in the row above it. All entries in a column below a leading entry are zero. To be in Reduced Echelon Form, there are two more requirements: The leading entry in each nonzero row is 1. Each leading 1 is the only nonzero entry in its column. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is our first 3x3 system. The first row-reduction step is to get zeroes below the 1 in the upper left. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is our first 3x3 system. The first row-reduction step is to get zeroes below the 1 in the upper left. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is our first 3x3 system. The first row-reduction step is to get zeroes below the 1 in the upper left. For the next step we want to get a zero in the bottom-middle spot. For hand-calculations I like to keep entries integers as much as possible, so I would do 2 steps here-multiply row 3 by 2, then add (-3) times row 2. This can be done together: Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is our first 3x3 system. The first row-reduction step is to get zeroes below the 1 in the upper left. For the next step we want to get a zero in the bottom-middle spot. For hand-calculations I like to keep entries integers as much as possible, so I would do 2 steps here-multiply row 3 by 2, then add (-3) times row 2. This can be done together: This matrix is in “Echelon Form” Next step is to multiply (-1) through row 3, then use row 3 to get zeroes in column 3. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is our first 3x3 system. The first row-reduction step is to get zeroes below the 1 in the upper left. For the next step we want to get a zero in the bottom-middle spot. For hand-calculations I like to keep entries integers as much as possible, so I would do 2 steps here-multiply row 3 by 2, then add (-3) times row 2. This can be done together: Next step is to multiply (-1) through row 3, then use row 3 to get zeroes in column 3. After dividing row two by 2, the last step is to add row 2 to row 1. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is our first 3x3 system. The first row-reduction step is to get zeroes below the 1 in the upper left. For the next step we want to get a zero in the bottom-middle spot. For hand-calculations I like to keep entries integers as much as possible, so I would do 2 steps here-multiply row 3 by 2, then add (-3) times row 2. This can be done together: Next step is to multiply (-1) through row 3, then use row 3 to get zeroes in column 3. After dividing row two by 2, the last step is to add row 2 to row 1. This matrix is in “Reduced Echelon Form” (REF) Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is the reduced matrix Here is the reduced matrix. Notice that the left part has ones along the diagonal and zeroes elsewhere. This is the 3x3 Identity Matrix. In this case the solution is staring us in the face. The solution represents the common intersection point of the three planes represented by the equations in the system. Unique Solution If the coefficient matrix reduces to the identity matrix there will be a unique (numerical) solution to the system. The solution to this system is a single point: (1,4,5) Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is the next system. The basic pattern is to start at the upper left corner, then use row operations to get zeroes below, then work counterclockwise until the matrix is in REF. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is the next system. The basic pattern is to start at the upper left corner, then use row operations to get zeroes below, then work counterclockwise until the matrix is in REF. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is the next system. The basic pattern is to start at the upper left corner, then use row operations to get zeroes below, then work counterclockwise until the matrix is in REF. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is the next system. The basic pattern is to start at the upper left corner, then use row operations to get zeroes below, then work counterclockwise until the matrix is in REF. At this point you might notice a problem. That last row doesn’t make sense. It might help to write out the equation that the last row represents. It says 0x+0y+0z=3. Are there any values of x, y and z that make this equation work? (the answer is NO!) This system is called INCONSISTENT because we arrive at a contradiction during the solution procedure. This means that the system has no solution. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

This is the reduced matrix (actually we could go one step further and get a zero up in row 1). Notice that we got a row of zeroes in the left part of the augmented matrix. When this happens the system will either be inconsistent, like this one, or we will have a free variable (infinite # of solutions). No Solution If the system is inconsistent there will be no solutions. In this case there will be a contradiction that appears during the solution process. This line is the intersection of a pair of the planes This line is the intersection of a different pair of the planes Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is another system. Work through the row-reduction procedure to obtain the REF matrix. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Here is another system. Work through the row-reduction procedure to obtain the REF matrix. This time there is a row of zeroes at the bottom. However there is no contradiction here. The bottom row represents the equation 0x+0y+0z=0. This is always true! Continue with row reduction by dividing row 2 by -3, then get a zero in row 1. Reduced Echelon Form Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

This is two equations in 3 unknowns. The free variable is z. Here is another system. Work through the row-reduction procedure to obtain the REF matrix. This time there is a row of zeroes at the bottom. However there is no contradiction here. The bottom row represents the equation 0x+0y+0z=0. This is always true! Continue with row reduction by dividing row 2 by -3, then get a zero in row 1. Reduced Echelon Form Now that we have the reduced matrix, how do we write the solution? A good place to start is to write the system of equations represented by the reduced matrix: This is two equations in 3 unknowns. The free variable is z. This means that z can be any value, and the system will have a solution. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

Infinitely many solutions To write down the solution, we can rearrange the equations so that they are solved in terms of the free variable (z). Here I have written the solution in vector form (re-naming the parameter ‘t’ instead of ‘z’). For each value of t there is a corresponding point on the line. Notice that is similar to the typical equation of a straight line : y=mx+b. Infinitely many solutions If, after row reduction, there are more variables than nonzero rows, the system will have a family of solutions that can be written in parametric form. This system has a 1-parameter solution: it is a line in ℝ3. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB