Solving Systems of Linear Equations There are two basic methods we - - PowerPoint PPT Presentation

solving systems of linear equations
SMART_READER_LITE
LIVE PREVIEW

Solving Systems of Linear Equations There are two basic methods we - - PowerPoint PPT Presentation

Solving Systems of Linear Equations There are two basic methods we will use to solve systems of linear equations: Alan H. SteinUniversity of Connecticut Solving Systems of Linear Equations There are two basic methods we will use to solve


slide-1
SLIDE 1

Solving Systems of Linear Equations

There are two basic methods we will use to solve systems of linear equations:

Alan H. SteinUniversity of Connecticut

slide-2
SLIDE 2

Solving Systems of Linear Equations

There are two basic methods we will use to solve systems of linear equations:

◮ Substitution

Alan H. SteinUniversity of Connecticut

slide-3
SLIDE 3

Solving Systems of Linear Equations

There are two basic methods we will use to solve systems of linear equations:

◮ Substitution ◮ Elimination

Alan H. SteinUniversity of Connecticut

slide-4
SLIDE 4

Solving Systems of Linear Equations

There are two basic methods we will use to solve systems of linear equations:

◮ Substitution ◮ Elimination

We will describe each for a system of two equations in two unknowns,

Alan H. SteinUniversity of Connecticut

slide-5
SLIDE 5

Solving Systems of Linear Equations

There are two basic methods we will use to solve systems of linear equations:

◮ Substitution ◮ Elimination

We will describe each for a system of two equations in two unknowns, but each works for systems with more equations and more unknowns.

Alan H. SteinUniversity of Connecticut

slide-6
SLIDE 6

Solving Systems of Linear Equations

There are two basic methods we will use to solve systems of linear equations:

◮ Substitution ◮ Elimination

We will describe each for a system of two equations in two unknowns, but each works for systems with more equations and more unknowns. So assume we have a system of the form:

Alan H. SteinUniversity of Connecticut

slide-7
SLIDE 7

Solving Systems of Linear Equations

There are two basic methods we will use to solve systems of linear equations:

◮ Substitution ◮ Elimination

We will describe each for a system of two equations in two unknowns, but each works for systems with more equations and more unknowns. So assume we have a system of the form: ax + by = c dx + ey = f

Alan H. SteinUniversity of Connecticut

slide-8
SLIDE 8

Substitution

To use substitution, we solve for one of the variables in one of the equations in terms of the other variable and substitute that value in the other equation.

Alan H. SteinUniversity of Connecticut

slide-9
SLIDE 9

Substitution

To use substitution, we solve for one of the variables in one of the equations in terms of the other variable and substitute that value in the other equation. That gives us a single equation in one variable,

Alan H. SteinUniversity of Connecticut

slide-10
SLIDE 10

Substitution

To use substitution, we solve for one of the variables in one of the equations in terms of the other variable and substitute that value in the other equation. That gives us a single equation in one variable, which we may solve

Alan H. SteinUniversity of Connecticut

slide-11
SLIDE 11

Substitution

To use substitution, we solve for one of the variables in one of the equations in terms of the other variable and substitute that value in the other equation. That gives us a single equation in one variable, which we may solve and then substitute that solution into either original equation or,

Alan H. SteinUniversity of Connecticut

slide-12
SLIDE 12

Substitution

To use substitution, we solve for one of the variables in one of the equations in terms of the other variable and substitute that value in the other equation. That gives us a single equation in one variable, which we may solve and then substitute that solution into either original equation or, even better, into the formula we got for the other variable.

Alan H. SteinUniversity of Connecticut

slide-13
SLIDE 13

Elimination

With elimination, we legally modify the equations so that, for one variable, its coefficients in the two equations match up,

Alan H. SteinUniversity of Connecticut

slide-14
SLIDE 14

Elimination

With elimination, we legally modify the equations so that, for one variable, its coefficients in the two equations match up, being either the same or negatives of one another.

Alan H. SteinUniversity of Connecticut

slide-15
SLIDE 15

Elimination

With elimination, we legally modify the equations so that, for one variable, its coefficients in the two equations match up, being either the same or negatives of one another. When the coefficients match up, we either add or subtract, meaning

Alan H. SteinUniversity of Connecticut

slide-16
SLIDE 16

Elimination

With elimination, we legally modify the equations so that, for one variable, its coefficients in the two equations match up, being either the same or negatives of one another. When the coefficients match up, we either add or subtract, meaning we equate either the sum or difference of the left sides of the two equations together with the sum or difference of the right sides of the two equations.

Alan H. SteinUniversity of Connecticut

slide-17
SLIDE 17

Elimination

For example, given the equations

Alan H. SteinUniversity of Connecticut

slide-18
SLIDE 18

Elimination

For example, given the equations ax + by = c (1) dx + ey = f , (2)

Alan H. SteinUniversity of Connecticut

slide-19
SLIDE 19

Elimination

For example, given the equations ax + by = c (1) dx + ey = f , (2) we might multiply both sides of (1) by d to get

Alan H. SteinUniversity of Connecticut

slide-20
SLIDE 20

Elimination

For example, given the equations ax + by = c (1) dx + ey = f , (2) we might multiply both sides of (1) by d to get adx + bdy = cd (3)

Alan H. SteinUniversity of Connecticut

slide-21
SLIDE 21

Elimination

