While all linear equations produce straight lines when graphed, not all linear equations produce linear functions. In order to be a linear function, a graph must be both linear (a straight line) and a function (matching each x-value to only one y-value).