Checking if a vector is in a subspace?












2












$begingroup$


I have



v1= $$
begin{pmatrix}
1 \
0 \
-1\
end{pmatrix}
$$



v2=
begin{pmatrix}
2 \
1 \
3\
end{pmatrix}

v3=begin{pmatrix}
4 \
2 \
6\
end{pmatrix}



and



w=begin{pmatrix}
3 \
1 \
2\
end{pmatrix}



I need to check whether w is in the subspace spanned by (v1,v2,v3)



I know that w is in the subspace spanned by (v1,v2,v3) if x1v1+x2v2+x3v3=w has a solution .



I write:



x1+2x2+4x3=3



x2+2x3=1



-x1+3x2+6x3=2



I write down the augmented matrix, which is



A= $$
begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6&2 \
end{pmatrix}
$$



And row reduce it to get



$$
begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
0 & 0 & 0&0 \
end{pmatrix}
$$



On the answer sheet is states:



since the dimension of the space of the columns of the augmented matrix coincides with the dimension of the space of the matrix coefficients, the system admits a non trivial solution and w exists in (v1,v2,v3)



I am new studying matrices and my dyscalculia certainly does not help. My question is, what is the dimension of the space of the columns of the augmented matrix? What is the dimension of the space of the matrix coefficient? How can i show that they are the same?



Moreover, can you show me an example where the space of the columns of the augmented matrix DOES NOT coincide with the dimension of the space of the matrix coefficients?



I would greatly appreciate an answer that is as clear and simple as possible ... thank you guys !










share|cite|improve this question









$endgroup$












  • $begingroup$
    This question, or something very, very similar to this one, was already asked a few days ago. My advice: form a $;4times 3;$ matrix with the given vectors as rows of this matrix, and $;w;$ the last row. Reduce by rows the matrix. Then $;w;$ belongs to the span of $;v_i;$ iff at some time during the reduction the fourth row becomes all zeros. BTW, I don't quite understand that answer from the answer sheet.
    $endgroup$
    – DonAntonio
    Dec 11 '18 at 16:22
















2












$begingroup$


I have



v1= $$
begin{pmatrix}
1 \
0 \
-1\
end{pmatrix}
$$



v2=
begin{pmatrix}
2 \
1 \
3\
end{pmatrix}

v3=begin{pmatrix}
4 \
2 \
6\
end{pmatrix}



and



w=begin{pmatrix}
3 \
1 \
2\
end{pmatrix}



I need to check whether w is in the subspace spanned by (v1,v2,v3)



I know that w is in the subspace spanned by (v1,v2,v3) if x1v1+x2v2+x3v3=w has a solution .



I write:



x1+2x2+4x3=3



x2+2x3=1



-x1+3x2+6x3=2



I write down the augmented matrix, which is



A= $$
begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6&2 \
end{pmatrix}
$$



And row reduce it to get



$$
begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
0 & 0 & 0&0 \
end{pmatrix}
$$



On the answer sheet is states:



since the dimension of the space of the columns of the augmented matrix coincides with the dimension of the space of the matrix coefficients, the system admits a non trivial solution and w exists in (v1,v2,v3)



I am new studying matrices and my dyscalculia certainly does not help. My question is, what is the dimension of the space of the columns of the augmented matrix? What is the dimension of the space of the matrix coefficient? How can i show that they are the same?



Moreover, can you show me an example where the space of the columns of the augmented matrix DOES NOT coincide with the dimension of the space of the matrix coefficients?



I would greatly appreciate an answer that is as clear and simple as possible ... thank you guys !










share|cite|improve this question









$endgroup$












  • $begingroup$
    This question, or something very, very similar to this one, was already asked a few days ago. My advice: form a $;4times 3;$ matrix with the given vectors as rows of this matrix, and $;w;$ the last row. Reduce by rows the matrix. Then $;w;$ belongs to the span of $;v_i;$ iff at some time during the reduction the fourth row becomes all zeros. BTW, I don't quite understand that answer from the answer sheet.
    $endgroup$
    – DonAntonio
    Dec 11 '18 at 16:22














2












2








2





$begingroup$


I have



v1= $$
begin{pmatrix}
1 \
0 \
-1\
end{pmatrix}
$$



v2=
begin{pmatrix}
2 \
1 \
3\
end{pmatrix}

v3=begin{pmatrix}
4 \
2 \
6\
end{pmatrix}



and



w=begin{pmatrix}
3 \
1 \
2\
end{pmatrix}



I need to check whether w is in the subspace spanned by (v1,v2,v3)



