In this paper, the algebraic structure and the Poisson's integral theory of f (R) cosmology are presented. Firstly, the Hamilton canonical equations are derived for the system. Secondly, the contravariant algebraic forms of f (R) cosmology are obtained. Thirdly, the Lie algebraic structure admitted and Poisson's integral methods are investigated for f (R) cosmology. Further, the first integrals and solution of f (R) cosmology are given. Finally, an example is given to illustrate the results.