A linear function has a constant rate of change, while a nonlinear function does not. For a table of values to be linear, the outputs must have a constant rate of change as the inputs increase by 1. On a graph, the function must be a straight line to be linear.