math 408a: linear algebra review

118
Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting) Math 408A: Linear Algebra Review Math 408A: Linear Algebra Review

Upload: others

Post on 14-Feb-2022

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Math 408A: Linear Algebra Review

Math 408A: Linear Algebra Review

Page 2: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Linear Algebra Review

Block Structured Matrices

Gaussian Elimination Matrices

Gauss-Jordan Elimination (Pivoting)

Math 408A: Linear Algebra Review

Page 3: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrices in Rm×n

A ∈ Rm×n

A =

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

Math 408A: Linear Algebra Review

Page 4: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrices in Rm×n

A ∈ Rm×n

A =

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

=[

a•1 a•2 . . . a•n]

columns

Math 408A: Linear Algebra Review

Page 5: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrices in Rm×n

A ∈ Rm×n

A =

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

=[

a•1 a•2 . . . a•n]

=

a1•a2•...

am•

columns rows

Math 408A: Linear Algebra Review

Page 6: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrices in Rm×n

A ∈ Rm×n

A =

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

=[

a•1 a•2 . . . a•n]

=

a1•a2•...

am•

columns rows

AT =

a11 a21 . . . am1

a12 a22 . . . am2...

.... . .

...a1n a2n . . . amn

Math 408A: Linear Algebra Review

Page 7: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrices in Rm×n

A ∈ Rm×n

A =

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

=[

a•1 a•2 . . . a•n]

=

a1•a2•...

am•

columns rows

AT =

a11 a21 . . . am1

a12 a22 . . . am2...

.... . .

...a1n a2n . . . amn

=

aT•1

aT•2...

aT•n

Math 408A: Linear Algebra Review

Page 8: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrices in Rm×n

A ∈ Rm×n

A =

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

=[

a•1 a•2 . . . a•n]

=

a1•a2•...

am•

columns rows

AT =

a11 a21 . . . am1

a12 a22 . . . am2...

.... . .

...a1n a2n . . . amn

=

aT•1

aT•2...

aT•n

=[

aT1• aT2• . . . aTm•

]

Math 408A: Linear Algebra Review

Page 9: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Vector Multiplication

A column space view of matrix vector multiplication.

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

x1x2...xn

Math 408A: Linear Algebra Review

Page 10: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Vector Multiplication

A column space view of matrix vector multiplication.

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

x1x2...xn

= x1

a11a21...

am1

Math 408A: Linear Algebra Review

Page 11: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Vector Multiplication

A column space view of matrix vector multiplication.

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

x1x2...xn

= x1

a11a21...

am1

+ x2

a12a22...

am2

Math 408A: Linear Algebra Review

Page 12: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Vector Multiplication

A column space view of matrix vector multiplication.

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

x1x2...xn

= x1

a11a21...

am1

+ x2

a12a22...

am2

+ · · ·+ xn

a1na2n...

amn

Math 408A: Linear Algebra Review

Page 13: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Vector Multiplication

A column space view of matrix vector multiplication.

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

x1x2...xn

= x1

a11a21...

am1

+ x2

a12a22...

am2

+ · · ·+ xn

a1na2n...

amn

= x1 a•1 + x2 a•2 + · · · + xn a•n

Math 408A: Linear Algebra Review

Page 14: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Vector Multiplication

A column space view of matrix vector multiplication.

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

x1x2...xn

= x1

a11a21...

am1

+ x2

a12a22...

am2

+ · · ·+ xn

a1na2n...

amn

= x1 a•1 + x2 a•2 + · · · + xn a•n

A linear combination of the columns.

Math 408A: Linear Algebra Review

Page 15: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

The Range of a Matrix

Let A ∈ Rm×n (an m × n matrix having real entries).

Math 408A: Linear Algebra Review

Page 16: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

The Range of a Matrix

Let A ∈ Rm×n (an m × n matrix having real entries).

Range of A

Ran(A) = {Ax |x ∈ Rn }

Math 408A: Linear Algebra Review

Page 17: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

The Range of a Matrix

Let A ∈ Rm×n (an m × n matrix having real entries).

Range of A

Ran(A) = {Ax |x ∈ Rn }

Ran(A) = the linear span of the columns of A

Math 408A: Linear Algebra Review

