Math 221: LINEAR ALGEBRA 1-2. Gaussian Elimination Le Chen 1 Emory - - PowerPoint PPT Presentation

math 221 linear algebra
SMART_READER_LITE
LIVE PREVIEW

Math 221: LINEAR ALGEBRA 1-2. Gaussian Elimination Le Chen 1 Emory - - PowerPoint PPT Presentation

Math 221: LINEAR ALGEBRA 1-2. Gaussian Elimination Le Chen 1 Emory University, 2020 Fall (last updated on 08/27/2020) Creative Commons License (CC BY-NC-SA) 1 Slides are adapted from those by Karen Seyffarth from University of Calgary. A


slide-1
SLIDE 1

Math 221: LINEAR ALGEBRA

§1-2. Gaussian Elimination

Le Chen1

Emory University, 2020 Fall

(last updated on 08/27/2020) Creative Commons License (CC BY-NC-SA) 1Slides are adapted from those by Karen Seyffarth from University of Calgary.

slide-2
SLIDE 2

Row-Echelon Matrix

◮ All rows consisting entirely of zeros are at the bottom. ◮ The fjrst nonzero entry in each nonzero row is a 1 (called the leading 1 for that row). ◮ Each leading 1 is to the right of all leading 1’s in rows above it.

Example

        1 ∗ ∗ ∗ ∗ ∗ ∗ 1 ∗ ∗ ∗ ∗ 1 ∗ ∗ ∗ 1         where ∗ can be any number. A matrix is said to be in the row-echelon form (REF) if it a row-echelon matrix.

slide-3
SLIDE 3

Row-Echelon Matrix

◮ All rows consisting entirely of zeros are at the bottom. ◮ The fjrst nonzero entry in each nonzero row is a 1 (called the leading 1 for that row). ◮ Each leading 1 is to the right of all leading 1’s in rows above it.

Example

        1 ∗ ∗ ∗ ∗ ∗ ∗ 1 ∗ ∗ ∗ ∗ 1 ∗ ∗ ∗ 1         where ∗ can be any number. A matrix is said to be in the row-echelon form (REF) if it a row-echelon matrix.

slide-4
SLIDE 4

Reduced Row-Echelon Matrix

◮ Row-echelon matrix. ◮ Each leading 1 is the only nonzero entry in its column.

Example

        1 ∗ ∗ ∗ 1 ∗ ∗ 1 ∗ ∗ 1         where ∗ can be any number. A matrix is said to be in the reduced row-echelon form (RREF) if it a reduced row-echelon matrix.

slide-5
SLIDE 5

Reduced Row-Echelon Matrix

◮ Row-echelon matrix. ◮ Each leading 1 is the only nonzero entry in its column.

Example

        1 ∗ ∗ ∗ 1 ∗ ∗ 1 ∗ ∗ 1         where ∗ can be any number. A matrix is said to be in the reduced row-echelon form (RREF) if it a reduced row-echelon matrix.

slide-6
SLIDE 6

Examples

Which of the following matrices are in the REF? Which ones are in the RREF?

slide-7
SLIDE 7

Examples

Which of the following matrices are in the REF? Which ones are in the RREF? (a) 1 2 1 2

  • (b)

1 2 1 2

  • (c)

  1 2 1 2 1 2   (d) 1 2 1 1 2

  • (e)

1 2 1 2

  • (f)

  1 2 1 1  

slide-8
SLIDE 8

Example

Suppose that the following matrix is the augmented matrix of a system of linear equations. We see from this matrix that the system of linear equations has four equations and seven variables. x1 x2 x3 x4 x5 x6 x7     1 −3 4 −2 5 −7 4 1 8 3 −7 1 1 −1 −1 1 2     Note that the matrix is a row-echelon matrix.

slide-9
SLIDE 9

Example

Suppose that the following matrix is the augmented matrix of a system of linear equations. We see from this matrix that the system of linear equations has four equations and seven variables. x1 x2 x3 x4 x5 x6 x7     1 −3 4 −2 5 −7 4 1 8 3 −7 1 1 −1 −1 1 2     Note that the matrix is a row-echelon matrix. ◮ Each column of the matrix corresponds to a variable, and the leading variables are the variables that correspond to columns containing leading ones.

slide-10
SLIDE 10

Example

Suppose that the following matrix is the augmented matrix of a system of linear equations. We see from this matrix that the system of linear equations has four equations and seven variables. x1 x2 x3 x4 x5 x6 x7     1 −3 4 −2 5 −7 4 1 8 3 −7 1 1 −1 −1 1 2     Note that the matrix is a row-echelon matrix. ◮ Each column of the matrix corresponds to a variable, and the leading variables are the variables that correspond to columns containing leading ones. ◮ The remaining variables are called non-leading variables.

