The governing differential equation for the bar component in the figure is given as

where the subscribed comma denotes the differentiation with respect to the spatial coordinate, i.e., u,1 = du/dx. Derive the weak form using the principle of virtual work.
