Home > Matrix & Vector calculators > QR Decomposition (Gram Schmidt Method) calculator

Method and examples
Method
QR Decomposition (Gram Schmidt Method) calculator
QR Decomposition (Gram Schmidt Method)
Matrix A :
  
  

Mode =
Decimal Place =

Code is changed on 22.07.2025, Now it also works for Complex Number.
For wrong or incomplete solution, please submit the feedback form.
So, I will try my best to improve it soon.
SolutionHelp
QR Decomposition (Gram Schmidt Method) calculator
1. [1-1414-21421-10]
2. [1-42322]
3. [3-64-801]
4. [124005036]


Example
1. Find QR Decomposition (Gram Schmidt Method) ...
[1-1414-21421-10]


Solution:
Here A = 
1-14
14-2
142
1-10


q1=a1 = 
1
1
1
1
 = 
1
1
1
1


r11=||q1||=(1)2+(1)2+(1)2+(1)2=4=2

q1=1||q1||q1 = 12
1
1
1
1
 = 
0.5
0.5
0.5
0.5


r12=qT1a2 = 
[0.50.50.50.5]
 × 
-1
4
4
-1
=3


q2=a2-r12q1 = 
-1
4
4
-1
 -3 
0.5
0.5
0.5
0.5
 = 
-2.5
2.5
2.5
-2.5


r22=||q2||=(-2.5)2+(2.5)2+(2.5)2+(-2.5)2=25=5

q2=1||q2||q2 = 15
-2.5
2.5
2.5
-2.5
 = 
-0.5
0.5
0.5
-0.5


r13=qT1a3 = 
[0.50.50.50.5]
 × 
4
-2
2
0
=2


r23=qT2a3 = 
[-0.50.50.5-0.5]
 × 
4
-2
2
0
=-2


q3=a3-r13q1-r23q2 = 
4
-2
2
0
 -2 
0.5
0.5
0.5
0.5
 +2 
-0.5
0.5
0.5
-0.5
 = 
2
-2
2
-2


r33=||q3||=(2)2+(-2)2+(2)2+(-2)2=16=4

q3=1||q3||q3 = 14
2
-2
2
-2
 = 
0.5
-0.5
0.5
-0.5


Q=[q1,q2,q3] = 
0.5-0.50.5
0.50.5-0.5
0.50.50.5
0.5-0.5-0.5


R = 
r11r12r13
0r22r23
00r33
 = 
232
05-2
004




checking Q×R=A?

Q×R = 
0.5-0.50.5
0.50.5-0.5
0.50.50.5
0.5-0.5-0.5
 × 
232
05-2
004
 = 
1-14
14-2
142
1-10


and A = 
1-14
14-2
142
1-10


Solution is possible.




Share this solution or page with your friends.
 
 
Copyright © 2025. All rights reserved. Terms, Privacy
 
 

.