Mean value theorem example: polynomial