y = mx + b → a straight line
A function that can be written as y = mx + b is a linear function. A function can be written f(x) for y.
If a function cannot be written in the form y = mx + b, it is a nonlinear equation and is not a linear function.