Structural analysis by finite difference calculus