slide-11
SLIDE 11

Example

Suppose that the following matrix is the augmented matrix of a system of linear equations. We see from this matrix that the system of linear equations has four equations and seven variables. x1 x2 x3 x4 x5 x6 x7     1 −3 4 −2 5 −7 4 1 8 3 −7 1 1 −1 −1 1 2     Note that the matrix is a row-echelon matrix. ◮ Each column of the matrix corresponds to a variable, and the leading variables are the variables that correspond to columns containing leading ones. ◮ The remaining variables are called non-leading variables. We will use elementary row operations to transform a matrix to row-echelon (REF) or reduced row-echelon form (RREF).

slide-12
SLIDE 12

Solving Systems of Linear Equations

Theorem

Every matrix can be brought to (reduced) row-echelon form by a sequence

  • f elementary row operations.

To solve a system of linear equations proceed as follows: Carry the augmented matrix to a reduced row-echelon matrix using elementary row operations. If a row of the form

  • ccurs, the system is inconsistent.

Otherwise assign the nonleading variables (if any) parameters and use the equations corresponding to the reduced row-echelon matrix to solve for the leading variables in terms of the parameters.

slide-13
SLIDE 13

Solving Systems of Linear Equations

Theorem

Every matrix can be brought to (reduced) row-echelon form by a sequence

  • f elementary row operations.

Gaussian Elimination

To solve a system of linear equations proceed as follows:

  • 1. Carry the augmented matrix to a reduced row-echelon matrix using elementary

row operations. If a row of the form

  • ccurs, the system is inconsistent.

Otherwise assign the nonleading variables (if any) parameters and use the equations corresponding to the reduced row-echelon matrix to solve for the leading variables in terms of the parameters.

slide-14
SLIDE 14

Solving Systems of Linear Equations

Theorem

Every matrix can be brought to (reduced) row-echelon form by a sequence

  • f elementary row operations.

Gaussian Elimination

To solve a system of linear equations proceed as follows:

  • 1. Carry the augmented matrix to a reduced row-echelon matrix using elementary

row operations.

  • 2. If a row of the form [0 0 · · · 0 | 1] occurs, the system is inconsistent.

Otherwise assign the nonleading variables (if any) parameters and use the equations corresponding to the reduced row-echelon matrix to solve for the leading variables in terms of the parameters.

slide-15
SLIDE 15

Solving Systems of Linear Equations

Theorem

Every matrix can be brought to (reduced) row-echelon form by a sequence

  • f elementary row operations.

Gaussian Elimination

To solve a system of linear equations proceed as follows:

  • 1. Carry the augmented matrix to a reduced row-echelon matrix using elementary

row operations.

  • 2. If a row of the form [0 0 · · · 0 | 1] occurs, the system is inconsistent.
  • 3. Otherwise assign the nonleading variables (if any) parameters and use the

equations corresponding to the reduced row-echelon matrix to solve for the leading variables in terms of the parameters.

slide-16
SLIDE 16

Gaussian Elimination

Problem

Solve the system    2x + y + 3z = 1 2y − z + x = 9z + x − 4y = 2

slide-17
SLIDE 17

Gaussian Elimination

Problem

Solve the system    2x + y + 3z = 1 2y − z + x = 9z + x − 4y = 2

Solution

  2 1 3 1 1 2 −1 1 −4 9 2  

slide-18
SLIDE 18

Gaussian Elimination

Problem

Solve the system    2x + y + 3z = 1 2y − z + x = 9z + x − 4y = 2

Solution

  2 1 3 1 1 2 −1 1 −4 9 2   →r1↔r2   1 2 −1 2 1 3 1 1 −4 9 2  

slide-19
SLIDE 19

Gaussian Elimination

Problem

Solve the system    2x + y + 3z = 1 2y − z + x = 9z + x − 4y = 2

Solution

  2 1 3 1 1 2 −1 1 −4 9 2   →r1↔r2   1 2 −1 2 1 3 1 1 −4 9 2   →−2r1+r2,−r1+r3   1 2 −1 −3 5 1 −6 10 2  

slide-20
SLIDE 20

Gaussian Elimination

Problem

Solve the system    2x + y + 3z = 1 2y − z + x = 9z + x − 4y = 2

