The bar in the picture is subjected to a distributed force f(x) and tensile forces at the both ends. Derive the governing equilibrium equation in terms of displacement u and the associated boundary conditions. (First find the potential energy of deformation, potential energy of forces acting on the body, the total potential energy of the system)