How to know if vector is in column space of a matrix?












5














I have an exercise where I have to say if a vector $vec{u} = left(begin{matrix}1 \ 2end{matrix}right)$ is or not in a column space of a matrix $A = left(begin{matrix}1 & -2\ -2 & 4end{matrix}right)$. I am quite newbie, and I am still not so comfortable with these concepts.



What I did was to create an augment matrix:



$$left(begin{array}{cc|c}1 & -2 & 1 \ -2 & 4 & 2end{array}right)$$



If I try to reduce this I get the second row like $left(begin{array}{cc|c}0 & 0 & 4 end{array}right)$.



Which I think means that the $vec{v}$ is not in $A$, because $0 +/- 0 neq 4$.



Could you provide a more technical explanation of why? I know this might seem to easy, but just to understand better...










share|cite|improve this question



























    5














    I have an exercise where I have to say if a vector $vec{u} = left(begin{matrix}1 \ 2end{matrix}right)$ is or not in a column space of a matrix $A = left(begin{matrix}1 & -2\ -2 & 4end{matrix}right)$. I am quite newbie, and I am still not so comfortable with these concepts.



    What I did was to create an augment matrix:



    $$left(begin{array}{cc|c}1 & -2 & 1 \ -2 & 4 & 2end{array}right)$$



    If I try to reduce this I get the second row like $left(begin{array}{cc|c}0 & 0 & 4 end{array}right)$.



    Which I think means that the $vec{v}$ is not in $A$, because $0 +/- 0 neq 4$.



    Could you provide a more technical explanation of why? I know this might seem to easy, but just to understand better...










    share|cite|improve this question

























      5












      5








      5


      2





      I have an exercise where I have to say if a vector $vec{u} = left(begin{matrix}1 \ 2end{matrix}right)$ is or not in a column space of a matrix $A = left(begin{matrix}1 & -2\ -2 & 4end{matrix}right)$. I am quite newbie, and I am still not so comfortable with these concepts.



      What I did was to create an augment matrix:



      $$left(begin{array}{cc|c}1 & -2 & 1 \ -2 & 4 & 2end{array}right)$$



      If I try to reduce this I get the second row like $left(begin{array}{cc|c}0 & 0 & 4 end{array}right)$.



      Which I think means that the $vec{v}$ is not in $A$, because $0 +/- 0 neq 4$.



      Could you provide a more technical explanation of why? I know this might seem to easy, but just to understand better...










      share|cite|improve this question













      I have an exercise where I have to say if a vector $vec{u} = left(begin{matrix}1 \ 2end{matrix}right)$ is or not in a column space of a matrix $A = left(begin{matrix}1 & -2\ -2 & 4end{matrix}right)$. I am quite newbie, and I am still not so comfortable with these concepts.



      What I did was to create an augment matrix:



      $$left(begin{array}{cc|c}1 & -2 & 1 \ -2 & 4 & 2end{array}right)$$



      If I try to reduce this I get the second row like $left(begin{array}{cc|c}0 & 0 & 4 end{array}right)$.



      Which I think means that the $vec{v}$ is not in $A$, because $0 +/- 0 neq 4$.



      Could you provide a more technical explanation of why? I know this might seem to easy, but just to understand better...







      linear-algebra matrices






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Mar 27 '15 at 3:49









      nbronbro

      2,39753171




      2,39753171






















          5 Answers
          5






          active

          oldest

          votes


















          3














          You did perform the operation correctly.



          The property you are taking advantage of with this method is the fact that the column space of a matrix is the same as the range of the corresponding matrix transformation (i.e. $x mapsto A vec{x}$). By definition of the range of a function, $vec{u}$ is in the range if and only if there exists some $vec{x}$ such that $A vec{x} = vec{u}$. So you attempted to solve that matrix equation, and determined that there was no solution (by producing an inconsistency).






          share|cite|improve this answer





























            2














            Your row-reduction is a general method, and you've done it correctly.



            However, one easy way you can see that your vector is not in the column space of that specific matrix is to notice that the columns are scalar multiples of each other (multiply the first by $-2$), so the column space is a line in $mathbb{R}^2$ with slope $-2$ passing through the origin, and the point $(1,2)$ is very clearly not on this line.






            share|cite|improve this answer





























              2














              To show something is in the span of a set of vectors, you want to show that it's a linear combination of those vectors. So technically what you're doing is you're looking for constants $c_1$ and $c_2$ such that $left(begin{matrix}1 \ 2end{matrix}right)=c_1left(begin{matrix}1 \ -2end{matrix}right)+c_2left(begin{matrix}-2\4end{matrix}right)$, which is equivalent to the equation $Avec{c}=vec{u},$ where $vec{c}=left(begin{matrix}c_1\c_2end{matrix}right)$. And then this equation can be solved(or shown to be inconsistent) by the method you used.






              share|cite|improve this answer





























                1














                what you did is the correct procedure. it works no matter the size of the system. the key point was there was a pivot on the last column indicating an equation of the form $$0x_1 + 0x_2 + cdots + 0 x_n = 1$$ which cannot be satisfied. that in turn means that the last column is not a linear combination of the previous columns.



                the problem you have in your post deals with column vectors in a plane. there linear independence means one vector is a multiple of the other. you can see that second column is a multiple of the first column and the third is not. therefore, the third column cannot be in the column space of the first two columns.






                share|cite|improve this answer































                  0














                  You could form the projection matrix, $P$ from matrix $A$:



                  $$P = A(A^TA)^{-1}A^T$$



                  If a vector $vec{x}$ is in the column space of $A$, then



                  $$Pvec{x} = vec{x}$$



                  i.e. the projection of $vec{x}$ unto the column space of $A$ keeps $vec{x}$ unchanged since $vec{x}$ was already in the column space.



                  $therefore$ check if
                  $Pvec{u} stackrel{?}{=} vec{u}$






                  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%2f1208475%2fhow-to-know-if-vector-is-in-column-space-of-a-matrix%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown

























                    5 Answers
                    5






                    active

                    oldest

                    votes








                    5 Answers
                    5






                    active

                    oldest

                    votes









                    active

                    oldest

                    votes






                    active

                    oldest

                    votes









                    3














                    You did perform the operation correctly.



                    The property you are taking advantage of with this method is the fact that the column space of a matrix is the same as the range of the corresponding matrix transformation (i.e. $x mapsto A vec{x}$). By definition of the range of a function, $vec{u}$ is in the range if and only if there exists some $vec{x}$ such that $A vec{x} = vec{u}$. So you attempted to solve that matrix equation, and determined that there was no solution (by producing an inconsistency).






                    share|cite|improve this answer


























                      3














                      You did perform the operation correctly.



                      The property you are taking advantage of with this method is the fact that the column space of a matrix is the same as the range of the corresponding matrix transformation (i.e. $x mapsto A vec{x}$). By definition of the range of a function, $vec{u}$ is in the range if and only if there exists some $vec{x}$ such that $A vec{x} = vec{u}$. So you attempted to solve that matrix equation, and determined that there was no solution (by producing an inconsistency).






                      share|cite|improve this answer
























                        3












                        3








                        3






                        You did perform the operation correctly.



                        The property you are taking advantage of with this method is the fact that the column space of a matrix is the same as the range of the corresponding matrix transformation (i.e. $x mapsto A vec{x}$). By definition of the range of a function, $vec{u}$ is in the range if and only if there exists some $vec{x}$ such that $A vec{x} = vec{u}$. So you attempted to solve that matrix equation, and determined that there was no solution (by producing an inconsistency).






                        share|cite|improve this answer












                        You did perform the operation correctly.



                        The property you are taking advantage of with this method is the fact that the column space of a matrix is the same as the range of the corresponding matrix transformation (i.e. $x mapsto A vec{x}$). By definition of the range of a function, $vec{u}$ is in the range if and only if there exists some $vec{x}$ such that $A vec{x} = vec{u}$. So you attempted to solve that matrix equation, and determined that there was no solution (by producing an inconsistency).







                        share|cite|improve this answer












                        share|cite|improve this answer



                        share|cite|improve this answer










                        answered Mar 27 '15 at 4:01









                        John ColanduoniJohn Colanduoni

                        1,414817




                        1,414817























                            2














                            Your row-reduction is a general method, and you've done it correctly.



                            However, one easy way you can see that your vector is not in the column space of that specific matrix is to notice that the columns are scalar multiples of each other (multiply the first by $-2$), so the column space is a line in $mathbb{R}^2$ with slope $-2$ passing through the origin, and the point $(1,2)$ is very clearly not on this line.






                            share|cite|improve this answer


























                              2














                              Your row-reduction is a general method, and you've done it correctly.



                              However, one easy way you can see that your vector is not in the column space of that specific matrix is to notice that the columns are scalar multiples of each other (multiply the first by $-2$), so the column space is a line in $mathbb{R}^2$ with slope $-2$ passing through the origin, and the point $(1,2)$ is very clearly not on this line.






                              share|cite|improve this answer
























                                2












                                2








                                2






                                Your row-reduction is a general method, and you've done it correctly.



                                However, one easy way you can see that your vector is not in the column space of that specific matrix is to notice that the columns are scalar multiples of each other (multiply the first by $-2$), so the column space is a line in $mathbb{R}^2$ with slope $-2$ passing through the origin, and the point $(1,2)$ is very clearly not on this line.






                                share|cite|improve this answer












                                Your row-reduction is a general method, and you've done it correctly.



                                However, one easy way you can see that your vector is not in the column space of that specific matrix is to notice that the columns are scalar multiples of each other (multiply the first by $-2$), so the column space is a line in $mathbb{R}^2$ with slope $-2$ passing through the origin, and the point $(1,2)$ is very clearly not on this line.







                                share|cite|improve this answer












                                share|cite|improve this answer



                                share|cite|improve this answer










                                answered Mar 27 '15 at 3:57









                                Zubin MukerjeeZubin Mukerjee

                                14.8k32657




                                14.8k32657























                                    2














                                    To show something is in the span of a set of vectors, you want to show that it's a linear combination of those vectors. So technically what you're doing is you're looking for constants $c_1$ and $c_2$ such that $left(begin{matrix}1 \ 2end{matrix}right)=c_1left(begin{matrix}1 \ -2end{matrix}right)+c_2left(begin{matrix}-2\4end{matrix}right)$, which is equivalent to the equation $Avec{c}=vec{u},$ where $vec{c}=left(begin{matrix}c_1\c_2end{matrix}right)$. And then this equation can be solved(or shown to be inconsistent) by the method you used.






                                    share|cite|improve this answer


























                                      2














                                      To show something is in the span of a set of vectors, you want to show that it's a linear combination of those vectors. So technically what you're doing is you're looking for constants $c_1$ and $c_2$ such that $left(begin{matrix}1 \ 2end{matrix}right)=c_1left(begin{matrix}1 \ -2end{matrix}right)+c_2left(begin{matrix}-2\4end{matrix}right)$, which is equivalent to the equation $Avec{c}=vec{u},$ where $vec{c}=left(begin{matrix}c_1\c_2end{matrix}right)$. And then this equation can be solved(or shown to be inconsistent) by the method you used.






                                      share|cite|improve this answer
























                                        2












                                        2








                                        2






                                        To show something is in the span of a set of vectors, you want to show that it's a linear combination of those vectors. So technically what you're doing is you're looking for constants $c_1$ and $c_2$ such that $left(begin{matrix}1 \ 2end{matrix}right)=c_1left(begin{matrix}1 \ -2end{matrix}right)+c_2left(begin{matrix}-2\4end{matrix}right)$, which is equivalent to the equation $Avec{c}=vec{u},$ where $vec{c}=left(begin{matrix}c_1\c_2end{matrix}right)$. And then this equation can be solved(or shown to be inconsistent) by the method you used.






                                        share|cite|improve this answer












                                        To show something is in the span of a set of vectors, you want to show that it's a linear combination of those vectors. So technically what you're doing is you're looking for constants $c_1$ and $c_2$ such that $left(begin{matrix}1 \ 2end{matrix}right)=c_1left(begin{matrix}1 \ -2end{matrix}right)+c_2left(begin{matrix}-2\4end{matrix}right)$, which is equivalent to the equation $Avec{c}=vec{u},$ where $vec{c}=left(begin{matrix}c_1\c_2end{matrix}right)$. And then this equation can be solved(or shown to be inconsistent) by the method you used.







                                        share|cite|improve this answer












                                        share|cite|improve this answer



                                        share|cite|improve this answer










                                        answered Mar 27 '15 at 4:02









                                        BrentBrent

                                        1,220310




                                        1,220310























                                            1














                                            what you did is the correct procedure. it works no matter the size of the system. the key point was there was a pivot on the last column indicating an equation of the form $$0x_1 + 0x_2 + cdots + 0 x_n = 1$$ which cannot be satisfied. that in turn means that the last column is not a linear combination of the previous columns.



                                            the problem you have in your post deals with column vectors in a plane. there linear independence means one vector is a multiple of the other. you can see that second column is a multiple of the first column and the third is not. therefore, the third column cannot be in the column space of the first two columns.






                                            share|cite|improve this answer




























                                              1














                                              what you did is the correct procedure. it works no matter the size of the system. the key point was there was a pivot on the last column indicating an equation of the form $$0x_1 + 0x_2 + cdots + 0 x_n = 1$$ which cannot be satisfied. that in turn means that the last column is not a linear combination of the previous columns.



                                              the problem you have in your post deals with column vectors in a plane. there linear independence means one vector is a multiple of the other. you can see that second column is a multiple of the first column and the third is not. therefore, the third column cannot be in the column space of the first two columns.






                                              share|cite|improve this answer


























                                                1












                                                1








                                                1






                                                what you did is the correct procedure. it works no matter the size of the system. the key point was there was a pivot on the last column indicating an equation of the form $$0x_1 + 0x_2 + cdots + 0 x_n = 1$$ which cannot be satisfied. that in turn means that the last column is not a linear combination of the previous columns.



                                                the problem you have in your post deals with column vectors in a plane. there linear independence means one vector is a multiple of the other. you can see that second column is a multiple of the first column and the third is not. therefore, the third column cannot be in the column space of the first two columns.






                                                share|cite|improve this answer














                                                what you did is the correct procedure. it works no matter the size of the system. the key point was there was a pivot on the last column indicating an equation of the form $$0x_1 + 0x_2 + cdots + 0 x_n = 1$$ which cannot be satisfied. that in turn means that the last column is not a linear combination of the previous columns.



                                                the problem you have in your post deals with column vectors in a plane. there linear independence means one vector is a multiple of the other. you can see that second column is a multiple of the first column and the third is not. therefore, the third column cannot be in the column space of the first two columns.







                                                share|cite|improve this answer














                                                share|cite|improve this answer



                                                share|cite|improve this answer








                                                edited Mar 27 '15 at 14:04

























                                                answered Mar 27 '15 at 3:59









                                                abelabel

                                                26.5k11948




                                                26.5k11948























                                                    0














                                                    You could form the projection matrix, $P$ from matrix $A$:



                                                    $$P = A(A^TA)^{-1}A^T$$



                                                    If a vector $vec{x}$ is in the column space of $A$, then



                                                    $$Pvec{x} = vec{x}$$



                                                    i.e. the projection of $vec{x}$ unto the column space of $A$ keeps $vec{x}$ unchanged since $vec{x}$ was already in the column space.



                                                    $therefore$ check if
                                                    $Pvec{u} stackrel{?}{=} vec{u}$






                                                    share|cite|improve this answer


























                                                      0














                                                      You could form the projection matrix, $P$ from matrix $A$:



                                                      $$P = A(A^TA)^{-1}A^T$$



                                                      If a vector $vec{x}$ is in the column space of $A$, then



                                                      $$Pvec{x} = vec{x}$$



                                                      i.e. the projection of $vec{x}$ unto the column space of $A$ keeps $vec{x}$ unchanged since $vec{x}$ was already in the column space.



                                                      $therefore$ check if
                                                      $Pvec{u} stackrel{?}{=} vec{u}$






                                                      share|cite|improve this answer
























                                                        0












                                                        0








                                                        0






                                                        You could form the projection matrix, $P$ from matrix $A$:



                                                        $$P = A(A^TA)^{-1}A^T$$



                                                        If a vector $vec{x}$ is in the column space of $A$, then



                                                        $$Pvec{x} = vec{x}$$



                                                        i.e. the projection of $vec{x}$ unto the column space of $A$ keeps $vec{x}$ unchanged since $vec{x}$ was already in the column space.



                                                        $therefore$ check if
                                                        $Pvec{u} stackrel{?}{=} vec{u}$






                                                        share|cite|improve this answer












                                                        You could form the projection matrix, $P$ from matrix $A$:



                                                        $$P = A(A^TA)^{-1}A^T$$



                                                        If a vector $vec{x}$ is in the column space of $A$, then



                                                        $$Pvec{x} = vec{x}$$



                                                        i.e. the projection of $vec{x}$ unto the column space of $A$ keeps $vec{x}$ unchanged since $vec{x}$ was already in the column space.



                                                        $therefore$ check if
                                                        $Pvec{u} stackrel{?}{=} vec{u}$







                                                        share|cite|improve this answer












                                                        share|cite|improve this answer



                                                        share|cite|improve this answer










                                                        answered 2 days ago









                                                        KayKay

                                                        144




                                                        144






























                                                            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%2f1208475%2fhow-to-know-if-vector-is-in-column-space-of-a-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

                                                            Mario Kart Wii

                                                            What does “Dominus providebit” mean?

                                                            Antonio Litta Visconti Arese