Solution

  2 1 3 1 1 2 −1 1 −4 9 2   →r1↔r2   1 2 −1 2 1 3 1 1 −4 9 2   →−2r1+r2,−r1+r3   1 2 −1 −3 5 1 −6 10 2   →−2r2+r3   1 2 −1 −3 5 1  

slide-21
SLIDE 21

Gaussian Elimination

Problem

Solve the system    2x + y + 3z = 1 2y − z + x = 9z + x − 4y = 2

Solution

  2 1 3 1 1 2 −1 1 −4 9 2   →r1↔r2   1 2 −1 2 1 3 1 1 −4 9 2   →−2r1+r2,−r1+r3   1 2 −1 −3 5 1 −6 10 2   →−2r2+r3   1 2 −1 −3 5 1   →− 1

3 r2

  1 2 −1 1 −5/3 −1/3  

slide-22
SLIDE 22

Gaussian Elimination

Problem

Solve the system    2x + y + 3z = 1 2y − z + x = 9z + x − 4y = 2

Solution

  2 1 3 1 1 2 −1 1 −4 9 2   →r1↔r2   1 2 −1 2 1 3 1 1 −4 9 2   →−2r1+r2,−r1+r3   1 2 −1 −3 5 1 −6 10 2   →−2r2+r3   1 2 −1 −3 5 1   →− 1

3 r2

  1 2 −1 1 −5/3 −1/3   →−2r2+r1   1 7/3 2/3 1 −5/3 −1/3  

slide-23
SLIDE 23

Solution (continued)

Given the reduced row-echelon matrix   1 7/3 2/3 1 −5/3 −1/3   x and y are leading variables; z is a non-leading variable and so assign a parameter to z.

slide-24
SLIDE 24

Solution (continued)

Given the reduced row-echelon matrix   1 7/3 2/3 1 −5/3 −1/3   x and y are leading variables; z is a non-leading variable and so assign a parameter to z. Thus the solution to the original system is given by x =

2 3

7 3s

y = − 1

3

+

5 3s

z = s        for all s ∈ R.

slide-25
SLIDE 25

Problem

Solve the system    x + y + 2z = −1 y + 2x + 3z = z − 2y = 2

slide-26
SLIDE 26

Problem

Solve the system    x + y + 2z = −1 y + 2x + 3z = z − 2y = 2

Solution

  1 1 2 −1 2 1 3 −2 1 2   →−2r1+r2

slide-27
SLIDE 27

Problem

Solve the system    x + y + 2z = −1 y + 2x + 3z = z − 2y = 2

Solution

  1 1 2 −1 2 1 3 −2 1 2   →−2r1+r2   1 1 2 −1 −1 −1 2 −2 1 2   →−1·r2

slide-28
SLIDE 28

Problem

Solve the system    x + y + 2z = −1 y + 2x + 3z = z − 2y = 2

Solution

  1 1 2 −1 2 1 3 −2 1 2   →−2r1+r2   1 1 2 −1 −1 −1 2 −2 1 2   →−1·r2   1 1 2 −1 1 1 −2 −2 1 2  

slide-29
SLIDE 29

Problem

Solve the system    x + y + 2z = −1 y + 2x + 3z = z − 2y = 2

Solution

  1 1 2 −1 2 1 3 −2 1 2   →−2r1+r2   1 1 2 −1 −1 −1 2 −2 1 2   →−1·r2   1 1 2 −1 1 1 −2 −2 1 2   →2r2+r3   1 1 1 1 1 −2 3 −2   →

1 3 r3

slide-30
SLIDE 30

Problem

Solve the system    x + y + 2z = −1 y + 2x + 3z = z − 2y = 2

Solution

  1 1 2 −1 2 1 3 −2 1 2   →−2r1+r2   1 1 2 −1 −1 −1 2 −2 1 2   →−1·r2   1 1 2 −1 1 1 −2 −2 1 2   →2r2+r3   1 1 1 1 1 −2 3 −2   →

1 3 r3

  1 1 1 1 1 −2 1 −2/3   →−r3+r2,−r3+r1

slide-31
SLIDE 31

Problem

Solve the system    x + y + 2z = −1 y + 2x + 3z = z − 2y = 2

Solution

  1 1 2 −1 2 1 3 −2 1 2   →−2r1+r2   1 1 2 −1 −1 −1 2 −2 1 2   →−1·r2   1 1 2 −1 1 1 −2 −2 1 2   →2r2+r3   1 1 1 1 1 −2 3 −2   →

1 3 r3

  1 1 1 1 1 −2 1 −2/3   →−r3+r2,−r3+r1   1 5/3 1 −4/3 1 −2/3  

slide-32
SLIDE 32

