Analytic solutions for nonlinear differential equations