Perturbation theory without wavefunctions