Problem

Solve the system    x + y + 2z = −1 y + 2x + 3z = z − 2y = 2

Solution

  1 1 2 −1 2 1 3 −2 1 2   →−2r1+r2   1 1 2 −1 −1 −1 2 −2 1 2   →−1·r2   1 1 2 −1 1 1 −2 −2 1 2   →2r2+r3   1 1 1 1 1 −2 3 −2   →

1 3 r3

  1 1 1 1 1 −2 1 −2/3   →−r3+r2,−r3+r1   1 5/3 1 −4/3 1 −2/3   The unique solution is x = 5/3, y = −4/3, z = −2/3.

slide-33
SLIDE 33

Problem

Solve the system    x + y + 2z = −1 y + 2x + 3z = z − 2y = 2

Solution

  1 1 2 −1 2 1 3 −2 1 2   →−2r1+r2   1 1 2 −1 −1 −1 2 −2 1 2   →−1·r2   1 1 2 −1 1 1 −2 −2 1 2   →2r2+r3   1 1 1 1 1 −2 3 −2   →

1 3 r3

  1 1 1 1 1 −2 1 −2/3   →−r3+r2,−r3+r1   1 5/3 1 −4/3 1 −2/3   The unique solution is x = 5/3, y = −4/3, z = −2/3. Check your answer!

slide-34
SLIDE 34

Problem

Solve the system    −3x1 − 9x2 + x3 = −9 2x1 + 6x2 − x3 = 6 x1 + 3x2 − x3 = 2

slide-35
SLIDE 35

Problem

Solve the system    −3x1 − 9x2 + x3 = −9 2x1 + 6x2 − x3 = 6 x1 + 3x2 − x3 = 2

Solution

  1 3 −1 2 2 6 −1 6 −3 −9 1 −9   →   1 3 −1 2 1 2 −2 −3   →   1 3 4 1 2 1  

slide-36
SLIDE 36

Problem

Solve the system    −3x1 − 9x2 + x3 = −9 2x1 + 6x2 − x3 = 6 x1 + 3x2 − x3 = 2

Solution

  1 3 −1 2 2 6 −1 6 −3 −9 1 −9   →   1 3 −1 2 1 2 −2 −3   →   1 3 4 1 2 1   The last row of the final matrix corresponds to the equation 0x1 + 0x2 + 0x3 = 1 which is impossible! Therefore, this system is inconsistent, i.e., it has no solutions.

slide-37
SLIDE 37

General Patterns for Systems of Linear Equations

Problem

Find all values of a, b and c (or conditions on a, b and c) so that the system 2x + 3y + az = b − y + 2z = c x + 3y − 2z = 1 has (i) a unique solution, (ii) no solutions, and (iii) infinitely many

  • solutions. In (i) and (iii), find the solution(s).
slide-38
SLIDE 38

General Patterns for Systems of Linear Equations

Problem

Find all values of a, b and c (or conditions on a, b and c) so that the system 2x + 3y + az = b − y + 2z = c x + 3y − 2z = 1 has (i) a unique solution, (ii) no solutions, and (iii) infinitely many

  • solutions. In (i) and (iii), find the solution(s).
slide-39
SLIDE 39

General Patterns for Systems of Linear Equations

Problem

Find all values of a, b and c (or conditions on a, b and c) so that the system 2x + 3y + az = b − y + 2z = c x + 3y − 2z = 1 has (i) a unique solution, (ii) no solutions, and (iii) infinitely many

  • solutions. In (i) and (iii), find the solution(s).

Solution

  2 3 a b −1 2 c 1 3 −2 1   →   1 3 −2 1 −1 2 c 2 3 a b  

slide-40
SLIDE 40

Solution (continued)

  1 3 −2 1 −1 2 c 2 3 a b  

slide-41
SLIDE 41

Solution (continued)

  1 3 −2 1 −1 2 c 2 3 a b   →   1 3 −2 1 −1 2 c −3 a + 4 b − 2  

slide-42
SLIDE 42

Solution (continued)

  1 3 −2 1 −1 2 c 2 3 a b   →   1 3 −2 1 −1 2 c −3 a + 4 b − 2   →   1 3 −2 1 1 −2 −c −3 a + 4 b − 2  

slide-43
SLIDE 43

Solution (continued)

  1 3 −2 1 −1 2 c 2 3 a b   →   1 3 −2 1 −1 2 c −3 a + 4 b − 2   →   1 3 −2 1 1 −2 −c −3 a + 4 b − 2   →   1 4 1 + 3c 1 −2 −c a − 2 b − 2 − 3c  

