A cantilever's operation is based on its ability to bend or vibrate in response to external forces. When a force is applied to the free end, it causes the cantilever to deflect. The amount of deflection can be measured using various techniques such as optical detection or piezoelectric sensors. This deflection data can then be used to infer information about the force applied or the properties of the material being tested.