How to properly represent a matrix function.












1












$begingroup$


Given the function $f_{h}(x,y,z)=(x-z,y+hz,x+y+3z)$, what is the correct way to represent the matrix function in respect to the standard basis?



With the representation theorem, I would write the matrix in columns as:
$$F_{h|S_3}=(f_h(e_1)|{S_3} quad f_h(e_2)|{S_3} quad f_h(e_3)|{S_3})=begin{bmatrix}1 & 0 & 1\ 0 & 1 & 1\ -1 & h & 3end{bmatrix}$$
But in my textbook it is written in rows as:
$$F_{h|S_3}=(f_h(e_1)|{S_3} quad f_h(e_2)|{S_3} quad f_h(e_3)|{S_3})=begin{bmatrix}1 & 0 & -1\ 0 & 1 & h\ 1 & 1 & 3end{bmatrix}$$



What is the difference between them?










share|cite|improve this question











$endgroup$

















    1












    $begingroup$


    Given the function $f_{h}(x,y,z)=(x-z,y+hz,x+y+3z)$, what is the correct way to represent the matrix function in respect to the standard basis?



    With the representation theorem, I would write the matrix in columns as:
    $$F_{h|S_3}=(f_h(e_1)|{S_3} quad f_h(e_2)|{S_3} quad f_h(e_3)|{S_3})=begin{bmatrix}1 & 0 & 1\ 0 & 1 & 1\ -1 & h & 3end{bmatrix}$$
    But in my textbook it is written in rows as:
    $$F_{h|S_3}=(f_h(e_1)|{S_3} quad f_h(e_2)|{S_3} quad f_h(e_3)|{S_3})=begin{bmatrix}1 & 0 & -1\ 0 & 1 & h\ 1 & 1 & 3end{bmatrix}$$



    What is the difference between them?










    share|cite|improve this question











    $endgroup$















      1












      1








      1





      $begingroup$


      Given the function $f_{h}(x,y,z)=(x-z,y+hz,x+y+3z)$, what is the correct way to represent the matrix function in respect to the standard basis?



      With the representation theorem, I would write the matrix in columns as:
      $$F_{h|S_3}=(f_h(e_1)|{S_3} quad f_h(e_2)|{S_3} quad f_h(e_3)|{S_3})=begin{bmatrix}1 & 0 & 1\ 0 & 1 & 1\ -1 & h & 3end{bmatrix}$$
      But in my textbook it is written in rows as:
      $$F_{h|S_3}=(f_h(e_1)|{S_3} quad f_h(e_2)|{S_3} quad f_h(e_3)|{S_3})=begin{bmatrix}1 & 0 & -1\ 0 & 1 & h\ 1 & 1 & 3end{bmatrix}$$



      What is the difference between them?










      share|cite|improve this question











      $endgroup$




      Given the function $f_{h}(x,y,z)=(x-z,y+hz,x+y+3z)$, what is the correct way to represent the matrix function in respect to the standard basis?



      With the representation theorem, I would write the matrix in columns as:
      $$F_{h|S_3}=(f_h(e_1)|{S_3} quad f_h(e_2)|{S_3} quad f_h(e_3)|{S_3})=begin{bmatrix}1 & 0 & 1\ 0 & 1 & 1\ -1 & h & 3end{bmatrix}$$
      But in my textbook it is written in rows as:
      $$F_{h|S_3}=(f_h(e_1)|{S_3} quad f_h(e_2)|{S_3} quad f_h(e_3)|{S_3})=begin{bmatrix}1 & 0 & -1\ 0 & 1 & h\ 1 & 1 & 3end{bmatrix}$$



      What is the difference between them?







      linear-algebra matrices linear-transformations






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Jan 13 at 17:06









      Kevin

      13311




      13311










      asked Jan 13 at 16:15









      Kevin MooreKevin Moore

      16918




      16918






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          The correct way to represent the function $f_h$ in matrix form depends on the convention that you want to use to represent it. Let $(x,y,z) in mathbb{R}^3$. The matrix which you computed is useful for expressing $f_h$ as $$f_h(x,y,z) = begin{bmatrix} x& y & z end{bmatrix} begin{bmatrix}
          1& 0 & 1 \
          0 & 1& 1\
          -1 & h & 3
          end{bmatrix}.$$
          We can verify this by expanding the matrix product:
          begin{align}
          begin{bmatrix} x& y & z end{bmatrix} begin{bmatrix}
          1& 0 & 2 \
          0 & 1& 1\
          -1 & h & 3
          end{bmatrix} &= begin{bmatrix}
          x cdot 1 + y cdot 0 + z cdot (-1) \
          x cdot 0 + y cdot 1 + z cdot h \
          x cdot 1 + y cdot 1 + z cdot 3
          end{bmatrix} \ &= begin{bmatrix}
          x - z & y + hz & x + y + 3z end{bmatrix}.
          end{align}
          The result is a $1 times 3$ matrix, which we can interpret as a row vector in $mathbb{R}^3$.
          The matrix written in your textbook is useful for the following representation:
          $$f_h(x,y,z) = begin{bmatrix}
          1& 0 & -1 \
          0 & 1& h\
          1 & 1 & 3
          end{bmatrix} begin{bmatrix}
          x \ y \ z end{bmatrix} = begin{bmatrix} x-z \ y + hz \ x + y + 3z end{bmatrix}.$$
          The result is a $3 times 1 $ matrix, which we can regard as a column vector in $mathbb{R}^3$.



          The two representations look different in the sense that the former yields a row vector and the latter a column vector, however they are the same in the sense that they can both be regarded as lists of three real numbers, i.e. as $(x-z,y+hz,x+y+3z) in mathbb{R}^3.$ The accepted answer here sums this idea up pretty well.






          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%2f3072171%2fhow-to-properly-represent-a-matrix-function%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1












            $begingroup$

            The correct way to represent the function $f_h$ in matrix form depends on the convention that you want to use to represent it. Let $(x,y,z) in mathbb{R}^3$. The matrix which you computed is useful for expressing $f_h$ as $$f_h(x,y,z) = begin{bmatrix} x& y & z end{bmatrix} begin{bmatrix}
            1& 0 & 1 \
            0 & 1& 1\
            -1 & h & 3
            end{bmatrix}.$$
            We can verify this by expanding the matrix product:
            begin{align}
            begin{bmatrix} x& y & z end{bmatrix} begin{bmatrix}
            1& 0 & 2 \
            0 & 1& 1\
            -1 & h & 3
            end{bmatrix} &= begin{bmatrix}
            x cdot 1 + y cdot 0 + z cdot (-1) \
            x cdot 0 + y cdot 1 + z cdot h \
            x cdot 1 + y cdot 1 + z cdot 3
            end{bmatrix} \ &= begin{bmatrix}
            x - z & y + hz & x + y + 3z end{bmatrix}.
            end{align}
            The result is a $1 times 3$ matrix, which we can interpret as a row vector in $mathbb{R}^3$.
            The matrix written in your textbook is useful for the following representation:
            $$f_h(x,y,z) = begin{bmatrix}
            1& 0 & -1 \
            0 & 1& h\
            1 & 1 & 3
            end{bmatrix} begin{bmatrix}
            x \ y \ z end{bmatrix} = begin{bmatrix} x-z \ y + hz \ x + y + 3z end{bmatrix}.$$
            The result is a $3 times 1 $ matrix, which we can regard as a column vector in $mathbb{R}^3$.



            The two representations look different in the sense that the former yields a row vector and the latter a column vector, however they are the same in the sense that they can both be regarded as lists of three real numbers, i.e. as $(x-z,y+hz,x+y+3z) in mathbb{R}^3.$ The accepted answer here sums this idea up pretty well.






            share|cite|improve this answer











            $endgroup$


















              1












              $begingroup$

              The correct way to represent the function $f_h$ in matrix form depends on the convention that you want to use to represent it. Let $(x,y,z) in mathbb{R}^3$. The matrix which you computed is useful for expressing $f_h$ as $$f_h(x,y,z) = begin{bmatrix} x& y & z end{bmatrix} begin{bmatrix}
              1& 0 & 1 \
              0 & 1& 1\
              -1 & h & 3
              end{bmatrix}.$$
              We can verify this by expanding the matrix product:
              begin{align}
              begin{bmatrix} x& y & z end{bmatrix} begin{bmatrix}
              1& 0 & 2 \
              0 & 1& 1\
              -1 & h & 3
              end{bmatrix} &= begin{bmatrix}
              x cdot 1 + y cdot 0 + z cdot (-1) \
              x cdot 0 + y cdot 1 + z cdot h \
              x cdot 1 + y cdot 1 + z cdot 3
              end{bmatrix} \ &= begin{bmatrix}
              x - z & y + hz & x + y + 3z end{bmatrix}.
              end{align}
              The result is a $1 times 3$ matrix, which we can interpret as a row vector in $mathbb{R}^3$.
              The matrix written in your textbook is useful for the following representation:
              $$f_h(x,y,z) = begin{bmatrix}
              1& 0 & -1 \
              0 & 1& h\
              1 & 1 & 3
              end{bmatrix} begin{bmatrix}
              x \ y \ z end{bmatrix} = begin{bmatrix} x-z \ y + hz \ x + y + 3z end{bmatrix}.$$
              The result is a $3 times 1 $ matrix, which we can regard as a column vector in $mathbb{R}^3$.



              The two representations look different in the sense that the former yields a row vector and the latter a column vector, however they are the same in the sense that they can both be regarded as lists of three real numbers, i.e. as $(x-z,y+hz,x+y+3z) in mathbb{R}^3.$ The accepted answer here sums this idea up pretty well.






              share|cite|improve this answer











              $endgroup$
















                1












                1








                1





                $begingroup$

                The correct way to represent the function $f_h$ in matrix form depends on the convention that you want to use to represent it. Let $(x,y,z) in mathbb{R}^3$. The matrix which you computed is useful for expressing $f_h$ as $$f_h(x,y,z) = begin{bmatrix} x& y & z end{bmatrix} begin{bmatrix}
                1& 0 & 1 \
                0 & 1& 1\
                -1 & h & 3
                end{bmatrix}.$$
                We can verify this by expanding the matrix product:
                begin{align}
                begin{bmatrix} x& y & z end{bmatrix} begin{bmatrix}
                1& 0 & 2 \
                0 & 1& 1\
                -1 & h & 3
                end{bmatrix} &= begin{bmatrix}
                x cdot 1 + y cdot 0 + z cdot (-1) \
                x cdot 0 + y cdot 1 + z cdot h \
                x cdot 1 + y cdot 1 + z cdot 3
                end{bmatrix} \ &= begin{bmatrix}
                x - z & y + hz & x + y + 3z end{bmatrix}.
                end{align}
                The result is a $1 times 3$ matrix, which we can interpret as a row vector in $mathbb{R}^3$.
                The matrix written in your textbook is useful for the following representation:
                $$f_h(x,y,z) = begin{bmatrix}
                1& 0 & -1 \
                0 & 1& h\
                1 & 1 & 3
                end{bmatrix} begin{bmatrix}
                x \ y \ z end{bmatrix} = begin{bmatrix} x-z \ y + hz \ x + y + 3z end{bmatrix}.$$
                The result is a $3 times 1 $ matrix, which we can regard as a column vector in $mathbb{R}^3$.



                The two representations look different in the sense that the former yields a row vector and the latter a column vector, however they are the same in the sense that they can both be regarded as lists of three real numbers, i.e. as $(x-z,y+hz,x+y+3z) in mathbb{R}^3.$ The accepted answer here sums this idea up pretty well.






                share|cite|improve this answer











                $endgroup$



                The correct way to represent the function $f_h$ in matrix form depends on the convention that you want to use to represent it. Let $(x,y,z) in mathbb{R}^3$. The matrix which you computed is useful for expressing $f_h$ as $$f_h(x,y,z) = begin{bmatrix} x& y & z end{bmatrix} begin{bmatrix}
                1& 0 & 1 \
                0 & 1& 1\
                -1 & h & 3
                end{bmatrix}.$$
                We can verify this by expanding the matrix product:
                begin{align}
                begin{bmatrix} x& y & z end{bmatrix} begin{bmatrix}
                1& 0 & 2 \
                0 & 1& 1\
                -1 & h & 3
                end{bmatrix} &= begin{bmatrix}
                x cdot 1 + y cdot 0 + z cdot (-1) \
                x cdot 0 + y cdot 1 + z cdot h \
                x cdot 1 + y cdot 1 + z cdot 3
                end{bmatrix} \ &= begin{bmatrix}
                x - z & y + hz & x + y + 3z end{bmatrix}.
                end{align}
                The result is a $1 times 3$ matrix, which we can interpret as a row vector in $mathbb{R}^3$.
                The matrix written in your textbook is useful for the following representation:
                $$f_h(x,y,z) = begin{bmatrix}
                1& 0 & -1 \
                0 & 1& h\
                1 & 1 & 3
                end{bmatrix} begin{bmatrix}
                x \ y \ z end{bmatrix} = begin{bmatrix} x-z \ y + hz \ x + y + 3z end{bmatrix}.$$
                The result is a $3 times 1 $ matrix, which we can regard as a column vector in $mathbb{R}^3$.



                The two representations look different in the sense that the former yields a row vector and the latter a column vector, however they are the same in the sense that they can both be regarded as lists of three real numbers, i.e. as $(x-z,y+hz,x+y+3z) in mathbb{R}^3.$ The accepted answer here sums this idea up pretty well.







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited Jan 13 at 20:03

























                answered Jan 13 at 19:46









                E-muE-mu

                787417




                787417






























                    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%2f3072171%2fhow-to-properly-represent-a-matrix-function%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

                    MongoDB - Not Authorized To Execute Command

                    in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

                    Npm cannot find a required file even through it is in the searched directory