A linear function can be represented graphically as a straight line on the Cartesian plane by writing it in the form:
This equation defines the set of ordered pairs {x, y} that may be used to draw a graph.y = ax + b
General equation of a line
A linear function may be written in the form of the general equation for a line in two dimensions:
Either A or B may be zero, but not both. For example, consider the linear function:Ax + By + C = 0
This can be rewritten in the general form of the equation of a line:y = 2x - 2
2x - y - 2 = 0