Derive the flexibility matrix for the simple beam of span L and flexural rigidity EI shown in figure subjected to end moments M1 and M2