Orthogonal Diagonalization of a $3$ by $3$ Matrix












0














$M$ $=$ $begin{pmatrix}3&2&2\ 2&3&2\ 2&2&3end{pmatrix}$. Diagonalize $M$ using an orthogonal matrix.



So I got that the eigenvalues for $M$ were $1$ and $7$. For the eigenvalue of $1$, I got the eigenvectors $begin{pmatrix}-1\ 0\ 1end{pmatrix}$ and $begin{pmatrix}-1\ 1\ 0end{pmatrix}$, and for the eigenvalue of $7$, I got the eigenvector $begin{pmatrix}1\ 1\ 1end{pmatrix}$. This gave me the diagonal matrix $begin{pmatrix}1&0&0\ 0&1&0\ 0&0&7end{pmatrix}$ and the orthogonal matrix $begin{pmatrix}-frac{1}{sqrt{2}}&-frac{1}{sqrt{2}}&frac{1}{sqrt{3}}\ 0&frac{1}{sqrt{2}}&frac{1}{sqrt{3}}\ frac{1}{sqrt{2}}&0&frac{1}{sqrt{3}}end{pmatrix}$.



But when I multiply the orthogonal matrix by the diagonal matrix and then its transpose, I get an answer that is slightly off what $M$ is, but I am not sure why.



If anyone knows where I may have gone wrong, I would greatly appreciate you telling me!










share|cite|improve this question


















  • 1




    Both eigenvectors for $;lambda=1;$ are wrong, as you can easily check. The eigenvectors corresponding to different eigenvalues are orthogonal (because the matrix is symmetric), so you must only do GM in each eigenspace...
    – DonAntonio
    Nov 19 '18 at 2:35


















0














$M$ $=$ $begin{pmatrix}3&2&2\ 2&3&2\ 2&2&3end{pmatrix}$. Diagonalize $M$ using an orthogonal matrix.



So I got that the eigenvalues for $M$ were $1$ and $7$. For the eigenvalue of $1$, I got the eigenvectors $begin{pmatrix}-1\ 0\ 1end{pmatrix}$ and $begin{pmatrix}-1\ 1\ 0end{pmatrix}$, and for the eigenvalue of $7$, I got the eigenvector $begin{pmatrix}1\ 1\ 1end{pmatrix}$. This gave me the diagonal matrix $begin{pmatrix}1&0&0\ 0&1&0\ 0&0&7end{pmatrix}$ and the orthogonal matrix $begin{pmatrix}-frac{1}{sqrt{2}}&-frac{1}{sqrt{2}}&frac{1}{sqrt{3}}\ 0&frac{1}{sqrt{2}}&frac{1}{sqrt{3}}\ frac{1}{sqrt{2}}&0&frac{1}{sqrt{3}}end{pmatrix}$.



But when I multiply the orthogonal matrix by the diagonal matrix and then its transpose, I get an answer that is slightly off what $M$ is, but I am not sure why.



If anyone knows where I may have gone wrong, I would greatly appreciate you telling me!










share|cite|improve this question


















  • 1




    Both eigenvectors for $;lambda=1;$ are wrong, as you can easily check. The eigenvectors corresponding to different eigenvalues are orthogonal (because the matrix is symmetric), so you must only do GM in each eigenspace...
    – DonAntonio
    Nov 19 '18 at 2:35
















0












0








0







$M$ $=$ $begin{pmatrix}3&2&2\ 2&3&2\ 2&2&3end{pmatrix}$. Diagonalize $M$ using an orthogonal matrix.



So I got that the eigenvalues for $M$ were $1$ and $7$. For the eigenvalue of $1$, I got the eigenvectors $begin{pmatrix}-1\ 0\ 1end{pmatrix}$ and $begin{pmatrix}-1\ 1\ 0end{pmatrix}$, and for the eigenvalue of $7$, I got the eigenvector $begin{pmatrix}1\ 1\ 1end{pmatrix}$. This gave me the diagonal matrix $begin{pmatrix}1&0&0\ 0&1&0\ 0&0&7end{pmatrix}$ and the orthogonal matrix $begin{pmatrix}-frac{1}{sqrt{2}}&-frac{1}{sqrt{2}}&frac{1}{sqrt{3}}\ 0&frac{1}{sqrt{2}}&frac{1}{sqrt{3}}\ frac{1}{sqrt{2}}&0&frac{1}{sqrt{3}}end{pmatrix}$.



But when I multiply the orthogonal matrix by the diagonal matrix and then its transpose, I get an answer that is slightly off what $M$ is, but I am not sure why.



If anyone knows where I may have gone wrong, I would greatly appreciate you telling me!










share|cite|improve this question













$M$ $=$ $begin{pmatrix}3&2&2\ 2&3&2\ 2&2&3end{pmatrix}$. Diagonalize $M$ using an orthogonal matrix.



