The document provides a detailed analysis of a sway-type portal frame using the direct stiffness matrix method, covering steps such as determining degrees of freedom, fixed end moments, and the assembly of the stiffness matrix. It also includes calculations of actual forces and final moments for various members of the frame, highlighting the impacts of external loads on the structure. The analysis showcases the method's application in civil engineering for structural stability assessments.