The equation of a line with slope p and y -intercept b is given by y = p x + b . For this line to be tangent to the graph of a function f at the point ( x 0 , f ( x 0 ) ) requires f ( x 0 ) = p x 0 + b and p = f ′ ( x 0 ) .