For example, given the equations ax + by = c (1) dx + ey = f , (2) we might multiply both sides of (1) by d to get adx + bdy = cd (3) and multiply both sides of (2) by a to get

Alan H. SteinUniversity of Connecticut

slide-22
SLIDE 22

Elimination

For example, given the equations ax + by = c (1) dx + ey = f , (2) we might multiply both sides of (1) by d to get adx + bdy = cd (3) and multiply both sides of (2) by a to get adx + aey = af . (4)

Alan H. SteinUniversity of Connecticut

slide-23
SLIDE 23

Elimination

Since the coefficients of x are the same, we equate the differences

  • f the two sides, getting

Alan H. SteinUniversity of Connecticut

slide-24
SLIDE 24

Elimination

Since the coefficients of x are the same, we equate the differences

  • f the two sides, getting

(bd − ae)y = cd − af . (5)

Alan H. SteinUniversity of Connecticut

slide-25
SLIDE 25

Elimination

Since the coefficients of x are the same, we equate the differences

  • f the two sides, getting

(bd − ae)y = cd − af . (5) We can then solve (5) by dividing both sides by bd − ae to get y = cd − af bd − ae .

Alan H. SteinUniversity of Connecticut

slide-26
SLIDE 26

Elimination

Since the coefficients of x are the same, we equate the differences

  • f the two sides, getting

(bd − ae)y = cd − af . (5) We can then solve (5) by dividing both sides by bd − ae to get y = cd − af bd − ae . We can then either plug this value into any of the equations,

Alan H. SteinUniversity of Connecticut

slide-27
SLIDE 27

Elimination

Since the coefficients of x are the same, we equate the differences

  • f the two sides, getting

(bd − ae)y = cd − af . (5) We can then solve (5) by dividing both sides by bd − ae to get y = cd − af bd − ae . We can then either plug this value into any of the equations, or perform a similar calculation to eliminate y and solve for x.

Alan H. SteinUniversity of Connecticut

slide-28
SLIDE 28

Example

Solve 2x + 5y = 16 3x + 2y = 13

Alan H. SteinUniversity of Connecticut

slide-29
SLIDE 29

Example

Solve 2x + 5y = 16 3x + 2y = 13 We might multiply both sides of the first equation by 3 and the second by 2, getting

Alan H. SteinUniversity of Connecticut

slide-30
SLIDE 30

Example

Solve 2x + 5y = 16 3x + 2y = 13 We might multiply both sides of the first equation by 3 and the second by 2, getting 6x + 15y = 48 6x + 4y = 26.

Alan H. SteinUniversity of Connecticut

slide-31
SLIDE 31

Example

Solve 2x + 5y = 16 3x + 2y = 13 We might multiply both sides of the first equation by 3 and the second by 2, getting 6x + 15y = 48 6x + 4y = 26. Subtracting, we get 11y = 22,

Alan H. SteinUniversity of Connecticut

slide-32
SLIDE 32

Example

Solve 2x + 5y = 16 3x + 2y = 13 We might multiply both sides of the first equation by 3 and the second by 2, getting 6x + 15y = 48 6x + 4y = 26. Subtracting, we get 11y = 22, y = 2.

Alan H. SteinUniversity of Connecticut

slide-33
SLIDE 33

Example

Solve 2x + 5y = 16 3x + 2y = 13 We might multiply both sides of the first equation by 3 and the second by 2, getting 6x + 15y = 48 6x + 4y = 26. Subtracting, we get 11y = 22, y = 2. We can substitute that into the first equation to get 2x + 5 · 2 = 16,

Alan H. SteinUniversity of Connecticut

slide-34
SLIDE 34

Example

Solve 2x + 5y = 16 3x + 2y = 13 We might multiply both sides of the first equation by 3 and the second by 2, getting 6x + 15y = 48 6x + 4y = 26. Subtracting, we get 11y = 22, y = 2. We can substitute that into the first equation to get 2x + 5 · 2 = 16, 2x + 10 = 16,

Alan H. SteinUniversity of Connecticut

slide-35
SLIDE 35
slide-36
SLIDE 36

Example

Solve 2x + 5y = 16 3x + 2y = 13 We might multiply both sides of the first equation by 3 and the second by 2, getting 6x + 15y = 48 6x + 4y = 26. Subtracting, we get 11y = 22, y = 2. We can substitute that into the first equation to get 2x + 5 · 2 = 16, 2x + 10 = 16, 2x = 6, x = 3.

Alan H. SteinUniversity of Connecticut

slide-37
SLIDE 37

Steps We May Take to Solve Equations

Every step taken to solve an equation or a system of equations may be categorized as one of the following.

Alan H. SteinUniversity of Connecticut

slide-38
SLIDE 38

Steps We May Take to Solve Equations

Every step taken to solve an equation or a system of equations may be categorized as one of the following.

◮ Adding the same thing to both sides of an equation.

Alan H. SteinUniversity of Connecticut

slide-39
SLIDE 39

Steps We May Take to Solve Equations

Every step taken to solve an equation or a system of equations may be categorized as one of the following.

◮ Adding the same thing to both sides of an equation. ◮ Subtracting the same thing from both sides of an equation.

Alan H. SteinUniversity of Connecticut

slide-40
SLIDE 40

Steps We May Take to Solve Equations

Every step taken to solve an equation or a system of equations may be categorized as one of the following.