So I got that the eigenvalues for $M$ were $1$ and $7$. For the eigenvalue of $1$, I got the eigenvectors $begin{pmatrix}-1\ 0\ 1end{pmatrix}$ and $begin{pmatrix}-1\ 1\ 0end{pmatrix}$, and for the eigenvalue of $7$, I got the eigenvector $begin{pmatrix}1\ 1\ 1end{pmatrix}$. This gave me the diagonal matrix $begin{pmatrix}1&0&0\ 0&1&0\ 0&0&7end{pmatrix}$ and the orthogonal matrix $begin{pmatrix}-frac{1}{sqrt{2}}&-frac{1}{sqrt{2}}&frac{1}{sqrt{3}}\ 0&frac{1}{sqrt{2}}&frac{1}{sqrt{3}}\ frac{1}{sqrt{2}}&0&frac{1}{sqrt{3}}end{pmatrix}$.



But when I multiply the orthogonal matrix by the diagonal matrix and then its transpose, I get an answer that is slightly off what $M$ is, but I am not sure why.



If anyone knows where I may have gone wrong, I would greatly appreciate you telling me!







linear-algebra eigenvalues-eigenvectors diagonalization orthogonal-matrices






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 19 '18 at 2:11









Dev SR

859




859








  • 1




    Both eigenvectors for $;lambda=1;$ are wrong, as you can easily check. The eigenvectors corresponding to different eigenvalues are orthogonal (because the matrix is symmetric), so you must only do GM in each eigenspace...
    – DonAntonio
    Nov 19 '18 at 2:35
















  • 1




    Both eigenvectors for $;lambda=1;$ are wrong, as you can easily check. The eigenvectors corresponding to different eigenvalues are orthogonal (because the matrix is symmetric), so you must only do GM in each eigenspace...
    – DonAntonio
    Nov 19 '18 at 2:35










1




1




Both eigenvectors for $;lambda=1;$ are wrong, as you can easily check. The eigenvectors corresponding to different eigenvalues are orthogonal (because the matrix is symmetric), so you must only do GM in each eigenspace...
– DonAntonio
Nov 19 '18 at 2:35






Both eigenvectors for $;lambda=1;$ are wrong, as you can easily check. The eigenvectors corresponding to different eigenvalues are orthogonal (because the matrix is symmetric), so you must only do GM in each eigenspace...
– DonAntonio
Nov 19 '18 at 2:35












2 Answers
2






active

oldest

votes


















1














$$(-1, 0, 1) cdot (-1, 1, 0)=1$$



They are not orthogonal.



Just do a gram-schmidt step to find a set of orthogonal eigenvectors for eigenvalues corresponding to $1$.






