An analytical solution is developed to deal with the flexural vibration problem during ananomachining process which involves an atomic force microscope (AFM) cantilever. Themodal superposition method is employed to analyze the response of an AFM subjected to acutting force with an excitation force of an arbitrarily chosen frequency. The cutting forceswere transformed into distributed transversal and bending loading, and were applied tothe end region of the AFM by means of the tip holder. The effects of transverse stress andbending stress were adopted to solve the dynamic model. Based on the result, applying acutting force with an excitation force near the high-order modal frequencies and using awide tip holder are recommended when nanoscale processing using AFM is performed.