Calculate elastic strain energy for a cantilever beam with a point load