Variable amplitude equations for one-dimensional scattering