1
$\begingroup$

Apply the Gram-Schmidt orthonormalization process to the vectors $[1,3,2]^T$ and $[1,0,1]^T$ in order to get an orthonormal basis of the subspace that they span.

My Try:

I took $u_1=[1,3,2]^T,u_2=[1,0,1]^T$ and used the formula $V_1=\dfrac{u_1}{\|u_1\|}$ and $V_2=\dfrac{u_2-\langle u_2V_1\rangle V_1}{\|u_2- \langle u_2V_1\rangle V_1\|}$

I got $V_1=\left[\dfrac{1}{\sqrt{14}},\dfrac{3}{\sqrt{14}},\dfrac{2}{\sqrt{14}}\right]^T$

Now, I don't whether I am doing correct for $V_2$ or not. But this is what I did.

$$\langle u_2V_1\rangle V_1=\left<(1,0,1)^T\left(\dfrac{1}{\sqrt{14}},\dfrac{3}{\sqrt{14}},\dfrac{2}{\sqrt{14}}\right)^T\right>^T\left<\dfrac{1}{\sqrt{14}},\dfrac{3}{\sqrt{14}},\dfrac{2}{\sqrt{14}}\right>^T=\left<\frac{3}{14},\frac{9}{14},\frac{6}{14}\right>^T$$ and $$u_2-\langle u_2V_1\rangle V_1=\left<\frac{11}{14},\frac{-9}{14},\frac{4}{14}\right>^T$$ $$V_2=\left<\frac{11}{\sqrt{218}},\frac{-9}{\sqrt{218}},\frac{4}{\sqrt{218}}\right>^T$$

Is my $V_2$ correct?

$\endgroup$
  • 1
    $\begingroup$ 1) are your two solution vectors unit-length? 2) are they orthogonal? 3) do they span the correct subspace (easiest check is to see if they’re orthogonal to the cross product of the two input vectors)? $\endgroup$ – user7530 Jul 22 '18 at 22:42
  • $\begingroup$ @user7530 You mean do I need to do dot product of $V_1\cdot V_2$ to check those? $\endgroup$ – user572932 Jul 22 '18 at 22:43
1
$\begingroup$

You made a small mistake, it should be:

$$u_2-\langle u_2,V_1\rangle V_1=\left<\frac{11}{14},\frac{-9}{14},\frac{\color{red}{8}}{14}\right>^T$$

and then

$$V_2 = \left<\frac{11}{\sqrt{266}},\frac{-9}{\sqrt{266}},\frac{8}{\sqrt{266}}\right>^T$$

Now you can check that $\|V_1\| = \|V_2\| = 1$ and $\langle V_1, V_2\rangle = 0$ so they are correct.

$\endgroup$
  • $\begingroup$ Thanks for the verification and for finding the mistake. $\endgroup$ – user572932 Jul 22 '18 at 23:00
  • $\begingroup$ then how to verify if I had $V_1,V_2,V_3$ $\endgroup$ – user572932 Jul 22 '18 at 23:31
  • $\begingroup$ @philip $\|V_1\| = \|V_2\| = \|V_3\| = 1$ and $\langle V_1, V_2\rangle = \langle V_1, V_3\rangle = \langle V_2, V_3\rangle = 0$. $\endgroup$ – mechanodroid Jul 22 '18 at 23:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy