I am master student and doing an assignment of Finite element method. In the instruction I could not understand the derivation of the weak form, which should not be difficult. I'm sorry for posting this easy and most likely not helpful question for other people.
So the derivation is about the weak form of the integral formulation of 4th ODE. It is a simple beam deformation in the interval 0 and L. $$ \int_0^L\frac{d^2 w}{d x^2}EI\frac{d^2 \hat{u}}{d x^2}dx = ...$$ $$ \left( \left. w EI \frac{d^3 \hat{u}}{d x^3} \right|_{x=0} \right. -\left( \left. \frac{d w}{dx} EI \frac{d^2 \hat{u}}{d x^2} \right|_{x=0} \right. -\left( \left. w EI \frac{d^3 \hat{u}}{d x^3} \right|_{x=L} \right. +\left( \left. \frac{d w}{dx} EI \frac{d^2 \hat{u}}{d x^2} \right|_{x=L} \right. $$
I thought about partial integration $$\int u(x) v'(x) \, dx = u(x) v(x) - \int v(x) \, u'(x) dx $$ then I ended up $$\frac{d^2u}{dx^2}\frac{dw}{dx} - \int \frac{dw}{dx}\frac{d^3x}{dx^3}d x$$ if I continue the partial integration to the 2nd term then derivative will be 4th order...
How can I get the following? $$ \left( \left. w EI \frac{d^3 \hat{u}}{d x^3} \right|_{x=0} \right. -\left( \left. \frac{d w}{dx} EI \frac{d^2 \hat{u}}{d x^2} \right|_{x=0} \right. -\left( \left. w EI \frac{d^3 \hat{u}}{d x^3} \right|_{x=L} \right. +\left( \left. \frac{d w}{dx} EI \frac{d^2 \hat{u}}{d x^2} \right|_{x=L} \right. $$