I became very confused about linear functions after reading this question What is the difference between linear and affine function

In the comments it says that $F(x)=2*x+4$ is NOT a linear function , (but an affine one). All my professors gave such examples when teaching linear functions. I am really confused now.

Should a linear function always be of the form $f(x)=t*x$ , where t is a constant ?

I think this could help me understand better linear transformations. I think one of the reasons I did not understand them is because I had a slightly wrong definition of linear functions.

HOWEVER, on Wikipedia, the definition of linear functions seems to accepts functions that also have a constant added or subtracted from the first (linear?) part.



So is wikipedia wrong on this one ?

  • $\begingroup$ @Jack So the wikipedia page is WRONG on this subject ? $\endgroup$ – yoyo_fun Dec 11 '16 at 16:51
  • 2
    $\begingroup$ No. The Wikipedia page gave you the proper context for understanding what "linear function" means. $\endgroup$ – user9464 Dec 11 '16 at 16:56
  • $\begingroup$ @Jack OK. I will read your answer $\endgroup$ – yoyo_fun Dec 11 '16 at 17:01

Yes and no. It just depends on the context.

To repeat what the Wikipedia says:

In mathematics, the term linear function refers to two distinct but related notions:

  • In calculus and related areas, a linear function is a polynomial function of degree zero or one, or is the zero polynomial.

  • In linear algebra and functional analysis, a linear function is a linear map.

In the second case, yes, $0$ must be the fixed point of a linear map by definition.

All my professors gave such examples when teaching linear functions.

I suppose you were in the class of linear algebra.

  • 1
    $\begingroup$ So the notion of linear functions depends on which context we are talking about. This makes it hard for students to understand intuitively some concepts. $\endgroup$ – yoyo_fun Dec 11 '16 at 17:27
  • $\begingroup$ Well, usually for a mathematical concept, such as "linear functions" in your case, people might call it differently in different contexts. It is instructive to identity what they really mean by context rather than stick to a particular version of the notion. $\endgroup$ – user9464 Dec 11 '16 at 17:34
  • $\begingroup$ Correct. It would be better if more professor would do this. $\endgroup$ – yoyo_fun Dec 11 '16 at 17:38
  • $\begingroup$ Note that in contexts where "linear" is used in the second sense (i.e. to mean a vector space (homo)morphism, general form $f(x)=ax$), one often uses the term affine function to refer to something of the form $f(x)=ax+b$. This generalizes from functions $f:\mathbb{R}\to\mathbb{R}$ to functions $f:\mathbb{R}^n\to\mathbb{R}^m$ by letting $a$ be an $m\times n$ matrix, and $b$ be a constant vector in $\mathbb{R}^m$. $\endgroup$ – Jeppe Stig Nielsen Dec 12 '16 at 10:33

If $L$ is a linear function, then $L(0)=L(x-x)=L(x)-L(x)=0$. So, a linear function always fix the origin.

  • 2
    $\begingroup$ Or $L(0\cdot x) = 0\cdot L(x)$. Simpler imo. $\endgroup$ – G. H. Faust Dec 11 '16 at 23:33

A function defined from $ \mathbb R \to \mathbb R$ is said to be linear if

  • $\forall x, y\; \;\;f(x+y)=f(x)+f(y)$

  • $\forall \lambda \;\;\;f(\lambda x)=\lambda x$

so, $x\mapsto ax$ satisfies these conditions while $x\mapsto ax+b$ does not and it is affine.


Not the answer you're looking for? Browse other questions tagged or ask your own question.