Page 18: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

A Couple of Special Subspaces

Let v1, . . . , vk ∈ Rn.

Math 408A: Linear Algebra Review

Page 19: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

A Couple of Special Subspaces

Let v1, . . . , vk ∈ Rn.

◮ The linear span of v1, . . . , vk :

Span(v1, . . . , vk) = {ξ1v1 + ξ2v2 + · · ·+ ξkvk |ξ1, . . . , ξk ∈ R}

Math 408A: Linear Algebra Review

Page 20: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

A Couple of Special Subspaces

Let v1, . . . , vk ∈ Rn.

◮ The linear span of v1, . . . , vk :

Span(v1, . . . , vk) = {ξ1v1 + ξ2v2 + · · ·+ ξkvk |ξ1, . . . , ξk ∈ R}

SoRan(A) = Span(a•1, . . . , a•n).

Math 408A: Linear Algebra Review

Page 21: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

A Couple of Special Subspaces

Let v1, . . . , vk ∈ Rn.

◮ The linear span of v1, . . . , vk :

Span(v1, . . . , vk) = {ξ1v1 + ξ2v2 + · · ·+ ξkvk |ξ1, . . . , ξk ∈ R}

SoRan(A) = Span(a•1, . . . , a•n).

Dot product of two vectors xT y =∑n

i=1 xiyi .

Math 408A: Linear Algebra Review

Page 22: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

A Couple of Special Subspaces

Let v1, . . . , vk ∈ Rn.

◮ The linear span of v1, . . . , vk :

Span(v1, . . . , vk) = {ξ1v1 + ξ2v2 + · · ·+ ξkvk |ξ1, . . . , ξk ∈ R}

SoRan(A) = Span(a•1, . . . , a•n).

Dot product of two vectors xT y =∑n

i=1 xiyi .

◮ The subspace orthogonal to v1, . . . , vk :

{v1, . . . , vk}⊥ =

{

z ∈ Rn∣

∣zT vi = 0, i = 1, . . . , k

}

Math 408A: Linear Algebra Review

Page 23: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Vector Multiplication

A row space view of matrix vector multiplication.

a11 a12 . . . a1na21 a22 . . . a2n...

.... . .

...am1 am2 . . . amn

x1x2...xn

=

aT1•x

aT2•x...

aTm•x

=

∑n

i=1 a1ixi∑n

i=1 a2ixi...

∑n

i=1 amixi

The dot product of x with the rows of A.

Math 408A: Linear Algebra Review

Page 24: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

The Null Space of a Matrix

Let A ∈ Rm×n (an m × n matrix having real entries).

Math 408A: Linear Algebra Review

Page 25: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

The Null Space of a Matrix

Let A ∈ Rm×n (an m × n matrix having real entries).

Null Space of A

Nul(A) = {x ∈ Rn |Ax = 0}

Math 408A: Linear Algebra Review

Page 26: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

The Null Space of a Matrix

Let A ∈ Rm×n (an m × n matrix having real entries).

Null Space of A

Nul(A) = {x ∈ Rn |Ax = 0}

Nul(A) = subspace orthogonal to the rows of A

Math 408A: Linear Algebra Review

Page 27: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

The Null Space of a Matrix

Let A ∈ Rm×n (an m × n matrix having real entries).

Null Space of A

Nul(A) = {x ∈ Rn |Ax = 0}

Nul(A) = subspace orthogonal to the rows of A

= Span(a1•, a2•, . . . , am•)⊥

Math 408A: Linear Algebra Review

Page 28: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

The Null Space of a Matrix

Let A ∈ Rm×n (an m × n matrix having real entries).

Null Space of A

Nul(A) = {x ∈ Rn |Ax = 0}

Nul(A) = subspace orthogonal to the rows of A

= Span(a1•, a2•, . . . , am•)⊥

= Ran(AT )⊥

Math 408A: Linear Algebra Review

Page 29: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

The Null Space of a Matrix

Let A ∈ Rm×n (an m × n matrix having real entries).

Null Space of A

Nul(A) = {x ∈ Rn |Ax = 0}

Nul(A) = subspace orthogonal to the rows of A

= Span(a1•, a2•, . . . , am•)⊥