◮ Adding the same thing to both sides of an equation. ◮ Subtracting the same thing from both sides of an equation. ◮ Multiplying both sides of an equation by the same non-zero

thing.

Alan H. SteinUniversity of Connecticut

slide-41
SLIDE 41

Steps We May Take to Solve Equations

Every step taken to solve an equation or a system of equations may be categorized as one of the following.

◮ Adding the same thing to both sides of an equation. ◮ Subtracting the same thing from both sides of an equation. ◮ Multiplying both sides of an equation by the same non-zero

thing.

◮ Dividing both sides of an equation by the same non-zero thing.

Alan H. SteinUniversity of Connecticut

slide-42
SLIDE 42

Steps We May Take to Solve Equations

Every step taken to solve an equation or a system of equations may be categorized as one of the following.

◮ Adding the same thing to both sides of an equation. ◮ Subtracting the same thing from both sides of an equation. ◮ Multiplying both sides of an equation by the same non-zero

thing.

◮ Dividing both sides of an equation by the same non-zero thing. ◮ Replacing something by something else equal to it.

Alan H. SteinUniversity of Connecticut

slide-43
SLIDE 43

Steps We May Take to Solve Equations

Every step taken to solve an equation or a system of equations may be categorized as one of the following.

◮ Adding the same thing to both sides of an equation. ◮ Subtracting the same thing from both sides of an equation. ◮ Multiplying both sides of an equation by the same non-zero

thing.

◮ Dividing both sides of an equation by the same non-zero thing. ◮ Replacing something by something else equal to it. ◮ Raising both sides of an equation to the same power.

Alan H. SteinUniversity of Connecticut

slide-44
SLIDE 44

Steps We May Take to Solve Equations

Every step taken to solve an equation or a system of equations may be categorized as one of the following.

◮ Adding the same thing to both sides of an equation. ◮ Subtracting the same thing from both sides of an equation. ◮ Multiplying both sides of an equation by the same non-zero

thing.

◮ Dividing both sides of an equation by the same non-zero thing. ◮ Replacing something by something else equal to it. ◮ Raising both sides of an equation to the same power. Beware

that this step may introduce extraneous solutions.

Alan H. SteinUniversity of Connecticut

slide-45
SLIDE 45

Elementary Operations on Systems of Linear Equations

We will come up with a mechanical method for solving systems of linear equations called Gaussian Elimination.

Alan H. SteinUniversity of Connecticut

slide-46
SLIDE 46

Elementary Operations on Systems of Linear Equations

We will come up with a mechanical method for solving systems of linear equations called Gaussian Elimination. It will not always be the most efficient way when solving equations by hand, but will be an excellent way to instruct a computer to use and will also lead to greater understanding of the Simplex Method for solving linear programming problems.

Alan H. SteinUniversity of Connecticut

slide-47
SLIDE 47

Elementary Operations on Systems of Linear Equations

We will come up with a mechanical method for solving systems of linear equations called Gaussian Elimination. It will not always be the most efficient way when solving equations by hand, but will be an excellent way to instruct a computer to use and will also lead to greater understanding of the Simplex Method for solving linear programming problems. We will first reduce the steps we take to solve equations to just three and see how these suffice for solving systems of linear equations.

Alan H. SteinUniversity of Connecticut

slide-48
SLIDE 48

Elementary Operations on Systems of Linear Equations

We will come up with a mechanical method for solving systems of linear equations called Gaussian Elimination. It will not always be the most efficient way when solving equations by hand, but will be an excellent way to instruct a computer to use and will also lead to greater understanding of the Simplex Method for solving linear programming problems. We will first reduce the steps we take to solve equations to just three and see how these suffice for solving systems of linear

  • equations. We will use slang to denote these steps;

Alan H. SteinUniversity of Connecticut

slide-49
SLIDE 49

Elementary Operations on Systems of Linear Equations

We will come up with a mechanical method for solving systems of linear equations called Gaussian Elimination. It will not always be the most efficient way when solving equations by hand, but will be an excellent way to instruct a computer to use and will also lead to greater understanding of the Simplex Method for solving linear programming problems. We will first reduce the steps we take to solve equations to just three and see how these suffice for solving systems of linear

  • equations. We will use slang to denote these steps; it’s important

to recognize what we really mean.

Alan H. SteinUniversity of Connecticut

slide-50
SLIDE 50

The Three Elementary Row Operations

Alan H. SteinUniversity of Connecticut

slide-51
SLIDE 51

The Three Elementary Row Operations

  • 1. Multiply an equation by a non-zero constant.

Alan H. SteinUniversity of Connecticut

slide-52
SLIDE 52

The Three Elementary Row Operations

  • 1. Multiply an equation by a non-zero constant. Obviously, this

is something that should not be taken literally.

Alan H. SteinUniversity of Connecticut

slide-53
SLIDE 53

The Three Elementary Row Operations

  • 1. Multiply an equation by a non-zero constant. Obviously, this

is something that should not be taken literally. What’s really meant is to multiply both sides of an equation by the same non-zero constant to obtain a new equation equivalent to the

  • riginal equation.

Alan H. SteinUniversity of Connecticut

slide-54
SLIDE 54

The Three Elementary Row Operations

  • 1. Multiply an equation by a non-zero constant. Obviously, this

