The graph of the function y=2−x is a straight line. This straight line has a gradient of −1 (the coefficient in front of the x ) and cuts the y -axis at y=2.