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

Slides:



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

Elementary Linear Algebra
Gauss Elimination.
Chapter 4 Systems of Linear Equations; Matrices Section 2 Systems of Linear Equations and Augmented Matrics.
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.
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
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.
Math 3C Practice Midterm Solutions Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
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
Systems of Linear Equations and Row Echelon Form.
SYSTEMS OF LINEAR EQUATIONS
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
Linear Equations in Linear Algebra
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.
Copyright © Cengage Learning. All rights reserved. 7.4 Matrices and Systems of Equations.
Warm-Up Write each system as a matrix equation. Then solve the system, if possible, by using the matrix equation. 6 minutes.
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,
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.
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.
We will use Gauss-Jordan elimination to determine the solution set of this linear system.
1 1.5 © 2016 Pearson Education, Inc. Linear Equations in Linear Algebra SOLUTION SETS OF LINEAR 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
Matrices and Systems of Linear Equations
How To Find The Reduced Row Echelon Form. Reduced Row Echelon Form A matrix is said to be in reduced row echelon form provided it satisfies the following.
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.
Vector Spaces Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
RECOGNIZING INCONSISTENT LINEAR SYSTEMS. What is an Inconsistent Linear System?  An inconsistent linear system is a system of equations that has no solutions.
H.Melikian/12101 Gauss-Jordan Elimination Dr.Hayk Melikyan Departhmen of Mathematics and CS Any linear system must have exactly one solution,
Differential Equations Second-Order Linear DEs Variation of Parameters Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB.
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
Systems of Linear Equations
Systems of Linear 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
Gaussian Elimination and Gauss-Jordan Elimination
Systems of Linear Equations
The Inverse of a Matrix Prepared by Vince Zaccone
Systems of Linear Equations
Systems of Linear Equations
Matrices are identified by their size.
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: Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB The coefficients a i and the constant b can be real or complex numbers.

A linear equation is an equation that can be written in the form: Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB The coefficients a i 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:

A linear equation is an equation that can be written in the form: Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB The coefficients a i 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 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 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: No Solution Here the lines are parallel, so never intersect. In this case we call the system inconsistent. 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: No Solution Here the lines are parallel, so never intersect. In this case we call the system inconsistent. 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: No Solution Here the lines are parallel, so never intersect. In this case we call the system inconsistent. Unique Solution These two lines intersect in a single point. 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 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. 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. Unique Solution If the coefficient matrix reduces to the identity matrix there will be a unique (constant) solution to the system. 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 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: 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. We will practice this procedure on the augmented matrix above.

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. Next step is to multiply (-1) through row 3, then use row 3 to get zeroes in column 3. 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. 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. 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. 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) 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:

The solution to this system is a single point: (1,4,5) Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB Unique Solution If the coefficient matrix reduces to the identity matrix there will be a unique (numerical) solution to the system. 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.

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.

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 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 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).

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 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.

This system has a 1-parameter solution: it is a line in ℝ 3. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB 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. 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.