Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Asked
Viewed 3k times
23
$\begingroup$

I always thought linear functions need to satisfy $$f(x+y)=f(x)+f(y).$$ I am a tad confused now, consider $f(x)=2x+3$. $f(1)=5$, $f(2)=7$, $f(1+2)=f(3)=9 \neq f(1)+f(2)$ which was what I thought linear functions should satisfy.

Could someone clarify?

$\endgroup$
7
  • 20
    $\begingroup$ You are right, linearity means $f(x+y)=f(x)+f(y)$. Functions on ${\mathbb R}$ which really are linear are of the form $f(x)=kx$ for some $k\in {\mathbb R}$. THose of form $f(x)kx+n$ with a nonzero $n$ should be called affine. $\endgroup$
    Janko Bracic
    –  Janko Bracic
    2015-02-07 12:12:42 +00:00
    Commented Feb 7, 2015 at 12:12
  • 4
    $\begingroup$ The Wikipedia page on "linear function" could have warned you that these are false friends. $\endgroup$
    got trolled too much this week
    –  got trolled too much this week
    2015-02-07 12:18:27 +00:00
    Commented Feb 7, 2015 at 12:18
  • 1
    $\begingroup$ This looks related to Why Rotations (in CG) are not linear? $\endgroup$
    robjohn
    –  robjohn
    2015-02-07 14:35:47 +00:00
    Commented Feb 7, 2015 at 14:35
  • 4
    $\begingroup$ @RespawnedFluff: I wasn't saying it was a duplicate, just related. $\endgroup$
    robjohn
    –  robjohn
    2015-02-07 17:34:02 +00:00
    Commented Feb 7, 2015 at 17:34
  • 1
    $\begingroup$ Related to What is the difference between linear and affine function. $\endgroup$
    nwellnhof
    –  nwellnhof
    2015-02-08 11:43:44 +00:00
    Commented Feb 8, 2015 at 11:43

2 Answers 2

34
$\begingroup$

You're confusing between two different notions.

In calculus, a linear function is a polynomial function of the form $f(x)=ax+b$.

In linear algebra and functional analysis, a linear function is a linear map. (one of the properties that it satisfies is $f(x+y)=f(x)+f(y)$, known as additivity)

The difference between the two is that the latter needs to have $f(0)=0$. Proof: $$f(0)=f(0+0)=f(0)+f(0)=2f(0)\iff f(0)=0.$$ I discuss this in more detail in my (not yet finished) note.

$\endgroup$
3
  • 8
    $\begingroup$ actually, $f(x) = a x + b$ is called affine in the general, and linear iff $b=0$ $\endgroup$
    TemplateRex
    –  TemplateRex
    2015-02-07 21:19:48 +00:00
    Commented Feb 7, 2015 at 21:19
  • 8
    $\begingroup$ @TemplateRex In most standard calculus textbook, a linear function is defined as a function whose graph is a line. That's why I emphasized the distinction between a linear function in the context of calculus, and in the context of linear algebra and functional analysis. Although I do agree that calling it affine would have been much better. $\endgroup$
    Workaholic
    –  Workaholic
    2015-02-07 21:26:16 +00:00
    Commented Feb 7, 2015 at 21:26
  • 1
    $\begingroup$ Not only in calculus. If you look up the definition of a splitting field, it will probably talk about a polynomial splitting "into linear factors". The linear factors are not necessarily of the form $ax$. $\endgroup$
    bof
    –  bof
    2015-02-09 08:20:42 +00:00
    Commented Feb 9, 2015 at 8:20
2
$\begingroup$

$f(x)$ = $2x$ + $3$ isn't a linear function (from and to the set of real numbers). You can easily see that $f(x+y)$ = $2x$ + $2y$ + $3$, and that $f(x)$ + $f(y)$ = $2x$ + $2y$ + $6$. Equality obviously fails.

A linear function (as a mapping from and to the set of real numbers) should be in the from $ax$, where $a$ is a constant real number.

$\endgroup$
1
  • 7
    $\begingroup$ You will find a large number of textbooks and websites which would describe $f(x)=2x+3$ as a "linear function". Others may not, but that merely means that the term is ambiguous. $\endgroup$
    Henry
    –  Henry
    2015-02-08 11:36:17 +00:00
    Commented Feb 8, 2015 at 11:36

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.