tangent line and secant line slopes using the mean value theorem