= Ran(AT )⊥

Fundamental Theorem of the Alternative:

Nul(A) = Ran(AT )⊥ Ran(A) = Nul(AT )⊥

Math 408A: Linear Algebra Review

Page 30: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix-matrix multiplication

For matrices A ∈ Rm×n and A ∈ R

n×k the product AB ∈ Rm×k is

defined by(AB)ij = aTi•b•j .

Math 408A: Linear Algebra Review

Page 31: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix-matrix multiplication

For matrices A ∈ Rm×n and A ∈ R

n×k the product AB ∈ Rm×k is

defined by(AB)ij = aTi•b•j .

Equivalently

AB = [AB•1 AB•2 . . . AB•k ]

Math 408A: Linear Algebra Review

Page 32: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Block Structured Matrices

A =

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 10 0 0 2 1 40 0 0 1 0 3

Math 408A: Linear Algebra Review

Page 33: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Block Structured Matrices

A =

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 10 0 0 2 1 40 0 0 1 0 3

=

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 1

0 0 0 2 1 40 0 0 1 0 3

Math 408A: Linear Algebra Review

Page 34: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Block Structured Matrices

A =

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 10 0 0 2 1 40 0 0 1 0 3

=

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 1

0 0 0 2 1 40 0 0 1 0 3

=

[

B I3×3

02×3 C

]

Math 408A: Linear Algebra Review

Page 35: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Block Structured Matrices

A =

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 10 0 0 2 1 40 0 0 1 0 3

=

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 1

0 0 0 2 1 40 0 0 1 0 3

=

[

B I3×3

02×3 C

]

where

B =

3 −4 12 2 0−1 0 0

, C =

[

2 1 41 0 3

]

Math 408A: Linear Algebra Review

Page 36: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Multiplication of Block Structured Matrices

Consider the matrix product AM, where

A =

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 10 0 0 2 1 40 0 0 1 0 3

and M =

1 20 4

−1 −12 −14 3

−2 0

Math 408A: Linear Algebra Review

Page 37: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Multiplication of Block Structured Matrices

Consider the matrix product AM, where

A =

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 10 0 0 2 1 40 0 0 1 0 3

and M =

1 20 4

−1 −12 −14 3

−2 0

Can we exploit the structure of A?

Math 408A: Linear Algebra Review

Page 38: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Multiplication of Block Structured Matrices

Consider the matrix product AM, where

A =

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 10 0 0 2 1 40 0 0 1 0 3

and M =

1 20 4

−1 −12 −14 3

−2 0

Can we exploit the structure of A?

Math 408A: Linear Algebra Review

Page 39: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Multiplication of Block Structured Matrices

Consider the matrix product AM, where

A =

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 10 0 0 2 1 40 0 0 1 0 3

and M =

1 20 4

−1 −12 −14 3

−2 0

Can we exploit the structure of A?

A =

[

B I3×3

02×3 C

]

Math 408A: Linear Algebra Review

Page 40: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Multiplication of Block Structured Matrices

Consider the matrix product AM, where

A =

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 10 0 0 2 1 40 0 0 1 0 3

and M =

1 20 4

−1 −12 −14 3

−2 0

Can we exploit the structure of A?

A =

[

B I3×3

02×3 C

]

so take M =

[

X

Y

]

,

Math 408A: Linear Algebra Review

Page 41: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Multiplication of Block Structured Matrices

Consider the matrix product AM, where

A =

3 −4 1 1 0 02 2 0 0 1 0

−1 0 0 0 0 10 0 0 2 1 40 0 0 1 0 3

and M =

1 20 4

−1 −12 −14 3

−2 0

Can we exploit the structure of A?

A =

[

B I3×3

02×3 C

]

so take M =

[

X

Y

]

,

where X =

1 20 4

−1 −1

, and Y =

2 −14 3

−2 0

.

Math 408A: Linear Algebra Review

Page 42: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Multiplication of Block Structured Matrices

AM =

[

B I3×3

02×3 C

] [

X

Y

]

Math 408A: Linear Algebra Review

Page 43: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Multiplication of Block Structured Matrices

AM =

[

B I3×3

02×3 C

] [

X

Y

]

=

[

BX + Y

CY

]

