Home > Matrix & Vector calculators > LQ Decomposition example

15. LQ Decomposition example ( Enter your problem )
  1. Example `[[1,-1,4],[1,4,-2],[1,4,2],[1,-1,0]]`
  2. Example `[[3,-6],[4,-8],[0,1]]`
  3. Example `[[1,-4],[2,3],[2,2]]`
  4. Example `[[1,2,4],[0,0,5],[0,3,6]]`
Other related methods
  1. Transforming matrix to Row Echelon Form
  2. Transforming matrix to Reduced Row Echelon Form
  3. Rank of matrix
  4. Characteristic polynomial of matrix
  5. Eigenvalues
  6. Eigenvectors (Eigenspace)
  7. Triangular Matrix
  8. LU decomposition using Gauss Elimination method of matrix
  9. LU decomposition using Doolittle's method of matrix
  10. LU decomposition using Crout's method of matrix
  11. Diagonal Matrix
  12. Cholesky Decomposition
  13. QR Decomposition (Gram Schmidt Method)
  14. QR Decomposition (Householder Method)
  15. LQ Decomposition
  16. Pivots
  17. Singular Value Decomposition (SVD)
  18. Moore-Penrose Pseudoinverse
  19. Power Method for dominant eigenvalue
  20. determinants using Sarrus Rule
  21. determinants using properties of determinants
  22. Row Space
  23. Column Space
  24. Null Space

3. Example `[[1,-4],[2,3],[2,2]]`
(Previous example)
16. Pivots
(Next method)

4. Example `[[1,2,4],[0,0,5],[0,3,6]]`





Find LQ Decomposition ...
`[[1,2,4],[0,0,5],[0,3,6]]`


Solution:
Here `A` = 
`1``2``4`
`0``0``5`
`0``3``6`


Suppose you want a `LQ` factorization of a matrix `A`, then you do a QR factorization of `A^T`, i.e., `A^T=UR`, where `U` is orthogonal and `R` is upper triangular. Then `A=LQ=R^TU^T` where `L=R^T` is lower triangular, and `Q=U^T` is orthogonal.


`A` = 
`1``2``4`
`0``0``5`
`0``3``6`


`A'` = 
`1``0``0`
`2``0``3`
`4``5``6`


Now, UR Decomposition of `A'` by GramSchmidt Method

`q_1'``=a_1` = 
`1`
`2`
`4`
 = 
`1`
`2`
`4`


`r_(11)=||q_1'||=sqrt(1^2+2^2+4^2)=sqrt(21)=4.5826`

`q_1 = 1/(||q_1'||) * q_1'` = `1/4.5826 * `
`1`
`2`
`4`
 = 
`0.2182`
`0.4364`
`0.8729`


`r_(12)=q_1^T * a_2` = 
[`0.2182``0.4364``0.8729`]
 `xx` 
`0`
`0`
`5`
`=4.3644`


`q_2'``=a_2-r_(12) * q_1` = 
`0`
`0`
`5`
 -4.3644 
`0.2182`
`0.4364`
`0.8729`
 = 
`-20/21`
`-40/21`
`25/21`


`r_(22)=||q_2'||=sqrt((-20/21)^2+(-40/21)^2+25/21^2)=sqrt(125/21)=2.4398`

`q_2 = 1/(||q_2'||) * q_2'` = `1/2.4398 * `
`-20/21`
`-40/21`
`25/21`
 = 
`-0.3904`
`-0.7807`
`0.488`


`r_(13)=q_1^T * a_3` = 
[`0.2182``0.4364``0.8729`]
 `xx` 
`0`
`3`
`6`
`=6.5465`


`r_(23)=q_2^T * a_3` = 
[`-0.3904``-0.7807``0.488`]
 `xx` 
`0`
`3`
`6`
`=0.5855`


`q_3'``=a_3-r_(13) * q_1-r_(23) * q_2` = 
`0`
`3`
`6`
 -6.5465 
`0.2182`
`0.4364`
`0.8729`
 -0.5855 
`-0.3904`
`-0.7807`
`0.488`
 = 
`-6/5`
`3/5`
`0`


`r_(33)=||q_3'||=sqrt((-6/5)^2+3/5^2+0^2)=sqrt(9/5)=1.3416`

`q_3 = 1/(||q_3'||) * q_3'` = `1/1.3416 * `
`-6/5`
`3/5`
`0`
 = 
`-0.8944`
`0.4472`
`0`


`U``=[q_1,q_2,q_3]` = 
`0.2182``-0.3904``-0.8944`
`0.4364``-0.7807``0.4472`
`0.8729``0.488``0`


`R` = 
`r_(11)``r_(12)``r_(13)`
`0``r_(22)``r_(23)`
`0``0``r_(33)`
 = 
`4.5826``4.3644``6.5465`
`0``2.4398``0.5855`
`0``0``1.3416`




Now, L and Q from R and U
`L=R^T` = 
`4.5826``0``0`
`4.3644``2.4398``0`
`6.5465``0.5855``1.3416`


`Q=U^T` = 
`0.2182``0.4364``0.8729`
`-0.3904``-0.7807``0.488`
`-0.8944``0.4472``0`




checking `L xx Q = A?`

`L xx Q` = 
`4.5826``0``0`
`4.3644``2.4398``0`
`6.5465``0.5855``1.3416`
 `xx` 
`0.2182``0.4364``0.8729`
`-0.3904``-0.7807``0.488`
`-0.8944``0.4472``0`
 = 
`1``2``4`
`0``0``5`
`0``3``6`


and `A` = 
`1``2``4`
`0``0``5`
`0``3``6`



This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



3. Example `[[1,-4],[2,3],[2,2]]`
(Previous example)
16. Pivots
(Next method)





Share this solution or page with your friends.


 
Copyright © 2024. All rights reserved. Terms, Privacy
 
 

.