is something that should not be taken literally. What’s really meant is to multiply both sides of an equation by the same non-zero constant to obtain a new equation equivalent to the

  • riginal equation.
  • 2. Add a multiple of one equation to another.

Alan H. SteinUniversity of Connecticut

slide-55
SLIDE 55

The Three Elementary Row Operations

  • 1. Multiply an equation by a non-zero constant. Obviously, this

is something that should not be taken literally. What’s really meant is to multiply both sides of an equation by the same non-zero constant to obtain a new equation equivalent to the

  • riginal equation.
  • 2. Add a multiple of one equation to another. Again, this should

not be taken literally.

Alan H. SteinUniversity of Connecticut

slide-56
SLIDE 56

The Three Elementary Row Operations

  • 1. Multiply an equation by a non-zero constant. Obviously, this

is something that should not be taken literally. What’s really meant is to multiply both sides of an equation by the same non-zero constant to obtain a new equation equivalent to the

  • riginal equation.
  • 2. Add a multiple of one equation to another. Again, this should

not be taken literally. It really means to add a multiple of the left side of one equation to the left side of another and also add the same multiple of the right side of that equation to the right side of the other.

Alan H. SteinUniversity of Connecticut

slide-57
SLIDE 57

The Three Elementary Row Operations

  • 1. Multiply an equation by a non-zero constant. Obviously, this

is something that should not be taken literally. What’s really meant is to multiply both sides of an equation by the same non-zero constant to obtain a new equation equivalent to the

  • riginal equation.
  • 2. Add a multiple of one equation to another. Again, this should

not be taken literally. It really means to add a multiple of the left side of one equation to the left side of another and also add the same multiple of the right side of that equation to the right side of the other.

  • 3. Interchange two equations.

Alan H. SteinUniversity of Connecticut

slide-58
SLIDE 58

The Three Elementary Row Operations

  • 1. Multiply an equation by a non-zero constant. Obviously, this

is something that should not be taken literally. What’s really meant is to multiply both sides of an equation by the same non-zero constant to obtain a new equation equivalent to the

  • riginal equation.
  • 2. Add a multiple of one equation to another. Again, this should

not be taken literally. It really means to add a multiple of the left side of one equation to the left side of another and also add the same multiple of the right side of that equation to the right side of the other.

  • 3. Interchange two equations. This is obviously legitimate but

may seem pointless.

Alan H. SteinUniversity of Connecticut

slide-59
SLIDE 59

The Three Elementary Row Operations

  • 1. Multiply an equation by a non-zero constant. Obviously, this

is something that should not be taken literally. What’s really meant is to multiply both sides of an equation by the same non-zero constant to obtain a new equation equivalent to the

  • riginal equation.
  • 2. Add a multiple of one equation to another. Again, this should

not be taken literally. It really means to add a multiple of the left side of one equation to the left side of another and also add the same multiple of the right side of that equation to the right side of the other.

  • 3. Interchange two equations. This is obviously legitimate but

may seem pointless. It is essentially pointless if solving equations by hand but will not be pointless when instructing a computer to solve a system of equations.

Alan H. SteinUniversity of Connecticut

slide-60
SLIDE 60

Elementary Row Operations on Matrices

When solving equations using elimination, the variables themselves are almost superfluous.

Alan H. SteinUniversity of Connecticut

slide-61
SLIDE 61

Elementary Row Operations on Matrices

When solving equations using elimination, the variables themselves are almost superfluous. One could change the names of the variables and perform exactly the same steps,

Alan H. SteinUniversity of Connecticut

slide-62
SLIDE 62

Elementary Row Operations on Matrices

When solving equations using elimination, the variables themselves are almost superfluous. One could change the names of the variables and perform exactly the same steps, or even just write down the coefficients, do arithmetic using the coefficients, and interpret the results.

Alan H. SteinUniversity of Connecticut

slide-63
SLIDE 63

Elementary Row Operations on Matrices

When solving equations using elimination, the variables themselves are almost superfluous. One could change the names of the variables and perform exactly the same steps, or even just write down the coefficients, do arithmetic using the coefficients, and interpret the results. When we write down the coefficients in an organized, rectangular array, we get something called a matrix.

Alan H. SteinUniversity of Connecticut

slide-64
SLIDE 64

Elementary Row Operations on Matrices

When solving equations using elimination, the variables themselves are almost superfluous. One could change the names of the variables and perform exactly the same steps, or even just write down the coefficients, do arithmetic using the coefficients, and interpret the results. When we write down the coefficients in an organized, rectangular array, we get something called a matrix. A matrix is simply a rectangular array of numbers.

Alan H. SteinUniversity of Connecticut

slide-65
SLIDE 65

Elementary Row Operations on Matrices

When solving equations using elimination, the variables themselves are almost superfluous. One could change the names of the variables and perform exactly the same steps, or even just write down the coefficients, do arithmetic using the coefficients, and interpret the results. When we write down the coefficients in an organized, rectangular array, we get something called a matrix. A matrix is simply a rectangular array of numbers. Consider the following example, where we solve a system of two equations in two unknowns, simultaneously performing analogous

  • perations on the coefficients.

Alan H. SteinUniversity of Connecticut

slide-66
SLIDE 66

Example

3x + y = 11 x − y = −3 3 1 11 1 −1 −3

  • Alan H. SteinUniversity of Connecticut
slide-67
SLIDE 67

Example