Math 408A: Linear Algebra Review

Page 44: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Multiplication of Block Structured Matrices

AM =

[

B I3×3

02×3 C

] [

X

Y

]

=

[

BX + Y

CY

]

=

2 −112 12

−1 −2

+

2 −14 3

−2 0

[

0 1−4 −1

]

Math 408A: Linear Algebra Review

Page 45: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Multiplication of Block Structured Matrices

AM =

[

B I3×3

02×3 C

] [

X

Y

]

=

[

BX + Y

CY

]

=

2 −112 12

−1 −2

+

2 −14 3

−2 0

[

0 1−4 −1

]

=

4 −126 15

−3 −20 1

−4 −1

.

Math 408A: Linear Algebra Review

Page 46: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Solving Systems of Linear equations

Let A ∈ Rm×n and b ∈ R

m.Find all solutions x ∈ R

n to the system Ax = b.

.

Math 408A: Linear Algebra Review

Page 47: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Solving Systems of Linear equations

Let A ∈ Rm×n and b ∈ R

m.Find all solutions x ∈ R

n to the system Ax = b.

The set of solutions is either.

Math 408A: Linear Algebra Review

Page 48: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Solving Systems of Linear equations

Let A ∈ Rm×n and b ∈ R

m.Find all solutions x ∈ R

n to the system Ax = b.

The set of solutions is either empty,.

Math 408A: Linear Algebra Review

Page 49: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Solving Systems of Linear equations

Let A ∈ Rm×n and b ∈ R

m.Find all solutions x ∈ R

n to the system Ax = b.

The set of solutions is either empty, a single point,.

Math 408A: Linear Algebra Review

Page 50: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Solving Systems of Linear equations

Let A ∈ Rm×n and b ∈ R

m.Find all solutions x ∈ R

n to the system Ax = b.

The set of solutions is either empty, a single point, or an infiniteset.

Math 408A: Linear Algebra Review

Page 51: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Solving Systems of Linear equations

Let A ∈ Rm×n and b ∈ R

m.Find all solutions x ∈ R

n to the system Ax = b.

The set of solutions is either empty, a single point, or an infiniteset.

If a solution x0 ∈ Rn exists, then the set of solutions is given by

x0 + Nul(A) .

Math 408A: Linear Algebra Review

Page 52: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination and the 3 Elementary Row

Operations

We solve the system Ax = b by transforming the augmented matrix

[A | b]

into upper echelon form using the three elementary row operations.

Math 408A: Linear Algebra Review

Page 53: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination and the 3 Elementary Row

Operations

We solve the system Ax = b by transforming the augmented matrix

[A | b]

into upper echelon form using the three elementary row operations.

This process is called Gaussian elimination.

Math 408A: Linear Algebra Review

Page 54: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination and the 3 Elementary Row

Operations

We solve the system Ax = b by transforming the augmented matrix

[A | b]

into upper echelon form using the three elementary row operations.

This process is called Gaussian elimination.

The three elementary row operations.

Math 408A: Linear Algebra Review

Page 55: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination and the 3 Elementary Row

Operations

We solve the system Ax = b by transforming the augmented matrix

[A | b]

into upper echelon form using the three elementary row operations.

This process is called Gaussian elimination.

The three elementary row operations.

1. Interchange any two rows.

Math 408A: Linear Algebra Review

Page 56: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination and the 3 Elementary Row

Operations

We solve the system Ax = b by transforming the augmented matrix

[A | b]

into upper echelon form using the three elementary row operations.

This process is called Gaussian elimination.

The three elementary row operations.

1. Interchange any two rows.

2. Multiply any row by a non-zero constant.

Math 408A: Linear Algebra Review

Page 57: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination and the 3 Elementary Row

Operations

We solve the system Ax = b by transforming the augmented matrix

[A | b]

into upper echelon form using the three elementary row operations.

This process is called Gaussian elimination.

The three elementary row operations.

1. Interchange any two rows.

2. Multiply any row by a non-zero constant.

3. Replace any row by itself plus a multiple of any other row.

Math 408A: Linear Algebra Review

Page 58: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination and the 3 Elementary Row

Operations

We solve the system Ax = b by transforming the augmented matrix

