An analysis based on the Galerkin method is given of some nonlinear oscillator equations that have been analyzed by several other methods, including harmonic balance and direct variational methods. The present analysis is shown to provide simple yet accurate approximate solutions of these nonlinear equations and illustrates the usefulness and the power of the Galerkin method. (C) 2010 American Association of Physics Teachers.