3x + y = 11 x − y = −3 3 1 11 1 −1 −3

  • We’ll now add the second equation to the first to eliminate y from

the first equation.

Alan H. SteinUniversity of Connecticut

slide-68
SLIDE 68
slide-69
SLIDE 69
slide-70
SLIDE 70

Example

3x + y = 11 x − y = −3 3 1 11 1 −1 −3

  • We’ll now add the second equation to the first to eliminate y from

the first equation. Simultaneously, we’ll add each of the coefficients in the second row to the coefficients in the first row. 4x = 8 x − y = −3 4 8 1 −1 −3

  • Now we’ll divide both sides of the first equation by 4 and

simultaneously divide the coefficients in the first row of the matrix to the right by 4.

Alan H. SteinUniversity of Connecticut

slide-71
SLIDE 71

Example

3x + y = 11 x − y = −3 3 1 11 1 −1 −3

  • We’ll now add the second equation to the first to eliminate y from

the first equation. Simultaneously, we’ll add each of the coefficients in the second row to the coefficients in the first row. 4x = 8 x − y = −3 4 8 1 −1 −3

  • Now we’ll divide both sides of the first equation by 4 and

simultaneously divide the coefficients in the first row of the matrix to the right by 4. x = 2 x − y = −3 1 2 1 −1 −3

  • Alan H. SteinUniversity of Connecticut
slide-72
SLIDE 72

Example

Now we can eliminate x fromn the second equation by subtracting the first from the second.

Alan H. SteinUniversity of Connecticut

slide-73
SLIDE 73

Example

Now we can eliminate x fromn the second equation by subtracting the first from the second. Simultaneously, we will subtract the coefficients in the first row of the matrix from the coefficients in the second row.

Alan H. SteinUniversity of Connecticut

slide-74
SLIDE 74

Example

Now we can eliminate x fromn the second equation by subtracting the first from the second. Simultaneously, we will subtract the coefficients in the first row of the matrix from the coefficients in the second row. x = 2 −y = −5 1 2 −1 −5

  • Alan H. SteinUniversity of Connecticut
slide-75
SLIDE 75

Example

Now we can eliminate x fromn the second equation by subtracting the first from the second. Simultaneously, we will subtract the coefficients in the first row of the matrix from the coefficients in the second row. x = 2 −y = −5 1 2 −1 −5

  • Finally, we’ll multiply the second equation by −1 and

simultaneously multiply the coefficients in the second row of the matrix by −1.

Alan H. SteinUniversity of Connecticut

slide-76
SLIDE 76

Example

Now we can eliminate x fromn the second equation by subtracting the first from the second. Simultaneously, we will subtract the coefficients in the first row of the matrix from the coefficients in the second row. x = 2 −y = −5 1 2 −1 −5

  • Finally, we’ll multiply the second equation by −1 and

simultaneously multiply the coefficients in the second row of the matrix by −1. x = 2 y = 5 1 2 1 5

  • Alan H. SteinUniversity of Connecticut
slide-77
SLIDE 77

Example

Now we can eliminate x fromn the second equation by subtracting the first from the second. Simultaneously, we will subtract the coefficients in the first row of the matrix from the coefficients in the second row. x = 2 −y = −5 1 2 −1 −5

  • Finally, we’ll multiply the second equation by −1 and

simultaneously multiply the coefficients in the second row of the matrix by −1. x = 2 y = 5 1 2 1 5

  • We can read off the solution to the system from the matrix as well

as from the equations.

Alan H. SteinUniversity of Connecticut

slide-78
SLIDE 78

Elementary Row Operations on Matrices

The three elementary operations we earlier stated for systems of linear equations translate as follows to elementary row operations

  • n matrices.

Alan H. SteinUniversity of Connecticut

slide-79
SLIDE 79

Elementary Row Operations on Matrices

The three elementary operations we earlier stated for systems of linear equations translate as follows to elementary row operations

  • n matrices.

◮ Multiply a row by a non-zero constant.

Alan H. SteinUniversity of Connecticut

slide-80
SLIDE 80

Elementary Row Operations on Matrices

The three elementary operations we earlier stated for systems of linear equations translate as follows to elementary row operations

  • n matrices.

◮ Multiply a row by a non-zero constant. By this, we really

mean to multiply every element of a row by the same non-zero constant.

Alan H. SteinUniversity of Connecticut

slide-81
SLIDE 81

Elementary Row Operations on Matrices

The three elementary operations we earlier stated for systems of linear equations translate as follows to elementary row operations

  • n matrices.

◮ Multiply a row by a non-zero constant. By this, we really

mean to multiply every element of a row by the same non-zero constant. We can also divide a row by a non-zero constant, since division is a form of multiplication.

Alan H. SteinUniversity of Connecticut

slide-82
SLIDE 82

Elementary Row Operations on Matrices

The three elementary operations we earlier stated for systems of linear equations translate as follows to elementary row operations

  • n matrices.

◮ Multiply a row by a non-zero constant. By this, we really

mean to multiply every element of a row by the same non-zero constant. We can also divide a row by a non-zero constant, since division is a form of multiplication.

◮ Add a multiple of one row to another.

Alan H. SteinUniversity of Connecticut

slide-83
SLIDE 83

Elementary Row Operations on Matrices

The three elementary operations we earlier stated for systems of linear equations translate as follows to elementary row operations

  • n matrices.

◮ Multiply a row by a non-zero constant. By this, we really

