Matrix diagonalisation, and orthogonalization












1












$begingroup$


Hey I have a a question on how to diagonalize matrices. My lecture focuses on symmetric matrices, but I have examples where I need to calculate $D$ for non- symmetric matrices as well.



I know that I can simply but in the Eigenvalues into $D$ if $D$ exists. But if I would like to calculate $D$ by hand with



$$D= U^{-1}AU$$



I found that i sometimes have to orthogonalize the vectors of U and normalize them and sometimes not.



I cant seem to find a pattern, and I cant find anything online. Maybe I am just completely wrong, this topic is new to me.... so please excuse if the question is stupid ....



Many thanks










share|cite|improve this question











$endgroup$

















    1












    $begingroup$


    Hey I have a a question on how to diagonalize matrices. My lecture focuses on symmetric matrices, but I have examples where I need to calculate $D$ for non- symmetric matrices as well.



    I know that I can simply but in the Eigenvalues into $D$ if $D$ exists. But if I would like to calculate $D$ by hand with



    $$D= U^{-1}AU$$



    I found that i sometimes have to orthogonalize the vectors of U and normalize them and sometimes not.



    I cant seem to find a pattern, and I cant find anything online. Maybe I am just completely wrong, this topic is new to me.... so please excuse if the question is stupid ....



    Many thanks










    share|cite|improve this question











    $endgroup$















      1












      1








      1





      $begingroup$


      Hey I have a a question on how to diagonalize matrices. My lecture focuses on symmetric matrices, but I have examples where I need to calculate $D$ for non- symmetric matrices as well.



      I know that I can simply but in the Eigenvalues into $D$ if $D$ exists. But if I would like to calculate $D$ by hand with



      $$D= U^{-1}AU$$



      I found that i sometimes have to orthogonalize the vectors of U and normalize them and sometimes not.



      I cant seem to find a pattern, and I cant find anything online. Maybe I am just completely wrong, this topic is new to me.... so please excuse if the question is stupid ....



      Many thanks










      share|cite|improve this question











      $endgroup$




      Hey I have a a question on how to diagonalize matrices. My lecture focuses on symmetric matrices, but I have examples where I need to calculate $D$ for non- symmetric matrices as well.



      I know that I can simply but in the Eigenvalues into $D$ if $D$ exists. But if I would like to calculate $D$ by hand with



      $$D= U^{-1}AU$$



      I found that i sometimes have to orthogonalize the vectors of U and normalize them and sometimes not.



      I cant seem to find a pattern, and I cant find anything online. Maybe I am just completely wrong, this topic is new to me.... so please excuse if the question is stupid ....



      Many thanks







      linear-algebra






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Dec 4 '18 at 13:25









      Moo

      5,57631020




      5,57631020










      asked Dec 4 '18 at 11:48









      LillysLillys

      778




      778






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          In general we have that if we can find a basis of eigenvectors we can always diagonalize a matrix and




          • $D$ contains the eigenvalues along the diagonal


          • $U$ contains the corresponding eigenvectors by columns



          such that



          $$AU=UD iff U^{-1}AU=D $$






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Thanks for your answer, but where i am uncleared about is when I have to orthogonalize U ....
            $endgroup$
            – Lillys
            Dec 4 '18 at 11:57










          • $begingroup$
            @Lillys Not always we can do that. We can of course when A is symmetric otherwise we cannot do that and in these case we need to take $U^{-1}$ to express $A$ in the form $A=UDU^{-1}$.
            $endgroup$
            – gimusi
            Dec 4 '18 at 12:00












          • $begingroup$
            I hope it is ok if i as so many questions. Ím not sure if I’m using the right words, as i cant find them in any dictonary and ím not studying in English, what i know that wie have to use u^-1, i corrected that above, what i meant with orthogonalize is to treat the vectors in u such that the dot product of each is 0 - meaning they are perpendicular.
            $endgroup$
            – Lillys
            Dec 4 '18 at 12:06










          • $begingroup$
            @Lillys You need to refer to Spectral Theorem: If A is symmetric, there exists an orthonormal basis of V consisting of eigenvectors of A. Each eigenvalue is real.
            $endgroup$
            – gimusi
            Dec 4 '18 at 12:08











          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%2f3025468%2fmatrix-diagonalisation-and-orthogonalization%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









          0












          $begingroup$

          In general we have that if we can find a basis of eigenvectors we can always diagonalize a matrix and




          • $D$ contains the eigenvalues along the diagonal


          • $U$ contains the corresponding eigenvectors by columns



          such that



          $$AU=UD iff U^{-1}AU=D $$






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Thanks for your answer, but where i am uncleared about is when I have to orthogonalize U ....
            $endgroup$
            – Lillys
            Dec 4 '18 at 11:57










          • $begingroup$
            @Lillys Not always we can do that. We can of course when A is symmetric otherwise we cannot do that and in these case we need to take $U^{-1}$ to express $A$ in the form $A=UDU^{-1}$.
            $endgroup$
            – gimusi
            Dec 4 '18 at 12:00












          • $begingroup$
            I hope it is ok if i as so many questions. Ím not sure if I’m using the right words, as i cant find them in any dictonary and ím not studying in English, what i know that wie have to use u^-1, i corrected that above, what i meant with orthogonalize is to treat the vectors in u such that the dot product of each is 0 - meaning they are perpendicular.
            $endgroup$
            – Lillys
            Dec 4 '18 at 12:06










          • $begingroup$
            @Lillys You need to refer to Spectral Theorem: If A is symmetric, there exists an orthonormal basis of V consisting of eigenvectors of A. Each eigenvalue is real.
            $endgroup$
            – gimusi
            Dec 4 '18 at 12:08
















          0












          $begingroup$

          In general we have that if we can find a basis of eigenvectors we can always diagonalize a matrix and




          • $D$ contains the eigenvalues along the diagonal


          • $U$ contains the corresponding eigenvectors by columns



          such that



          $$AU=UD iff U^{-1}AU=D $$






          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Thanks for your answer, but where i am uncleared about is when I have to orthogonalize U ....
            $endgroup$
            – Lillys
            Dec 4 '18 at 11:57










          • $begingroup$
            @Lillys Not always we can do that. We can of course when A is symmetric otherwise we cannot do that and in these case we need to take $U^{-1}$ to express $A$ in the form $A=UDU^{-1}$.
            $endgroup$
            – gimusi
            Dec 4 '18 at 12:00












          • $begingroup$
            I hope it is ok if i as so many questions. Ím not sure if I’m using the right words, as i cant find them in any dictonary and ím not studying in English, what i know that wie have to use u^-1, i corrected that above, what i meant with orthogonalize is to treat the vectors in u such that the dot product of each is 0 - meaning they are perpendicular.
            $endgroup$
            – Lillys
            Dec 4 '18 at 12:06










          • $begingroup$
            @Lillys You need to refer to Spectral Theorem: If A is symmetric, there exists an orthonormal basis of V consisting of eigenvectors of A. Each eigenvalue is real.
            $endgroup$
            – gimusi
            Dec 4 '18 at 12:08














          0












          0








          0





          $begingroup$

          In general we have that if we can find a basis of eigenvectors we can always diagonalize a matrix and




          • $D$ contains the eigenvalues along the diagonal


          • $U$ contains the corresponding eigenvectors by columns



          such that



          $$AU=UD iff U^{-1}AU=D $$






          share|cite|improve this answer











          $endgroup$



          In general we have that if we can find a basis of eigenvectors we can always diagonalize a matrix and




          • $D$ contains the eigenvalues along the diagonal


          • $U$ contains the corresponding eigenvectors by columns



          such that



          $$AU=UD iff U^{-1}AU=D $$







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Dec 4 '18 at 13:23









          Moo

          5,57631020




          5,57631020










          answered Dec 4 '18 at 11:54









          gimusigimusi

          92.8k84494




          92.8k84494












          • $begingroup$
            Thanks for your answer, but where i am uncleared about is when I have to orthogonalize U ....
            $endgroup$
            – Lillys
            Dec 4 '18 at 11:57










          • $begingroup$
            @Lillys Not always we can do that. We can of course when A is symmetric otherwise we cannot do that and in these case we need to take $U^{-1}$ to express $A$ in the form $A=UDU^{-1}$.
            $endgroup$
            – gimusi
            Dec 4 '18 at 12:00












          • $begingroup$
            I hope it is ok if i as so many questions. Ím not sure if I’m using the right words, as i cant find them in any dictonary and ím not studying in English, what i know that wie have to use u^-1, i corrected that above, what i meant with orthogonalize is to treat the vectors in u such that the dot product of each is 0 - meaning they are perpendicular.
            $endgroup$
            – Lillys
            Dec 4 '18 at 12:06










          • $begingroup$
            @Lillys You need to refer to Spectral Theorem: If A is symmetric, there exists an orthonormal basis of V consisting of eigenvectors of A. Each eigenvalue is real.
            $endgroup$
            – gimusi
            Dec 4 '18 at 12:08


















          • $begingroup$
            Thanks for your answer, but where i am uncleared about is when I have to orthogonalize U ....
            $endgroup$
            – Lillys
            Dec 4 '18 at 11:57










          • $begingroup$
            @Lillys Not always we can do that. We can of course when A is symmetric otherwise we cannot do that and in these case we need to take $U^{-1}$ to express $A$ in the form $A=UDU^{-1}$.
            $endgroup$
            – gimusi
            Dec 4 '18 at 12:00












          • $begingroup$
            I hope it is ok if i as so many questions. Ím not sure if I’m using the right words, as i cant find them in any dictonary and ím not studying in English, what i know that wie have to use u^-1, i corrected that above, what i meant with orthogonalize is to treat the vectors in u such that the dot product of each is 0 - meaning they are perpendicular.
            $endgroup$
            – Lillys
            Dec 4 '18 at 12:06










          • $begingroup$
            @Lillys You need to refer to Spectral Theorem: If A is symmetric, there exists an orthonormal basis of V consisting of eigenvectors of A. Each eigenvalue is real.
            $endgroup$
            – gimusi
            Dec 4 '18 at 12:08
















          $begingroup$
          Thanks for your answer, but where i am uncleared about is when I have to orthogonalize U ....
          $endgroup$
          – Lillys
          Dec 4 '18 at 11:57




          $begingroup$
          Thanks for your answer, but where i am uncleared about is when I have to orthogonalize U ....
          $endgroup$
          – Lillys
          Dec 4 '18 at 11:57












          $begingroup$
          @Lillys Not always we can do that. We can of course when A is symmetric otherwise we cannot do that and in these case we need to take $U^{-1}$ to express $A$ in the form $A=UDU^{-1}$.
          $endgroup$
          – gimusi
          Dec 4 '18 at 12:00






          $begingroup$
          @Lillys Not always we can do that. We can of course when A is symmetric otherwise we cannot do that and in these case we need to take $U^{-1}$ to express $A$ in the form $A=UDU^{-1}$.
          $endgroup$
          – gimusi
          Dec 4 '18 at 12:00














          $begingroup$
          I hope it is ok if i as so many questions. Ím not sure if I’m using the right words, as i cant find them in any dictonary and ím not studying in English, what i know that wie have to use u^-1, i corrected that above, what i meant with orthogonalize is to treat the vectors in u such that the dot product of each is 0 - meaning they are perpendicular.
          $endgroup$
          – Lillys
          Dec 4 '18 at 12:06




          $begingroup$
          I hope it is ok if i as so many questions. Ím not sure if I’m using the right words, as i cant find them in any dictonary and ím not studying in English, what i know that wie have to use u^-1, i corrected that above, what i meant with orthogonalize is to treat the vectors in u such that the dot product of each is 0 - meaning they are perpendicular.
          $endgroup$
          – Lillys
          Dec 4 '18 at 12:06












          $begingroup$
          @Lillys You need to refer to Spectral Theorem: If A is symmetric, there exists an orthonormal basis of V consisting of eigenvectors of A. Each eigenvalue is real.
          $endgroup$
          – gimusi
          Dec 4 '18 at 12:08




          $begingroup$
          @Lillys You need to refer to Spectral Theorem: If A is symmetric, there exists an orthonormal basis of V consisting of eigenvectors of A. Each eigenvalue is real.
          $endgroup$
          – gimusi
          Dec 4 '18 at 12:08


















          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%2f3025468%2fmatrix-diagonalisation-and-orthogonalization%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

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...