Nonlinear Optics: An Analytical Approach