The first row of flexibility matrix for the co-ordinate system as shown in figure is :
First row of the flexibility matrix is
F11=l3EI
F12=(l/3)22EI+(l/3)(l/3)EI=l218EI+l29EI
⇒F12=l26EI
F13=−l3EI