On a certain method of solving nonlinear differential equations