The angle between the $x$-axis and the vector that reachs the $2$-norm of a matrix The 2019 Stack Overflow Developer Survey Results Are InCalculating axis angle from matrix without wrapping at PIWhat is the rotation axis and rotation angle of the composition of two rotation matrix in $mathbbR^3$Let $theta=frac2 pi67$ consider the rotation matrix $A$. What is $A^2010$?Find axis of rotation for matrix BA given matrix ABFind a matrix for the linear transformation of reflection about a $theta$ line using the matrix for projection$nD$ rotation around a general $(n-2)$-dimensional subspaceRotation Matrix From Axis and AngleHow to rotate a vector by a given angle about a given axisWhile converting rotation matrix to angle-axis representation how to find axis of rotation when angle of rotation is Pi?Angle definition confusion in Rodrigues rotation matrix

Does the shape of a die affect the probability of a number being rolled?

Delete all lines which don't have n characters before delimiter

Have you ever entered Singapore using a different passport or name?

Is bread bad for ducks?

Is there any way to tell whether the shot is going to hit you or not?

Lightning Grid - Columns and Rows?

Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?

Protecting Dualbooting Windows from dangerous code (like rm -rf)

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

What do hard-Brexiteers want with respect to the Irish border?

What does ひと匙 mean in this manga and has it been used colloquially?

Where to refill my bottle in India?

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

Are there any other methods to apply to solving simultaneous equations?

Does a dangling wire really electrocute me if I'm standing in water?

Why is the maximum length of OpenWrt’s root password 8 characters?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Why isn't airport relocation done gradually?

Did 3000BC Egyptians use meteoric iron weapons?

Output the Arecibo Message

Why did Acorn's A3000 have red function keys?

Is "plugging out" electronic devices an American expression?

How are circuits which use complex ICs normally simulated?

Return to UK after having been refused entry years ago



The angle between the $x$-axis and the vector that reachs the $2$-norm of a matrix



The 2019 Stack Overflow Developer Survey Results Are InCalculating axis angle from matrix without wrapping at PIWhat is the rotation axis and rotation angle of the composition of two rotation matrix in $mathbbR^3$Let $theta=frac2 pi67$ consider the rotation matrix $A$. What is $A^2010$?Find axis of rotation for matrix BA given matrix ABFind a matrix for the linear transformation of reflection about a $theta$ line using the matrix for projection$nD$ rotation around a general $(n-2)$-dimensional subspaceRotation Matrix From Axis and AngleHow to rotate a vector by a given angle about a given axisWhile converting rotation matrix to angle-axis representation how to find axis of rotation when angle of rotation is Pi?Angle definition confusion in Rodrigues rotation matrix










1












$begingroup$


Suppose we have a matrix $Ain mathbbR^2times 2$. We have the $2$-norm defined as $left |Aright |_2=max_left left |Axright |_2$.



We know that in order to find a unit vector $v$ such that $left |Avright |_2=left |Aright |_2$, we have to find the eigenvalues of $A^TA$, take the greatest eigenvalue, find a corresponding eigenvector and finally normalize it.



Of course, this would lead us to two different solutions: a vector $v$ and its corresponding additive opposite. Nevertheless, we will take the one with non-negative value of $x$ (i.e. the one which is to the right of the $y$-axis).



Once we have this vector, it is easy to find the angle it forms with the $x$-axis. But I have the following question: Is there any better way to find this angle, providing that it is the only information we want?



This question arises from the following example: if $A=beginpmatrix
1 & 1\
0 & 1
endpmatrix$
, the eigenvalues of $A^TA$ are $frac3pm sqrt52$, and the calculation becomes very difficult. Moreover, I found a solution (which I could not understand) that finds the angle without finding the vector. This is the solution:




Have to maximize the function $fleft (thetaright )=cos^2theta +2sinthetacostheta +2sin^2theta=1+sin2theta+sin^2theta$ and so setting the first derivative to be zero: $0=f'left (thetaright )=2cos2theta +2sinthetacostheta=2cos2theta+sin2theta$. That is $tan2theta=2$.




