The easiest way to know if a function is linear or not is to look at its graph. A linear function forms a straight line when it is plotted on a graph. A nonlinear function does not form a straight line: it is curved in some way.