In this paper He's homotopy perturbation method has been adopted for solving non-linear partial differential equations. An approximate solution of the differential equation which describes the longitudinal vibration of it beam is obtained. The solution is compared with that found using the variational iteration method introduced by He. The difference between the two solutions is negligible. (C) 2007 Elsevier Ltd. All rights reserved.