mean to multiply every element of a row by the same non-zero constant. We can also divide a row by a non-zero constant, since division is a form of multiplication.

◮ Add a multiple of one row to another. By this, we really mean

to take a multiple of each element of one row and add it to the corresponding element of another row.

Alan H. SteinUniversity of Connecticut

slide-84
SLIDE 84

Elementary Row Operations on Matrices

The three elementary operations we earlier stated for systems of linear equations translate as follows to elementary row operations

  • n matrices.

◮ Multiply a row by a non-zero constant. By this, we really

mean to multiply every element of a row by the same non-zero constant. We can also divide a row by a non-zero constant, since division is a form of multiplication.

◮ Add a multiple of one row to another. By this, we really mean

to take a multiple of each element of one row and add it to the corresponding element of another row. We can also subtract a multiple of one row from another, since subtraction is a form of addition.

Alan H. SteinUniversity of Connecticut

slide-85
SLIDE 85

Elementary Row Operations on Matrices

The three elementary operations we earlier stated for systems of linear equations translate as follows to elementary row operations

  • n matrices.

◮ Multiply a row by a non-zero constant. By this, we really

mean to multiply every element of a row by the same non-zero constant. We can also divide a row by a non-zero constant, since division is a form of multiplication.

◮ Add a multiple of one row to another. By this, we really mean

to take a multiple of each element of one row and add it to the corresponding element of another row. We can also subtract a multiple of one row from another, since subtraction is a form of addition.

◮ Interchange two rows.

Alan H. SteinUniversity of Connecticut

slide-86
SLIDE 86

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers.

slide-87
SLIDE 87

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers. It corresponds to a two-dimensional array in just about any computer language.

Alan H. SteinUniversity of Connecticut

slide-88
SLIDE 88

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers. It corresponds to a two-dimensional array in just about any computer language. A spreadsheet can be viewed as a large matrix.

Alan H. SteinUniversity of Connecticut

slide-89
SLIDE 89

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers. It corresponds to a two-dimensional array in just about any computer language. A spreadsheet can be viewed as a large matrix. Newspapers make extensive use of matrices, from box scores and standings in the sports pages to the stock listings in the financial section.

Alan H. SteinUniversity of Connecticut

slide-90
SLIDE 90

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers. It corresponds to a two-dimensional array in just about any computer language. A spreadsheet can be viewed as a large matrix. Newspapers make extensive use of matrices, from box scores and standings in the sports pages to the stock listings in the financial section. A matrix has rows and columns;

Alan H. SteinUniversity of Connecticut

slide-91
SLIDE 91

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers. It corresponds to a two-dimensional array in just about any computer language. A spreadsheet can be viewed as a large matrix. Newspapers make extensive use of matrices, from box scores and standings in the sports pages to the stock listings in the financial section. A matrix has rows and columns; the rows go across, from left to right

Alan H. SteinUniversity of Connecticut

slide-92
SLIDE 92

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers. It corresponds to a two-dimensional array in just about any computer language. A spreadsheet can be viewed as a large matrix. Newspapers make extensive use of matrices, from box scores and standings in the sports pages to the stock listings in the financial section. A matrix has rows and columns; the rows go across, from left to right and the columns go vertically, up and down.

Alan H. SteinUniversity of Connecticut

slide-93
SLIDE 93

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers. It corresponds to a two-dimensional array in just about any computer language. A spreadsheet can be viewed as a large matrix. Newspapers make extensive use of matrices, from box scores and standings in the sports pages to the stock listings in the financial section. A matrix has rows and columns; the rows go across, from left to right and the columns go vertically, up and down. We often refer to a matrix via a capital letter, such as A,

Alan H. SteinUniversity of Connecticut

slide-94
SLIDE 94

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers. It corresponds to a two-dimensional array in just about any computer language. A spreadsheet can be viewed as a large matrix. Newspapers make extensive use of matrices, from box scores and standings in the sports pages to the stock listings in the financial section. A matrix has rows and columns; the rows go across, from left to right and the columns go vertically, up and down. We often refer to a matrix via a capital letter, such as A, and we may write Ar×c to indicate the matrix has r rows and c columns.

Alan H. SteinUniversity of Connecticut

slide-95
SLIDE 95

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers. It corresponds to a two-dimensional array in just about any computer language. A spreadsheet can be viewed as a large matrix. Newspapers make extensive use of matrices, from box scores and standings in the sports pages to the stock listings in the financial section. A matrix has rows and columns; the rows go across, from left to right and the columns go vertically, up and down. We often refer to a matrix via a capital letter, such as A, and we may write Ar×c to indicate the matrix has r rows and c columns. The entry in the ith row and jth column of a matrix A is referred to as ai,j,

Alan H. SteinUniversity of Connecticut

slide-96
SLIDE 96

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers. It corresponds to a two-dimensional array in just about any computer language. A spreadsheet can be viewed as a large matrix. Newspapers make extensive use of matrices, from box scores and standings in the sports pages to the stock listings in the financial section. A matrix has rows and columns; the rows go across, from left to right and the columns go vertically, up and down. We often refer to a matrix via a capital letter, such as A, and we may write Ar×c to indicate the matrix has r rows and c columns. The entry in the ith row and jth column of a matrix A is referred to as ai,j, and we sometimes write A = (ai,j).

Alan H. SteinUniversity of Connecticut