slide-44
SLIDE 44

Solution (continued)

  1 3 −2 1 −1 2 c 2 3 a b   →   1 3 −2 1 −1 2 c −3 a + 4 b − 2   →   1 3 −2 1 1 −2 −c −3 a + 4 b − 2   →   1 4 1 + 3c 1 −2 −c a − 2 b − 2 − 3c   Case 1. a − 2 = 0, i.e., a = 2.

slide-45
SLIDE 45

Solution (continued)

  1 3 −2 1 −1 2 c 2 3 a b   →   1 3 −2 1 −1 2 c −3 a + 4 b − 2   →   1 3 −2 1 1 −2 −c −3 a + 4 b − 2   →   1 4 1 + 3c 1 −2 −c a − 2 b − 2 − 3c   Case 1. a − 2 = 0, i.e., a = 2. In this case, →   1 4 1 + 3c 1 −2 −c 1

b−2−3c a−2

 

slide-46
SLIDE 46

Solution (continued)

  1 3 −2 1 −1 2 c 2 3 a b   →   1 3 −2 1 −1 2 c −3 a + 4 b − 2   →   1 3 −2 1 1 −2 −c −3 a + 4 b − 2   →   1 4 1 + 3c 1 −2 −c a − 2 b − 2 − 3c   Case 1. a − 2 = 0, i.e., a = 2. In this case, →   1 4 1 + 3c 1 −2 −c 1

b−2−3c a−2

  →     1 1 + 3c − 4

  • b−2−3c

a−2

  • 1

−c + 2

  • b−2−3c

a−2

  • 1

b−2−3c a−2

   

slide-47
SLIDE 47

Solution (continued)

    1 1 + 3c − 4

  • b−2−3c

a−2

  • 1

−c + 2

  • b−2−3c

a−2

  • 1

b−2−3c a−2

   

slide-48
SLIDE 48

Solution (continued)

    1 1 + 3c − 4

  • b−2−3c

a−2

  • 1

−c + 2

  • b−2−3c

a−2

  • 1

b−2−3c a−2

    (i) When a = 2, the unique solution is x = 1 + 3c − 4 b − 2 − 3c a − 2

  • y = −c + 2

b − 2 − 3c a − 2

  • z = b − 2 − 3c

a − 2

slide-49
SLIDE 49

Solution (continued)

Case 2. If a = 2, then the augmented matrix becomes   1 4 1 + 3c 1 −2 −c a − 2 b − 2 − 3c  

slide-50
SLIDE 50

Solution (continued)

Case 2. If a = 2, then the augmented matrix becomes   1 4 1 + 3c 1 −2 −c a − 2 b − 2 − 3c   →   1 4 1 + 3c 1 −2 −c b − 2 − 3c  

slide-51
SLIDE 51

Solution (continued)

Case 2. If a = 2, then the augmented matrix becomes   1 4 1 + 3c 1 −2 −c a − 2 b − 2 − 3c   →   1 4 1 + 3c 1 −2 −c b − 2 − 3c   From this we see that the system has no solutions when b − 2 − 3c = 0. (ii) When a = 2 and b − 3c = 2, the system has no solutions.

slide-52
SLIDE 52

Solution (continued)

Finally when a = 2 and b − 3c = 2, the augmented matrix becomes

slide-53
SLIDE 53

Solution (continued)

Finally when a = 2 and b − 3c = 2, the augmented matrix becomes   1 4 1 + 3c 1 −2 −c b − 2 − 3c   →   1 4 1 + 3c 1 −2 −c  

slide-54
SLIDE 54

Solution (continued)

Finally when a = 2 and b − 3c = 2, the augmented matrix becomes   1 4 1 + 3c 1 −2 −c b − 2 − 3c   →   1 4 1 + 3c 1 −2 −c   and the system has infinitely many solutions.

slide-55
SLIDE 55

Solution (continued)

Finally when a = 2 and b − 3c = 2, the augmented matrix becomes   1 4 1 + 3c 1 −2 −c b − 2 − 3c   →   1 4 1 + 3c 1 −2 −c   and the system has infinitely many solutions. (iii) When a = 2 and b − 3c = 2, the system has infinitely many solutions: x = 1 + 3c − 4s y = −c + 2s z = s    for all s ∈ R.

slide-56
SLIDE 56

Rank

Definition

The rank of a matrix A, denoted rank A, is the number of leading 1’s in any row-echelon matrix obtained from A by performing elementary row

  • perations.
slide-57
SLIDE 57

What does the rank of an augmented matrix tell us?

