Optimization and Analysis of Functions