An Analytic model for the transition from decelerated to accelerated cosmic expansion