Math 221: LINEAR ALGEBRA 8-4. QR Factorization Le Chen 1 Emory - - PowerPoint PPT Presentation

math 221 linear algebra
SMART_READER_LITE
LIVE PREVIEW

Math 221: LINEAR ALGEBRA 8-4. QR Factorization Le Chen 1 Emory - - PowerPoint PPT Presentation

Math 221: LINEAR ALGEBRA 8-4. QR Factorization 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. The QR


slide-1
SLIDE 1

Math 221: LINEAR ALGEBRA

§8-4. QR Factorization

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

The QR Factorization

Definition

Let A be a real m × n matrix. Then a QR factorization of A can be written as A = QR where Q is an orthogonal matrix and R is an upper triangular matrix.

slide-3
SLIDE 3

The QR Factorization

Definition

Let A be a real m × n matrix. Then a QR factorization of A can be written as A = QR where Q is an orthogonal matrix and R is an upper triangular matrix.

Theorem

Let A be a real m × n matrix with linearly independent columns. Then A can be written A = QR with Q orthogonal and R upper triangular with non-negative entries on the main diagonal.

slide-4
SLIDE 4

Finding the QR Factorization

Let A be a real m × n matrix with linearly independent columns A1, A2, · · · , An. The following procedure results in the QR factorization. Apply the Gram-Schmidt Process to the columns of . Label the resulting columns respectively. Defjne . Let be constructed as . Then is

  • rthogonal.

Let be constructed as . . . . . . . . . . . . The result is .

slide-5
SLIDE 5

Finding the QR Factorization

Let A be a real m × n matrix with linearly independent columns A1, A2, · · · , An. The following procedure results in the QR factorization.

  • 1. Apply the Gram-Schmidt Process to the columns of A. Label the

resulting columns B1, B2, · · · , Bn respectively. Defjne . Let be constructed as . Then is

  • rthogonal.

Let be constructed as . . . . . . . . . . . . The result is .

slide-6
SLIDE 6

Finding the QR Factorization

Let A be a real m × n matrix with linearly independent columns A1, A2, · · · , An. The following procedure results in the QR factorization.

  • 1. Apply the Gram-Schmidt Process to the columns of A. Label the

resulting columns B1, B2, · · · , Bn respectively.

  • 2. Defjne Ci =

1 BiBi.

Let be constructed as . Then is

  • rthogonal.

Let be constructed as . . . . . . . . . . . . The result is .

slide-7
SLIDE 7

Finding the QR Factorization

Let A be a real m × n matrix with linearly independent columns A1, A2, · · · , An. The following procedure results in the QR factorization.

  • 1. Apply the Gram-Schmidt Process to the columns of A. Label the

resulting columns B1, B2, · · · , Bn respectively.

  • 2. Defjne Ci =

1 BiBi.

  • 3. Let Q be constructed as Q =
  • C1

C2 · · · Cn

  • . Then Q is
  • rthogonal.

Let be constructed as . . . . . . . . . . . . The result is .

slide-8
SLIDE 8

Finding the QR Factorization

Let A be a real m × n matrix with linearly independent columns A1, A2, · · · , An. The following procedure results in the QR factorization.

  • 1. Apply the Gram-Schmidt Process to the columns of A. Label the

resulting columns B1, B2, · · · , Bn respectively.

  • 2. Defjne Ci =

1 BiBi.

  • 3. Let Q be constructed as Q =
  • C1

C2 · · · Cn

  • . Then Q is
  • rthogonal.
  • 4. Let R be constructed as

R =        B1 A2 · C1 A3 · C1 · · · An · C1 B2 A3 · C2 · · · An · C2 B3 · · · An · C1 . . . . . . . . . . . . · · · Bn        The result is .

slide-9
SLIDE 9

Finding the QR Factorization

Let A be a real m × n matrix with linearly independent columns A1, A2, · · · , An. The following procedure results in the QR factorization.

  • 1. Apply the Gram-Schmidt Process to the columns of A. Label the

resulting columns B1, B2, · · · , Bn respectively.

  • 2. Defjne Ci =

1 BiBi.

  • 3. Let Q be constructed as Q =
  • C1

C2 · · · Cn

  • . Then Q is
  • rthogonal.
  • 4. Let R be constructed as

R =        B1 A2 · C1 A3 · C1 · · · An · C1 B2 A3 · C2 · · · An · C2 B3 · · · An · C1 . . . . . . . . . . . . · · · Bn       

  • 5. The result is A = QR.
slide-10
SLIDE 10

Example

Let A =   4 1 2 3 1   Find the QR factorization of A.

slide-11
SLIDE 11

Example

Let A =   4 1 2 3 1   Find the QR factorization of A.

Solution

First we apply the Gram-Schmidt Process to the columns of A. B1 = A1 =   4 2   B2 = A2 − A2 · B1 B12 B1 =   1 3 1   − 10 20   4 2   =   −1 2 1  

slide-12
SLIDE 12

Solution (continued)

Next, normalize these vectors. C1 = 1 B1B1 = 1 √ 20   4 2   C2 = 1 B2B2 = 1 √ 6   −1 2 1  

slide-13
SLIDE 13

Solution (continued)

Next, normalize these vectors. C1 = 1 B1B1 = 1 √ 20   4 2   C2 = 1 B2B2 = 1 √ 6   −1 2 1   Then the matrix Q is constructed using these vectors as columns. Q =   

4 √ 20

− 1

√ 6 2 √ 20 2 √ 6 1 √ 6

   =   

2 √ 5

− 1

√ 6 1 √ 5 2 √ 6 1 √ 6

  

slide-14
SLIDE 14

Solution (continued)

Now construct R: R = B1 A2 · C1 B2

  • =

√ 20 √ 5 √ 6

slide-15
SLIDE 15

Solution (continued)

Now construct R: R = B1 A2 · C1 B2

  • =

√ 20 √ 5 √ 6

  • Therefore

A = QR   4 1 2 3 1   =   

2 √ 5

− 1

√ 6 1 √ 5 2 √ 6 1 √ 6

   √ 20 √ 5 √ 6