Abstract

Using ergodicity of functions, we prove the existence and uniqueness of (asymptotically) almost periodic solution for some nonlinear differential equations. As a consequence, we generalize a Massera’s result. A counterexample is given to show that the ergodic condition cannot be dropped.