Approximation and Optimization in Mathematical Physics