[A | b]

into upper echelon form using the three elementary row operations.

This process is called Gaussian elimination.

The three elementary row operations.

1. Interchange any two rows.

2. Multiply any row by a non-zero constant.

3. Replace any row by itself plus a multiple of any other row.

These elementary row operations can be interpreted as multiplyingthe augmented matrix on the left by a special matrix.

Math 408A: Linear Algebra Review

Page 59: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Exchange and Permutation Matrices

An exchange matrix is given by permuting any two columns of theidentity.

Math 408A: Linear Algebra Review

Page 60: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Exchange and Permutation Matrices

An exchange matrix is given by permuting any two columns of theidentity.

Multiplying any 4× n matrix on the left by the exchange matrix

1 0 0 00 0 0 10 0 1 00 1 0 0

will exchange the second and fourth rows of the matrix.

Math 408A: Linear Algebra Review

Page 61: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Exchange and Permutation Matrices

An exchange matrix is given by permuting any two columns of theidentity.

Multiplying any 4× n matrix on the left by the exchange matrix

1 0 0 00 0 0 10 0 1 00 1 0 0

will exchange the second and fourth rows of the matrix.

(multiplication of a m × 4 matrix on the right by this exchangesthe second and fourth columns.)

Math 408A: Linear Algebra Review

Page 62: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Exchange and Permutation Matrices

An exchange matrix is given by permuting any two columns of theidentity.

Multiplying any 4× n matrix on the left by the exchange matrix

1 0 0 00 0 0 10 0 1 00 1 0 0

will exchange the second and fourth rows of the matrix.

(multiplication of a m × 4 matrix on the right by this exchangesthe second and fourth columns.)A permutation matrix is obtained by permuting the columns of theidentity matrix.

Math 408A: Linear Algebra Review

Page 63: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Notes on Matrix Multiplication

Let A = [aij ]m×n ∈ Rm×n.

Math 408A: Linear Algebra Review

Page 64: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Notes on Matrix Multiplication

Let A = [aij ]m×n ∈ Rm×n.

Left Multiplication of A:

Math 408A: Linear Algebra Review

Page 65: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Notes on Matrix Multiplication

Let A = [aij ]m×n ∈ Rm×n.

Left Multiplication of A:When multiplying A on the left by an m ×m matrix M, it is oftenuseful to think of this as an action on the rows of A.

Math 408A: Linear Algebra Review

Page 66: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Notes on Matrix Multiplication

Let A = [aij ]m×n ∈ Rm×n.

Left Multiplication of A:When multiplying A on the left by an m ×m matrix M, it is oftenuseful to think of this as an action on the rows of A.

For example, left multiplication by a permutation matrix permutesthe rows of the matrix.

Math 408A: Linear Algebra Review

Page 67: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Notes on Matrix Multiplication

Let A = [aij ]m×n ∈ Rm×n.

Left Multiplication of A:When multiplying A on the left by an m ×m matrix M, it is oftenuseful to think of this as an action on the rows of A.

For example, left multiplication by a permutation matrix permutesthe rows of the matrix.

However, mechanically, left multiplication corresponds to matrixvector multiplication on the columns.

MA = [Ma•1 Ma•2 · · · Ma•n]

Math 408A: Linear Algebra Review

Page 68: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Notes on Matrix Multiplication

Let A = [aij ]m×n ∈ Rm×n.

Math 408A: Linear Algebra Review

Page 69: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Notes on Matrix Multiplication

Let A = [aij ]m×n ∈ Rm×n.

Right Multiplication of A:

Math 408A: Linear Algebra Review

Page 70: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Notes on Matrix Multiplication

Let A = [aij ]m×n ∈ Rm×n.

Right Multiplication of A:When multiplying A on the right by an n × n matrix N, it is oftenuseful to think of this as an action on the columns of A.

Math 408A: Linear Algebra Review

Page 71: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Notes on Matrix Multiplication

Let A = [aij ]m×n ∈ Rm×n.

Right Multiplication of A:When multiplying A on the right by an n × n matrix N, it is oftenuseful to think of this as an action on the columns of A.

For example, right multiplication by a permutation matrixpermutes the columns of the matrix.

Math 408A: Linear Algebra Review

