Once someone asked me the question "What is linearity?" in a proficiency exam. I went hot and cold all over. Although, I heard and even used the term linearity many many times, I had not really thought about it until that time. After a hopeless discussion, he said linearity is the satisfaction of the following conditions:
$$f(x+y)=f(x)+f(y)$$ $$f(ax)=af(x)$$
Since then I have no idea about linearity. Because there are:
- Linear equations
- Linear differential equations
- Linear algebra
- Linear programming
- Linear interpolation
- and so forth...
According to the definition even a straight line $y=mx+n$ cannot be considered linear as long as $n\neq0$. But there are so many linearities.
So, what is this term linearity?
The definition of linearity depends on context.
The term affine linear used here is defined by: $f:X\to Y$ is affine linear iff there exists $a\in Y$ such that $x\mapsto f(x)-a$ is linear, i.e. $f(x) = g(x) + a$ where $g$ is linear.