share|cite|improve this answer





























    1














    start with



    $$
    left(
    begin{array}{rrr}
    1 & -1 & -1 \
    1 & 1 & -1 \
    1 & 0 & 2 \
    end{array}
    right).
    $$

    and divide the columns by $sqrt 3, sqrt 2, sqrt 6$



    If you had the analogous problem in 4 by 4, you could begin with



    $$
    left(
    begin{array}{rrrr}
    1 & -1 & -1 & -1 \
    1 & 1 & -1 & -1 \
    1 & 0 & 2 & -1 \
    1 & 0 & 0 & 3 \
    end{array}
    right).
    $$

    and divide the columns by $2,sqrt 2, sqrt 6, sqrt {12}$



    for 5 by 5
    $$
    left(
    begin{array}{rrrrr}
    1 & -1 & -1 & -1 & -1 \
    1 & 1 & -1 & -1 & -1 \
    1 & 0 & 2 & -1 & -1 \
    1 & 0 & 0 & 3 & -1 \
    1 & 0 & 0 & 0 & 4 \
    end{array}
    right).
    $$

    $sqrt 5,sqrt 2, sqrt 6, sqrt {12}, sqrt{20}$






    share|cite|improve this answer























      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%2f3004430%2forthogonal-diagonalization-of-a-3-by-3-matrix%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      $$(-1, 0, 1) cdot (-1, 1, 0)=1$$



      They are not orthogonal.



      Just do a gram-schmidt step to find a set of orthogonal eigenvectors for eigenvalues corresponding to $1$.






      share|cite|improve this answer


























        1














        $$(-1, 0, 1) cdot (-1, 1, 0)=1$$



        They are not orthogonal.



        Just do a gram-schmidt step to find a set of orthogonal eigenvectors for eigenvalues corresponding to $1$.






        share|cite|improve this answer
























          1












          1








          1






          $$(-1, 0, 1) cdot (-1, 1, 0)=1$$



          They are not orthogonal.



          Just do a gram-schmidt step to find a set of orthogonal eigenvectors for eigenvalues corresponding to $1$.






          share|cite|improve this answer












          $$(-1, 0, 1) cdot (-1, 1, 0)=1$$



          They are not orthogonal.



          Just do a gram-schmidt step to find a set of orthogonal eigenvectors for eigenvalues corresponding to $1$.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Nov 19 '18 at 2:22









          Siong Thye Goh

          99.3k1464117




          99.3k1464117























              1














              start with



              $$
              left(
              begin{array}{rrr}
              1 & -1 & -1 \
              1 & 1 & -1 \
              1 & 0 & 2 \
              end{array}
              right).
              $$

              and divide the columns by $sqrt 3, sqrt 2, sqrt 6$



              If you had the analogous problem in 4 by 4, you could begin with



              $$
              left(
              begin{array}{rrrr}
              1 & -1 & -1 & -1 \
              1 & 1 & -1 & -1 \
              1 & 0 & 2 & -1 \
              1 & 0 & 0 & 3 \
              end{array}
              right).
              $$

              and divide the columns by $2,sqrt 2, sqrt 6, sqrt {12}$



              for 5 by 5
              $$
              left(
              begin{array}{rrrrr}
              1 & -1 & -1 & -1 & -1 \
              1 & 1 & -1 & -1 & -1 \
              1 & 0 & 2 & -1 & -1 \
              1 & 0 & 0 & 3 & -1 \
              1 & 0 & 0 & 0 & 4 \
              end{array}
              right).
              $$

              $sqrt 5,sqrt 2, sqrt 6, sqrt {12}, sqrt{20}$






              share|cite|improve this answer




























                1














                start with



                $$
                left(
                begin{array}{rrr}
                1 & -1 & -1 \
                1 & 1 & -1 \
                1 & 0 & 2 \
                end{array}
                right).
                $$

                and divide the columns by $sqrt 3, sqrt 2, sqrt 6$



                If you had the analogous problem in 4 by 4, you could begin with



                $$
                left(
                begin{array}{rrrr}
                1 & -1 & -1 & -1 \
                1 & 1 & -1 & -1 \
                1 & 0 & 2 & -1 \
                1 & 0 & 0 & 3 \
                end{array}
                right).
                $$

                and divide the columns by $2,sqrt 2, sqrt 6, sqrt {12}$



                for 5 by 5
                $$
                left(
                begin{array}{rrrrr}
                1 & -1 & -1 & -1 & -1 \
                1 & 1 & -1 & -1 & -1 \
                1 & 0 & 2 & -1 & -1 \
                1 & 0 & 0 & 3 & -1 \
                1 & 0 & 0 & 0 & 4 \
                end{array}
                right).
                $$

                $sqrt 5,sqrt 2, sqrt 6, sqrt {12}, sqrt{20}$






                share|cite|improve this answer


























                  1












                  1








                  1






                  start with



                  $$
                  left(
                  begin{array}{rrr}
                  1 & -1 & -1 \
                  1 & 1 & -1 \
                  1 & 0 & 2 \
                  end{array}
                  right).
                  $$

                  and divide the columns by $sqrt 3, sqrt 2, sqrt 6$



                  If you had the analogous problem in 4 by 4, you could begin with



                  $$
                  left(
                  begin{array}{rrrr}
                  1 & -1 & -1 & -1 \
                  1 & 1 & -1 & -1 \
                  1 & 0 & 2 & -1 \
                  1 & 0 & 0 & 3 \
                  end{array}
                  right).
                  $$

                  and divide the columns by $2,sqrt 2, sqrt 6, sqrt {12}$



                  for 5 by 5
                  $$
                  left(
                  begin{array}{rrrrr}
                  1 & -1 & -1 & -1 & -1 \
                  1 & 1 & -1 & -1 & -1 \
                  1 & 0 & 2 & -1 & -1 \
                  1 & 0 & 0 & 3 & -1 \
                  1 & 0 & 0 & 0 & 4 \
                  end{array}
                  right).
                  $$

                  $sqrt 5,sqrt 2, sqrt 6, sqrt {12}, sqrt{20}$






                  share|cite|improve this answer














                  start with



                  $$
                  left(
                  begin{array}{rrr}
                  1 & -1 & -1 \
                  1 & 1 & -1 \
                  1 & 0 & 2 \
                  end{array}
                  right).
                  $$

                  and divide the columns by $sqrt 3, sqrt 2, sqrt 6$



                  If you had the analogous problem in 4 by 4, you could begin with



                  $$
                  left(
                  begin{array}{rrrr}
                  1 & -1 & -1 & -1 \
                  1 & 1 & -1 & -1 \
                  1 & 0 & 2 & -1 \
                  1 & 0 & 0 & 3 \
                  end{array}
                  right).
                  $$

                  and divide the columns by $2,sqrt 2, sqrt 6, sqrt {12}$



                  for 5 by 5
                  $$
                  left(
                  begin{array}{rrrrr}
                  1 & -1 & -1 & -1 & -1 \
                  1 & 1 & -1 & -1 & -1 \
                  1 & 0 & 2 & -1 & -1 \
                  1 & 0 & 0 & 3 & -1 \
                  1 & 0 & 0 & 0 & 4 \
                  end{array}
                  right).
                  $$

                  $sqrt 5,sqrt 2, sqrt 6, sqrt {12}, sqrt{20}$







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Nov 19 '18 at 2:49

























                  answered Nov 19 '18 at 2:34









                  Will Jagy

                  101k599199




                  101k599199






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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.


                      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%2f3004430%2forthogonal-diagonalization-of-a-3-by-3-matrix%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

                      QoS: MAC-Priority for clients behind a repeater

                      Ивакино (Тотемский район)

                      Can't locate Autom4te/ChannelDefs.pm in @INC (when it definitely is there)