A nonlinear oscillator with zero initial conditions is considered, which makes some effective methods, for example, the variational iteration method and the homotopy perturbation method, invalid. To solve the bottleneck, this paper suggests a simple transform to convert the problem into a traditional case so that He’s frequency formulation can be effectively used to solve its approximate solution. An microelectromechanical system (MEMS) oscillator is used as example to show the solution process, and a good result is obtained.