For the last part, you have to find where
attains its maximum over
. We have

so that

with critical points at
such that





So either

or

where
is any integer. We get 8 solutions over the given interval with
from the first set of solutions,
from the set of solutions where
, and
from the set of solutions where
. They are approximately





