Stuck on a proof about rotating a matrix

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












Given a matrix $A in M^n×n(F)$, let $A^rho$ denote the matrix obtained from $A$ by ‘rotating’ it $90^circ$ clockwise.
For example,
$$left[beginarraycc 1 & 2\ 3 & 4 endarray right]^rho = left[beginarraycc 3 & 1\ 4 & 2 endarray right].$$
Find (with proof) an expression for $A^rho$ in terms of $A$.



Through analyzing $2times 2, 3times 3, 4times 4$, and $5times 5$ cases, it seems that the rotation is equivalent to tranposing A and then swapping the first column with the $n^th$ column, the second column with the $(n-1)^th$ column, and so on. Performing these column operations is equivalent to left multiplcation by a permuation matrix.



So I've concluded that $A^rho$ is equivalent to $A^TP$ where $P$ is the the "mirror image" of $I_n$.



For example in the 5x5 case, $P= left[
beginarrayccccc
0 & 0 & 0 & 0 & 1\
0 & 0 &0 &1 &0 \
0 &0 &1 &0 &0\
0 &1 &0 &0 &0\
1 &0 &0 &0 &0
endarray
right]$



I'm struggling with how to prove this is the case in general, or how to express $P$ for any $n$. Any help is appreciated!










share|cite|improve this question



























    up vote
    2
    down vote

    favorite
    1












    Given a matrix $A in M^n×n(F)$, let $A^rho$ denote the matrix obtained from $A$ by ‘rotating’ it $90^circ$ clockwise.
    For example,
    $$left[beginarraycc 1 & 2\ 3 & 4 endarray right]^rho = left[beginarraycc 3 & 1\ 4 & 2 endarray right].$$
    Find (with proof) an expression for $A^rho$ in terms of $A$.



    Through analyzing $2times 2, 3times 3, 4times 4$, and $5times 5$ cases, it seems that the rotation is equivalent to tranposing A and then swapping the first column with the $n^th$ column, the second column with the $(n-1)^th$ column, and so on. Performing these column operations is equivalent to left multiplcation by a permuation matrix.



    So I've concluded that $A^rho$ is equivalent to $A^TP$ where $P$ is the the "mirror image" of $I_n$.



    For example in the 5x5 case, $P= left[
    beginarrayccccc
    0 & 0 & 0 & 0 & 1\
    0 & 0 &0 &1 &0 \
    0 &0 &1 &0 &0\
    0 &1 &0 &0 &0\
    1 &0 &0 &0 &0
    endarray
    right]$



    I'm struggling with how to prove this is the case in general, or how to express $P$ for any $n$. Any help is appreciated!










    share|cite|improve this question

























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      Given a matrix $A in M^n×n(F)$, let $A^rho$ denote the matrix obtained from $A$ by ‘rotating’ it $90^circ$ clockwise.
      For example,
      $$left[beginarraycc 1 & 2\ 3 & 4 endarray right]^rho = left[beginarraycc 3 & 1\ 4 & 2 endarray right].$$
      Find (with proof) an expression for $A^rho$ in terms of $A$.



      Through analyzing $2times 2, 3times 3, 4times 4$, and $5times 5$ cases, it seems that the rotation is equivalent to tranposing A and then swapping the first column with the $n^th$ column, the second column with the $(n-1)^th$ column, and so on. Performing these column operations is equivalent to left multiplcation by a permuation matrix.



      So I've concluded that $A^rho$ is equivalent to $A^TP$ where $P$ is the the "mirror image" of $I_n$.



      For example in the 5x5 case, $P= left[
      beginarrayccccc
      0 & 0 & 0 & 0 & 1\
      0 & 0 &0 &1 &0 \
      0 &0 &1 &0 &0\
      0 &1 &0 &0 &0\
      1 &0 &0 &0 &0
      endarray
      right]$



      I'm struggling with how to prove this is the case in general, or how to express $P$ for any $n$. Any help is appreciated!










      share|cite|improve this question















      Given a matrix $A in M^n×n(F)$, let $A^rho$ denote the matrix obtained from $A$ by ‘rotating’ it $90^circ$ clockwise.
      For example,
      $$left[beginarraycc 1 & 2\ 3 & 4 endarray right]^rho = left[beginarraycc 3 & 1\ 4 & 2 endarray right].$$
      Find (with proof) an expression for $A^rho$ in terms of $A$.



      Through analyzing $2times 2, 3times 3, 4times 4$, and $5times 5$ cases, it seems that the rotation is equivalent to tranposing A and then swapping the first column with the $n^th$ column, the second column with the $(n-1)^th$ column, and so on. Performing these column operations is equivalent to left multiplcation by a permuation matrix.



      So I've concluded that $A^rho$ is equivalent to $A^TP$ where $P$ is the the "mirror image" of $I_n$.



      For example in the 5x5 case, $P= left[
      beginarrayccccc
      0 & 0 & 0 & 0 & 1\
      0 & 0 &0 &1 &0 \
      0 &0 &1 &0 &0\
      0 &1 &0 &0 &0\
      1 &0 &0 &0 &0
      endarray
      right]$



      I'm struggling with how to prove this is the case in general, or how to express $P$ for any $n$. Any help is appreciated!







      linear-algebra matrices transpose






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited 12 mins ago









      Gaby Boy Analysis

      32011




      32011










      asked 3 hours ago









      kreagle

      1314




      1314




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          A good way to prove this is to take $A_ij$ and track where it should end up after a rotation, and where it does end up after your expression.



          To get you started: $A_i,j = A^rho_j , n-i $



          Now show that $A_i,j = (A^TP)_j, n-i$. This will show that they are equivalent matrices, since all their entries are the same. If you found a good expression, it should work. As for defining $P$, your current definition should be good enough.






          share|cite|improve this answer



























            up vote
            3
            down vote













            Anthony Ter's suggestion of verifying $(A^rm T P)_j, n-i+1$ actually equals $A_i,j$ is key (I'm assuming indexes go from $1$ to $n$), but in order to do so, it's helpful to rely on a way of defining $P$ entrywise. Consider the Kronecker delta:
            $$delta_i,j :=begincases 1,& textif i=j;\ 0,& textif ineq j.endcases$$
            Then you can define $I_n$ entrywise as $(I_n)_i,j :=delta_i,j$; and similarly, $(P)_i,j :=delta_i,n-j+1$. Then, you can compute $(A^rm T P)_j, n-i+1$ directly by using the matrix-product entrywise definition and the matrix transpose property: $(A^rm T)_i,j := A_j,i$.



            beginalign (A^p)_j, n-i+1 &=(A^rm T P)_j, n-i+1 =sum_k=1^n (A^rm T)_j,k P_k, n-i+1\
            &=sum_k=1^n A_k,j delta_k, n-(n-i+1)+1 =sum_k=1^n A_k,j delta_k,i\
            &=A_1,j delta_1,i +A_2,j delta_2,i +A_3,j delta_3,i +ldots +A_n,j delta_n,i.endalign

            Note that inside the summation, $k$ is variable, whereas $i$ and $j$ are fixed. For $delta_k,i$ not to be zero (i.e., one) then $k$ shall equal $i$. Thus, $(A^p)_j, n-i+1 =A_i,j delta_i,i =A_i,j$, as desired.






            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',
              convertImagesToLinks: true,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              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%2f2971723%2fstuck-on-a-proof-about-rotating-a-matrix%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote



              accepted










              A good way to prove this is to take $A_ij$ and track where it should end up after a rotation, and where it does end up after your expression.



              To get you started: $A_i,j = A^rho_j , n-i $



              Now show that $A_i,j = (A^TP)_j, n-i$. This will show that they are equivalent matrices, since all their entries are the same. If you found a good expression, it should work. As for defining $P$, your current definition should be good enough.






              share|cite|improve this answer
























                up vote
                2
                down vote



                accepted










                A good way to prove this is to take $A_ij$ and track where it should end up after a rotation, and where it does end up after your expression.



                To get you started: $A_i,j = A^rho_j , n-i $



                Now show that $A_i,j = (A^TP)_j, n-i$. This will show that they are equivalent matrices, since all their entries are the same. If you found a good expression, it should work. As for defining $P$, your current definition should be good enough.






                share|cite|improve this answer






















                  up vote
                  2
                  down vote



                  accepted







                  up vote
                  2
                  down vote



                  accepted






                  A good way to prove this is to take $A_ij$ and track where it should end up after a rotation, and where it does end up after your expression.



                  To get you started: $A_i,j = A^rho_j , n-i $



                  Now show that $A_i,j = (A^TP)_j, n-i$. This will show that they are equivalent matrices, since all their entries are the same. If you found a good expression, it should work. As for defining $P$, your current definition should be good enough.






                  share|cite|improve this answer












                  A good way to prove this is to take $A_ij$ and track where it should end up after a rotation, and where it does end up after your expression.



                  To get you started: $A_i,j = A^rho_j , n-i $



                  Now show that $A_i,j = (A^TP)_j, n-i$. This will show that they are equivalent matrices, since all their entries are the same. If you found a good expression, it should work. As for defining $P$, your current definition should be good enough.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered 3 hours ago









                  Anthony Ter

                  963




                  963




















                      up vote
                      3
                      down vote













                      Anthony Ter's suggestion of verifying $(A^rm T P)_j, n-i+1$ actually equals $A_i,j$ is key (I'm assuming indexes go from $1$ to $n$), but in order to do so, it's helpful to rely on a way of defining $P$ entrywise. Consider the Kronecker delta:
                      $$delta_i,j :=begincases 1,& textif i=j;\ 0,& textif ineq j.endcases$$
                      Then you can define $I_n$ entrywise as $(I_n)_i,j :=delta_i,j$; and similarly, $(P)_i,j :=delta_i,n-j+1$. Then, you can compute $(A^rm T P)_j, n-i+1$ directly by using the matrix-product entrywise definition and the matrix transpose property: $(A^rm T)_i,j := A_j,i$.



                      beginalign (A^p)_j, n-i+1 &=(A^rm T P)_j, n-i+1 =sum_k=1^n (A^rm T)_j,k P_k, n-i+1\
                      &=sum_k=1^n A_k,j delta_k, n-(n-i+1)+1 =sum_k=1^n A_k,j delta_k,i\
                      &=A_1,j delta_1,i +A_2,j delta_2,i +A_3,j delta_3,i +ldots +A_n,j delta_n,i.endalign

                      Note that inside the summation, $k$ is variable, whereas $i$ and $j$ are fixed. For $delta_k,i$ not to be zero (i.e., one) then $k$ shall equal $i$. Thus, $(A^p)_j, n-i+1 =A_i,j delta_i,i =A_i,j$, as desired.






                      share|cite|improve this answer
























                        up vote
                        3
                        down vote













                        Anthony Ter's suggestion of verifying $(A^rm T P)_j, n-i+1$ actually equals $A_i,j$ is key (I'm assuming indexes go from $1$ to $n$), but in order to do so, it's helpful to rely on a way of defining $P$ entrywise. Consider the Kronecker delta:
                        $$delta_i,j :=begincases 1,& textif i=j;\ 0,& textif ineq j.endcases$$
                        Then you can define $I_n$ entrywise as $(I_n)_i,j :=delta_i,j$; and similarly, $(P)_i,j :=delta_i,n-j+1$. Then, you can compute $(A^rm T P)_j, n-i+1$ directly by using the matrix-product entrywise definition and the matrix transpose property: $(A^rm T)_i,j := A_j,i$.



                        beginalign (A^p)_j, n-i+1 &=(A^rm T P)_j, n-i+1 =sum_k=1^n (A^rm T)_j,k P_k, n-i+1\
                        &=sum_k=1^n A_k,j delta_k, n-(n-i+1)+1 =sum_k=1^n A_k,j delta_k,i\
                        &=A_1,j delta_1,i +A_2,j delta_2,i +A_3,j delta_3,i +ldots +A_n,j delta_n,i.endalign

                        Note that inside the summation, $k$ is variable, whereas $i$ and $j$ are fixed. For $delta_k,i$ not to be zero (i.e., one) then $k$ shall equal $i$. Thus, $(A^p)_j, n-i+1 =A_i,j delta_i,i =A_i,j$, as desired.






                        share|cite|improve this answer






















                          up vote
                          3
                          down vote










                          up vote
                          3
                          down vote









                          Anthony Ter's suggestion of verifying $(A^rm T P)_j, n-i+1$ actually equals $A_i,j$ is key (I'm assuming indexes go from $1$ to $n$), but in order to do so, it's helpful to rely on a way of defining $P$ entrywise. Consider the Kronecker delta:
                          $$delta_i,j :=begincases 1,& textif i=j;\ 0,& textif ineq j.endcases$$
                          Then you can define $I_n$ entrywise as $(I_n)_i,j :=delta_i,j$; and similarly, $(P)_i,j :=delta_i,n-j+1$. Then, you can compute $(A^rm T P)_j, n-i+1$ directly by using the matrix-product entrywise definition and the matrix transpose property: $(A^rm T)_i,j := A_j,i$.



                          beginalign (A^p)_j, n-i+1 &=(A^rm T P)_j, n-i+1 =sum_k=1^n (A^rm T)_j,k P_k, n-i+1\
                          &=sum_k=1^n A_k,j delta_k, n-(n-i+1)+1 =sum_k=1^n A_k,j delta_k,i\
                          &=A_1,j delta_1,i +A_2,j delta_2,i +A_3,j delta_3,i +ldots +A_n,j delta_n,i.endalign

                          Note that inside the summation, $k$ is variable, whereas $i$ and $j$ are fixed. For $delta_k,i$ not to be zero (i.e., one) then $k$ shall equal $i$. Thus, $(A^p)_j, n-i+1 =A_i,j delta_i,i =A_i,j$, as desired.






                          share|cite|improve this answer












                          Anthony Ter's suggestion of verifying $(A^rm T P)_j, n-i+1$ actually equals $A_i,j$ is key (I'm assuming indexes go from $1$ to $n$), but in order to do so, it's helpful to rely on a way of defining $P$ entrywise. Consider the Kronecker delta:
                          $$delta_i,j :=begincases 1,& textif i=j;\ 0,& textif ineq j.endcases$$
                          Then you can define $I_n$ entrywise as $(I_n)_i,j :=delta_i,j$; and similarly, $(P)_i,j :=delta_i,n-j+1$. Then, you can compute $(A^rm T P)_j, n-i+1$ directly by using the matrix-product entrywise definition and the matrix transpose property: $(A^rm T)_i,j := A_j,i$.



                          beginalign (A^p)_j, n-i+1 &=(A^rm T P)_j, n-i+1 =sum_k=1^n (A^rm T)_j,k P_k, n-i+1\
                          &=sum_k=1^n A_k,j delta_k, n-(n-i+1)+1 =sum_k=1^n A_k,j delta_k,i\
                          &=A_1,j delta_1,i +A_2,j delta_2,i +A_3,j delta_3,i +ldots +A_n,j delta_n,i.endalign

                          Note that inside the summation, $k$ is variable, whereas $i$ and $j$ are fixed. For $delta_k,i$ not to be zero (i.e., one) then $k$ shall equal $i$. Thus, $(A^p)_j, n-i+1 =A_i,j delta_i,i =A_i,j$, as desired.







                          share|cite|improve this answer












                          share|cite|improve this answer



                          share|cite|improve this answer










                          answered 20 mins ago









                          Rócherz

                          2,2562518




                          2,2562518



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2971723%2fstuck-on-a-proof-about-rotating-a-matrix%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Comments

                              Popular posts from this blog

                              What does second last employer means? [closed]

                              List of Gilmore Girls characters

                              Confectionery