How can I find rank of $A=sum_{i=1}^4 x_ix_i^T$ without actually finding the matrix $A$?












1












$begingroup$


Suppose $A=sumlimits_{i=1}^4 x_ix_i^T$ where



$x_1=(1,-1,1,0)^T,x_2=(1,1,0,1)^T,x_3=(1,3,1,0)^T$ and $x_4=(1,1,1,0)^T$.




How can I find the rank of $A$ without explicitly finding the matrix $A$ and then transforming $A$ to an echelon matrix?




I know that $operatorname{rank}(A)=3$ proceeding the usual way.



We have $operatorname{rank}(x_ix_i^T)=1$ for each $i$, but that doesn't help me much here. Also, $x_1=2x_4-x_3$. Does that imply there are $3$ linearly independent rows/columns in $A$?



As this question was supposed to be solved in the exam with limited time at hand, I am left to wonder if it can be solved rather quickly.










share|cite|improve this question









$endgroup$

















    1












    $begingroup$


    Suppose $A=sumlimits_{i=1}^4 x_ix_i^T$ where



    $x_1=(1,-1,1,0)^T,x_2=(1,1,0,1)^T,x_3=(1,3,1,0)^T$ and $x_4=(1,1,1,0)^T$.




    How can I find the rank of $A$ without explicitly finding the matrix $A$ and then transforming $A$ to an echelon matrix?




    I know that $operatorname{rank}(A)=3$ proceeding the usual way.



    We have $operatorname{rank}(x_ix_i^T)=1$ for each $i$, but that doesn't help me much here. Also, $x_1=2x_4-x_3$. Does that imply there are $3$ linearly independent rows/columns in $A$?



    As this question was supposed to be solved in the exam with limited time at hand, I am left to wonder if it can be solved rather quickly.










    share|cite|improve this question









    $endgroup$















      1












      1








      1


      1



      $begingroup$


      Suppose $A=sumlimits_{i=1}^4 x_ix_i^T$ where



      $x_1=(1,-1,1,0)^T,x_2=(1,1,0,1)^T,x_3=(1,3,1,0)^T$ and $x_4=(1,1,1,0)^T$.




      How can I find the rank of $A$ without explicitly finding the matrix $A$ and then transforming $A$ to an echelon matrix?




      I know that $operatorname{rank}(A)=3$ proceeding the usual way.



      We have $operatorname{rank}(x_ix_i^T)=1$ for each $i$, but that doesn't help me much here. Also, $x_1=2x_4-x_3$. Does that imply there are $3$ linearly independent rows/columns in $A$?



      As this question was supposed to be solved in the exam with limited time at hand, I am left to wonder if it can be solved rather quickly.










      share|cite|improve this question









      $endgroup$




      Suppose $A=sumlimits_{i=1}^4 x_ix_i^T$ where



      $x_1=(1,-1,1,0)^T,x_2=(1,1,0,1)^T,x_3=(1,3,1,0)^T$ and $x_4=(1,1,1,0)^T$.




      How can I find the rank of $A$ without explicitly finding the matrix $A$ and then transforming $A$ to an echelon matrix?




      I know that $operatorname{rank}(A)=3$ proceeding the usual way.



      We have $operatorname{rank}(x_ix_i^T)=1$ for each $i$, but that doesn't help me much here. Also, $x_1=2x_4-x_3$. Does that imply there are $3$ linearly independent rows/columns in $A$?



      As this question was supposed to be solved in the exam with limited time at hand, I am left to wonder if it can be solved rather quickly.







      linear-algebra matrix-rank






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Jan 3 at 14:41









      StubbornAtomStubbornAtom

      6,29831440




      6,29831440






















          3 Answers
          3






          active

          oldest

          votes


















          2












          $begingroup$

          The matrix $A$ can be written as $A=XX^T$ where $X=[x_1 x_2 x_3 x_4]$. Now use the fact that $operatorname{rank}XX^T=operatorname{rank}X$, so all you need to do is the find the rank of $X$.






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Thank you. I overlooked this decomposition.
            $endgroup$
            – StubbornAtom
            Jan 3 at 15:26



















          0












          $begingroup$

          The rank of $A$ is by definition the dimension of the range, and the range is spanned by ${x_1, x_2, x_3, x_4}$. Thus it suffices to find the dimension of this span.



          Since both $x_1, x_3, x_4$ has $0$ in the fourth entries while $x_2$ does not. Thus if you can show that $operatorname{span}{x_1, x_3, x_4}$ is two dimensional, then the span of ${x_1, x_2, x_3, x_4}$ is three dimensional.



          You know already that $operatorname{span}{x_1, x_3, x_4}$ is at most two dimensional. That it is exactly two is easy, since obviously (e.g.) ${x_1, x_4}$ is linearly independent.






          share|cite|improve this answer









          $endgroup$





















            0












            $begingroup$

            Observe that for any vector $c$,
            $$Ac = sum_{i=1}^{4} x_ix_i^Tc = sum_{i=1}^{4} (x^Tc)x_i$$



            The image of a linear map is a vector space. That means that for every $Ac$ we can find some set of vectors which spans this set. Can you find such a set (even if the set is linearly dependent)? If you can find such a set, then you just need to count how many linearly independent vectors you need to span the same space (i.e. remove vectors which are linearly dependent).






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              How does $x_i x_i^T c$ equal $(x_i^T c) x_i$?
              $endgroup$
              – StubbornAtom
              Jan 3 at 15:04








            • 1




              $begingroup$
              $x_i^Tc$ is a scalar, so you can move it around
              $endgroup$
              – tch
              Jan 3 at 15:14












            • $begingroup$
              Oh I see $c$ is a vector.
              $endgroup$
              – StubbornAtom
              Jan 3 at 15:20












            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%2f3060610%2fhow-can-i-find-rank-of-a-sum-i-14-x-ix-it-without-actually-finding-the-ma%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2












            $begingroup$

            The matrix $A$ can be written as $A=XX^T$ where $X=[x_1 x_2 x_3 x_4]$. Now use the fact that $operatorname{rank}XX^T=operatorname{rank}X$, so all you need to do is the find the rank of $X$.






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              Thank you. I overlooked this decomposition.
              $endgroup$
              – StubbornAtom
              Jan 3 at 15:26
















            2












            $begingroup$

            The matrix $A$ can be written as $A=XX^T$ where $X=[x_1 x_2 x_3 x_4]$. Now use the fact that $operatorname{rank}XX^T=operatorname{rank}X$, so all you need to do is the find the rank of $X$.






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              Thank you. I overlooked this decomposition.
              $endgroup$
              – StubbornAtom
              Jan 3 at 15:26














            2












            2








            2





            $begingroup$

            The matrix $A$ can be written as $A=XX^T$ where $X=[x_1 x_2 x_3 x_4]$. Now use the fact that $operatorname{rank}XX^T=operatorname{rank}X$, so all you need to do is the find the rank of $X$.






            share|cite|improve this answer









            $endgroup$



            The matrix $A$ can be written as $A=XX^T$ where $X=[x_1 x_2 x_3 x_4]$. Now use the fact that $operatorname{rank}XX^T=operatorname{rank}X$, so all you need to do is the find the rank of $X$.







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Jan 3 at 15:13









            A.Γ.A.Γ.

            22.9k32656




            22.9k32656












            • $begingroup$
              Thank you. I overlooked this decomposition.
              $endgroup$
              – StubbornAtom
              Jan 3 at 15:26


















            • $begingroup$
              Thank you. I overlooked this decomposition.
              $endgroup$
              – StubbornAtom
              Jan 3 at 15:26
















            $begingroup$
            Thank you. I overlooked this decomposition.
            $endgroup$
            – StubbornAtom
            Jan 3 at 15:26




            $begingroup$
            Thank you. I overlooked this decomposition.
            $endgroup$
            – StubbornAtom
            Jan 3 at 15:26











            0












            $begingroup$

            The rank of $A$ is by definition the dimension of the range, and the range is spanned by ${x_1, x_2, x_3, x_4}$. Thus it suffices to find the dimension of this span.



            Since both $x_1, x_3, x_4$ has $0$ in the fourth entries while $x_2$ does not. Thus if you can show that $operatorname{span}{x_1, x_3, x_4}$ is two dimensional, then the span of ${x_1, x_2, x_3, x_4}$ is three dimensional.



            You know already that $operatorname{span}{x_1, x_3, x_4}$ is at most two dimensional. That it is exactly two is easy, since obviously (e.g.) ${x_1, x_4}$ is linearly independent.






            share|cite|improve this answer









            $endgroup$


















              0












              $begingroup$

              The rank of $A$ is by definition the dimension of the range, and the range is spanned by ${x_1, x_2, x_3, x_4}$. Thus it suffices to find the dimension of this span.



              Since both $x_1, x_3, x_4$ has $0$ in the fourth entries while $x_2$ does not. Thus if you can show that $operatorname{span}{x_1, x_3, x_4}$ is two dimensional, then the span of ${x_1, x_2, x_3, x_4}$ is three dimensional.



              You know already that $operatorname{span}{x_1, x_3, x_4}$ is at most two dimensional. That it is exactly two is easy, since obviously (e.g.) ${x_1, x_4}$ is linearly independent.






              share|cite|improve this answer









              $endgroup$
















                0












                0








                0





                $begingroup$

                The rank of $A$ is by definition the dimension of the range, and the range is spanned by ${x_1, x_2, x_3, x_4}$. Thus it suffices to find the dimension of this span.



                Since both $x_1, x_3, x_4$ has $0$ in the fourth entries while $x_2$ does not. Thus if you can show that $operatorname{span}{x_1, x_3, x_4}$ is two dimensional, then the span of ${x_1, x_2, x_3, x_4}$ is three dimensional.



                You know already that $operatorname{span}{x_1, x_3, x_4}$ is at most two dimensional. That it is exactly two is easy, since obviously (e.g.) ${x_1, x_4}$ is linearly independent.






                share|cite|improve this answer









                $endgroup$



                The rank of $A$ is by definition the dimension of the range, and the range is spanned by ${x_1, x_2, x_3, x_4}$. Thus it suffices to find the dimension of this span.



                Since both $x_1, x_3, x_4$ has $0$ in the fourth entries while $x_2$ does not. Thus if you can show that $operatorname{span}{x_1, x_3, x_4}$ is two dimensional, then the span of ${x_1, x_2, x_3, x_4}$ is three dimensional.



                You know already that $operatorname{span}{x_1, x_3, x_4}$ is at most two dimensional. That it is exactly two is easy, since obviously (e.g.) ${x_1, x_4}$ is linearly independent.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Jan 3 at 14:45









                Arctic CharArctic Char

                301114




                301114























                    0












                    $begingroup$

                    Observe that for any vector $c$,
                    $$Ac = sum_{i=1}^{4} x_ix_i^Tc = sum_{i=1}^{4} (x^Tc)x_i$$



                    The image of a linear map is a vector space. That means that for every $Ac$ we can find some set of vectors which spans this set. Can you find such a set (even if the set is linearly dependent)? If you can find such a set, then you just need to count how many linearly independent vectors you need to span the same space (i.e. remove vectors which are linearly dependent).






                    share|cite|improve this answer









                    $endgroup$













                    • $begingroup$
                      How does $x_i x_i^T c$ equal $(x_i^T c) x_i$?
                      $endgroup$
                      – StubbornAtom
                      Jan 3 at 15:04








                    • 1




                      $begingroup$
                      $x_i^Tc$ is a scalar, so you can move it around
                      $endgroup$
                      – tch
                      Jan 3 at 15:14












                    • $begingroup$
                      Oh I see $c$ is a vector.
                      $endgroup$
                      – StubbornAtom
                      Jan 3 at 15:20
















                    0












                    $begingroup$

                    Observe that for any vector $c$,
                    $$Ac = sum_{i=1}^{4} x_ix_i^Tc = sum_{i=1}^{4} (x^Tc)x_i$$



                    The image of a linear map is a vector space. That means that for every $Ac$ we can find some set of vectors which spans this set. Can you find such a set (even if the set is linearly dependent)? If you can find such a set, then you just need to count how many linearly independent vectors you need to span the same space (i.e. remove vectors which are linearly dependent).






                    share|cite|improve this answer









                    $endgroup$













                    • $begingroup$
                      How does $x_i x_i^T c$ equal $(x_i^T c) x_i$?
                      $endgroup$
                      – StubbornAtom
                      Jan 3 at 15:04








                    • 1




                      $begingroup$
                      $x_i^Tc$ is a scalar, so you can move it around
                      $endgroup$
                      – tch
                      Jan 3 at 15:14












                    • $begingroup$
                      Oh I see $c$ is a vector.
                      $endgroup$
                      – StubbornAtom
                      Jan 3 at 15:20














                    0












                    0








                    0





                    $begingroup$

                    Observe that for any vector $c$,
                    $$Ac = sum_{i=1}^{4} x_ix_i^Tc = sum_{i=1}^{4} (x^Tc)x_i$$



                    The image of a linear map is a vector space. That means that for every $Ac$ we can find some set of vectors which spans this set. Can you find such a set (even if the set is linearly dependent)? If you can find such a set, then you just need to count how many linearly independent vectors you need to span the same space (i.e. remove vectors which are linearly dependent).






                    share|cite|improve this answer









                    $endgroup$



                    Observe that for any vector $c$,
                    $$Ac = sum_{i=1}^{4} x_ix_i^Tc = sum_{i=1}^{4} (x^Tc)x_i$$



                    The image of a linear map is a vector space. That means that for every $Ac$ we can find some set of vectors which spans this set. Can you find such a set (even if the set is linearly dependent)? If you can find such a set, then you just need to count how many linearly independent vectors you need to span the same space (i.e. remove vectors which are linearly dependent).







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Jan 3 at 14:49









                    tchtch

                    833310




                    833310












                    • $begingroup$
                      How does $x_i x_i^T c$ equal $(x_i^T c) x_i$?
                      $endgroup$
                      – StubbornAtom
                      Jan 3 at 15:04








                    • 1




                      $begingroup$
                      $x_i^Tc$ is a scalar, so you can move it around
                      $endgroup$
                      – tch
                      Jan 3 at 15:14












                    • $begingroup$
                      Oh I see $c$ is a vector.
                      $endgroup$
                      – StubbornAtom
                      Jan 3 at 15:20


















                    • $begingroup$
                      How does $x_i x_i^T c$ equal $(x_i^T c) x_i$?
                      $endgroup$
                      – StubbornAtom
                      Jan 3 at 15:04








                    • 1




                      $begingroup$
                      $x_i^Tc$ is a scalar, so you can move it around
                      $endgroup$
                      – tch
                      Jan 3 at 15:14












                    • $begingroup$
                      Oh I see $c$ is a vector.
                      $endgroup$
                      – StubbornAtom
                      Jan 3 at 15:20
















                    $begingroup$
                    How does $x_i x_i^T c$ equal $(x_i^T c) x_i$?
                    $endgroup$
                    – StubbornAtom
                    Jan 3 at 15:04






                    $begingroup$
                    How does $x_i x_i^T c$ equal $(x_i^T c) x_i$?
                    $endgroup$
                    – StubbornAtom
                    Jan 3 at 15:04






                    1




                    1




                    $begingroup$
                    $x_i^Tc$ is a scalar, so you can move it around
                    $endgroup$
                    – tch
                    Jan 3 at 15:14






                    $begingroup$
                    $x_i^Tc$ is a scalar, so you can move it around
                    $endgroup$
                    – tch
                    Jan 3 at 15:14














                    $begingroup$
                    Oh I see $c$ is a vector.
                    $endgroup$
                    – StubbornAtom
                    Jan 3 at 15:20




                    $begingroup$
                    Oh I see $c$ is a vector.
                    $endgroup$
                    – StubbornAtom
                    Jan 3 at 15:20


















                    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%2f3060610%2fhow-can-i-find-rank-of-a-sum-i-14-x-ix-it-without-actually-finding-the-ma%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

                    To store a contact into the json file from server.js file using a class in NodeJS

                    Redirect URL with Chrome Remote Debugging Android Devices

                    Dieringhausen