Page 72: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Notes on Matrix Multiplication

Let A = [aij ]m×n ∈ Rm×n.

Right Multiplication of A:When multiplying A on the right by an n × n matrix N, it is oftenuseful to think of this as an action on the columns of A.

For example, right multiplication by a permutation matrixpermutes the columns of the matrix.

However, mechanically, rightmultiplication corresponds toleft matrix vector multiplicationon the rows.

Math 408A: Linear Algebra Review

Page 73: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Notes on Matrix Multiplication

Let A = [aij ]m×n ∈ Rm×n.

Right Multiplication of A:When multiplying A on the right by an n × n matrix N, it is oftenuseful to think of this as an action on the columns of A.

For example, right multiplication by a permutation matrixpermutes the columns of the matrix.

However, mechanically, rightmultiplication corresponds toleft matrix vector multiplicationon the rows.

AN =

a1•N

a2•N...

am•N

Math 408A: Linear Algebra Review

Page 74: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination Matrices

The key step in Gaussian elimination is to transform a vector ofthe form

a

α

b

,

where a ∈ Rk , 0 6= α ∈ R, and b ∈ R

n−k−1, into one of the form

a

α

0

.

Math 408A: Linear Algebra Review

Page 75: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination Matrices

The key step in Gaussian elimination is to transform a vector ofthe form

a

α

b

,

where a ∈ Rk , 0 6= α ∈ R, and b ∈ R

n−k−1, into one of the form

a

α

0

.

This can be accomplished by left matrix multiplication as follows.

Math 408A: Linear Algebra Review

Page 76: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination Matrices

a ∈ Rk , 0 6= α ∈ R, and b ∈ R

n−k−1

Ik×k 0 00 1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

Math 408A: Linear Algebra Review

Page 77: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination Matrices

a ∈ Rk , 0 6= α ∈ R, and b ∈ R

n−k−1

Ik×k 0 00 1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

=

.

Math 408A: Linear Algebra Review

Page 78: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination Matrices

a ∈ Rk , 0 6= α ∈ R, and b ∈ R

n−k−1

Ik×k 0 00 1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

=

a

.

Math 408A: Linear Algebra Review

Page 79: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination Matrices

a ∈ Rk , 0 6= α ∈ R, and b ∈ R

n−k−1

Ik×k 0 00 1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

=

a

α

.

Math 408A: Linear Algebra Review

Page 80: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination Matrices

a ∈ Rk , 0 6= α ∈ R, and b ∈ R

n−k−1

Ik×k 0 00 1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

=

a

α

0

.

Math 408A: Linear Algebra Review

Page 81: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination Matrices

The matrix

Ik×k 0 00 1 00 −α−1b I(n−k−1)×(n−k−1)

is called a Gaussian elimination matrix.

Math 408A: Linear Algebra Review

Page 82: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination Matrices

The matrix

Ik×k 0 00 1 00 −α−1b I(n−k−1)×(n−k−1)

is called a Gaussian elimination matrix.

This matrix is invertible with inverse

Ik×k 0 00 1 00 α−1b I(n−k−1)×(n−k−1)

.

Math 408A: Linear Algebra Review

Page 83: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination Matrices

The matrix

Ik×k 0 00 1 00 −α−1b I(n−k−1)×(n−k−1)

is called a Gaussian elimination matrix.

This matrix is invertible with inverse

Ik×k 0 00 1 00 α−1b I(n−k−1)×(n−k−1)

.

Note that a Gaussian elimination matrix and its inverse are bothlower triangular matrices.

Math 408A: Linear Algebra Review

Page 84: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Sub-Algebras

Lower (upper) triangular matrices in Rn×n are said to form a

sub-algebra of Rn×n.

Math 408A: Linear Algebra Review

Page 85: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Sub-Algebras

Lower (upper) triangular matrices in Rn×n are said to form a

sub-algebra of Rn×n.

A subset S of Rn×n is said to be a sub-algebra of Rn×n if

Math 408A: Linear Algebra Review

Page 86: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Sub-Algebras

Lower (upper) triangular matrices in Rn×n are said to form a

sub-algebra of Rn×n.

