The density perturbation power spectrum to second-order corrections in the slow-roll expansion