This document contrasts vector mechanics and variational formulations for structural analysis. It uses the example of a simply supported beam under a uniformly distributed load to illustrate the approaches.
[1] Using vector mechanics, the beam is modeled as discrete elements and equilibrium equations are written for each element and solved. [2] Alternatively, the variational approach introduces a potential energy function for the system and finds the shape that minimizes this function. [3] For the beam example, an approximate solution is first found using a simple shape function, then a more accurate solution is obtained using a shape function with more degrees of freedom that matches the exact solution.