Why does a $2×3$ matrix multiplied by a vector in $BbbR^3$ give a vector in $BbbR^2$?Change of Basis ConfusionVariations in math to implement three-dimensional space?Transforming coordinate system vs objectsCan an $ntimes n$ matrix be reduced to a smaller matrix in any sense?What do groups and rings “look like”?Overview of Linear AlgebraZero subspace as solution spaceChange of basis formula - intuition/is this true?Expressing a matrix subspace as the image of a matrixLinear Algebra:Vector Space

Email Account under attack (really) - anything I can do?

Shall I use personal or official e-mail account when registering to external websites for work purpose?

How can I fix this gap between bookcases I made?

Where to refill my bottle in India?

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

Was there ever an axiom rendered a theorem?

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

New order #4: World

"My colleague's body is amazing"

Lied on resume at previous job

Does it makes sense to buy a new cycle to learn riding?

Domain expired, GoDaddy holds it and is asking more money

Does the average primeness of natural numbers tend to zero?

What to wear for invited talk in Canada

How can I plot a Farey diagram?

Can I legally use front facing blue light in the UK?

Is "plugging out" electronic devices an American expression?

Why was the "bread communication" in the arena of Catching Fire left out in the movie?

A poker game description that does not feel gimmicky

Is there a familial term for apples and pears?

Re-submission of rejected manuscript without informing co-authors

Is Social Media Science Fiction?

Can I find out the caloric content of bread by dehydrating it?

Extreme, but not acceptable situation and I can't start the work tomorrow morning



Why does a $2×3$ matrix multiplied by a vector in $BbbR^3$ give a vector in $BbbR^2$?


Change of Basis ConfusionVariations in math to implement three-dimensional space?Transforming coordinate system vs objectsCan an $ntimes n$ matrix be reduced to a smaller matrix in any sense?What do groups and rings “look like”?Overview of Linear AlgebraZero subspace as solution spaceChange of basis formula - intuition/is this true?Expressing a matrix subspace as the image of a matrixLinear Algebra:Vector Space













7












$begingroup$


I'm so confused on how we can have a 2x3 matrix A, multiply it by a vector in $Bbb R^3$ and then end up with a vector in $Bbb R^2$. Is it possible to visualize this at all or do I need to sort of blindly accept this concept as facts that I'll accept and use?
Can someone give a very brief summarization on why this makes sense? Because I just see it as, in a world (dimension) in $Bbb R^3$, we multiply it by a vector in $Bbb R^3$, and out pops a vector in $Bbb R^2$.



Thanks!










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    maybe think of multiplying a matrix by a vector as a special case of multiplying a matrix by a matrix
    $endgroup$
    – J. W. Tanner
    yesterday










  • $begingroup$
    Is it the definition of matrix multiplication that gives you trouble? Have you tried doing a multiplication and seeing what you get? Do you understand that we can have a function like $f(x,y,z)=(x-2y+z, 2x+4y-z)$ which maps $mathbb R^3$ to $mathbb R^2$?
    $endgroup$
    – John Douma
    yesterday











  • $begingroup$
    I think it's just visualizing it that gives me trouble. Like simple vector addition, I can easily say, oh ok just add the $x_1$ unit to the other $x_1$ unit and it stretches towards $x_1$'s side! But in this case, just multiplying a vector by something in one dimension and getting a vector in another dimensions just confuses me. And I do know we can have a function like that, it's just intuitively I guess I don't really understand it
    $endgroup$
    – ming
    yesterday










  • $begingroup$
    If you think of vectors in $mathbb R^3$ as being three components in the $hat i$, $hat j$ and $hat k$ directions then you can think of the matrix as mapping $hat i$ to the first column vector, $hat j$ to the second column and $hat k$ to the third column. Since each of the column vectors are in two dimensions we end up with a vector in two dimensions.
    $endgroup$
    – John Douma
    16 hours ago










  • $begingroup$
    Ohh.. ok thank you!
    $endgroup$
    – ming
    7 hours ago
















7












$begingroup$


I'm so confused on how we can have a 2x3 matrix A, multiply it by a vector in $Bbb R^3$ and then end up with a vector in $Bbb R^2$. Is it possible to visualize this at all or do I need to sort of blindly accept this concept as facts that I'll accept and use?
Can someone give a very brief summarization on why this makes sense? Because I just see it as, in a world (dimension) in $Bbb R^3$, we multiply it by a vector in $Bbb R^3$, and out pops a vector in $Bbb R^2$.



Thanks!










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    maybe think of multiplying a matrix by a vector as a special case of multiplying a matrix by a matrix
    $endgroup$
    – J. W. Tanner
    yesterday










  • $begingroup$
    Is it the definition of matrix multiplication that gives you trouble? Have you tried doing a multiplication and seeing what you get? Do you understand that we can have a function like $f(x,y,z)=(x-2y+z, 2x+4y-z)$ which maps $mathbb R^3$ to $mathbb R^2$?
    $endgroup$
    – John Douma
    yesterday











  • $begingroup$
    I think it's just visualizing it that gives me trouble. Like simple vector addition, I can easily say, oh ok just add the $x_1$ unit to the other $x_1$ unit and it stretches towards $x_1$'s side! But in this case, just multiplying a vector by something in one dimension and getting a vector in another dimensions just confuses me. And I do know we can have a function like that, it's just intuitively I guess I don't really understand it
    $endgroup$
    – ming
    yesterday










  • $begingroup$
    If you think of vectors in $mathbb R^3$ as being three components in the $hat i$, $hat j$ and $hat k$ directions then you can think of the matrix as mapping $hat i$ to the first column vector, $hat j$ to the second column and $hat k$ to the third column. Since each of the column vectors are in two dimensions we end up with a vector in two dimensions.
    $endgroup$
    – John Douma
    16 hours ago










  • $begingroup$
    Ohh.. ok thank you!
    $endgroup$
    – ming
    7 hours ago














