calculus optimization practice problems with solutions pdf