Problem: Maximize/minimize function over interval

Problem

Solution