2: The derivative

gives critical points x = 2 (from f ′ = 0) and x = 5 f ′ does not exist there); both are in M.

The list of candidates is 0, 2, 5, 7. Compare values there.

Next hint
Answer