7












7








7





$begingroup$


I'm so confused on how we can have a 2x3 matrix A, multiply it by a vector in $Bbb R^3$ and then end up with a vector in $Bbb R^2$. Is it possible to visualize this at all or do I need to sort of blindly accept this concept as facts that I'll accept and use?
Can someone give a very brief summarization on why this makes sense? Because I just see it as, in a world (dimension) in $Bbb R^3$, we multiply it by a vector in $Bbb R^3$, and out pops a vector in $Bbb R^2$.



Thanks!










share|cite|improve this question











$endgroup$




I'm so confused on how we can have a 2x3 matrix A, multiply it by a vector in $Bbb R^3$ and then end up with a vector in $Bbb R^2$. Is it possible to visualize this at all or do I need to sort of blindly accept this concept as facts that I'll accept and use?
Can someone give a very brief summarization on why this makes sense? Because I just see it as, in a world (dimension) in $Bbb R^3$, we multiply it by a vector in $Bbb R^3$, and out pops a vector in $Bbb R^2$.



Thanks!







linear-algebra matrices vector-spaces vectors






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited yesterday









user21820

40.1k544162




40.1k544162










asked yesterday









mingming

4486




4486







  • 1




    $begingroup$
    maybe think of multiplying a matrix by a vector as a special case of multiplying a matrix by a matrix
    $endgroup$
    – J. W. Tanner
    yesterday










  • $begingroup$
    Is it the definition of matrix multiplication that gives you trouble? Have you tried doing a multiplication and seeing what you get? Do you understand that we can have a function like $f(x,y,z)=(x-2y+z, 2x+4y-z)$ which maps $mathbb R^3$ to $mathbb R^2$?
    $endgroup$
    – John Douma
    yesterday











  • $begingroup$
    I think it's just visualizing it that gives me trouble. Like simple vector addition, I can easily say, oh ok just add the $x_1$ unit to the other $x_1$ unit and it stretches towards $x_1$'s side! But in this case, just multiplying a vector by something in one dimension and getting a vector in another dimensions just confuses me. And I do know we can have a function like that, it's just intuitively I guess I don't really understand it
    $endgroup$
    – ming
    yesterday










  • $begingroup$
    If you think of vectors in $mathbb R^3$ as being three components in the $hat i$, $hat j$ and $hat k$ directions then you can think of the matrix as mapping $hat i$ to the first column vector, $hat j$ to the second column and $hat k$ to the third column. Since each of the column vectors are in two dimensions we end up with a vector in two dimensions.
    $endgroup$
    – John Douma
    16 hours ago










  • $begingroup$
    Ohh.. ok thank you!
    $endgroup$
    – ming
    7 hours ago













  • 1




    $begingroup$
    maybe think of multiplying a matrix by a vector as a special case of multiplying a matrix by a matrix
    $endgroup$
    – J. W. Tanner
    yesterday










  • $begingroup$
    Is it the definition of matrix multiplication that gives you trouble? Have you tried doing a multiplication and seeing what you get? Do you understand that we can have a function like $f(x,y,z)=(x-2y+z, 2x+4y-z)$ which maps $mathbb R^3$ to $mathbb R^2$?
    $endgroup$
    – John Douma
    yesterday











  • $begingroup$
    I think it's just visualizing it that gives me trouble. Like simple vector addition, I can easily say, oh ok just add the $x_1$ unit to the other $x_1$ unit and it stretches towards $x_1$'s side! But in this case, just multiplying a vector by something in one dimension and getting a vector in another dimensions just confuses me. And I do know we can have a function like that, it's just intuitively I guess I don't really understand it
    $endgroup$
    – ming
    yesterday










  • $begingroup$
    If you think of vectors in $mathbb R^3$ as being three components in the $hat i$, $hat j$ and $hat k$ directions then you can think of the matrix as mapping $hat i$ to the first column vector, $hat j$ to the second column and $hat k$ to the third column. Since each of the column vectors are in two dimensions we end up with a vector in two dimensions.
    $endgroup$
    – John Douma
    16 hours ago










  • $begingroup$
    Ohh.. ok thank you!
    $endgroup$
    – ming
    7 hours ago








1




1




$begingroup$
maybe think of multiplying a matrix by a vector as a special case of multiplying a matrix by a matrix
$endgroup$
– J. W. Tanner
yesterday




$begingroup$
maybe think of multiplying a matrix by a vector as a special case of multiplying a matrix by a matrix
$endgroup$
– J. W. Tanner
yesterday












$begingroup$
Is it the definition of matrix multiplication that gives you trouble? Have you tried doing a multiplication and seeing what you get? Do you understand that we can have a function like $f(x,y,z)=(x-2y+z, 2x+4y-z)$ which maps $mathbb R^3$ to $mathbb R^2$?
$endgroup$
– John Douma
yesterday





$begingroup$
Is it the definition of matrix multiplication that gives you trouble? Have you tried doing a multiplication and seeing what you get? Do you understand that we can have a function like $f(x,y,z)=(x-2y+z, 2x+4y-z)$ which maps $mathbb R^3$ to $mathbb R^2$?
$endgroup$
– John Douma
yesterday













