curve sketching concavity and mvt 2136554