Newton vs. Euler–Lagrange approach, or how and when beam equations are variational | Synapse