The AFM uses a sharp tip, typically made of silicon or silicon nitride, attached to a flexible cantilever. As the tip scans the surface of a sample, forces between the tip and the sample cause the cantilever to deflect. These deflections are monitored using a laser beam reflected off the top of the cantilever into a photodetector. By analyzing these deflections, a high-resolution map of the surface can be constructed.