This paper investigates the vibration of a tapping-mode Atomic Force Microscope (AFM) cantilever covered with two whole piezoelectric layers in a liquid medium. The authors of this article have already modeled the vibration of a cantilever immersed in liquid over rough surfaces. Five new ideas have been considered for improving the results of the previous work. Mass and damping of a cantilever probe tip have been considered. Since the probe tip of an AFM cantilever has a mass, which can itself affect the natural frequency of vibration, the significance of this mass has been explored. Also, two hydrodynamic force models for analyzing the mass and damping added to a cantilever in liquid medium have been evaluated. In modeling the vibration of a cantilever in liquid, simplifications are made to the theoretical equations used in the modeling, which may make the obtained results different from those in the real case. So, two hydrodynamic force models are introduced and compared with each other. In addition to the already introduced DMT model, the JKR model has been proposed. The forces acting on a probe tip have attractive and repulsive effects. The attractive Van der Waals force can vary depending on the surface smoothness or roughness, and the repulsive contact force, which is independent of the type of surface roughness and usually varies with the hardness or softness of a surface. When the first mode is used in the vibration of an AFM cantilever, the changes of the existing physical parameters in the simulation do not usually produce a significant difference in the response. Thus, three cantilever vibration modes have been investigated. Finally, an analytical approach for obtaining the response of equations is presented which solves the resulting motion equation by the Laplace method and, thus, a time function is obtained for cantilever deflection is determined. Also, using the COMSOL software to model a cantilever in a liquid medium, the computed natural frequencies have been compared.