Function with finite domain can be linear?












3












$begingroup$


Consider a function $f:mathcal{X}rightarrow mathcal{Y}$ prescribed by $f(x)=3x$,
where $mathcal{X}={1,2,3}$ and $mathcal{Y}equiv {3,6,9}$.



Can we say that $f$ is linear? My confusion stems from the finite domain.










share|cite|improve this question











$endgroup$












  • $begingroup$
    You can say that $f$ is the restriction of the linear function $f(x)=3x$ to the set ${1,2,3}$. This is uncommon though.
    $endgroup$
    – Yanko
    Jan 25 at 14:35


















3












$begingroup$


Consider a function $f:mathcal{X}rightarrow mathcal{Y}$ prescribed by $f(x)=3x$,
where $mathcal{X}={1,2,3}$ and $mathcal{Y}equiv {3,6,9}$.



Can we say that $f$ is linear? My confusion stems from the finite domain.










share|cite|improve this question











$endgroup$












  • $begingroup$
    You can say that $f$ is the restriction of the linear function $f(x)=3x$ to the set ${1,2,3}$. This is uncommon though.
    $endgroup$
    – Yanko
    Jan 25 at 14:35
















3












3








3





$begingroup$


Consider a function $f:mathcal{X}rightarrow mathcal{Y}$ prescribed by $f(x)=3x$,
where $mathcal{X}={1,2,3}$ and $mathcal{Y}equiv {3,6,9}$.



Can we say that $f$ is linear? My confusion stems from the finite domain.










share|cite|improve this question











$endgroup$




Consider a function $f:mathcal{X}rightarrow mathcal{Y}$ prescribed by $f(x)=3x$,
where $mathcal{X}={1,2,3}$ and $mathcal{Y}equiv {3,6,9}$.



Can we say that $f$ is linear? My confusion stems from the finite domain.







linear-algebra functions






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 25 at 14:36









Yanko

7,8801830




7,8801830










asked Jan 25 at 14:34









STFSTF

541422




541422












  • $begingroup$
    You can say that $f$ is the restriction of the linear function $f(x)=3x$ to the set ${1,2,3}$. This is uncommon though.
    $endgroup$
    – Yanko
    Jan 25 at 14:35




















  • $begingroup$
    You can say that $f$ is the restriction of the linear function $f(x)=3x$ to the set ${1,2,3}$. This is uncommon though.
    $endgroup$
    – Yanko
    Jan 25 at 14:35


















$begingroup$
You can say that $f$ is the restriction of the linear function $f(x)=3x$ to the set ${1,2,3}$. This is uncommon though.
$endgroup$
– Yanko
Jan 25 at 14:35






$begingroup$
You can say that $f$ is the restriction of the linear function $f(x)=3x$ to the set ${1,2,3}$. This is uncommon though.
$endgroup$
– Yanko
Jan 25 at 14:35












2 Answers
2






active

oldest

votes


















3












$begingroup$

Typically we only ask if a function is linear if it is a function between vector spaces (a.k.a. linear spaces), or some other suitably structured set for which a notion of 'linearity' makes sense, such as a module over a ring.



A function $f$ between two such structures is then linear if it preserves the linear structure: this usually amounts to saying something like $f(ax+by) = af(x) +bf(y)$ for all vectors $x,y$ and all scalars $a,b$.



In this case, $mathcal{X}$ and $mathcal{Y}$ are just sets with three elements. They are certainly not vector spaces or modules over a ring, so it doesn't really make sense to ask if $f$ is linear.



As Yanko says in a comment, though, we can embed $mathcal{X}$ and $mathcal{Y}$ in the vector space $mathbb{R}$, and then $f$ is the (co)restriction of a linear function $mathbb{R} to mathbb{R}$ to a function $mathcal{X} to mathcal{Y}$. However, there are also functions $mathbb{R} to mathbb{R}$ which are not linear, but whose (co)restriction to $mathcal{X}$ and $mathcal{Y}$ is the function $x mapsto 3x$. One example is $x mapsto x^3-6x^2+14x-6$.



So is $f$ linear? Not really.






share|cite|improve this answer









