Analytic solution of the Starobinsky model for inflation