Linear Function: f(ax + by) = af(x) + bf(y) vs y = ax+b.

linear function $\neq$ linear polynomial

The former is what you have defined in your Machine learning course. The latter is functions like $ax+b$. See wikipedia for more details and context.

Linear functions are very important in the subject of linear algebra.


The equation $y=ax+b$ is the composition of a linear function $y=ax$ with a translation $b$. Even if $y=ax+b$ is not linear it preserves some properties of the related linear function and it is denoted as an affine function and more precisely as an affine line in that case.