This document presents a theoretical and numerical analysis of the displacement of double clamped and cantilever beams under a load. It derives the theoretical solutions using calculus of variations and defines the boundary conditions. It also models the beams in ANSYS and SolidWorks to calculate the displacement numerically using finite element analysis. The theoretical and numerical results are then compared to calculate the relative differences.