Many investigations have focused on steady-state nonlinear dynamics of cantilevers in tapping mode atomic force microscopy (TM-AFM). However, a transient dynamic model-which is essential for a model-based control design-is still missing. In this paper, we derive a mathematical model which covers both the transient and steady-state behavior. The steady-state response of the proposed model has been validated with existing theories. Its transient response, however, which is not covered with existing theories, has been successfully verified with experiments. Besides enabling model-based control design for TM-AFM, this model can explain the high-end aspects of AFM such as speed limitation, image quality, and eventual chaotic behavior.