Creating an orthonormal basis with Gram schmidt procedure error.












0












$begingroup$


I have a question which says the following:




Let $V$ be the span of $v_{1}=(0,1,2)$, $v_{2}=(-1,0,1)$ and $v_{3}=(-1,1,3)$.



Construct an orthonormal basis $B'$ for $V$ (usual dot product).




I know how to do the question. That's easy. I need to apply the gram schmidt procedure thrice and I have my answer. My problem is the 3rd iteration.



$U_{1}=V_{1}=(0,1,2)$



Orthonormalizing, we obtain $V_{1}'=(0,frac{1}{sqrt{5}},frac{2}{sqrt{5}})$



Then $U_2=V_2-frac{V_2 cdot U_1}{||U_1||^2}U_1$



Doing so gives: $U_2=(-1,frac{-2}{5},frac{1}{5})$



Orthonormalizing, we get $V_{2}'=(0,frac{-2}{sqrt{30}},frac{1}{sqrt{30}})$



Finally, $U_3=V_3-frac{V_3 cdot U_1}{||U_1||^2}U_1 - frac{V_3 cdot U_2}{||U_2||^2}U_2$



However this time, if I plug in everything, I get $U_3=(0,0,0)$. While that is indeed orthogonal to both ${v_1}$ and ${v_2}$ there is no way I can orthonormalize $U_3$ since I get division by $0$.



Is the question just badly asked? Because there is simply no way to obtain an orthonormal basis.










share|cite|improve this question