$begingroup$
I think it's just visualizing it that gives me trouble. Like simple vector addition, I can easily say, oh ok just add the $x_1$ unit to the other $x_1$ unit and it stretches towards $x_1$'s side! But in this case, just multiplying a vector by something in one dimension and getting a vector in another dimensions just confuses me. And I do know we can have a function like that, it's just intuitively I guess I don't really understand it
$endgroup$
– ming
yesterday




$begingroup$
I think it's just visualizing it that gives me trouble. Like simple vector addition, I can easily say, oh ok just add the $x_1$ unit to the other $x_1$ unit and it stretches towards $x_1$'s side! But in this case, just multiplying a vector by something in one dimension and getting a vector in another dimensions just confuses me. And I do know we can have a function like that, it's just intuitively I guess I don't really understand it
$endgroup$
– ming
yesterday












$begingroup$
If you think of vectors in $mathbb R^3$ as being three components in the $hat i$, $hat j$ and $hat k$ directions then you can think of the matrix as mapping $hat i$ to the first column vector, $hat j$ to the second column and $hat k$ to the third column. Since each of the column vectors are in two dimensions we end up with a vector in two dimensions.
$endgroup$
– John Douma
16 hours ago




$begingroup$
If you think of vectors in $mathbb R^3$ as being three components in the $hat i$, $hat j$ and $hat k$ directions then you can think of the matrix as mapping $hat i$ to the first column vector, $hat j$ to the second column and $hat k$ to the third column. Since each of the column vectors are in two dimensions we end up with a vector in two dimensions.
$endgroup$
– John Douma
16 hours ago












$begingroup$
Ohh.. ok thank you!
$endgroup$
– ming
7 hours ago





$begingroup$
Ohh.. ok thank you!
$endgroup$
– ming
7 hours ago











4 Answers
4






active

oldest

votes


















8












$begingroup$

A more intuitive way is to think of a matrix "performing" on a vector, instead of a matrix "multiplying" with a vector.



Let's give an example. You have some triples of real numbers:



(1,2,3), (2,5,1), (3,5,9), (2,9,8)


and you "forget" the third coordinate:



(1,2), (2,5), (3,5), (2,9)


Surprisingly, this is an example of "matrix performance." Can you find
a matrix $M$ that "forgets" the third coordinate?



Answer:




The matrix is $$left(beginarrayl1 & 0 & 0 \ 0 & 1 & 0 endarrayright)$$




Explanation:




To get the first column, think about what happens under matrix multiplication to the vector $(1,0,0)$. The next two columns are similar.




We call such a matrix $M$ a projection.
We may visualize the projection as such.



Projection; Image from www.math4all.in



Can you see what it means to "forget" the
third coordinate?



The important part of
a projection is linearity:



  • You may project the addition of two vectors, or you may
    add the projection of two vectors and you get the same result.

  • Similarly, you may project a scaled vector, or scale the vector
    and then project it, and you get the same result.

We call a function with the linearity property a linear function.



In symbols, for any linear $f$,



  • $f(v + w) = f(v) + f(w)$

  • $f(cv) = cf(v)$

We see that the projection defined above is a
linear function.
Actually, you can check that every matrix is a linear function.
Perhaps it is more surprising that every linear function is a matrix. You may think of a matrix as a way to represent some linear function.






share|cite|improve this answer











$endgroup$








  • 2




    $begingroup$
    This was really helpful, thanks! Now if we "forget" about that third element, does that mean that the third dimension just totally disappears? The z-axis is just removed completely?
    $endgroup$
    – ming
    yesterday


















4












$begingroup$

For the moment don't think about multiplication and matrices.



You can imagine starting from a vector $(x,y,z)$ in $mathbbR^3$ and mapping it to a vector in $mathbbR^2$ this way, for example:
$$
(x, y, z) mapsto (2x+ z, 3x+ 4y).
$$



Mathematicians have invented a nice clean way to write that map. It's the formalism you've learned for matrix multiplication. To see what $(1,2,3)$ maps to, calculate the matrix product
$$
beginbmatrix
2 & 0 & 1 \
3 & 4 & 0
endbmatrix
beginbmatrix
1 \
2 \
3
endbmatrix
=
beginbmatrix
5\
11
endbmatrix.
$$



You will soon be comfortable with this, just as you are now with whatever algorithm you were taught for ordinary multiplication. Then you will be free to focus on understanding what maps like this are useful for.



Edit in response to a comment.



No, this does not make $(5,11)$ "look like" $(1,2,3)$. Here is a toy example that suggests where you might find this kind of calculation. Suppose you run a business that builds three products. Call them A, B and C. To make an A you need $2$ widgets and $3$ gadgets. To make a B you need just $4$ gadgets. For a C you need just a single widget. How many widgets and gadgets should you order to make $1$ A, $2$ B's and $3$ C's? The matrix product above provides the answer. You could also use that $2 times 3$ matrix to figure out what orders you might fill if you knew how many widgets and gadgets you had in stock.



Matrices are helpful in geometry too. In a linear algebra course you learn how to see that when you use the matrix
$$
beginbmatrix
3 & -1 \
-1 & 3
endbmatrix
$$

to map the coordinate plane (pairs of numbers) to itself what you have done is stretch circles centered at the origin into ellipses by changing the scales along the diagonal lines $y=x$ and $y=-x$ m