slide-97
SLIDE 97

Matrices - Terminology and Notation

A matrix is simply a rectangular array of numbers. It corresponds to a two-dimensional array in just about any computer language. A spreadsheet can be viewed as a large matrix. Newspapers make extensive use of matrices, from box scores and standings in the sports pages to the stock listings in the financial section. A matrix has rows and columns; the rows go across, from left to right and the columns go vertically, up and down. We often refer to a matrix via a capital letter, such as A, and we may write Ar×c to indicate the matrix has r rows and c columns. The entry in the ith row and jth column of a matrix A is referred to as ai,j, and we sometimes write A = (ai,j). A matrix is generally enclosed in a large pair of parentheses.

Alan H. SteinUniversity of Connecticut

slide-98
SLIDE 98

The Augmented Matrix

Every system of linear equations has a corresponding augmented matrix.

Alan H. SteinUniversity of Connecticut

slide-99
SLIDE 99

The Augmented Matrix

Every system of linear equations has a corresponding augmented

  • matrix. We get the augmented matrix by writing down the

coefficients of each equation in order in a row and then writing the constant from the write side of the equation at the end of the row.

Alan H. SteinUniversity of Connecticut

slide-100
SLIDE 100

The Augmented Matrix

Every system of linear equations has a corresponding augmented

  • matrix. We get the augmented matrix by writing down the

coefficients of each equation in order in a row and then writing the constant from the write side of the equation at the end of the row. Be careful that zero coefficients are included.

Alan H. SteinUniversity of Connecticut

slide-101
SLIDE 101

The Augmented Matrix

Every system of linear equations has a corresponding augmented

  • matrix. We get the augmented matrix by writing down the

coefficients of each equation in order in a row and then writing the constant from the write side of the equation at the end of the row. Be careful that zero coefficients are included. A system of m equations with n unknowns will yield an m × n + 1 matrix, that is, a matrix with m rows and n + 1 columns.

Alan H. SteinUniversity of Connecticut

slide-102
SLIDE 102

Pivoting

A key process both in solving systems of equations and in solving linear programming problems using the Simplex Method is called pivoting.

Alan H. SteinUniversity of Connecticut

slide-103
SLIDE 103

Pivoting

A key process both in solving systems of equations and in solving linear programming problems using the Simplex Method is called

  • pivoting. We pivot about a given entry in a given row and column.

Alan H. SteinUniversity of Connecticut

slide-104
SLIDE 104

Pivoting

A key process both in solving systems of equations and in solving linear programming problems using the Simplex Method is called

  • pivoting. We pivot about a given entry in a given row and column.

Pivoting is a two-step process, hence the term.

Alan H. SteinUniversity of Connecticut

slide-105
SLIDE 105

Pivoting

A key process both in solving systems of equations and in solving linear programming problems using the Simplex Method is called

  • pivoting. We pivot about a given entry in a given row and column.

Pivoting is a two-step process, hence the term. Suppose we wish to pivot about the entry in the ith row, jth column.

Alan H. SteinUniversity of Connecticut

slide-106
SLIDE 106

Pivoting

A key process both in solving systems of equations and in solving linear programming problems using the Simplex Method is called

  • pivoting. We pivot about a given entry in a given row and column.

Pivoting is a two-step process, hence the term. Suppose we wish to pivot about the entry in the ith row, jth column.

◮ Step 1: Divide the ith row by ai,j, the entry in the ith row, jth

column.

Alan H. SteinUniversity of Connecticut

slide-107
SLIDE 107

Pivoting

A key process both in solving systems of equations and in solving linear programming problems using the Simplex Method is called

  • pivoting. We pivot about a given entry in a given row and column.

Pivoting is a two-step process, hence the term. Suppose we wish to pivot about the entry in the ith row, jth column.

◮ Step 1: Divide the ith row by ai,j, the entry in the ith row, jth

  • column. The gives a new matrix with a 1 in the ith row, jth

column.

Alan H. SteinUniversity of Connecticut

slide-108
SLIDE 108

Pivoting

A key process both in solving systems of equations and in solving linear programming problems using the Simplex Method is called

  • pivoting. We pivot about a given entry in a given row and column.

Pivoting is a two-step process, hence the term. Suppose we wish to pivot about the entry in the ith row, jth column.

◮ Step 1: Divide the ith row by ai,j, the entry in the ith row, jth

  • column. The gives a new matrix with a 1 in the ith row, jth

column.

◮ Step 2: For every other row, let k be the element in the jth

column of that row.

Alan H. SteinUniversity of Connecticut

slide-109
SLIDE 109

Pivoting

A key process both in solving systems of equations and in solving linear programming problems using the Simplex Method is called

  • pivoting. We pivot about a given entry in a given row and column.

Pivoting is a two-step process, hence the term. Suppose we wish to pivot about the entry in the ith row, jth column.

◮ Step 1: Divide the ith row by ai,j, the entry in the ith row, jth

  • column. The gives a new matrix with a 1 in the ith row, jth

column.

◮ Step 2: For every other row, let k be the element in the jth

column of that row. Subtract k times the ith row from that row.

Alan H. SteinUniversity of Connecticut

slide-110
SLIDE 110

Pivoting

A key process both in solving systems of equations and in solving linear programming problems using the Simplex Method is called

  • pivoting. We pivot about a given entry in a given row and column.