$endgroup$

















    0












    $begingroup$


    I have a question which says the following:




    Let $V$ be the span of $v_{1}=(0,1,2)$, $v_{2}=(-1,0,1)$ and $v_{3}=(-1,1,3)$.



    Construct an orthonormal basis $B'$ for $V$ (usual dot product).




    I know how to do the question. That's easy. I need to apply the gram schmidt procedure thrice and I have my answer. My problem is the 3rd iteration.



    $U_{1}=V_{1}=(0,1,2)$



    Orthonormalizing, we obtain $V_{1}'=(0,frac{1}{sqrt{5}},frac{2}{sqrt{5}})$



    Then $U_2=V_2-frac{V_2 cdot U_1}{||U_1||^2}U_1$



    Doing so gives: $U_2=(-1,frac{-2}{5},frac{1}{5})$



    Orthonormalizing, we get $V_{2}'=(0,frac{-2}{sqrt{30}},frac{1}{sqrt{30}})$



    Finally, $U_3=V_3-frac{V_3 cdot U_1}{||U_1||^2}U_1 - frac{V_3 cdot U_2}{||U_2||^2}U_2$



    However this time, if I plug in everything, I get $U_3=(0,0,0)$. While that is indeed orthogonal to both ${v_1}$ and ${v_2}$ there is no way I can orthonormalize $U_3$ since I get division by $0$.



    Is the question just badly asked? Because there is simply no way to obtain an orthonormal basis.










    share|cite|improve this question









    $endgroup$















      0












      0








      0





      $begingroup$


      I have a question which says the following:




      Let $V$ be the span of $v_{1}=(0,1,2)$, $v_{2}=(-1,0,1)$ and $v_{3}=(-1,1,3)$.



      Construct an orthonormal basis $B'$ for $V$ (usual dot product).




      I know how to do the question. That's easy. I need to apply the gram schmidt procedure thrice and I have my answer. My problem is the 3rd iteration.



      $U_{1}=V_{1}=(0,1,2)$



      Orthonormalizing, we obtain $V_{1}'=(0,frac{1}{sqrt{5}},frac{2}{sqrt{5}})$



      Then $U_2=V_2-frac{V_2 cdot U_1}{||U_1||^2}U_1$



      Doing so gives: $U_2=(-1,frac{-2}{5},frac{1}{5})$



      Orthonormalizing, we get $V_{2}'=(0,frac{-2}{sqrt{30}},frac{1}{sqrt{30}})$



      Finally, $U_3=V_3-frac{V_3 cdot U_1}{||U_1||^2}U_1 - frac{V_3 cdot U_2}{||U_2||^2}U_2$



      However this time, if I plug in everything, I get $U_3=(0,0,0)$. While that is indeed orthogonal to both ${v_1}$ and ${v_2}$ there is no way I can orthonormalize $U_3$ since I get division by $0$.



      Is the question just badly asked? Because there is simply no way to obtain an orthonormal basis.










      share|cite|improve this question









      $endgroup$




      I have a question which says the following:




      Let $V$ be the span of $v_{1}=(0,1,2)$, $v_{2}=(-1,0,1)$ and $v_{3}=(-1,1,3)$.



      Construct an orthonormal basis $B'$ for $V$ (usual dot product).




      I know how to do the question. That's easy. I need to apply the gram schmidt procedure thrice and I have my answer. My problem is the 3rd iteration.



      $U_{1}=V_{1}=(0,1,2)$



      Orthonormalizing, we obtain $V_{1}'=(0,frac{1}{sqrt{5}},frac{2}{sqrt{5}})$



      Then $U_2=V_2-frac{V_2 cdot U_1}{||U_1||^2}U_1$



      Doing so gives: $U_2=(-1,frac{-2}{5},frac{1}{5})$



      Orthonormalizing, we get $V_{2}'=(0,frac{-2}{sqrt{30}},frac{1}{sqrt{30}})$



      Finally, $U_3=V_3-frac{V_3 cdot U_1}{||U_1||^2}U_1 - frac{V_3 cdot U_2}{||U_2||^2}U_2$



      However this time, if I plug in everything, I get $U_3=(0,0,0)$. While that is indeed orthogonal to both ${v_1}$ and ${v_2}$ there is no way I can orthonormalize $U_3$ since I get division by $0$.



      Is the question just badly asked? Because there is simply no way to obtain an orthonormal basis.







      linear-algebra orthonormal gram-schmidt






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 12 '18 at 6:09









      Future Math personFuture Math person

      972817




      972817






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          Hint: what is the dimension of $V$? This should tell you how big a basis should be.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Forgive my elementary question but is it not just $3$? There are $3$ vectors after all which span V is there not?
            $endgroup$
            – Future Math person
            Dec 12 '18 at 6:12












          • $begingroup$
            This doesn’t mean that the dimension is exactly $3$, only that it is at most $3$. For example, $span{(1,0),(2,0)}$ does not have dimension $2$.
            $endgroup$
            – platty
            Dec 12 '18 at 6:14










          • $begingroup$
            Notice that $v_1+v_2=v_3$, so they are not linearly independent. Dimension is $2$ or less.
            $endgroup$
            – PSG
            Dec 12 '18 at 6:15












          • $begingroup$
            Yes I was just about to comment that haha. I only have 2 basis vectors so the dimension would be 2. Thanks!
            $endgroup$
            – Future Math person
            Dec 12 '18 at 6:16











          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          });
          });
          }, "mathjax-editing");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "69"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3036301%2fcreating-an-orthonormal-basis-with-gram-schmidt-procedure-error%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1












          $begingroup$

          Hint: what is the dimension of $V$? This should tell you how big a basis should be.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Forgive my elementary question but is it not just $3$? There are $3$ vectors after all which span V is there not?
            $endgroup$
            – Future Math person
            Dec 12 '18 at 6:12












          • $begingroup$
            This doesn’t mean that the dimension is exactly $3$, only that it is at most $3$. For example, $span{(1,0),(2,0)}$ does not have dimension $2$.
            $endgroup$
            – platty
            Dec 12 '18 at 6:14










          • $begingroup$
            Notice that $v_1+v_2=v_3$, so they are not linearly independent. Dimension is $2$ or less.
            $endgroup$
            – PSG
            Dec 12 '18 at 6:15












          • $begingroup$
            Yes I was just about to comment that haha. I only have 2 basis vectors so the dimension would be 2. Thanks!
            $endgroup$
            – Future Math person
            Dec 12 '18 at 6:16
















          1












          $begingroup$

          Hint: what is the dimension of $V$? This should tell you how big a basis should be.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Forgive my elementary question but is it not just $3$? There are $3$ vectors after all which span V is there not?
            $endgroup$
            – Future Math person
            Dec 12 '18 at 6:12












          • $begingroup$
            This doesn’t mean that the dimension is exactly $3$, only that it is at most $3$. For example, $span{(1,0),(2,0)}$ does not have dimension $2$.
            $endgroup$
            – platty
            Dec 12 '18 at 6:14










          • $begingroup$
            Notice that $v_1+v_2=v_3$, so they are not linearly independent. Dimension is $2$ or less.
            $endgroup$
            – PSG
            Dec 12 '18 at 6:15












          • $begingroup$
            Yes I was just about to comment that haha. I only have 2 basis vectors so the dimension would be 2. Thanks!
            $endgroup$
            – Future Math person
            Dec 12 '18 at 6:16














          1












          1








          1





          $begingroup$

          Hint: what is the dimension of $V$? This should tell you how big a basis should be.






          share|cite|improve this answer









          $endgroup$



          Hint: what is the dimension of $V$? This should tell you how big a basis should be.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 12 '18 at 6:12









          plattyplatty

          3,370320




          3,370320












          • $begingroup$
            Forgive my elementary question but is it not just $3$? There are $3$ vectors after all which span V is there not?
            $endgroup$
            – Future Math person
            Dec 12 '18 at 6:12












          • $begingroup$
            This doesn’t mean that the dimension is exactly $3$, only that it is at most $3$. For example, $span{(1,0),(2,0)}$ does not have dimension $2$.
            $endgroup$
            – platty
            Dec 12 '18 at 6:14










          • $begingroup$
            Notice that $v_1+v_2=v_3$, so they are not linearly independent. Dimension is $2$ or less.
            $endgroup$
            – PSG
            Dec 12 '18 at 6:15












          • $begingroup$
            Yes I was just about to comment that haha. I only have 2 basis vectors so the dimension would be 2. Thanks!
            $endgroup$
            – Future Math person
            Dec 12 '18 at 6:16


















          • $begingroup$
            Forgive my elementary question but is it not just $3$? There are $3$ vectors after all which span V is there not?
            $endgroup$
            – Future Math person
            Dec 12 '18 at 6:12












          • $begingroup$
            This doesn’t mean that the dimension is exactly $3$, only that it is at most $3$. For example, $span{(1,0),(2,0)}$ does not have dimension $2$.
            $endgroup$
            – platty
            Dec 12 '18 at 6:14










          • $begingroup$
            Notice that $v_1+v_2=v_3$, so they are not linearly independent. Dimension is $2$ or less.
            $endgroup$
            – PSG
            Dec 12 '18 at 6:15












          • $begingroup$
            Yes I was just about to comment that haha. I only have 2 basis vectors so the dimension would be 2. Thanks!
            $endgroup$
            – Future Math person
            Dec 12 '18 at 6:16
















          $begingroup$
          Forgive my elementary question but is it not just $3$? There are $3$ vectors after all which span V is there not?
          $endgroup$
          – Future Math person
          Dec 12 '18 at 6:12






          $begingroup$
          Forgive my elementary question but is it not just $3$? There are $3$ vectors after all which span V is there not?
          $endgroup$
          – Future Math person
          Dec 12 '18 at 6:12














          $begingroup$
          This doesn’t mean that the dimension is exactly $3$, only that it is at most $3$. For example, $span{(1,0),(2,0)}$ does not have dimension $2$.
          $endgroup$
          – platty
          Dec 12 '18 at 6:14




          $begingroup$
          This doesn’t mean that the dimension is exactly $3$, only that it is at most $3$. For example, $span{(1,0),(2,0)}$ does not have dimension $2$.
          $endgroup$
          – platty
          Dec 12 '18 at 6:14












          $begingroup$
          Notice that $v_1+v_2=v_3$, so they are not linearly independent. Dimension is $2$ or less.
          $endgroup$
          – PSG
          Dec 12 '18 at 6:15






          $begingroup$
          Notice that $v_1+v_2=v_3$, so they are not linearly independent. Dimension is $2$ or less.
          $endgroup$
          – PSG
          Dec 12 '18 at 6:15














          $begingroup$
          Yes I was just about to comment that haha. I only have 2 basis vectors so the dimension would be 2. Thanks!
          $endgroup$
          – Future Math person
          Dec 12 '18 at 6:16




          $begingroup$
          Yes I was just about to comment that haha. I only have 2 basis vectors so the dimension would be 2. Thanks!
          $endgroup$
          – Future Math person
          Dec 12 '18 at 6:16


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Mathematics Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3036301%2fcreating-an-orthonormal-basis-with-gram-schmidt-procedure-error%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Ellipse (mathématiques)

          Quarter-circle Tiles

          Mont Emei