Local Linearity Calculus