I studied a linear function definition in our Machine Learning course:
f(ax + by) = af(x) + bf(y)
Using this definition, we can prove that y = ax + b is NOT a linear function. This is counter-intuitive to me.
For example: f(x) = 2x + 3 is NOT linear.
f(0 + 1) = f(1) = 5
but f(0)+f(1) = 3+ 5 = 8.
Hence f(0+ 1) != f(0)+f(1)
We all know that y = ax + b is a line function (I know this is a linear function for ages), but it is not linear according to this definition. I am very confused.
In what situation we should use the above definition?
Recourse:
https://homepage.divms.uiowa.edu/~idarcy/COURSES/34/linearfn2s.pdf