I know that w is in the subspace spanned by (v1,v2,v3) if x1v1+x2v2+x3v3=w has a solution .



I write:



x1+2x2+4x3=3



x2+2x3=1



-x1+3x2+6x3=2



I write down the augmented matrix, which is



A= $$
begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6&2 \
end{pmatrix}
$$



And row reduce it to get



$$
begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
0 & 0 & 0&0 \
end{pmatrix}
$$



On the answer sheet is states:



since the dimension of the space of the columns of the augmented matrix coincides with the dimension of the space of the matrix coefficients, the system admits a non trivial solution and w exists in (v1,v2,v3)



I am new studying matrices and my dyscalculia certainly does not help. My question is, what is the dimension of the space of the columns of the augmented matrix? What is the dimension of the space of the matrix coefficient? How can i show that they are the same?



Moreover, can you show me an example where the space of the columns of the augmented matrix DOES NOT coincide with the dimension of the space of the matrix coefficients?



I would greatly appreciate an answer that is as clear and simple as possible ... thank you guys !










share|cite|improve this question









$endgroup$




I have



v1= $$
begin{pmatrix}
1 \
0 \
-1\
end{pmatrix}
$$



v2=
begin{pmatrix}
2 \
1 \
3\
end{pmatrix}

v3=begin{pmatrix}
4 \
2 \
6\
end{pmatrix}



and



w=begin{pmatrix}
3 \
1 \
2\
end{pmatrix}



I need to check whether w is in the subspace spanned by (v1,v2,v3)



I know that w is in the subspace spanned by (v1,v2,v3) if x1v1+x2v2+x3v3=w has a solution .



I write:



x1+2x2+4x3=3



x2+2x3=1



-x1+3x2+6x3=2



I write down the augmented matrix, which is



A= $$
begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6&2 \
end{pmatrix}
$$



And row reduce it to get



$$
begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
0 & 0 & 0&0 \
end{pmatrix}
$$



On the answer sheet is states:



since the dimension of the space of the columns of the augmented matrix coincides with the dimension of the space of the matrix coefficients, the system admits a non trivial solution and w exists in (v1,v2,v3)



I am new studying matrices and my dyscalculia certainly does not help. My question is, what is the dimension of the space of the columns of the augmented matrix? What is the dimension of the space of the matrix coefficient? How can i show that they are the same?



Moreover, can you show me an example where the space of the columns of the augmented matrix DOES NOT coincide with the dimension of the space of the matrix coefficients?



I would greatly appreciate an answer that is as clear and simple as possible ... thank you guys !







linear-algebra matrices matrix-equations






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 11 '18 at 16:18









BM97BM97

758




758












  • $begingroup$
    This question, or something very, very similar to this one, was already asked a few days ago. My advice: form a $;4times 3;$ matrix with the given vectors as rows of this matrix, and $;w;$ the last row. Reduce by rows the matrix. Then $;w;$ belongs to the span of $;v_i;$ iff at some time during the reduction the fourth row becomes all zeros. BTW, I don't quite understand that answer from the answer sheet.
    $endgroup$
    – DonAntonio
    Dec 11 '18 at 16:22


















  • $begingroup$
    This question, or something very, very similar to this one, was already asked a few days ago. My advice: form a $;4times 3;$ matrix with the given vectors as rows of this matrix, and $;w;$ the last row. Reduce by rows the matrix. Then $;w;$ belongs to the span of $;v_i;$ iff at some time during the reduction the fourth row becomes all zeros. BTW, I don't quite understand that answer from the answer sheet.
    $endgroup$
    – DonAntonio
    Dec 11 '18 at 16:22
















$begingroup$
This question, or something very, very similar to this one, was already asked a few days ago. My advice: form a $;4times 3;$ matrix with the given vectors as rows of this matrix, and $;w;$ the last row. Reduce by rows the matrix. Then $;w;$ belongs to the span of $;v_i;$ iff at some time during the reduction the fourth row becomes all zeros. BTW, I don't quite understand that answer from the answer sheet.
$endgroup$
– DonAntonio
Dec 11 '18 at 16:22




$begingroup$
This question, or something very, very similar to this one, was already asked a few days ago. My advice: form a $;4times 3;$ matrix with the given vectors as rows of this matrix, and $;w;$ the last row. Reduce by rows the matrix. Then $;w;$ belongs to the span of $;v_i;$ iff at some time during the reduction the fourth row becomes all zeros. BTW, I don't quite understand that answer from the answer sheet.
$endgroup$
– DonAntonio
Dec 11 '18 at 16:22










2 Answers
2






active

oldest

votes


















0












$begingroup$

I was typing a more elaborate answer; perhaps this still helps.



You set up the matrix form of the linear system and by row reducing this matrix
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6&2 \
end{pmatrix}$$

you found:
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
0 & 0 & 0&0 \
end{pmatrix}$$

Although not necessary, you can further simplify this to the reduced row-echelon form by creating an extra zero above the $(2,2)$-element:
$$begin{pmatrix}
color{blue}{1} & 0 & color{orange}{0}&color{red}{1} \
0 & color{blue}{1} & color{orange}{2}&color{red}{1} \
0 & 0 & 0&0 \
end{pmatrix}$$

A bit of terminology and some useful observations:




  • The elements I highlighted in blue are called pivots and the first two columns are therefore pivot colums. The columns of the original matrix corresponding to the pivot columns (in this example the first two), are linearly independent. The number of pivots thus corresponds to the number of linearly independent columns (of the original matrix!).

  • In your example, the first two columns are pivot columns and therefore the first two columns of the original matrix are linearly independent; the other two are not and can be written as linear combinations of the first two.

  • An advantage of the reduced row-echelon form is that you can immediately deduce the linear combinations required to form the other columns; highlighted in orange ("the third column is two times the second column") and red ("the fourth column is the sum of the first and second columns"); verify this for the original matrix!

  • Because the last column is not a pivot column, the dimension of the columns of the coefficient matrix (the first three columns) is the same as the dimension of the columns of the augmented matrix (all columns). This is sufficient to conclude that the last column is in the space spanned by the other columns, but by the observations from above we already had the specific linear combination too!



Moreover, can you show me an example where the space of the columns of the augmented matrix DOES NOT coincide with the dimension of the space of the matrix coefficients?




Changing the vector $w$ from $(3,1,2)^T$ to $(3,1,1)^T$ would correspond to the matrix:
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6& 1 \
end{pmatrix}$$

with reduced row-echelon form:
$$begin{pmatrix}
color{blue}{1} & 0 & 0&0 \
0 & color{blue}{1} & 2&0 \
0 & 0 & 0&color{red}{1} \
end{pmatrix}$$