A subset S of Rn×n is said to be a sub-algebra of Rn×n if

◮ S is a subspace of Rn×n,

Math 408A: Linear Algebra Review

Page 87: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Sub-Algebras

Lower (upper) triangular matrices in Rn×n are said to form a

sub-algebra of Rn×n.

A subset S of Rn×n is said to be a sub-algebra of Rn×n if

◮ S is a subspace of Rn×n,

◮ S is closed wrt matrix multiplication, and

Math 408A: Linear Algebra Review

Page 88: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Matrix Sub-Algebras

Lower (upper) triangular matrices in Rn×n are said to form a

sub-algebra of Rn×n.

A subset S of Rn×n is said to be a sub-algebra of Rn×n if

◮ S is a subspace of Rn×n,

◮ S is closed wrt matrix multiplication, and

◮ if M ∈ S is invertible, then M−1 ∈ S .

Math 408A: Linear Algebra Review

Page 89: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

Math 408A: Linear Algebra Review

Page 90: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Math 408A: Linear Algebra Review

Page 91: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Eliminate the first column witha Gaussian elimination matrix.

Math 408A: Linear Algebra Review

Page 92: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Eliminate the first column witha Gaussian elimination matrix.

G1 =

1 0 0−2 1 01 0 1

Math 408A: Linear Algebra Review

Page 93: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Eliminate the first column witha Gaussian elimination matrix.

G1 =

1 0 0−2 1 01 0 1

G1A =

1 0 0−2 1 01 0 1

1 1 22 4 2

−1 1 3

Math 408A: Linear Algebra Review

Page 94: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Eliminate the first column witha Gaussian elimination matrix.

G1 =

1 0 0−2 1 01 0 1

G1A =

1 0 0−2 1 01 0 1

1 1 22 4 2

−1 1 3

=

Math 408A: Linear Algebra Review

Page 95: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Eliminate the first column witha Gaussian elimination matrix.

G1 =

1 0 0−2 1 01 0 1

G1A =

1 0 0−2 1 01 0 1

1 1 22 4 2

−1 1 3

=

1

Math 408A: Linear Algebra Review

Page 96: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Eliminate the first column witha Gaussian elimination matrix.

G1 =

1 0 0−2 1 01 0 1

G1A =

1 0 0−2 1 01 0 1

1 1 22 4 2

−1 1 3

=

1 1

Math 408A: Linear Algebra Review

Page 97: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Eliminate the first column witha Gaussian elimination matrix.

G1 =

1 0 0−2 1 01 0 1

G1A =

1 0 0−2 1 01 0 1

1 1 22 4 2

−1 1 3

=

1 1 2

Math 408A: Linear Algebra Review

Page 98: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Eliminate the first column witha Gaussian elimination matrix.

G1 =

1 0 0−2 1 01 0 1

G1A =

1 0 0−2 1 01 0 1

1 1 22 4 2

−1 1 3

=

1 1 20

Math 408A: Linear Algebra Review

Page 99: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Eliminate the first column witha Gaussian elimination matrix.

G1 =

1 0 0−2 1 01 0 1

G1A =

1 0 0−2 1 01 0 1

1 1 22 4 2

−1 1 3

=

1 1 20 2

Math 408A: Linear Algebra Review

Page 100: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Eliminate the first column witha Gaussian elimination matrix.

G1 =

1 0 0−2 1 01 0 1

G1A =

1 0 0−2 1 01 0 1

1 1 22 4 2

−1 1 3

=

1 1 20 2 − 2

Math 408A: Linear Algebra Review

Page 101: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Transformation to echelon(upper triangular) form.

A =

1 1 22 4 2

−1 1 3

.

Eliminate the first column witha Gaussian elimination matrix.

G1 =

1 0 0−2 1 01 0 1

G1A =

1 0 0−2 1 01 0 1

1 1 22 4 2

−1 1 3

=

1 1 20 2 − 20 2 5

Math 408A: Linear Algebra Review

Page 102: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Now do Gaussian eliminiation on the second column.

1 1 20 2 −20 2 5

Math 408A: Linear Algebra Review

Page 103: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Now do Gaussian eliminiation on the second column.

1 1 20 2 −20 2 5

G2 =

1 0 00 1 00 −1 1

Math 408A: Linear Algebra Review

Page 104: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Now do Gaussian eliminiation on the second column.

1 1 20 2 −20 2 5

G2 =

1 0 00 1 00 −1 1

1 0 00 1 00 −1 1

1 1 20 2 −20 2 5

=

Math 408A: Linear Algebra Review

Page 105: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Now do Gaussian eliminiation on the second column.

1 1 20 2 −20 2 5

G2 =

1 0 00 1 00 −1 1

1 0 00 1 00 −1 1

1 1 20 2 −20 2 5

=

1

Math 408A: Linear Algebra Review

Page 106: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Now do Gaussian eliminiation on the second column.

1 1 20 2 −20 2 5

G2 =

1 0 00 1 00 −1 1

1 0 00 1 00 −1 1

1 1 20 2 −20 2 5

=

100

Math 408A: Linear Algebra Review

Page 107: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Now do Gaussian eliminiation on the second column.

1 1 20 2 −20 2 5

G2 =

1 0 00 1 00 −1 1

1 0 00 1 00 −1 1

1 1 20 2 −20 2 5

=

1 100

Math 408A: Linear Algebra Review

Page 108: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Now do Gaussian eliminiation on the second column.

1 1 20 2 −20 2 5

G2 =

1 0 00 1 00 −1 1

1 0 00 1 00 −1 1

1 1 20 2 −20 2 5

=

1 1 200

Math 408A: Linear Algebra Review

Page 109: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Now do Gaussian eliminiation on the second column.

1 1 20 2 −20 2 5

G2 =

1 0 00 1 00 −1 1

1 0 00 1 00 −1 1

1 1 20 2 −20 2 5

=

1 1 20 20

Math 408A: Linear Algebra Review

Page 110: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Now do Gaussian eliminiation on the second column.

1 1 20 2 −20 2 5

G2 =

1 0 00 1 00 −1 1

1 0 00 1 00 −1 1

1 1 20 2 −20 2 5

=

1 1 20 2 − 20

Math 408A: Linear Algebra Review

Page 111: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gaussian Elimination in Practice

Now do Gaussian eliminiation on the second column.

1 1 20 2 −20 2 5

G2 =

1 0 00 1 00 −1 1

1 0 00 1 00 −1 1

1 1 20 2 −20 2 5

=

1 1 20 2 − 20 0 7

Math 408A: Linear Algebra Review

Page 112: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gauss-Jordan Elimination, or Pivot Matrices

What happens in the following multiplication?

Ik×k −α−1a 00 α−1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

Math 408A: Linear Algebra Review

Page 113: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gauss-Jordan Elimination, or Pivot Matrices

What happens in the following multiplication?

Ik×k −α−1a 00 α−1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

=

.

Math 408A: Linear Algebra Review

Page 114: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gauss-Jordan Elimination, or Pivot Matrices

What happens in the following multiplication?

Ik×k −α−1a 00 α−1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

=

0

.

Math 408A: Linear Algebra Review

Page 115: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gauss-Jordan Elimination, or Pivot Matrices

What happens in the following multiplication?

Ik×k −α−1a 00 α−1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

=

01

.

Math 408A: Linear Algebra Review

Page 116: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gauss-Jordan Elimination, or Pivot Matrices

What happens in the following multiplication?

Ik×k −α−1a 00 α−1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

=

010

.

Math 408A: Linear Algebra Review

Page 117: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gauss-Jordan Elimination, or Pivot Matrices

What happens in the following multiplication?

Ik×k −α−1a 00 α−1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

=

010

.

What is the inverse of this matrix?

Math 408A: Linear Algebra Review

Page 118: Math 408A: Linear Algebra Review

Outline Linear Algebra Review Block Structured Matrices Gaussian Elimination Matrices Gauss-Jordan Elimination (Pivoting)

Gauss-Jordan Elimination, or Pivot Matrices

What happens in the following multiplication?

Ik×k −α−1a 00 α−1 00 −α−1b I(n−k−1)×(n−k−1)

a

α

b

=

010

.

What is the inverse of this matrix?

Ik×k a 00 α 00 b I(n−k−1)×(n−k−1)

.

Math 408A: Linear Algebra Review