Tangent lines and maximum slope