And function, a not equal to zero,

y=ax+b ---> linear has a inverse.

The explanation is simple, since you have a non-horizontal line the horizontal line test only intersects once so it has an inverse.

No consider y=x^2b. a quadratic function

No consider y=1/x^2c. a radical function and its inverse