Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer) · Last updated
Reference texts.
Sign convention used throughout. End moments are counter-clockwise positive, the convention that matches the standard six-degree-of-freedom stiffness element. In it the slope-deflection equation is
$$M_{ij}=\frac{2EI}{L}\bigl(2\theta_i+\theta_j-3\psi_{ij}\bigr)+\mathrm{FEM}_{ij}$$the chord rotation is $\psi_{ij}=\bigl[(\mathbf{d}_j-\mathbf{d}_i)\cdot\mathbf{e}_2\bigr]/L$ with $\mathbf{e}_2$ the member axis turned $+90^\circ$, the fixed-end moment of a downward UDL is $\mathrm{FEM}_{i}=+wL^{2}/12$ and $\mathrm{FEM}_{j}=-wL^{2}/12$, and the ordinary sagging bending moment is recovered as $M_{\text{sag}}(i)=-M_{ij}$ and $M_{\text{sag}}(j)=+M_{ji}$. Every translation degree of freedom is closed with the virtual-work statement
$$\sum_{\text{members}}\bigl(M_{ij}+M_{ji}\bigr)\,\psi^{*}_{ij}\;+\;\sum \mathbf{F}\cdot\mathbf{d}^{*}=0$$in which $\mathbf{F}$ are the equivalent nodal loads and $\mathbf{d}^{*}$, $\psi^{*}$ belong to the unit sway pattern. Mixing this with the clockwise-positive convention of some textbooks produces clean-looking but wrong answers, which is the single most common failure on this subject.