Source: https://my.eng.utah.edu/~lzang/images/Lecture_10_AFM.pdf