share|cite|improve this answer











$endgroup$












  • $begingroup$
    So in really simple terms, is (5, 11) a vector in 2 dimensions, that just "looks" like the vector (1, 2, 3) in 3 dimensions?
    $endgroup$
    – ming
    yesterday










  • $begingroup$
    @ming No. See my edit.
    $endgroup$
    – Ethan Bolker
    18 hours ago


















0












$begingroup$

A linear mapping has the property that it maps subspaces to subspaces.



So it will map a line to a line or $0$, a plane to a plane, a line, or $0$, and so on.



By definition, linear mappings “play nice” with addition and scaling. These properties allow us to reduce statements about entire vector spaces down to bases, which are quite “small” in the finite dimensional case.






share|cite|improve this answer









$endgroup$




















    0












    $begingroup$

    Suppose you have a green tank, a blue tank, and a red tank, and suppose each liter in the blue tank contain .2 L of water and .1 L alcohol. For the blue tank, it's .3 L water .6 L alcohol. The red tank is .4 L water and .5 L alcohol. Now suppose we take $b$ liters from the blue tank, $g$ from the green, and $r$ from the red, and we look at how much total water ($w$) and alcohol ($a$) we have. We are starting with a three dimensional vector (how much from the green, blue, and red tanks), and ending up with a two dimensional vector (how much of water and alcohol). We can write this as:



    $.2 g + .3 b + .4 r = w$
    $.1 g + .6 b + .5 r = a$



    In matrix form, that's



    $$
    beginbmatrix
    .2 & .3 & .4 \
    .1 & .6 & .5
    endbmatrix
    beginbmatrix
    g \
    b \
    r
    endbmatrix
    =
    beginbmatrix
    w\
    a
    endbmatrix.
    $$



    Multiplying a vector be a matrix is simply a compact form of saying "take this much of each element"; in this case the $.2$ saying "take 20% of $b$ to get $w$", the $.1$ is saying "take 10% of $g$ to get $a$", etc. The column a number is in tells you which input number it's being multiplied with, and the row tells you what output it's contributing to.






    share|cite|improve this answer









    $endgroup$













      Your Answer





      StackExchange.ifUsing("editor", function ()
      return StackExchange.using("mathjaxEditing", function ()
      StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
      StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
      );
      );
      , "mathjax-editing");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "69"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3179032%2fwhy-does-a-2%25c3%25973-matrix-multiplied-by-a-vector-in-bbbr3-give-a-vector-in%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      8












      $begingroup$

      A more intuitive way is to think of a matrix "performing" on a vector, instead of a matrix "multiplying" with a vector.



      Let's give an example. You have some triples of real numbers:



      (1,2,3), (2,5,1), (3,5,9), (2,9,8)


      and you "forget" the third coordinate:



      (1,2), (2,5), (3,5), (2,9)


      Surprisingly, this is an example of "matrix performance." Can you find
      a matrix $M$ that "forgets" the third coordinate?



      Answer:




      The matrix is $$left(beginarrayl1 & 0 & 0 \ 0 & 1 & 0 endarrayright)$$




      Explanation:




      To get the first column, think about what happens under matrix multiplication to the vector $(1,0,0)$. The next two columns are similar.




      We call such a matrix $M$ a projection.
      We may visualize the projection as such.



      Projection; Image from www.math4all.in



      Can you see what it means to "forget" the
      third coordinate?



      The important part of
      a projection is linearity:



      • You may project the addition of two vectors, or you may
        add the projection of two vectors and you get the same result.

      • Similarly, you may project a scaled vector, or scale the vector
        and then project it, and you get the same result.

      We call a function with the linearity property a linear function.



      In symbols, for any linear $f$,



      • $f(v + w) = f(v) + f(w)$

      • $f(cv) = cf(v)$

      We see that the projection defined above is a
      linear function.
      Actually, you can check that every matrix is a linear function.
      Perhaps it is more surprising that every linear function is a matrix. You may think of a matrix as a way to represent some linear function.






      share|cite|improve this answer











      $endgroup$








      • 2




        $begingroup$
        This was really helpful, thanks! Now if we "forget" about that third element, does that mean that the third dimension just totally disappears? The z-axis is just removed completely?
        $endgroup$
        – ming
        yesterday















      8












      $begingroup$

      A more intuitive way is to think of a matrix "performing" on a vector, instead of a matrix "multiplying" with a vector.



      Let's give an example. You have some triples of real numbers:



      (1,2,3), (2,5,1), (3,5,9), (2,9,8)


      and you "forget" the third coordinate:



      (1,2), (2,5), (3,5), (2,9)


      Surprisingly, this is an example of "matrix performance." Can you find
      a matrix $M$ that "forgets" the third coordinate?



      Answer:




      The matrix is $$left(beginarrayl1 & 0 & 0 \ 0 & 1 & 0 endarrayright)$$




      Explanation:




      To get the first column, think about what happens under matrix multiplication to the vector $(1,0,0)$. The next two columns are similar.




      We call such a matrix $M$ a projection.
      We may visualize the projection as such.



      Projection; Image from www.math4all.in



      Can you see what it means to "forget" the
      third coordinate?



      The important part of
      a projection is linearity:



      • You may project the addition of two vectors, or you may
        add the projection of two vectors and you get the same result.

      • Similarly, you may project a scaled vector, or scale the vector
        and then project it, and you get the same result.

      We call a function with the linearity property a linear function.



      In symbols, for any linear $f$,



      • $f(v + w) = f(v) + f(w)$

      • $f(cv) = cf(v)$

      We see that the projection defined above is a
      linear function.
      Actually, you can check that every matrix is a linear function.
      Perhaps it is more surprising that every linear function is a matrix. You may think of a matrix as a way to represent some linear function.






      share|cite|improve this answer











      $endgroup$








      • 2




        $begingroup$
        This was really helpful, thanks! Now if we "forget" about that third element, does that mean that the third dimension just totally disappears? The z-axis is just removed completely?
        $endgroup$
        – ming
        yesterday













      8












      8








      8





      $begingroup$

      A more intuitive way is to think of a matrix "performing" on a vector, instead of a matrix "multiplying" with a vector.



      Let's give an example. You have some triples of real numbers:



      (1,2,3), (2,5,1), (3,5,9), (2,9,8)


      and you "forget" the third coordinate:



      (1,2), (2,5), (3,5), (2,9)


      Surprisingly, this is an example of "matrix performance." Can you find
      a matrix $M$ that "forgets" the third coordinate?



      Answer:




      The matrix is $$left(beginarrayl1 & 0 & 0 \ 0 & 1 & 0 endarrayright)$$




      Explanation:




      To get the first column, think about what happens under matrix multiplication to the vector $(1,0,0)$. The next two columns are similar.




      We call such a matrix $M$ a projection.
      We may visualize the projection as such.



      Projection; Image from www.math4all.in



      Can you see what it means to "forget" the
      third coordinate?



      The important part of
      a projection is linearity:



      • You may project the addition of two vectors, or you may
        add the projection of two vectors and you get the same result.

      • Similarly, you may project a scaled vector, or scale the vector
        and then project it, and you get the same result.

      We call a function with the linearity property a linear function.



      In symbols, for any linear $f$,



      • $f(v + w) = f(v) + f(w)$

      • $f(cv) = cf(v)$

      We see that the projection defined above is a
      linear function.
      Actually, you can check that every matrix is a linear function.
      Perhaps it is more surprising that every linear function is a matrix. You may think of a matrix as a way to represent some linear function.






      share|cite|improve this answer











      $endgroup$



      A more intuitive way is to think of a matrix "performing" on a vector, instead of a matrix "multiplying" with a vector.



      Let's give an example. You have some triples of real numbers:



      (1,2,3), (2,5,1), (3,5,9), (2,9,8)


      and you "forget" the third coordinate:



      (1,2), (2,5), (3,5), (2,9)


      Surprisingly, this is an example of "matrix performance." Can you find
      a matrix $M$ that "forgets" the third coordinate?



      Answer:




      The matrix is $$left(beginarrayl1 & 0 & 0 \ 0 & 1 & 0 endarrayright)$$




      Explanation:




      To get the first column, think about what happens under matrix multiplication to the vector $(1,0,0)$. The next two columns are similar.




      We call such a matrix $M$ a projection.
      We may visualize the projection as such.



      Projection; Image from www.math4all.in



      Can you see what it means to "forget" the
      third coordinate?



      The important part of
      a projection is linearity:



      • You may project the addition of two vectors, or you may
        add the projection of two vectors and you get the same result.

      • Similarly, you may project a scaled vector, or scale the vector
        and then project it, and you get the same result.

      We call a function with the linearity property a linear function.



      In symbols, for any linear $f$,



      • $f(v + w) = f(v) + f(w)$

      • $f(cv) = cf(v)$

      We see that the projection defined above is a
      linear function.
      Actually, you can check that every matrix is a linear function.
      Perhaps it is more surprising that every linear function is a matrix. You may think of a matrix as a way to represent some linear function.







      share|cite|improve this answer














      share|cite|improve this answer



      share|cite|improve this answer








      edited 9 hours ago

























      answered yesterday









      user156213user156213

      69238




      69238







      • 2




        $begingroup$
        This was really helpful, thanks! Now if we "forget" about that third element, does that mean that the third dimension just totally disappears? The z-axis is just removed completely?
        $endgroup$
        – ming
        yesterday












      • 2




        $begingroup$
        This was really helpful, thanks! Now if we "forget" about that third element, does that mean that the third dimension just totally disappears? The z-axis is just removed completely?
        $endgroup$
        – ming
        yesterday







      2




      2




      $begingroup$
      This was really helpful, thanks! Now if we "forget" about that third element, does that mean that the third dimension just totally disappears? The z-axis is just removed completely?
      $endgroup$
      – ming
      yesterday




      $begingroup$
      This was really helpful, thanks! Now if we "forget" about that third element, does that mean that the third dimension just totally disappears? The z-axis is just removed completely?
      $endgroup$
      – ming
      yesterday











      4












      $begingroup$

      For the moment don't think about multiplication and matrices.



      You can imagine starting from a vector $(x,y,z)$ in $mathbbR^3$ and mapping it to a vector in $mathbbR^2$ this way, for example:
      $$
      (x, y, z) mapsto (2x+ z, 3x+ 4y).
      $$



      Mathematicians have invented a nice clean way to write that map. It's the formalism you've learned for matrix multiplication. To see what $(1,2,3)$ maps to, calculate the matrix product
      $$
      beginbmatrix
      2 & 0 & 1 \
      3 & 4 & 0
      endbmatrix
      beginbmatrix
      1 \
      2 \
      3
      endbmatrix
      =
      beginbmatrix
      5\
      11
      endbmatrix.
      $$



      You will soon be comfortable with this, just as you are now with whatever algorithm you were taught for ordinary multiplication. Then you will be free to focus on understanding what maps like this are useful for.



      Edit in response to a comment.



      No, this does not make $(5,11)$ "look like" $(1,2,3)$. Here is a toy example that suggests where you might find this kind of calculation. Suppose you run a business that builds three products. Call them A, B and C. To make an A you need $2$ widgets and $3$ gadgets. To make a B you need just $4$ gadgets. For a C you need just a single widget. How many widgets and gadgets should you order to make $1$ A, $2$ B's and $3$ C's? The matrix product above provides the answer. You could also use that $2 times 3$ matrix to figure out what orders you might fill if you knew how many widgets and gadgets you had in stock.



      Matrices are helpful in geometry too. In a linear algebra course you learn how to see that when you use the matrix
      $$
      beginbmatrix
      3 & -1 \
      -1 & 3
      endbmatrix
      $$

      to map the coordinate plane (pairs of numbers) to itself what you have done is stretch circles centered at the origin into ellipses by changing the scales along the diagonal lines $y=x$ and $y=-x$ m






      share|cite|improve this answer











      $endgroup$












      • $begingroup$
        So in really simple terms, is (5, 11) a vector in 2 dimensions, that just "looks" like the vector (1, 2, 3) in 3 dimensions?
        $endgroup$
        – ming
        yesterday










      • $begingroup$
        @ming No. See my edit.
        $endgroup$
        – Ethan Bolker
        18 hours ago















      4












      $begingroup$

      For the moment don't think about multiplication and matrices.



      You can imagine starting from a vector $(x,y,z)$ in $mathbbR^3$ and mapping it to a vector in $mathbbR^2$ this way, for example:
      $$
      (x, y, z) mapsto (2x+ z, 3x+ 4y).
      $$



      Mathematicians have invented a nice clean way to write that map. It's the formalism you've learned for matrix multiplication. To see what $(1,2,3)$ maps to, calculate the matrix product
      $$
      beginbmatrix
      2 & 0 & 1 \
      3 & 4 & 0
      endbmatrix
      beginbmatrix
      1 \
      2 \
      3
      endbmatrix
      =
      beginbmatrix
      5\
      11
      endbmatrix.
      $$



      You will soon be comfortable with this, just as you are now with whatever algorithm you were taught for ordinary multiplication. Then you will be free to focus on understanding what maps like this are useful for.



      Edit in response to a comment.



      No, this does not make $(5,11)$ "look like" $(1,2,3)$. Here is a toy example that suggests where you might find this kind of calculation. Suppose you run a business that builds three products. Call them A, B and C. To make an A you need $2$ widgets and $3$ gadgets. To make a B you need just $4$ gadgets. For a C you need just a single widget. How many widgets and gadgets should you order to make $1$ A, $2$ B's and $3$ C's? The matrix product above provides the answer. You could also use that $2 times 3$ matrix to figure out what orders you might fill if you knew how many widgets and gadgets you had in stock.



      Matrices are helpful in geometry too. In a linear algebra course you learn how to see that when you use the matrix
      $$
      beginbmatrix
      3 & -1 \
      -1 & 3
      endbmatrix
      $$

      to map the coordinate plane (pairs of numbers) to itself what you have done is stretch circles centered at the origin into ellipses by changing the scales along the diagonal lines $y=x$ and $y=-x$ m






      share|cite|improve this answer











      $endgroup$












      • $begingroup$
        So in really simple terms, is (5, 11) a vector in 2 dimensions, that just "looks" like the vector (1, 2, 3) in 3 dimensions?
        $endgroup$
        – ming
        yesterday










      • $begingroup$
        @ming No. See my edit.
        $endgroup$
        – Ethan Bolker
        18 hours ago













      4












      4








      4





      $begingroup$

      For the moment don't think about multiplication and matrices.



      You can imagine starting from a vector $(x,y,z)$ in $mathbbR^3$ and mapping it to a vector in $mathbbR^2$ this way, for example:
      $$
      (x, y, z) mapsto (2x+ z, 3x+ 4y).
      $$



      Mathematicians have invented a nice clean way to write that map. It's the formalism you've learned for matrix multiplication. To see what $(1,2,3)$ maps to, calculate the matrix product
      $$
      beginbmatrix
      2 & 0 & 1 \
      3 & 4 & 0
      endbmatrix
      beginbmatrix
      1 \
      2 \
      3
      endbmatrix
      =
      beginbmatrix
      5\
      11
      endbmatrix.
      $$



      You will soon be comfortable with this, just as you are now with whatever algorithm you were taught for ordinary multiplication. Then you will be free to focus on understanding what maps like this are useful for.



      Edit in response to a comment.



      No, this does not make $(5,11)$ "look like" $(1,2,3)$. Here is a toy example that suggests where you might find this kind of calculation. Suppose you run a business that builds three products. Call them A, B and C. To make an A you need $2$ widgets and $3$ gadgets. To make a B you need just $4$ gadgets. For a C you need just a single widget. How many widgets and gadgets should you order to make $1$ A, $2$ B's and $3$ C's? The matrix product above provides the answer. You could also use that $2 times 3$ matrix to figure out what orders you might fill if you knew how many widgets and gadgets you had in stock.



      Matrices are helpful in geometry too. In a linear algebra course you learn how to see that when you use the matrix
      $$
      beginbmatrix
      3 & -1 \
      -1 & 3
      endbmatrix
      $$

      to map the coordinate plane (pairs of numbers) to itself what you have done is stretch circles centered at the origin into ellipses by changing the scales along the diagonal lines $y=x$ and $y=-x$ m






      share|cite|improve this answer











      $endgroup$



      For the moment don't think about multiplication and matrices.



      You can imagine starting from a vector $(x,y,z)$ in $mathbbR^3$ and mapping it to a vector in $mathbbR^2$ this way, for example:
      $$
      (x, y, z) mapsto (2x+ z, 3x+ 4y).
      $$



      Mathematicians have invented a nice clean way to write that map. It's the formalism you've learned for matrix multiplication. To see what $(1,2,3)$ maps to, calculate the matrix product
      $$
      beginbmatrix
      2 & 0 & 1 \
      3 & 4 & 0
      endbmatrix
      beginbmatrix
      1 \
      2 \
      3
      endbmatrix
      =
      beginbmatrix
      5\
      11
      endbmatrix.
      $$



      You will soon be comfortable with this, just as you are now with whatever algorithm you were taught for ordinary multiplication. Then you will be free to focus on understanding what maps like this are useful for.



      Edit in response to a comment.



      No, this does not make $(5,11)$ "look like" $(1,2,3)$. Here is a toy example that suggests where you might find this kind of calculation. Suppose you run a business that builds three products. Call them A, B and C. To make an A you need $2$ widgets and $3$ gadgets. To make a B you need just $4$ gadgets. For a C you need just a single widget. How many widgets and gadgets should you order to make $1$ A, $2$ B's and $3$ C's? The matrix product above provides the answer. You could also use that $2 times 3$ matrix to figure out what orders you might fill if you knew how many widgets and gadgets you had in stock.



      Matrices are helpful in geometry too. In a linear algebra course you learn how to see that when you use the matrix
      $$
      beginbmatrix
      3 & -1 \
      -1 & 3
      endbmatrix
      $$

      to map the coordinate plane (pairs of numbers) to itself what you have done is stretch circles centered at the origin into ellipses by changing the scales along the diagonal lines $y=x$ and $y=-x$ m







      share|cite|improve this answer














      share|cite|improve this answer



      share|cite|improve this answer








      edited 18 hours ago

























      answered yesterday









      Ethan BolkerEthan Bolker

      45.8k553120




      45.8k553120











      • $begingroup$
        So in really simple terms, is (5, 11) a vector in 2 dimensions, that just "looks" like the vector (1, 2, 3) in 3 dimensions?
        $endgroup$
        – ming
        yesterday










      • $begingroup$
        @ming No. See my edit.
        $endgroup$
        – Ethan Bolker
        18 hours ago
















      • $begingroup$
        So in really simple terms, is (5, 11) a vector in 2 dimensions, that just "looks" like the vector (1, 2, 3) in 3 dimensions?
        $endgroup$
        – ming
        yesterday










      • $begingroup$
        @ming No. See my edit.
        $endgroup$
        – Ethan Bolker
        18 hours ago















      $begingroup$
      So in really simple terms, is (5, 11) a vector in 2 dimensions, that just "looks" like the vector (1, 2, 3) in 3 dimensions?
      $endgroup$
      – ming
      yesterday




      $begingroup$
      So in really simple terms, is (5, 11) a vector in 2 dimensions, that just "looks" like the vector (1, 2, 3) in 3 dimensions?
      $endgroup$
      – ming
      yesterday












      $begingroup$
      @ming No. See my edit.
      $endgroup$
      – Ethan Bolker
      18 hours ago




      $begingroup$
      @ming No. See my edit.
      $endgroup$
      – Ethan Bolker
      18 hours ago











      0












      $begingroup$

      A linear mapping has the property that it maps subspaces to subspaces.



      So it will map a line to a line or $0$, a plane to a plane, a line, or $0$, and so on.



      By definition, linear mappings “play nice” with addition and scaling. These properties allow us to reduce statements about entire vector spaces down to bases, which are quite “small” in the finite dimensional case.






      share|cite|improve this answer









      $endgroup$

















        0












        $begingroup$

        A linear mapping has the property that it maps subspaces to subspaces.



        So it will map a line to a line or $0$, a plane to a plane, a line, or $0$, and so on.



        By definition, linear mappings “play nice” with addition and scaling. These properties allow us to reduce statements about entire vector spaces down to bases, which are quite “small” in the finite dimensional case.






        share|cite|improve this answer









        $endgroup$















          0












          0








          0





          $begingroup$

          A linear mapping has the property that it maps subspaces to subspaces.



          So it will map a line to a line or $0$, a plane to a plane, a line, or $0$, and so on.



          By definition, linear mappings “play nice” with addition and scaling. These properties allow us to reduce statements about entire vector spaces down to bases, which are quite “small” in the finite dimensional case.






          share|cite|improve this answer









          $endgroup$



          A linear mapping has the property that it maps subspaces to subspaces.



          So it will map a line to a line or $0$, a plane to a plane, a line, or $0$, and so on.



          By definition, linear mappings “play nice” with addition and scaling. These properties allow us to reduce statements about entire vector spaces down to bases, which are quite “small” in the finite dimensional case.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered yesterday









          rschwiebrschwieb

          108k12103253




          108k12103253





















              0












              $begingroup$

              Suppose you have a green tank, a blue tank, and a red tank, and suppose each liter in the blue tank contain .2 L of water and .1 L alcohol. For the blue tank, it's .3 L water .6 L alcohol. The red tank is .4 L water and .5 L alcohol. Now suppose we take $b$ liters from the blue tank, $g$ from the green, and $r$ from the red, and we look at how much total water ($w$) and alcohol ($a$) we have. We are starting with a three dimensional vector (how much from the green, blue, and red tanks), and ending up with a two dimensional vector (how much of water and alcohol). We can write this as:



              $.2 g + .3 b + .4 r = w$
              $.1 g + .6 b + .5 r = a$



              In matrix form, that's



              $$
              beginbmatrix
              .2 & .3 & .4 \
              .1 & .6 & .5
              endbmatrix
              beginbmatrix
              g \
              b \
              r
              endbmatrix
              =
              beginbmatrix
              w\
              a
              endbmatrix.
              $$



              Multiplying a vector be a matrix is simply a compact form of saying "take this much of each element"; in this case the $.2$ saying "take 20% of $b$ to get $w$", the $.1$ is saying "take 10% of $g$ to get $a$", etc. The column a number is in tells you which input number it's being multiplied with, and the row tells you what output it's contributing to.






              share|cite|improve this answer









              $endgroup$

















                0












                $begingroup$

                Suppose you have a green tank, a blue tank, and a red tank, and suppose each liter in the blue tank contain .2 L of water and .1 L alcohol. For the blue tank, it's .3 L water .6 L alcohol. The red tank is .4 L water and .5 L alcohol. Now suppose we take $b$ liters from the blue tank, $g$ from the green, and $r$ from the red, and we look at how much total water ($w$) and alcohol ($a$) we have. We are starting with a three dimensional vector (how much from the green, blue, and red tanks), and ending up with a two dimensional vector (how much of water and alcohol). We can write this as:



                $.2 g + .3 b + .4 r = w$
                $.1 g + .6 b + .5 r = a$



                In matrix form, that's



                $$
                beginbmatrix
                .2 & .3 & .4 \
                .1 & .6 & .5
                endbmatrix
                beginbmatrix
                g \
                b \
                r
                endbmatrix
                =
                beginbmatrix
                w\
                a
                endbmatrix.
                $$



                Multiplying a vector be a matrix is simply a compact form of saying "take this much of each element"; in this case the $.2$ saying "take 20% of $b$ to get $w$", the $.1$ is saying "take 10% of $g$ to get $a$", etc. The column a number is in tells you which input number it's being multiplied with, and the row tells you what output it's contributing to.






                share|cite|improve this answer









                $endgroup$















                  0












                  0








                  0





                  $begingroup$

                  Suppose you have a green tank, a blue tank, and a red tank, and suppose each liter in the blue tank contain .2 L of water and .1 L alcohol. For the blue tank, it's .3 L water .6 L alcohol. The red tank is .4 L water and .5 L alcohol. Now suppose we take $b$ liters from the blue tank, $g$ from the green, and $r$ from the red, and we look at how much total water ($w$) and alcohol ($a$) we have. We are starting with a three dimensional vector (how much from the green, blue, and red tanks), and ending up with a two dimensional vector (how much of water and alcohol). We can write this as:



                  $.2 g + .3 b + .4 r = w$
                  $.1 g + .6 b + .5 r = a$



                  In matrix form, that's



                  $$
                  beginbmatrix
                  .2 & .3 & .4 \
                  .1 & .6 & .5
                  endbmatrix
                  beginbmatrix
                  g \
                  b \
                  r
                  endbmatrix
                  =
                  beginbmatrix
                  w\
                  a
                  endbmatrix.
                  $$



                  Multiplying a vector be a matrix is simply a compact form of saying "take this much of each element"; in this case the $.2$ saying "take 20% of $b$ to get $w$", the $.1$ is saying "take 10% of $g$ to get $a$", etc. The column a number is in tells you which input number it's being multiplied with, and the row tells you what output it's contributing to.






                  share|cite|improve this answer









                  $endgroup$



                  Suppose you have a green tank, a blue tank, and a red tank, and suppose each liter in the blue tank contain .2 L of water and .1 L alcohol. For the blue tank, it's .3 L water .6 L alcohol. The red tank is .4 L water and .5 L alcohol. Now suppose we take $b$ liters from the blue tank, $g$ from the green, and $r$ from the red, and we look at how much total water ($w$) and alcohol ($a$) we have. We are starting with a three dimensional vector (how much from the green, blue, and red tanks), and ending up with a two dimensional vector (how much of water and alcohol). We can write this as:



                  $.2 g + .3 b + .4 r = w$
                  $.1 g + .6 b + .5 r = a$



                  In matrix form, that's



                  $$
                  beginbmatrix
                  .2 & .3 & .4 \
                  .1 & .6 & .5
                  endbmatrix
                  beginbmatrix
                  g \
                  b \
                  r
                  endbmatrix
                  =
                  beginbmatrix
                  w\
                  a
                  endbmatrix.
                  $$



                  Multiplying a vector be a matrix is simply a compact form of saying "take this much of each element"; in this case the $.2$ saying "take 20% of $b$ to get $w$", the $.1$ is saying "take 10% of $g$ to get $a$", etc. The column a number is in tells you which input number it's being multiplied with, and the row tells you what output it's contributing to.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered 15 hours ago









                  AcccumulationAcccumulation

                  7,3052619




                  7,3052619



























                      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%2f3179032%2fwhy-does-a-2%25c3%25973-matrix-multiplied-by-a-vector-in-bbbr3-give-a-vector-in%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

                      Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form