Suppose A is the augmented matrix of a consistent system of m linear equations in n variables, and rank A = r.

m

                 ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗       →       1 ∗ ∗ ∗ ∗ 1 ∗ ∗ 1 ∗      

  • n
  • r leading 1′s

Then the set of solutions to the system has parameters, so if , there is at least one parameter, and the system has infjnitely many solutions; if , there are no parameters, and the system has a unique solution.

slide-58
SLIDE 58

What does the rank of an augmented matrix tell us?

Suppose A is the augmented matrix of a consistent system of m linear equations in n variables, and rank A = r.

m

                 ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗       →       1 ∗ ∗ ∗ ∗ 1 ∗ ∗ 1 ∗      

  • n
  • r leading 1′s

Then the set of solutions to the system has n − r parameters, so if , there is at least one parameter, and the system has infjnitely many solutions; if , there are no parameters, and the system has a unique solution.

slide-59
SLIDE 59

What does the rank of an augmented matrix tell us?

Suppose A is the augmented matrix of a consistent system of m linear equations in n variables, and rank A = r.

m

                 ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗       →       1 ∗ ∗ ∗ ∗ 1 ∗ ∗ 1 ∗      

  • n
  • r leading 1′s

Then the set of solutions to the system has n − r parameters, so ◮ if r < n, there is at least one parameter, and the system has infjnitely many solutions; if , there are no parameters, and the system has a unique solution.

slide-60
SLIDE 60

What does the rank of an augmented matrix tell us?

Suppose A is the augmented matrix of a consistent system of m linear equations in n variables, and rank A = r.

m

                 ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗       →       1 ∗ ∗ ∗ ∗ 1 ∗ ∗ 1 ∗      

  • n
  • r leading 1′s

Then the set of solutions to the system has n − r parameters, so ◮ if r < n, there is at least one parameter, and the system has infjnitely many solutions; ◮ if r = n, there are no parameters, and the system has a unique solution.

slide-61
SLIDE 61

An Example

Problem

Find the rank of A = a b 5 1 −2 1

  • .
slide-62
SLIDE 62

An Example

Problem

Find the rank of A = a b 5 1 −2 1

  • .

Solution

a b 5 1 −2 1

1 −2 1 a b 5

1 −2 1 b + 2a 5 − a

slide-63
SLIDE 63

An Example

Problem

Find the rank of A = a b 5 1 −2 1

  • .

Solution

a b 5 1 −2 1

1 −2 1 a b 5

1 −2 1 b + 2a 5 − a

  • If b + 2a = 0 and 5 − a = 0, i.e., a = 5 and b = −10, then rank A = 1.

Otherwise, rank A = 2.

slide-64
SLIDE 64

Solutions to a System of Linear Equations

For any system of linear equations, exactly one of the following holds:

the system is inconsistent; the system has a unique solution, i.e., exactly one solution; the system has infjnitely many solutions.

slide-65
SLIDE 65

Solutions to a System of Linear Equations

For any system of linear equations, exactly one of the following holds:

  • 1. the system is inconsistent;

the system has a unique solution, i.e., exactly one solution; the system has infjnitely many solutions.

slide-66
SLIDE 66

Solutions to a System of Linear Equations

For any system of linear equations, exactly one of the following holds:

  • 1. the system is inconsistent;
  • 2. the system has a unique solution, i.e., exactly one solution;

the system has infjnitely many solutions.

slide-67
SLIDE 67

Solutions to a System of Linear Equations

For any system of linear equations, exactly one of the following holds:

  • 1. the system is inconsistent;
  • 2. the system has a unique solution, i.e., exactly one solution;
  • 3. the system has infjnitely many solutions.
slide-68
SLIDE 68

Solutions to a System of Linear Equations

For any system of linear equations, exactly one of the following holds:

  • 1. the system is inconsistent;
  • 2. the system has a unique solution, i.e., exactly one solution;
  • 3. the system has infjnitely many solutions.

One can see what case applies by looking at the RREF matrix equivalent to the augmented matrix of the system and distinguishing three cases:

  • 1. The last nonzero row is [0, · · · , 0, 1]: no solution.
  • 2. The last nonzero row is not [0, · · · , 0, 1] and all variables are leading:

unique solution.

  • 3. The last nonzero row is not [0, · · · , 0, 1] and there are non-leading

variables: infinitely many solutions.

slide-69
SLIDE 69

Problem

Solve the system −3x1 + 6x2 − 4x3 − 9x4 + 3x5 = −1 −x1 + 2x2 − 2x3 − 4x4 − 3x5 = 3 x1 − 2x2 + 2x3 + 2x4 − 5x5 = 1 x1 − 2x2 + x3 + 3x4 − x5 = 1

slide-70
SLIDE 70

Problem

Solve the system −3x1 + 6x2 − 4x3 − 9x4 + 3x5 = −1 −x1 + 2x2 − 2x3 − 4x4 − 3x5 = 3 x1 − 2x2 + 2x3 + 2x4 − 5x5 = 1 x1 − 2x2 + x3 + 3x4 − x5 = 1

Solution

Begin by putting the augmented matrix in reduced row-echelon form.     1 −2 2 2 −5 1 −3 6 −4 −9 3 −1 −1 2 −2 −4 −3 3 1 −2 1 3 −1 1    

slide-71
SLIDE 71

Problem

Solve the system −3x1 + 6x2 − 4x3 − 9x4 + 3x5 = −1 −x1 + 2x2 − 2x3 − 4x4 − 3x5 = 3 x1 − 2x2 + 2x3 + 2x4 − 5x5 = 1 x1 − 2x2 + x3 + 3x4 − x5 = 1

Solution

Begin by putting the augmented matrix in reduced row-echelon form.     1 −2 2 2 −5 1 −3 6 −4 −9 3 −1 −1 2 −2 −4 −3 3 1 −2 1 3 −1 1     →     1 −2 −13 9 1 −2 1 4 −2    

slide-72
SLIDE 72

Problem

Solve the system −3x1 + 6x2 − 4x3 − 9x4 + 3x5 = −1 −x1 + 2x2 − 2x3 − 4x4 − 3x5 = 3 x1 − 2x2 + 2x3 + 2x4 − 5x5 = 1 x1 − 2x2 + x3 + 3x4 − x5 = 1

Solution

Begin by putting the augmented matrix in reduced row-echelon form.     1 −2 2 2 −5 1 −3 6 −4 −9 3 −1 −1 2 −2 −4 −3 3 1 −2 1 3 −1 1     →     1 −2 −13 9 1 −2 1 4 −2     The system is consistent.

slide-73
SLIDE 73

Problem

Solve the system −3x1 + 6x2 − 4x3 − 9x4 + 3x5 = −1 −x1 + 2x2 − 2x3 − 4x4 − 3x5 = 3 x1 − 2x2 + 2x3 + 2x4 − 5x5 = 1 x1 − 2x2 + x3 + 3x4 − x5 = 1

Solution

Begin by putting the augmented matrix in reduced row-echelon form.     1 −2 2 2 −5 1 −3 6 −4 −9 3 −1 −1 2 −2 −4 −3 3 1 −2 1 3 −1 1     →     1 −2 −13 9 1 −2 1 4 −2     The system is consistent. The rank of the augmented matrix is 3.

slide-74
SLIDE 74

Problem

Solve the system −3x1 + 6x2 − 4x3 − 9x4 + 3x5 = −1 −x1 + 2x2 − 2x3 − 4x4 − 3x5 = 3 x1 − 2x2 + 2x3 + 2x4 − 5x5 = 1 x1 − 2x2 + x3 + 3x4 − x5 = 1

Solution

Begin by putting the augmented matrix in reduced row-echelon form.     1 −2 2 2 −5 1 −3 6 −4 −9 3 −1 −1 2 −2 −4 −3 3 1 −2 1 3 −1 1     →     1 −2 −13 9 1 −2 1 4 −2     The system is consistent. The rank of the augmented matrix is 3. Since the system is consistent, the set of solutions has 5 − 3 = 2 parameters.

slide-75
SLIDE 75

Solution (continued)

From the reduced row-echelon matrix     1 −2 −13 9 1 −2 1 4 −2     ,

slide-76
SLIDE 76

Solution (continued)

From the reduced row-echelon matrix     1 −2 −13 9 1 −2 1 4 −2     , we obtain the general solution x1 = 9 + 2r + 13s x2 = r x3 = −2 x4 = −2 − 4s x5 = s            ∀r, s ∈ R

slide-77
SLIDE 77

Solution (continued)

From the reduced row-echelon matrix     1 −2 −13 9 1 −2 1 4 −2     , we obtain the general solution x1 = 9 + 2r + 13s x2 = r x3 = −2 x4 = −2 − 4s x5 = s            ∀r, s ∈ R The solution has two parameters (r and s) as we expected.

slide-78
SLIDE 78

Uniqueness of the Reduced Row-Echelon Form

Theorem

Systems of linear equations that correspond to row equivalent augmented matrices have exactly the same solutions.

Theorem

Every matrix A is row equivalent to a unique reduced row-echelon matrix.

slide-79
SLIDE 79

Problem

Solve the system 2x + y + 3z = 1 2y − z + x = 9z + x − 4y = 2

Solution

  2 1 3 1 1 2 −1 1 −4 9 2   →   1 2 −1 2 1 3 1 1 −4 9 2   →   1 2 −1 −3 5 1 −6 10 2   →   1 2 −1 −3 5 1   →    1 2 −1 1 − 5

3

− 1

3

   →     1 − 7

3

− 2

3

1 − 5

3

− 1

3

   

slide-80
SLIDE 80

Solution (continued)

This row-echelon matrix corresponds to the system x + 0y +

7 3z

= − 2

3

y −

5 3z

= − 1

3

,

slide-81
SLIDE 81

Solution (continued)

This row-echelon matrix corresponds to the system x + 0y +

7 3z

= − 2

3

y −

5 3z

= − 1

3

, and thus x =

2 3 − 7 3z

y = − 1

3 + 5 3z

slide-82
SLIDE 82

Solution (continued)

This row-echelon matrix corresponds to the system x + 0y +

7 3z

= − 2

3

y −

5 3z

= − 1

3

, and thus x =

2 3 − 7 3z

y = − 1

3 + 5 3z

Setting z = s, where s ∈ R, gives us (as before): x =

2 3

7 3s

y = − 1

3

+

5 3s

z = s

slide-83
SLIDE 83

Solution (continued)

This row-echelon matrix corresponds to the system x + 0y +

7 3z

= − 2

3

y −

5 3z

= − 1

3

, and thus x =

2 3 − 7 3z

y = − 1

3 + 5 3z

Setting z = s, where s ∈ R, gives us (as before): x =

2 3

7 3s

y = − 1

3

+

5 3s

z = s Always check your answer!

slide-84
SLIDE 84

Problem

Derive the formula for 1r + 2r + · · · + nr for r = 3.

slide-85
SLIDE 85

Problem

Derive the formula for 1r + 2r + · · · + nr for r = 3.

Solution

We know that 13 + 23 + · · · + n3 is a polynomial in n of oder 4, namely, 13 + 23 + · · · + n3 = a0 + a1n + a2n2 + a3n3 + a4n4.

slide-86
SLIDE 86

Problem

Derive the formula for 1r + 2r + · · · + nr for r = 3.

Solution

We know that 13 + 23 + · · · + n3 is a polynomial in n of oder 4, namely, 13 + 23 + · · · + n3 = a0 + a1n + a2n2 + a3n3 + a4n4. It is easy to see that when n = 0, both sides should be equal to zero. Hence, a0 = 0.

slide-87
SLIDE 87

Problem

Derive the formula for 1r + 2r + · · · + nr for r = 3.

Solution

We know that 13 + 23 + · · · + n3 is a polynomial in n of oder 4, namely, 13 + 23 + · · · + n3 = a0 + a1n + a2n2 + a3n3 + a4n4. It is easy to see that when n = 0, both sides should be equal to zero. Hence, a0 = 0. Now we have 4 unknowns, a1, · · · , a4. We can let n = 1, · · · , 4 to form 4 equations in order to find these unknowns: 11a1 + 12a2 + 13a3 + 14a4 = 13 (n = 1) 21a1 + 22a2 + 23a3 + 24a4 = 13 + 23 (n = 2) 31a1 + 32a2 + 33a3 + 34a4 = 13 + 23 + 33 (n = 3) 41a1 + 42a2 + 43a3 + 44a4 = 13 + 23 + 33 + 43 (n = 4)

slide-88
SLIDE 88

Solution (continued)

Hence, we have the following augmented matrix:     1 1 1 1 1 2 4 8 16 9 3 9 27 81 36 4 16 64 256 100    

slide-89
SLIDE 89

Solution (continued)

Hence, we have the following augmented matrix:     1 1 1 1 1 2 4 8 16 9 3 9 27 81 36 4 16 64 256 100     You can use Octave or Matlab to compute the reduced echelon form:     1 1 1/4 1 1/2 1 1/4    

slide-90
SLIDE 90

Solution (continued)

Hence, we have the following augmented matrix:     1 1 1 1 1 2 4 8 16 9 3 9 27 81 36 4 16 64 256 100     You can use Octave or Matlab to compute the reduced echelon form:     1 1 1/4 1 1/2 1 1/4     Therefore, we have that 13 + 23 + · · · + n3 = n2 4 + n3 2 + n4 4 = 1 4n2(n + 1)2.