We develop a framework to study the phase space of a system consisting of a
scalar field rolling down an arbitrary potential with a varying slope and
a background fluid, in a cosmological setting. We give analytical approxima
te solutions of the field evolution. and discuss applications of its featur
es to the issues of quintessence, moduli stabilization. and quintessential
inflation.