A proof of the continuation and variational perturbation method