Pivoting is a two-step process, hence the term. Suppose we wish to pivot about the entry in the ith row, jth column.

◮ Step 1: Divide the ith row by ai,j, the entry in the ith row, jth

  • column. The gives a new matrix with a 1 in the ith row, jth

column.

◮ Step 2: For every other row, let k be the element in the jth

column of that row. Subtract k times the ith row from that

  • row. That will put a 0 in every row in the jth column except

for the ith row.

Alan H. SteinUniversity of Connecticut

slide-111
SLIDE 111

Example

Pivot about the second row, third column of the matrix   5 3 7 6 4 2 2 7 5  .

Alan H. SteinUniversity of Connecticut

slide-112
SLIDE 112

Example

Pivot about the second row, third column of the matrix   5 3 7 6 4 2 2 7 5  . Step 1: Divide the second row by 2 to get:   5 3 7 3 2 1 2 7 5  .

Alan H. SteinUniversity of Connecticut

slide-113
SLIDE 113

Example

Pivot about the second row, third column of the matrix   5 3 7 6 4 2 2 7 5  . Step 1: Divide the second row by 2 to get:   5 3 7 3 2 1 2 7 5  . Step 2: First subtract 7 times the second row from the first row to get:   −16 −11 3 2 1 2 7 5  ,

Alan H. SteinUniversity of Connecticut

slide-114
SLIDE 114

Example

Pivot about the second row, third column of the matrix   5 3 7 6 4 2 2 7 5  . Step 1: Divide the second row by 2 to get:   5 3 7 3 2 1 2 7 5  . Step 2: First subtract 7 times the second row from the first row to get:   −16 −11 3 2 1 2 7 5  , and then subtract 5 times the second row from the third row to get:   −16 −11 3 2 1 −13 −3  .

Alan H. SteinUniversity of Connecticut

slide-115
SLIDE 115

Gaussian Elimination

The method of Gaussian Elimination amounts to repeatedly applying the Pivot Method to the augmented matrix of a system of equations until the solution is obvious.

Alan H. SteinUniversity of Connecticut

slide-116
SLIDE 116

Gaussian Elimination

The method of Gaussian Elimination amounts to repeatedly applying the Pivot Method to the augmented matrix of a system of equations until the solution is obvious.

◮ We start by pivoting about the entry in the first row, first

column.

Alan H. SteinUniversity of Connecticut

slide-117
SLIDE 117

Gaussian Elimination

The method of Gaussian Elimination amounts to repeatedly applying the Pivot Method to the augmented matrix of a system of equations until the solution is obvious.

◮ We start by pivoting about the entry in the first row, first

  • column. If the entry in that place is 0, we first interchange

the first row with another row with a non-zero entry in the first column and then pivot.

Alan H. SteinUniversity of Connecticut

slide-118
SLIDE 118

Gaussian Elimination

The method of Gaussian Elimination amounts to repeatedly applying the Pivot Method to the augmented matrix of a system of equations until the solution is obvious.

◮ We start by pivoting about the entry in the first row, first

  • column. If the entry in that place is 0, we first interchange

the first row with another row with a non-zero entry in the first column and then pivot.

◮ After we pivot about a given row and column, we go down

  • ne row and to the right one column and pivot about that

entry if it’s not 0.

Alan H. SteinUniversity of Connecticut

slide-119
SLIDE 119

Gaussian Elimination

The method of Gaussian Elimination amounts to repeatedly applying the Pivot Method to the augmented matrix of a system of equations until the solution is obvious.

◮ We start by pivoting about the entry in the first row, first

  • column. If the entry in that place is 0, we first interchange

the first row with another row with a non-zero entry in the first column and then pivot.

◮ After we pivot about a given row and column, we go down

  • ne row and to the right one column and pivot about that

entry if it’s not 0. If that entry is 0, we first interchange that row with some row below it with a non-zero entry in that column and then pivot.

Alan H. SteinUniversity of Connecticut

slide-120
SLIDE 120

Gaussian Elimination

The method of Gaussian Elimination amounts to repeatedly applying the Pivot Method to the augmented matrix of a system of equations until the solution is obvious.

◮ We start by pivoting about the entry in the first row, first

  • column. If the entry in that place is 0, we first interchange

the first row with another row with a non-zero entry in the first column and then pivot.

◮ After we pivot about a given row and column, we go down

  • ne row and to the right one column and pivot about that

entry if it’s not 0. If that entry is 0, we first interchange that row with some row below it with a non-zero entry in that column and then pivot. If there is no non-zero entry further down in that column, we go over one row to the right and try to pivot there.

Alan H. SteinUniversity of Connecticut

slide-121
SLIDE 121

Gaussian Elimination

The method of Gaussian Elimination amounts to repeatedly applying the Pivot Method to the augmented matrix of a system of equations until the solution is obvious.

◮ We start by pivoting about the entry in the first row, first

  • column. If the entry in that place is 0, we first interchange

the first row with another row with a non-zero entry in the first column and then pivot.

◮ After we pivot about a given row and column, we go down

  • ne row and to the right one column and pivot about that

entry if it’s not 0. If that entry is 0, we first interchange that row with some row below it with a non-zero entry in that column and then pivot. If there is no non-zero entry further down in that column, we go over one row to the right and try to pivot there.

◮ We continue until we reach the lower right hand corner.

Alan H. SteinUniversity of Connecticut