Notice the extra pivot (highlighted in red), making the last column a pivot column too:




  • the dimension of the space spanned by the first three columns (corresponding to the coefficient matrix) is 2, but:

  • the dimension of the space spanned by all columns (corresponding to the augmented matrix) is now 3; thus different and $w$ is not in the space spanned by the other columns.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    THANKYOU THANKYOU THANKYOU THANKYOU ! WOW
    $endgroup$
    – BM97
    Dec 11 '18 at 16:55










  • $begingroup$
    You're welcome; I'm glad it helps!
    $endgroup$
    – StackTD
    Dec 11 '18 at 16:57










  • $begingroup$
    May i ask you one last question ? So this is what i understood very briefly : i can see in the augmented matrix that the first two columns are pivot columns, thus it is fair to say that they they are linearly independent, which implies that the dimension of the space of the columns of the augmented matrix is 2. Is this right?
    $endgroup$
    – BM97
    Dec 11 '18 at 17:03










  • $begingroup$
    Right; in your example this (first two are pivots, the others aren't) conclusion is true for the coefficient and the augmented matrix, so the dimension of the spanned space is 2 in both cases.
    $endgroup$
    – StackTD
    Dec 11 '18 at 17:06










  • $begingroup$
    Morover, to see the dimension of the space of the matrix coefficients,which is 2, can i simply state that column 3 of the coefficient matrix is linearly dependent to columnn 2 of the coefficient matrix, implying that there are only two linearly independent columns, thus dimension 2 ?
    $endgroup$
    – BM97
    Dec 11 '18 at 17:07



















1












$begingroup$

The dimension of the space of columns of a matrix is the maximal number of column vectors that are linearly independent.



In your example, both dimensions are $2$, as the last two columns can be written as a linear combination of the first two columns.



An example where the dimensions are not equal can be given by
$$begin{cases}
x_1=0\ x_1=1
end{cases}.$$

The augmented matrix is
$$begin{pmatrix}1 & 0 \ 1 & 1 end{pmatrix}.$$
The dimension of the space of columns of the coefficient matrix is $1$, while that of the augmented matrix is $2$.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks ! One last question , the dimension fo the space of columns of a matrix is 2 and i got it. I didn't quite understand how the dimension of the space of the matrix coefficients is 2 ? thanks for the patience, really .
    $endgroup$
    – BM97
    Dec 11 '18 at 16:39






  • 1




    $begingroup$
    The 3rd column is twice the second, hence it is not linearly independent of the first two columns.
    $endgroup$
    – Bernard
    Dec 11 '18 at 16:44











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%2f3035454%2fchecking-if-a-vector-is-in-a-subspace%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0












$begingroup$

I was typing a more elaborate answer; perhaps this still helps.



You set up the matrix form of the linear system and by row reducing this matrix
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6&2 \
end{pmatrix}$$

you found:
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
0 & 0 & 0&0 \
end{pmatrix}$$

Although not necessary, you can further simplify this to the reduced row-echelon form by creating an extra zero above the $(2,2)$-element:
$$begin{pmatrix}
color{blue}{1} & 0 & color{orange}{0}&color{red}{1} \
0 & color{blue}{1} & color{orange}{2}&color{red}{1} \
0 & 0 & 0&0 \
end{pmatrix}$$

A bit of terminology and some useful observations:




  • The elements I highlighted in blue are called pivots and the first two columns are therefore pivot colums. The columns of the original matrix corresponding to the pivot columns (in this example the first two), are linearly independent. The number of pivots thus corresponds to the number of linearly independent columns (of the original matrix!).

  • In your example, the first two columns are pivot columns and therefore the first two columns of the original matrix are linearly independent; the other two are not and can be written as linear combinations of the first two.

  • An advantage of the reduced row-echelon form is that you can immediately deduce the linear combinations required to form the other columns; highlighted in orange ("the third column is two times the second column") and red ("the fourth column is the sum of the first and second columns"); verify this for the original matrix!

  • Because the last column is not a pivot column, the dimension of the columns of the coefficient matrix (the first three columns) is the same as the dimension of the columns of the augmented matrix (all columns). This is sufficient to conclude that the last column is in the space spanned by the other columns, but by the observations from above we already had the specific linear combination too!



Moreover, can you show me an example where the space of the columns of the augmented matrix DOES NOT coincide with the dimension of the space of the matrix coefficients?




Changing the vector $w$ from $(3,1,2)^T$ to $(3,1,1)^T$ would correspond to the matrix:
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6& 1 \
end{pmatrix}$$

with reduced row-echelon form:
$$begin{pmatrix}
color{blue}{1} & 0 & 0&0 \
0 & color{blue}{1} & 2&0 \
0 & 0 & 0&color{red}{1} \
end{pmatrix}$$

Notice the extra pivot (highlighted in red), making the last column a pivot column too:




  • the dimension of the space spanned by the first three columns (corresponding to the coefficient matrix) is 2, but:

  • the dimension of the space spanned by all columns (corresponding to the augmented matrix) is now 3; thus different and $w$ is not in the space spanned by the other columns.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    THANKYOU THANKYOU THANKYOU THANKYOU ! WOW
    $endgroup$
    – BM97
    Dec 11 '18 at 16:55










  • $begingroup$
    You're welcome; I'm glad it helps!
    $endgroup$
    – StackTD
    Dec 11 '18 at 16:57










  • $begingroup$
    May i ask you one last question ? So this is what i understood very briefly : i can see in the augmented matrix that the first two columns are pivot columns, thus it is fair to say that they they are linearly independent, which implies that the dimension of the space of the columns of the augmented matrix is 2. Is this right?
    $endgroup$
    – BM97
    Dec 11 '18 at 17:03










  • $begingroup$
    Right; in your example this (first two are pivots, the others aren't) conclusion is true for the coefficient and the augmented matrix, so the dimension of the spanned space is 2 in both cases.
    $endgroup$
    – StackTD
    Dec 11 '18 at 17:06










  • $begingroup$
    Morover, to see the dimension of the space of the matrix coefficients,which is 2, can i simply state that column 3 of the coefficient matrix is linearly dependent to columnn 2 of the coefficient matrix, implying that there are only two linearly independent columns, thus dimension 2 ?
    $endgroup$
    – BM97
    Dec 11 '18 at 17:07
















0












$begingroup$

I was typing a more elaborate answer; perhaps this still helps.



You set up the matrix form of the linear system and by row reducing this matrix
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6&2 \
end{pmatrix}$$

you found:
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
0 & 0 & 0&0 \
end{pmatrix}$$

Although not necessary, you can further simplify this to the reduced row-echelon form by creating an extra zero above the $(2,2)$-element:
$$begin{pmatrix}
color{blue}{1} & 0 & color{orange}{0}&color{red}{1} \
0 & color{blue}{1} & color{orange}{2}&color{red}{1} \
0 & 0 & 0&0 \
end{pmatrix}$$

A bit of terminology and some useful observations:




  • The elements I highlighted in blue are called pivots and the first two columns are therefore pivot colums. The columns of the original matrix corresponding to the pivot columns (in this example the first two), are linearly independent. The number of pivots thus corresponds to the number of linearly independent columns (of the original matrix!).

  • In your example, the first two columns are pivot columns and therefore the first two columns of the original matrix are linearly independent; the other two are not and can be written as linear combinations of the first two.

  • An advantage of the reduced row-echelon form is that you can immediately deduce the linear combinations required to form the other columns; highlighted in orange ("the third column is two times the second column") and red ("the fourth column is the sum of the first and second columns"); verify this for the original matrix!

  • Because the last column is not a pivot column, the dimension of the columns of the coefficient matrix (the first three columns) is the same as the dimension of the columns of the augmented matrix (all columns). This is sufficient to conclude that the last column is in the space spanned by the other columns, but by the observations from above we already had the specific linear combination too!



Moreover, can you show me an example where the space of the columns of the augmented matrix DOES NOT coincide with the dimension of the space of the matrix coefficients?




Changing the vector $w$ from $(3,1,2)^T$ to $(3,1,1)^T$ would correspond to the matrix:
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6& 1 \
end{pmatrix}$$

with reduced row-echelon form:
$$begin{pmatrix}
color{blue}{1} & 0 & 0&0 \
0 & color{blue}{1} & 2&0 \
0 & 0 & 0&color{red}{1} \
end{pmatrix}$$

Notice the extra pivot (highlighted in red), making the last column a pivot column too:




  • the dimension of the space spanned by the first three columns (corresponding to the coefficient matrix) is 2, but:

  • the dimension of the space spanned by all columns (corresponding to the augmented matrix) is now 3; thus different and $w$ is not in the space spanned by the other columns.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    THANKYOU THANKYOU THANKYOU THANKYOU ! WOW
    $endgroup$
    – BM97
    Dec 11 '18 at 16:55










  • $begingroup$
    You're welcome; I'm glad it helps!
    $endgroup$
    – StackTD
    Dec 11 '18 at 16:57










  • $begingroup$
    May i ask you one last question ? So this is what i understood very briefly : i can see in the augmented matrix that the first two columns are pivot columns, thus it is fair to say that they they are linearly independent, which implies that the dimension of the space of the columns of the augmented matrix is 2. Is this right?
    $endgroup$
    – BM97
    Dec 11 '18 at 17:03










  • $begingroup$
    Right; in your example this (first two are pivots, the others aren't) conclusion is true for the coefficient and the augmented matrix, so the dimension of the spanned space is 2 in both cases.
    $endgroup$
    – StackTD
    Dec 11 '18 at 17:06










  • $begingroup$
    Morover, to see the dimension of the space of the matrix coefficients,which is 2, can i simply state that column 3 of the coefficient matrix is linearly dependent to columnn 2 of the coefficient matrix, implying that there are only two linearly independent columns, thus dimension 2 ?
    $endgroup$
    – BM97
    Dec 11 '18 at 17:07














0












0








0





$begingroup$

I was typing a more elaborate answer; perhaps this still helps.



You set up the matrix form of the linear system and by row reducing this matrix
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6&2 \
end{pmatrix}$$

you found:
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
0 & 0 & 0&0 \
end{pmatrix}$$

Although not necessary, you can further simplify this to the reduced row-echelon form by creating an extra zero above the $(2,2)$-element:
$$begin{pmatrix}
color{blue}{1} & 0 & color{orange}{0}&color{red}{1} \
0 & color{blue}{1} & color{orange}{2}&color{red}{1} \
0 & 0 & 0&0 \
end{pmatrix}$$

A bit of terminology and some useful observations:




  • The elements I highlighted in blue are called pivots and the first two columns are therefore pivot colums. The columns of the original matrix corresponding to the pivot columns (in this example the first two), are linearly independent. The number of pivots thus corresponds to the number of linearly independent columns (of the original matrix!).

  • In your example, the first two columns are pivot columns and therefore the first two columns of the original matrix are linearly independent; the other two are not and can be written as linear combinations of the first two.

  • An advantage of the reduced row-echelon form is that you can immediately deduce the linear combinations required to form the other columns; highlighted in orange ("the third column is two times the second column") and red ("the fourth column is the sum of the first and second columns"); verify this for the original matrix!

  • Because the last column is not a pivot column, the dimension of the columns of the coefficient matrix (the first three columns) is the same as the dimension of the columns of the augmented matrix (all columns). This is sufficient to conclude that the last column is in the space spanned by the other columns, but by the observations from above we already had the specific linear combination too!



Moreover, can you show me an example where the space of the columns of the augmented matrix DOES NOT coincide with the dimension of the space of the matrix coefficients?




Changing the vector $w$ from $(3,1,2)^T$ to $(3,1,1)^T$ would correspond to the matrix:
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6& 1 \
end{pmatrix}$$

with reduced row-echelon form:
$$begin{pmatrix}
color{blue}{1} & 0 & 0&0 \
0 & color{blue}{1} & 2&0 \
0 & 0 & 0&color{red}{1} \
end{pmatrix}$$

Notice the extra pivot (highlighted in red), making the last column a pivot column too:




  • the dimension of the space spanned by the first three columns (corresponding to the coefficient matrix) is 2, but:

  • the dimension of the space spanned by all columns (corresponding to the augmented matrix) is now 3; thus different and $w$ is not in the space spanned by the other columns.






share|cite|improve this answer









$endgroup$



I was typing a more elaborate answer; perhaps this still helps.



You set up the matrix form of the linear system and by row reducing this matrix
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6&2 \
end{pmatrix}$$

you found:
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
0 & 0 & 0&0 \
end{pmatrix}$$

Although not necessary, you can further simplify this to the reduced row-echelon form by creating an extra zero above the $(2,2)$-element:
$$begin{pmatrix}
color{blue}{1} & 0 & color{orange}{0}&color{red}{1} \
0 & color{blue}{1} & color{orange}{2}&color{red}{1} \
0 & 0 & 0&0 \
end{pmatrix}$$

A bit of terminology and some useful observations:




  • The elements I highlighted in blue are called pivots and the first two columns are therefore pivot colums. The columns of the original matrix corresponding to the pivot columns (in this example the first two), are linearly independent. The number of pivots thus corresponds to the number of linearly independent columns (of the original matrix!).

  • In your example, the first two columns are pivot columns and therefore the first two columns of the original matrix are linearly independent; the other two are not and can be written as linear combinations of the first two.

  • An advantage of the reduced row-echelon form is that you can immediately deduce the linear combinations required to form the other columns; highlighted in orange ("the third column is two times the second column") and red ("the fourth column is the sum of the first and second columns"); verify this for the original matrix!

  • Because the last column is not a pivot column, the dimension of the columns of the coefficient matrix (the first three columns) is the same as the dimension of the columns of the augmented matrix (all columns). This is sufficient to conclude that the last column is in the space spanned by the other columns, but by the observations from above we already had the specific linear combination too!



Moreover, can you show me an example where the space of the columns of the augmented matrix DOES NOT coincide with the dimension of the space of the matrix coefficients?




Changing the vector $w$ from $(3,1,2)^T$ to $(3,1,1)^T$ would correspond to the matrix:
$$begin{pmatrix}
1 & 2 & 4&3 \
0 & 1 & 2&1 \
-1 & 3 & 6& 1 \
end{pmatrix}$$

with reduced row-echelon form:
$$begin{pmatrix}
color{blue}{1} & 0 & 0&0 \
0 & color{blue}{1} & 2&0 \
0 & 0 & 0&color{red}{1} \
end{pmatrix}$$

Notice the extra pivot (highlighted in red), making the last column a pivot column too:




  • the dimension of the space spanned by the first three columns (corresponding to the coefficient matrix) is 2, but:

  • the dimension of the space spanned by all columns (corresponding to the augmented matrix) is now 3; thus different and $w$ is not in the space spanned by the other columns.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Dec 11 '18 at 16:45









StackTDStackTD

22.6k2050




22.6k2050












  • $begingroup$
    THANKYOU THANKYOU THANKYOU THANKYOU ! WOW
    $endgroup$
    – BM97
    Dec 11 '18 at 16:55










  • $begingroup$
    You're welcome; I'm glad it helps!
    $endgroup$
    – StackTD
    Dec 11 '18 at 16:57










  • $begingroup$
    May i ask you one last question ? So this is what i understood very briefly : i can see in the augmented matrix that the first two columns are pivot columns, thus it is fair to say that they they are linearly independent, which implies that the dimension of the space of the columns of the augmented matrix is 2. Is this right?
    $endgroup$
    – BM97
    Dec 11 '18 at 17:03










  • $begingroup$
    Right; in your example this (first two are pivots, the others aren't) conclusion is true for the coefficient and the augmented matrix, so the dimension of the spanned space is 2 in both cases.
    $endgroup$
    – StackTD
    Dec 11 '18 at 17:06










  • $begingroup$
    Morover, to see the dimension of the space of the matrix coefficients,which is 2, can i simply state that column 3 of the coefficient matrix is linearly dependent to columnn 2 of the coefficient matrix, implying that there are only two linearly independent columns, thus dimension 2 ?
    $endgroup$
    – BM97
    Dec 11 '18 at 17:07


















  • $begingroup$
    THANKYOU THANKYOU THANKYOU THANKYOU ! WOW
    $endgroup$
    – BM97
    Dec 11 '18 at 16:55










  • $begingroup$
    You're welcome; I'm glad it helps!
    $endgroup$
    – StackTD
    Dec 11 '18 at 16:57










  • $begingroup$
    May i ask you one last question ? So this is what i understood very briefly : i can see in the augmented matrix that the first two columns are pivot columns, thus it is fair to say that they they are linearly independent, which implies that the dimension of the space of the columns of the augmented matrix is 2. Is this right?
    $endgroup$
    – BM97
    Dec 11 '18 at 17:03










  • $begingroup$
    Right; in your example this (first two are pivots, the others aren't) conclusion is true for the coefficient and the augmented matrix, so the dimension of the spanned space is 2 in both cases.
    $endgroup$
    – StackTD
    Dec 11 '18 at 17:06










  • $begingroup$
    Morover, to see the dimension of the space of the matrix coefficients,which is 2, can i simply state that column 3 of the coefficient matrix is linearly dependent to columnn 2 of the coefficient matrix, implying that there are only two linearly independent columns, thus dimension 2 ?
    $endgroup$
    – BM97
    Dec 11 '18 at 17:07
















$begingroup$
THANKYOU THANKYOU THANKYOU THANKYOU ! WOW
$endgroup$
– BM97
Dec 11 '18 at 16:55




$begingroup$
THANKYOU THANKYOU THANKYOU THANKYOU ! WOW
$endgroup$
– BM97
Dec 11 '18 at 16:55












$begingroup$
You're welcome; I'm glad it helps!
$endgroup$
– StackTD
Dec 11 '18 at 16:57




$begingroup$
You're welcome; I'm glad it helps!
$endgroup$
– StackTD
Dec 11 '18 at 16:57












$begingroup$
May i ask you one last question ? So this is what i understood very briefly : i can see in the augmented matrix that the first two columns are pivot columns, thus it is fair to say that they they are linearly independent, which implies that the dimension of the space of the columns of the augmented matrix is 2. Is this right?
$endgroup$
– BM97
Dec 11 '18 at 17:03




$begingroup$
May i ask you one last question ? So this is what i understood very briefly : i can see in the augmented matrix that the first two columns are pivot columns, thus it is fair to say that they they are linearly independent, which implies that the dimension of the space of the columns of the augmented matrix is 2. Is this right?
$endgroup$
– BM97
Dec 11 '18 at 17:03












$begingroup$
Right; in your example this (first two are pivots, the others aren't) conclusion is true for the coefficient and the augmented matrix, so the dimension of the spanned space is 2 in both cases.
$endgroup$
– StackTD
Dec 11 '18 at 17:06




$begingroup$
Right; in your example this (first two are pivots, the others aren't) conclusion is true for the coefficient and the augmented matrix, so the dimension of the spanned space is 2 in both cases.
$endgroup$
– StackTD
Dec 11 '18 at 17:06












$begingroup$
Morover, to see the dimension of the space of the matrix coefficients,which is 2, can i simply state that column 3 of the coefficient matrix is linearly dependent to columnn 2 of the coefficient matrix, implying that there are only two linearly independent columns, thus dimension 2 ?
$endgroup$
– BM97
Dec 11 '18 at 17:07




$begingroup$
Morover, to see the dimension of the space of the matrix coefficients,which is 2, can i simply state that column 3 of the coefficient matrix is linearly dependent to columnn 2 of the coefficient matrix, implying that there are only two linearly independent columns, thus dimension 2 ?
$endgroup$
– BM97
Dec 11 '18 at 17:07











1












$begingroup$

The dimension of the space of columns of a matrix is the maximal number of column vectors that are linearly independent.



In your example, both dimensions are $2$, as the last two columns can be written as a linear combination of the first two columns.



An example where the dimensions are not equal can be given by
$$begin{cases}
x_1=0\ x_1=1
end{cases}.$$

The augmented matrix is
$$begin{pmatrix}1 & 0 \ 1 & 1 end{pmatrix}.$$
The dimension of the space of columns of the coefficient matrix is $1$, while that of the augmented matrix is $2$.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks ! One last question , the dimension fo the space of columns of a matrix is 2 and i got it. I didn't quite understand how the dimension of the space of the matrix coefficients is 2 ? thanks for the patience, really .
    $endgroup$
    – BM97
    Dec 11 '18 at 16:39






  • 1




    $begingroup$
    The 3rd column is twice the second, hence it is not linearly independent of the first two columns.
    $endgroup$
    – Bernard
    Dec 11 '18 at 16:44
















1












$begingroup$

The dimension of the space of columns of a matrix is the maximal number of column vectors that are linearly independent.



In your example, both dimensions are $2$, as the last two columns can be written as a linear combination of the first two columns.



An example where the dimensions are not equal can be given by
$$begin{cases}
x_1=0\ x_1=1
end{cases}.$$

The augmented matrix is
$$begin{pmatrix}1 & 0 \ 1 & 1 end{pmatrix}.$$
The dimension of the space of columns of the coefficient matrix is $1$, while that of the augmented matrix is $2$.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Thanks ! One last question , the dimension fo the space of columns of a matrix is 2 and i got it. I didn't quite understand how the dimension of the space of the matrix coefficients is 2 ? thanks for the patience, really .
    $endgroup$
    – BM97
    Dec 11 '18 at 16:39






  • 1




    $begingroup$
    The 3rd column is twice the second, hence it is not linearly independent of the first two columns.
    $endgroup$
    – Bernard
    Dec 11 '18 at 16:44














1












1








1





$begingroup$

The dimension of the space of columns of a matrix is the maximal number of column vectors that are linearly independent.



In your example, both dimensions are $2$, as the last two columns can be written as a linear combination of the first two columns.



An example where the dimensions are not equal can be given by
$$begin{cases}
x_1=0\ x_1=1
end{cases}.$$

The augmented matrix is
$$begin{pmatrix}1 & 0 \ 1 & 1 end{pmatrix}.$$
The dimension of the space of columns of the coefficient matrix is $1$, while that of the augmented matrix is $2$.






share|cite|improve this answer









$endgroup$



The dimension of the space of columns of a matrix is the maximal number of column vectors that are linearly independent.



In your example, both dimensions are $2$, as the last two columns can be written as a linear combination of the first two columns.



An example where the dimensions are not equal can be given by
$$begin{cases}
x_1=0\ x_1=1
end{cases}.$$

The augmented matrix is
$$begin{pmatrix}1 & 0 \ 1 & 1 end{pmatrix}.$$
The dimension of the space of columns of the coefficient matrix is $1$, while that of the augmented matrix is $2$.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Dec 11 '18 at 16:25









Eclipse SunEclipse Sun

7,3941437




7,3941437












  • $begingroup$
    Thanks ! One last question , the dimension fo the space of columns of a matrix is 2 and i got it. I didn't quite understand how the dimension of the space of the matrix coefficients is 2 ? thanks for the patience, really .
    $endgroup$
    – BM97
    Dec 11 '18 at 16:39






  • 1




    $begingroup$
    The 3rd column is twice the second, hence it is not linearly independent of the first two columns.
    $endgroup$
    – Bernard
    Dec 11 '18 at 16:44


















  • $begingroup$
    Thanks ! One last question , the dimension fo the space of columns of a matrix is 2 and i got it. I didn't quite understand how the dimension of the space of the matrix coefficients is 2 ? thanks for the patience, really .
    $endgroup$
    – BM97
    Dec 11 '18 at 16:39






  • 1




    $begingroup$
    The 3rd column is twice the second, hence it is not linearly independent of the first two columns.
    $endgroup$
    – Bernard
    Dec 11 '18 at 16:44
















$begingroup$
Thanks ! One last question , the dimension fo the space of columns of a matrix is 2 and i got it. I didn't quite understand how the dimension of the space of the matrix coefficients is 2 ? thanks for the patience, really .
$endgroup$
– BM97
Dec 11 '18 at 16:39




$begingroup$
Thanks ! One last question , the dimension fo the space of columns of a matrix is 2 and i got it. I didn't quite understand how the dimension of the space of the matrix coefficients is 2 ? thanks for the patience, really .
$endgroup$
– BM97
Dec 11 '18 at 16:39




1




1




$begingroup$
The 3rd column is twice the second, hence it is not linearly independent of the first two columns.
$endgroup$
– Bernard
Dec 11 '18 at 16:44




$begingroup$
The 3rd column is twice the second, hence it is not linearly independent of the first two columns.
$endgroup$
– Bernard
Dec 11 '18 at 16:44


















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%2f3035454%2fchecking-if-a-vector-is-in-a-subspace%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

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei