Matrix Stiffness and Direct Stiffness MethodsIntroduction and ContextThe matrix stiffness method is one of the most important general procedures in modern structural analysis. It provides a systematic relationship between nodal forces and nodal displacements and forms the theoretical foundation of the finite element method used in structural engineering software. Unlike classical force methods, which take member forces as primary unknowns, the stiffness method treats joint displacements as the fundamental unknowns. For a linear elastic structure, the central relationship is K d = F where K is the assembled global stiffness matrix, d is the vector of unknown nodal displacements and rotations, and F is the vector of applied nodal forces and moments. The equation applies under the assumptions of small displacement, linear elastic material behaviour, compatible deformation, and properly specified boundary conditions. The direct stiffness method is an implementation-oriented form of the matrix stiffness method. It constructs the structure’s global stiffness matrix directly from individual member stiffness matrices, transforms member quantities into global coordinates, assembles the contributions at common nodes, applies restraints, and solves the resulting simultaneous equations. The method is particularly valuable for continuous beams, plane and space trusses, rigid frames, grids, plates, shells, and three-dimensional finite element models. Learning ObjectivesBy the end of this chapter, the reader should be able to: - Explain the displacement-based basis of the matrix stiffness method.
- Derive and interpret local stiffness matrices for common structural elements.
- Transform element stiffness matrices between local and global coordinate systems.
- Assemble a global stiffness matrix using the direct stiffness procedure.
- Apply support conditions and solve for nodal displacements.
- Recover member end forces, reactions, and internal actions.
- Identify singularity, mechanisms, ill-conditioning, and modelling errors.
- Evaluate the practical use of matrix methods in structural software and finite element analysis.
1. Fundamental Concepts1.1 Degrees of freedomA degree of freedom (DOF) is an independent displacement or rotation required to describe the configuration of a structural model. A plane truss joint generally has two translational DOFs, u and v. A plane frame joint generally has three DOFs: horizontal translation u, vertical translation v, and rotation θ. The nodal displacement vector is written as d = {d₁, d₂, …, dₙ}ᵀ The corresponding nodal action vector contains forces and moments: F = {F₁, F₂, …, Fₙ}ᵀ Translations must be expressed in a length unit and rotations in radians. Forces and moments must be dimensionally compatible with the stiffness coefficients. 1.2 Flexibility and stiffnessFlexibility relates deformation to applied force, whereas stiffness relates force to deformation. For a single axial member, N = (EA/L) Δ where N is axial force, E is Young’s modulus, A is cross-sectional area, L is member length, and Δ is axial extension. The axial stiffness EA/L has units of force per length. For a general structure, the equivalent relationship is F = Kd. The matrix K therefore contains the force required at each degree of freedom when a unit displacement is imposed at one DOF while all other free DOFs are held fixed. 1.3 Energy interpretationFor a linearly elastic structure, the strain energy is U = ½ dᵀ K d The matrix K is symmetric when the material is elastic and the structural formulation is conservative. Positive definiteness is expected for a stable structure after all rigid-body motions have been restrained. A free structure may have zero-energy rigid-body modes, so its unrestrained stiffness matrix is generally positive semidefinite rather than positive definite. 2. Element Stiffness MatricesThe direct stiffness method begins with an element-level force–displacement relationship. The element matrix is derived using equilibrium, compatibility, constitutive laws, or the principle of virtual work. 2.1 Two-node axial bar in local coordinatesConsider a prismatic axial member with local nodal displacements u₁ and u₂. The displacement field is assumed linear: u(x) = (1 − x/L)u₁ + (x/L)u₂ The constant axial strain is ε = du/dx = (u₂ − u₁)/L Using σ = Eε and N = Aσ, the element force relationship is {N₁, N₂}ᵀ = (EA/L) [ [1, −1], [−1, 1] ] {u₁, u₂}ᵀ The signs depend on the selected positive directions and on whether end actions are defined as forces exerted on or by the element. Consistent sign conventions must be used during assembly and force recovery. 2.2 Plane truss element in global coordinatesLet a two-dimensional truss member connect nodes i and j. Define c = cos θ = (xⱼ − xᵢ)/L s = sin θ = (yⱼ − yᵢ)/L where θ is the angle measured from the global x-axis. The global displacement vector is dₑ = {uᵢ, vᵢ, uⱼ, vⱼ}ᵀ The extension of the member is Δ = [−c, −s, c, s] dₑ Thus the plane truss stiffness matrix is kₑ = (EA/L) [ c² cs −c² −cs cs s² −cs −s² −c² −cs c² cs −cs −s² cs s² ] The matrix has units of force per length. It is symmetric and has rank one for an ideal axial member because the element resists only extension along its axis. It does not resist transverse deformation or nodal rotation. 2.3 Euler–Bernoulli beam elementFor a two-node beam in local coordinates, each node has a transverse displacement and a rotation. The local DOF vector is dₑ = {v₁, θ₁, v₂, θ₂}ᵀ For a prismatic Euler–Bernoulli beam with constant EI, the local bending stiffness matrix is kₑ = (EI/L³) [ 12 6L −12 6L 6L 4L² −6L 2L² −12 −6L 12 −6L 6L 2L² −6L 4L² ] Here E is Young’s modulus, I is the second moment of area, and L is element length. The formulation assumes small deflection, plane sections remaining plane, negligible shear deformation, constant properties, and linear elastic behaviour. For deep beams or short members, a Timoshenko beam formulation may be more appropriate because it includes transverse shear deformation. 2.4 Plane frame elementA two-dimensional frame element combines axial and bending actions. Its local DOF vector is dₑˡ = {u₁, v₁, θ₁, u₂, v₂, θ₂}ᵀ The local stiffness matrix is kₑˡ = [ EA/L 0 0 −EA/L 0 0 0 12EI/L³ 6EI/L² 0 −12EI/L³ 6EI/L² 0 6EI/L² 4EI/L 0 −6EI/L² 2EI/L −EA/L 0 0 EA/L 0 0 0 −12EI/L³ −6EI/L² 0 12EI/L³ −6EI/L² 0 6EI/L² 2EI/L 0 −6EI/L² 4EI/L ] This matrix assumes that axial and bending deformations are uncoupled in the local member coordinate system. It is widely used for plane rigid-jointed frames. 3. Coordinate TransformationElement matrices are often most easily derived in local coordinates, whereas nodal displacements and loads are stored in global coordinates. A transformation is therefore required. For a plane frame member, define the transformation matrix T such that dₑˡ = T dₑᵍ where dₑˡ and dₑᵍ are local and global element displacement vectors. For a member at angle θ, T = [ c s 0 0 0 0 −s c 0 0 0 0 0 0 1 0 0 0 0 0 0 c s 0 0 0 0 −s c 0 0 0 0 0 0 1 ] The global element stiffness matrix is kₑᵍ = Tᵀ kₑˡ T The transpose appears because virtual work and energy must be invariant under coordinate transformation. The same transformation must be used consistently for displacements, forces, and stiffness matrices. 4. Assembly of the Global Stiffness Matrix4.1 Direct stiffness procedureThe standard procedure is: - Define nodes, elements, coordinates, material properties, sections, and DOF numbering.
- Construct each element stiffness matrix in local coordinates.
- Transform each matrix into global coordinates if necessary.
- Add element contributions into the appropriate locations of the global matrix.
- Assemble the global load vector, including nodal loads and equivalent nodal loads from distributed actions.
- Apply support restraints and prescribed displacements.
- Solve for the unknown nodal displacements.
- Recover reactions and element end forces.
- Check equilibrium, compatibility, and, where possible, energy consistency.
4.2 Assembly operatorLet Aₑ be a Boolean or signed connectivity matrix that maps element DOFs to global DOFs. The global stiffness matrix can be expressed compactly as K = ∑ₑ Aₑᵀ kₑ Aₑ Similarly, element load vectors may be assembled through F = ∑ₑ Aₑᵀ fₑ + P where fₑ is an element equivalent nodal load vector and P is the externally applied nodal load vector. This expression is especially useful in finite element programming because it separates element calculations from global numbering. 4.3 Equivalent nodal loadsA distributed load should not normally be inserted directly into a nodal load vector without conversion. It must be replaced by an equivalent nodal force vector that produces the same virtual work for the selected interpolation functions. For a two-node beam subjected to a uniform transverse load w over length L, one common local consistent-load vector is fₑ = {wL/2, wL²/12, wL/2, −wL²/12}ᵀ The signs depend on the chosen positive transverse direction, rotation convention, and whether the vector represents applied loads or fixed-end actions. This is an important area where software conventions differ; the load vector must be consistent with the element stiffness and end-force definitions. 5. Boundary Conditions and SolutionPartition the assembled system into free and restrained DOFs: [ Kff Kfr ] {df} = {Ff} [ Krf Krr ] {dr} {Fr} If restrained displacements are zero, the reduced equations are Kff df = Ff If nonzero prescribed displacements exist, then Kff df = Ff − Kfr dr The reactions at restrained DOFs are obtained from R = Krf df + Krr dr − Fr The exact sign of the reported reaction depends on whether F is defined as the applied external load vector or the total nodal action vector. A complete analysis must clearly state this convention. Common implementation techniques include elimination, the penalty method, Lagrange multipliers, and multi-point constraint transformations. Elimination is generally simple and numerically reliable for standard support conditions. Penalty methods are convenient but may introduce poor conditioning if the penalty parameter is excessively large or small. Lagrange multipliers enforce constraints exactly but enlarge the system and may produce an indefinite matrix. 6. Worked Example: Two-Element Axial BarProblemA straight axial bar consists of two collinear elements. Node 1 is fixed, node 2 is an internal node, and node 3 carries a tensile load of 30 kN. Each element has E = 200 GPa, A = 600 mm², and length L = 1.5 m. Determine the displacement of node 2, displacement of node 3, and support reaction. Consistent unitsUse N and mm. Then E = 200,000 N/mm², A = 600 mm², and L = 1,500 mm. The element stiffness is k = EA/L = (200,000 × 600)/1,500 = 80,000 N/mm AssemblyFor two identical axial elements, the global stiffness matrix before applying the support condition is K = 80,000 [ 1 −1 0 −1 2 −1 0 −1 1 ] N/mm Node 1 is restrained, so u₁ = 0. The reduced system for nodes 2 and 3 is 80,000 [ 2 −1 −1 1 ] {u₂, u₃}ᵀ = {0, 30,000}ᵀ N Dividing by 80,000 gives [2 −1; −1 1] {u₂, u₃}ᵀ = {0, 0.375}ᵀ mm The second equation gives u₃ = u₂ + 0.375. Substitution into the first gives 2u₂ − (u₂ + 0.375) = 0, hence u₂ = 0.375 mm and u₃ = 0.750 mm The reaction at node 1 is 30 kN in compression relative to the applied tensile load, so its magnitude is 30 kN. The extension of each element is 0.375 mm, giving an element force of N = (80,000)(0.375) = 30,000 N = 30 kN The result satisfies equilibrium and compatibility. It also illustrates that the node at the interface carries no externally applied load but still has a nonzero displacement because it is part of the continuous structure. 7. Numerical and Computational Considerations7.1 Symmetry and sparsityFor conventional linear elastic structures, K = Kᵀ. Large structural models also produce sparse matrices because each element connects only a small number of DOFs. Sparse storage and factorization are therefore essential for computational efficiency. 7.2 Singularity and mechanismsA singular or nearly singular stiffness matrix may indicate: - an unconstrained rigid-body motion;
- an unstable structural mechanism;
- an incorrectly connected element;
- a missing rotational restraint;
- duplicate or disconnected nodes;
- an incorrect transformation matrix; or
- an inappropriate element formulation.
A singular matrix is not merely a numerical inconvenience. It may represent a physically unstable structure. Artificially restraining a DOF to force a solution can conceal a serious modelling error. 7.3 ConditioningThe condition number of a matrix measures sensitivity of the solution to numerical perturbations. Large differences in material stiffness, element size, section properties, or units can create ill-conditioning. Good practice includes consistent units, appropriate scaling, avoidance of excessively distorted elements, and use of numerically stable solvers. 7.4 Linear versus nonlinear analysisThe basic direct stiffness method is linear when K is constant. In nonlinear analysis, the tangent stiffness matrix changes with displacement, material state, contact condition, or geometry. The equilibrium equations are solved incrementally, commonly using Newton–Raphson iteration: Kₜ(uᵢ) Δuᵢ = Rext − Rint(uᵢ) where Kₜ is the tangent stiffness matrix, Rext is the external load vector, Rint is the internal resisting-force vector, and Δuᵢ is the iterative displacement correction. Convergence requires specified tolerances on residual forces, displacement increments, or energy error. 8. Applied Case: Analysis of a Small Portal FrameBackgroundConsider an illustrative single-storey steel portal frame with rigid beam-to-column joints. The columns are fixed at their bases, and a horizontal wind load acts at the beam level. The frame is modelled using two-dimensional frame elements with six DOFs per element end. ProblemThe design team must estimate lateral drift, column bending moments, and base reactions before selecting preliminary member sizes. A hand calculation based only on independent column cantilevers is considered inadequate because beam–column interaction influences both stiffness and force distribution. Analysis approachThe frame is idealized using nodes at the two bases and two beam–column joints. Each member is assigned E, A, and I. Local frame matrices are generated, transformed according to member orientation, and assembled into the global matrix. Base translations and rotations are restrained. The horizontal wind load is applied at the upper nodes or represented through equivalent nodal loads if it is distributed. The reduced system is solved for joint translations and rotations. Member end forces are then calculated using qₑˡ = kₑˡ dₑˡ − fₑˡ where qₑˡ is the local member-end action vector and fₑˡ is the consistent local element-load vector. The sign convention must be maintained when interpreting shear, axial force, and bending moment diagrams. Outcome and engineering interpretationThe solution provides lateral drift, which can be checked against the applicable serviceability limit; base shears and overturning reactions, which support foundation design; and member end moments, which support strength design. A sensitivity study can then be performed by changing I, joint releases, or support conditions. This often reveals that drift is more sensitive to flexural stiffness than to axial area, whereas axial force distribution may be strongly affected by geometry and load path. Learning points- The global model must reflect the actual connectivity and releases.
- A beam element and a frame element are not interchangeable when axial deformation matters.
- Member forces must be recovered in local coordinates.
- Numerical output requires engineering verification through equilibrium and plausible deformation patterns.
- A software result is not a substitute for selecting an appropriate structural idealization.
9. Professional Practice, Verification, and LimitationsThe direct stiffness method is powerful but depends on modelling assumptions. Important limitations include: - Linear elastic analysis does not predict yielding, cracking, crushing, or large-displacement effects without suitable extensions.
- Euler–Bernoulli elements may overestimate stiffness for deep beams.
- Rigid joints, hinges, offsets, and releases must be explicitly represented.
- Concentrated loads applied at inappropriate locations may create unrealistic local effects.
- Mesh refinement can change results, especially near discontinuities, supports, openings, and singular stress regions.
- Reaction and member-force signs can be misinterpreted if software conventions are not documented.
A professional verification process should include independent checks of total equilibrium, support reactions, symmetry where applicable, limiting cases, and dimensional consistency. Results should be compared with simple hand calculations for selected actions. For large finite element models, mesh convergence studies and sensitivity analyses are essential. Structural engineers must also comply with the governing building code, material standards, design combinations, serviceability criteria, and quality-assurance requirements. The matrix method itself does not determine whether a structure is safe; it supplies an analysis model whose assumptions and results must be judged by competent professionals. 10. Contemporary DevelopmentsModern structural analysis systems extend the direct stiffness method through nonlinear material models, geometric stiffness, contact elements, dynamic analysis, probabilistic simulation, and parallel sparse solvers. Automated model generation and AI-assisted error detection can help identify disconnected elements, unusual stiffness values, or inconsistent boundary conditions. However, such tools should be treated as aids to engineering judgement. Explainability, traceability, version control, and independent validation remain necessary, particularly for safety-critical structures. Chapter SummaryThe matrix stiffness method expresses structural equilibrium through the relationship Kd = F, with nodal displacements as the primary unknowns. The direct stiffness method builds the global matrix from element stiffness matrices, coordinate transformations, connectivity information, and boundary conditions. Axial, truss, beam, and frame elements have distinct stiffness formulations and assumptions. Assembly is performed by placing element contributions into the appropriate global DOF locations. Support conditions reduce or constrain the system, after which nodal displacements, reactions, and member forces are recovered. Singularity may indicate a mechanism or modelling error, while poor conditioning can result from incompatible units or extreme stiffness contrasts. Reliable engineering practice requires equilibrium checks, appropriate element selection, code compliance, and critical interpretation of software results. Key TermsDegree of freedom: An independent displacement or rotation in a structural model. Global stiffness matrix: The assembled matrix relating global nodal actions to global nodal displacements. Element stiffness matrix: The force–displacement matrix of an individual structural element. Direct stiffness method: A procedure that assembles element matrices directly into a global structural matrix. Local coordinates: Coordinates attached to an element, usually with one axis along its longitudinal direction. Global coordinates: A common reference coordinate system for the complete structure. Transformation matrix: A matrix that converts element quantities between local and global coordinates. Assembly: The process of adding element contributions to the corresponding global DOF locations. Equivalent nodal load: Nodal loading that reproduces the virtual work of a distributed element load. Boundary condition: A prescribed displacement, rotation, force, or support constraint. Reaction: An action developed at a restrained degree of freedom. Mechanism: A kinematic mode that permits deformation without corresponding strain energy. Singular matrix: A matrix that cannot be uniquely inverted, often indicating instability or missing constraints. Conditioning: The numerical sensitivity of a system of equations to perturbations. Consistent mass or load formulation: A formulation derived using the same interpolation functions as the element displacement field. Euler–Bernoulli beam: A beam model neglecting transverse shear deformation. Timoshenko beam: A beam model including transverse shear deformation and rotational effects. Tangent stiffness: The incremental stiffness used in nonlinear equilibrium iterations. Compatibility: The requirement that connected elements have geometrically consistent deformations. Virtual work: Work-equivalence principle used to derive element equations and equivalent nodal actions. Review QuestionsShort Answer Questions- What is the physical meaning of a coefficient in a structural stiffness matrix?
- Why is the global element matrix obtained from kᵍ = TᵀkˡT?
- State two assumptions of the Euler–Bernoulli beam element.
- What are two possible causes of a singular global stiffness matrix?
- Why must distributed loads be converted into equivalent nodal loads in a displacement-based formulation?
Long Answer Questions- Derive the stiffness matrix of a two-node axial bar using the linear displacement field and constitutive relation.
- Explain the complete direct stiffness algorithm for a plane frame, from structural idealization to member-force recovery.
- Derive the coordinate transformation concept for a plane truss element and explain the roles of c and s.
- Compare elimination, penalty, and Lagrange-multiplier techniques for applying support constraints.
- Discuss the sources and engineering significance of singularity and ill-conditioning in structural analysis.
Analytical / Application Questions- A two-element axial bar has EA/L = 50,000 N/mm for each element. Node 1 is fixed and a 20 kN tensile load acts at node 3. Assemble the reduced stiffness matrix and calculate the nodal displacements.
- Develop a plane-frame model for a single-storey portal frame subjected to lateral load. Specify nodes, DOFs, restraints, element properties, load vector, verification checks, and expected deformation patterns.
- A beam model gives a lateral drift twice the value predicted by a hand calculation. Identify at least five modelling or interpretation checks that should be completed before accepting either result.
Multiple Choice Questions with AnswersQuestion 1In the matrix stiffness method, the primary unknowns are generally: A. Member bending moments B. Nodal displacements and rotations C. Support reactions only D. Material stresses only Correct Answer: B. Nodal displacements and rotations Question 2For a two-node axial bar, the elemental axial stiffness is: A. EA/L B. EI/L³ C. EA/L³ D. EI/L Correct Answer: A. EA/L Question 3The global stiffness matrix of a transformed element is obtained as: A. TkTᵀ B. T⁻¹kT C. TᵀkT D. kTᵀTᵀ Correct Answer: C. TᵀkT Question 4Which property normally characterizes the stiffness matrix of a conservative linear elastic structure? A. It is antisymmetric B. It is symmetric C. It contains only negative terms D. It is always diagonal Correct Answer: B. It is symmetric Question 5A singular global stiffness matrix may indicate: A. A perfectly constrained stable structure B. A rigid-body mode or structural mechanism C. An automatically converged nonlinear solution D. A dimensionally consistent unit system Correct Answer: B. A rigid-body mode or structural mechanism Question 6For the two-element axial-bar example in the chapter, the displacement of node 3 is: A. 0.125 mm B. 0.375 mm C. 0.750 mm D. 1.500 mm Correct Answer: C. 0.750 mm Question 7The Euler–Bernoulli beam formulation generally neglects: A. Axial equilibrium B. Transverse shear deformation C. Bending stiffness D. Nodal rotations Correct Answer: B. Transverse shear deformation Question 8The purpose of assembling element matrices is to: A. Remove all support conditions B. Place element contributions into the corresponding global DOF locations C. Convert forces into stresses without displacement calculations D. Eliminate the need for coordinate systems Correct Answer: B. Place element contributions into the corresponding global DOF locations Question 9In a nonlinear incremental analysis, the matrix used in a Newton–Raphson iteration is commonly called the: A. Flexibility matrix B. Tangent stiffness matrix C. Mass-normalization matrix D. Connectivity matrix Correct Answer: B. Tangent stiffness matrix Question 10For the axial-bar example, each element force after applying the 30 kN end load is: A. 10 kN B. 15 kN C. 20 kN D. 30 kN Correct Answer: D. 30 kN
|