Maybe this can be generalized in order to obtain a general way to find this angle? In that case, I would like to have a better-explained solution. I do not understand where the function $f$ comes from.










share|cite|improve this question









$endgroup$
















    1












    $begingroup$


    Suppose we have a matrix $Ain mathbbR^2times 2$. We have the $2$-norm defined as $left |Aright |_2=max_left left |Axright |_2$.



    We know that in order to find a unit vector $v$ such that $left |Avright |_2=left |Aright |_2$, we have to find the eigenvalues of $A^TA$, take the greatest eigenvalue, find a corresponding eigenvector and finally normalize it.



    Of course, this would lead us to two different solutions: a vector $v$ and its corresponding additive opposite. Nevertheless, we will take the one with non-negative value of $x$ (i.e. the one which is to the right of the $y$-axis).



    Once we have this vector, it is easy to find the angle it forms with the $x$-axis. But I have the following question: Is there any better way to find this angle, providing that it is the only information we want?



    This question arises from the following example: if $A=beginpmatrix
    1 & 1\
    0 & 1
    endpmatrix$
    , the eigenvalues of $A^TA$ are $frac3pm sqrt52$, and the calculation becomes very difficult. Moreover, I found a solution (which I could not understand) that finds the angle without finding the vector. This is the solution:




    Have to maximize the function $fleft (thetaright )=cos^2theta +2sinthetacostheta +2sin^2theta=1+sin2theta+sin^2theta$ and so setting the first derivative to be zero: $0=f'left (thetaright )=2cos2theta +2sinthetacostheta=2cos2theta+sin2theta$. That is $tan2theta=2$.




    Maybe this can be generalized in order to obtain a general way to find this angle? In that case, I would like to have a better-explained solution. I do not understand where the function $f$ comes from.










    share|cite|improve this question









    $endgroup$














      1












      1








      1





      $begingroup$


      Suppose we have a matrix $Ain mathbbR^2times 2$. We have the $2$-norm defined as $left |Aright |_2=max_left left |Axright |_2$.



      We know that in order to find a unit vector $v$ such that $left |Avright |_2=left |Aright |_2$, we have to find the eigenvalues of $A^TA$, take the greatest eigenvalue, find a corresponding eigenvector and finally normalize it.



      Of course, this would lead us to two different solutions: a vector $v$ and its corresponding additive opposite. Nevertheless, we will take the one with non-negative value of $x$ (i.e. the one which is to the right of the $y$-axis).



      Once we have this vector, it is easy to find the angle it forms with the $x$-axis. But I have the following question: Is there any better way to find this angle, providing that it is the only information we want?



      This question arises from the following example: if $A=beginpmatrix
      1 & 1\
      0 & 1
      endpmatrix$
      , the eigenvalues of $A^TA$ are $frac3pm sqrt52$, and the calculation becomes very difficult. Moreover, I found a solution (which I could not understand) that finds the angle without finding the vector. This is the solution:




      Have to maximize the function $fleft (thetaright )=cos^2theta +2sinthetacostheta +2sin^2theta=1+sin2theta+sin^2theta$ and so setting the first derivative to be zero: $0=f'left (thetaright )=2cos2theta +2sinthetacostheta=2cos2theta+sin2theta$. That is $tan2theta=2$.




      Maybe this can be generalized in order to obtain a general way to find this angle? In that case, I would like to have a better-explained solution. I do not understand where the function $f$ comes from.










      share|cite|improve this question









      $endgroup$




      Suppose we have a matrix $Ain mathbbR^2times 2$. We have the $2$-norm defined as $left |Aright |_2=max_left left |Axright |_2$.



      We know that in order to find a unit vector $v$ such that $left |Avright |_2=left |Aright |_2$, we have to find the eigenvalues of $A^TA$, take the greatest eigenvalue, find a corresponding eigenvector and finally normalize it.



      Of course, this would lead us to two different solutions: a vector $v$ and its corresponding additive opposite. Nevertheless, we will take the one with non-negative value of $x$ (i.e. the one which is to the right of the $y$-axis).



      Once we have this vector, it is easy to find the angle it forms with the $x$-axis. But I have the following question: Is there any better way to find this angle, providing that it is the only information we want?



      This question arises from the following example: if $A=beginpmatrix
      1 & 1\
      0 & 1
      endpmatrix$
      , the eigenvalues of $A^TA$ are $frac3pm sqrt52$, and the calculation becomes very difficult. Moreover, I found a solution (which I could not understand) that finds the angle without finding the vector. This is the solution:




      Have to maximize the function $fleft (thetaright )=cos^2theta +2sinthetacostheta +2sin^2theta=1+sin2theta+sin^2theta$ and so setting the first derivative to be zero: $0=f'left (thetaright )=2cos2theta +2sinthetacostheta=2cos2theta+sin2theta$. That is $tan2theta=2$.




      Maybe this can be generalized in order to obtain a general way to find this angle? In that case, I would like to have a better-explained solution. I do not understand where the function $f$ comes from.







      matrices eigenvalues-eigenvectors norm normed-spaces






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Mar 30 at 17:13









      solomeo paredessolomeo paredes

      485210




      485210




















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          Because your setup is $2times2$, you can work with less theory. Since you only need to look at real vectors $(x,y)$ with $|(x,y)|=1$, you may assume that $x=costheta$, $y=sintheta$. So now (for your particular $A$) you are looking at
          beginalign
          |A(x,y)|^2=|(x+y,y)|^2
          &=(costheta+sintheta)^2+sin^2theta=cos^2theta+sin^2theta+2costhetasintheta+sin^2theta\
          &=1+2costhetasintheta+sin^2theta\
          &=1+sin2theta+sin^2theta.
          endalign

          Now you are looking for $theta$ that maximizes this expression, so differentiate and equate to zero.



          If you have $A=beginbmatrix a_11&a_12\ a_21&a_22endbmatrix$, now the function to be maximized will be
          $$
          (a_11costheta+a_12sintheta)^2+(a_21costheta+a_22sintheta)^2.
          $$






          share|cite|improve this answer









          $endgroup$













            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%2f3168537%2fthe-angle-between-the-x-axis-and-the-vector-that-reachs-the-2-norm-of-a-matr%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$

            Because your setup is $2times2$, you can work with less theory. Since you only need to look at real vectors $(x,y)$ with $|(x,y)|=1$, you may assume that $x=costheta$, $y=sintheta$. So now (for your particular $A$) you are looking at
            beginalign
            |A(x,y)|^2=|(x+y,y)|^2
            &=(costheta+sintheta)^2+sin^2theta=cos^2theta+sin^2theta+2costhetasintheta+sin^2theta\
            &=1+2costhetasintheta+sin^2theta\
            &=1+sin2theta+sin^2theta.
            endalign

            Now you are looking for $theta$ that maximizes this expression, so differentiate and equate to zero.



            If you have $A=beginbmatrix a_11&a_12\ a_21&a_22endbmatrix$, now the function to be maximized will be
            $$
            (a_11costheta+a_12sintheta)^2+(a_21costheta+a_22sintheta)^2.
            $$






            share|cite|improve this answer









            $endgroup$

















              1












              $begingroup$

              Because your setup is $2times2$, you can work with less theory. Since you only need to look at real vectors $(x,y)$ with $|(x,y)|=1$, you may assume that $x=costheta$, $y=sintheta$. So now (for your particular $A$) you are looking at
              beginalign
              |A(x,y)|^2=|(x+y,y)|^2
              &=(costheta+sintheta)^2+sin^2theta=cos^2theta+sin^2theta+2costhetasintheta+sin^2theta\
              &=1+2costhetasintheta+sin^2theta\
              &=1+sin2theta+sin^2theta.
              endalign

              Now you are looking for $theta$ that maximizes this expression, so differentiate and equate to zero.



              If you have $A=beginbmatrix a_11&a_12\ a_21&a_22endbmatrix$, now the function to be maximized will be
              $$
              (a_11costheta+a_12sintheta)^2+(a_21costheta+a_22sintheta)^2.
              $$






              share|cite|improve this answer









              $endgroup$















                1












                1








                1





                $begingroup$

                Because your setup is $2times2$, you can work with less theory. Since you only need to look at real vectors $(x,y)$ with $|(x,y)|=1$, you may assume that $x=costheta$, $y=sintheta$. So now (for your particular $A$) you are looking at
                beginalign
                |A(x,y)|^2=|(x+y,y)|^2
                &=(costheta+sintheta)^2+sin^2theta=cos^2theta+sin^2theta+2costhetasintheta+sin^2theta\
                &=1+2costhetasintheta+sin^2theta\
                &=1+sin2theta+sin^2theta.
                endalign

                Now you are looking for $theta$ that maximizes this expression, so differentiate and equate to zero.



                If you have $A=beginbmatrix a_11&a_12\ a_21&a_22endbmatrix$, now the function to be maximized will be
                $$
                (a_11costheta+a_12sintheta)^2+(a_21costheta+a_22sintheta)^2.
                $$






                share|cite|improve this answer









                $endgroup$



                Because your setup is $2times2$, you can work with less theory. Since you only need to look at real vectors $(x,y)$ with $|(x,y)|=1$, you may assume that $x=costheta$, $y=sintheta$. So now (for your particular $A$) you are looking at
                beginalign
                |A(x,y)|^2=|(x+y,y)|^2
                &=(costheta+sintheta)^2+sin^2theta=cos^2theta+sin^2theta+2costhetasintheta+sin^2theta\
                &=1+2costhetasintheta+sin^2theta\
                &=1+sin2theta+sin^2theta.
                endalign

                Now you are looking for $theta$ that maximizes this expression, so differentiate and equate to zero.



                If you have $A=beginbmatrix a_11&a_12\ a_21&a_22endbmatrix$, now the function to be maximized will be
                $$
                (a_11costheta+a_12sintheta)^2+(a_21costheta+a_22sintheta)^2.
                $$







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Mar 31 at 4:58









                Martin ArgeramiMartin Argerami

                129k1184185




                129k1184185



























                    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%2f3168537%2fthe-angle-between-the-x-axis-and-the-vector-that-reachs-the-2-norm-of-a-matr%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

                    Triangular numbers and gcdProving sum of a set is $0 pmod n$ if $n$ is odd, or $fracn2 pmod n$ if $n$ is even?Is greatest common divisor of two numbers really their smallest linear combination?GCD, LCM RelationshipProve a set of nonnegative integers with greatest common divisor 1 and closed under addition has all but finite many nonnegative integers.all pairs of a and b in an equation containing gcdTriangular Numbers Modulo $k$ - Hit All Values?Understanding the Existence and Uniqueness of the GCDGCD and LCM with logical symbolsThe greatest common divisor of two positive integers less than 100 is equal to 3. Their least common multiple is twelve times one of the integers.Suppose that for all integers $x$, $x|a$ and $x|b$ if and only if $x|c$. Then $c = gcd(a,b)$Which is the gcd of 2 numbers which are multiplied and the result is 600000?

                    Ingelân Ynhâld Etymology | Geografy | Skiednis | Polityk en bestjoer | Ekonomy | Demografy | Kultuer | Klimaat | Sjoch ek | Keppelings om utens | Boarnen, noaten en referinsjes Navigaasjemenuwww.gov.ukOffisjele webside fan it regear fan it Feriene KeninkrykOffisjele webside fan it Britske FerkearsburoNederlânsktalige ynformaasje fan it Britske FerkearsburoOffisjele webside fan English Heritage, de organisaasje dy't him ynset foar it behâld fan it Ingelske kultuergoedYnwennertallen fan alle Britske stêden út 'e folkstelling fan 2011Notes en References, op dizze sideEngland

                    Boston (Lincolnshire) Stedsbyld | Berne yn Boston | NavigaasjemenuBoston Borough CouncilBoston, Lincolnshire