$endgroup$





















    3












    $begingroup$

    No because in general $f(ax)$ is not defined and cannot equal $af(x)$.






    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%2f3087157%2ffunction-with-finite-domain-can-be-linear%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









      3












      $begingroup$

      Typically we only ask if a function is linear if it is a function between vector spaces (a.k.a. linear spaces), or some other suitably structured set for which a notion of 'linearity' makes sense, such as a module over a ring.



      A function $f$ between two such structures is then linear if it preserves the linear structure: this usually amounts to saying something like $f(ax+by) = af(x) +bf(y)$ for all vectors $x,y$ and all scalars $a,b$.



      In this case, $mathcal{X}$ and $mathcal{Y}$ are just sets with three elements. They are certainly not vector spaces or modules over a ring, so it doesn't really make sense to ask if $f$ is linear.



      As Yanko says in a comment, though, we can embed $mathcal{X}$ and $mathcal{Y}$ in the vector space $mathbb{R}$, and then $f$ is the (co)restriction of a linear function $mathbb{R} to mathbb{R}$ to a function $mathcal{X} to mathcal{Y}$. However, there are also functions $mathbb{R} to mathbb{R}$ which are not linear, but whose (co)restriction to $mathcal{X}$ and $mathcal{Y}$ is the function $x mapsto 3x$. One example is $x mapsto x^3-6x^2+14x-6$.



      So is $f$ linear? Not really.






      share|cite|improve this answer









      $endgroup$


















        3












        $begingroup$

        Typically we only ask if a function is linear if it is a function between vector spaces (a.k.a. linear spaces), or some other suitably structured set for which a notion of 'linearity' makes sense, such as a module over a ring.



        A function $f$ between two such structures is then linear if it preserves the linear structure: this usually amounts to saying something like $f(ax+by) = af(x) +bf(y)$ for all vectors $x,y$ and all scalars $a,b$.



        In this case, $mathcal{X}$ and $mathcal{Y}$ are just sets with three elements. They are certainly not vector spaces or modules over a ring, so it doesn't really make sense to ask if $f$ is linear.



        As Yanko says in a comment, though, we can embed $mathcal{X}$ and $mathcal{Y}$ in the vector space $mathbb{R}$, and then $f$ is the (co)restriction of a linear function $mathbb{R} to mathbb{R}$ to a function $mathcal{X} to mathcal{Y}$. However, there are also functions $mathbb{R} to mathbb{R}$ which are not linear, but whose (co)restriction to $mathcal{X}$ and $mathcal{Y}$ is the function $x mapsto 3x$. One example is $x mapsto x^3-6x^2+14x-6$.



        So is $f$ linear? Not really.






        share|cite|improve this answer









        $endgroup$
















          3












          3








          3





          $begingroup$

          Typically we only ask if a function is linear if it is a function between vector spaces (a.k.a. linear spaces), or some other suitably structured set for which a notion of 'linearity' makes sense, such as a module over a ring.



          A function $f$ between two such structures is then linear if it preserves the linear structure: this usually amounts to saying something like $f(ax+by) = af(x) +bf(y)$ for all vectors $x,y$ and all scalars $a,b$.



          In this case, $mathcal{X}$ and $mathcal{Y}$ are just sets with three elements. They are certainly not vector spaces or modules over a ring, so it doesn't really make sense to ask if $f$ is linear.



          As Yanko says in a comment, though, we can embed $mathcal{X}$ and $mathcal{Y}$ in the vector space $mathbb{R}$, and then $f$ is the (co)restriction of a linear function $mathbb{R} to mathbb{R}$ to a function $mathcal{X} to mathcal{Y}$. However, there are also functions $mathbb{R} to mathbb{R}$ which are not linear, but whose (co)restriction to $mathcal{X}$ and $mathcal{Y}$ is the function $x mapsto 3x$. One example is $x mapsto x^3-6x^2+14x-6$.



          So is $f$ linear? Not really.






          share|cite|improve this answer









          $endgroup$



          Typically we only ask if a function is linear if it is a function between vector spaces (a.k.a. linear spaces), or some other suitably structured set for which a notion of 'linearity' makes sense, such as a module over a ring.



          A function $f$ between two such structures is then linear if it preserves the linear structure: this usually amounts to saying something like $f(ax+by) = af(x) +bf(y)$ for all vectors $x,y$ and all scalars $a,b$.



          In this case, $mathcal{X}$ and $mathcal{Y}$ are just sets with three elements. They are certainly not vector spaces or modules over a ring, so it doesn't really make sense to ask if $f$ is linear.



          As Yanko says in a comment, though, we can embed $mathcal{X}$ and $mathcal{Y}$ in the vector space $mathbb{R}$, and then $f$ is the (co)restriction of a linear function $mathbb{R} to mathbb{R}$ to a function $mathcal{X} to mathcal{Y}$. However, there are also functions $mathbb{R} to mathbb{R}$ which are not linear, but whose (co)restriction to $mathcal{X}$ and $mathcal{Y}$ is the function $x mapsto 3x$. One example is $x mapsto x^3-6x^2+14x-6$.



          So is $f$ linear? Not really.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Jan 25 at 14:40









          Clive NewsteadClive Newstead

          51.9k474136




          51.9k474136























              3












              $begingroup$

              No because in general $f(ax)$ is not defined and cannot equal $af(x)$.






              share|cite|improve this answer









              $endgroup$


















                3












                $begingroup$

                No because in general $f(ax)$ is not defined and cannot equal $af(x)$.






                share|cite|improve this answer









                $endgroup$
















                  3












                  3








                  3





                  $begingroup$

                  No because in general $f(ax)$ is not defined and cannot equal $af(x)$.






                  share|cite|improve this answer









                  $endgroup$



                  No because in general $f(ax)$ is not defined and cannot equal $af(x)$.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Jan 25 at 14:40









                  Yves DaoustYves Daoust

                  131k676229




                  131k676229






























                      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%2f3087157%2ffunction-with-finite-domain-can-be-linear%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

                      Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

                      Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

                      A Topological Invariant for $pi_3(U(n))$