Knowledge / Civil Engineering / Matrix methods of structural analysis

Matrix methods of structural analysis

Civil Engineering (B.E./B.Tech) · Structural analysis and design · free study notes for exams, placements and interviews

In short

Matrix methods recast classical structural analysis (consistent deformation, slope-deflection, moment distribution) into matrix algebra, so that a whole frame, truss or grid is solved by forming matrices and solving one set of simultaneous equations. The two formulations are the flexibility (force) method, which takes redundant forces as unknowns, and the stiffness (displacement) method, which takes joint displacements as unknowns and is the basis of every commercial package (STAAD.Pro, ETABS, SAP2000, MIDAS, RSTAB). It is a compulsory core paper in B.E./B.Tech Civil (AICTE model curriculum, "Structural Analysis II" / "Advanced Structural Analysis") and a reliable 6-10 mark block in GATE CE, ESE and state PSC-AE papers. In interviews with L&T, Tata Projects, AECOM, Jacobs, WSP, AFCONS and design consultancies, candidates are asked what the software is actually doing - stiffness assembly, boundary conditions, why results look wrong - rather than hand calculations.

Explained

Why matrix methods, and the two formulations

Indeterminacy and degrees of freedom (the input to both methods)

Flexibility (force) method, step by step

  1. Compute Ds and choose Ds redundants {X} (a reaction, an internal moment, a bar force). The remaining structure - the released/primary structure - must be stable and determinate.
  2. Analyse the released structure under the applied loads; find displacements {ΔL} at the released coordinates (unit-load method, moment-area, or standard results).
  3. Apply a unit value of each redundant in turn on the released structure and find displacements at all coordinates → flexibility matrix [f], where f_ij = displacement at i due to unit force at j.
  4. Compatibility: the real displacement at each released coordinate must equal its actual value (zero for a rigid support, δ for a settlement): {ΔL} + [f]{X} = {Δ_actual}.
  5. Solve {X} = [f]⁻¹({Δ_actual} − {ΔL}); then superpose: final force = load-case value + Σ X_i × (unit-case value).
  6. f_ij = ∫ (m_i m_j / EI) dx + ∫ (n_i n_j / AE) dx + ∫ (t_i t_j / GJ) dx - bending usually dominates in beams and frames, axial terms dominate in trusses.
  7. [f] is symmetric (Maxwell-Betti reciprocal theorem) and positive definite - a useful check before inverting.
  8. Advantages: small matrix when Ds is small; redundant forces come out directly; good for arches, rings and cable structures.
  9. Limitations: choice of released structure is not unique and a poor choice makes [f] ill-conditioned; not programmable in a general way; support settlement and temperature need care.

Stiffness (displacement) method and element matrices

  1. Number the joints, then number the DOFs - unrestrained first (1…n), restrained last is the convention that makes partitioning easy.
  2. Write each member's element stiffness matrix in its local axes; transform to global axes with [k] = [T]ᵀ[k′][T].
  3. Assemble the global stiffness matrix [K] by adding each element's terms into the rows/columns of its own DOF numbers (direct stiffness / code-number technique).
  4. Form the load vector {P}: joint loads applied directly; member loads converted to equivalent joint loads = minus the fixed-end forces (FEMs).
  5. Apply boundary conditions and solve {Δ} = [K]⁻¹{P} for the free DOFs.
  6. Back-substitute: member end forces {F} = [k]{δ} + {FEF}; support reactions from the restrained-DOF rows.
  7. Axial (truss) element, local: (AE/L) × [[1, −1], [−1, 1]].
  8. Plane truss element, global (4×4): (AE/L) × [[c², cs, −c², −cs], [cs, s², −cs, −s²], [−c², −cs, c², cs], [−cs, −s², cs, s²]], where c = cos θ, s = sin θ.
  9. Beam element (4×4) for DOFs v₁, θ₁, v₂, θ₂ - see the formula box; the rotational sub-matrix (4EI/L, 2EI/L) is exactly slope-deflection in matrix form.
  10. Plane frame element (6×6) = axial 2×2 + flexural 4×4 combined; grid element uses bending + torsion (GJ/L); space frame element is 12×12.
  11. [K] is symmetric, banded and sparse; before supports are applied it is singular (rigid-body modes), which is why an unrestrained model refuses to solve.
  12. Boundary conditions: (a) elimination - delete rows/columns of restrained DOFs (exact, standard in hand work); (b) penalty - add a very large stiffness at the DOF (easy to code, used for springs and elastic supports); (c) Lagrange multipliers for constraints.
  13. Prescribed support settlement δ: either add its contribution as an equivalent load {P} = −[K_fs]{δ_s}, or solve the partitioned system; temperature rise and lack of fit enter as fixed-end forces (axial member: F = EAαΔT).

Computer implementation and practical issues

Key points

Formulas and examples

Indeterminacy: Ds = m + r − 2j (plane truss), 3m + r − 3j (plane frame), 6m + r − 6j (space frame); Dk = 2j − r (plane truss), 3j − r (plane frame), 6j − r (space frame). m = members, r = reaction components, j = joints.
Flexibility method: {ΔL} + [f]{X} = {Δ_actual} → {X} = [f]⁻¹({Δ_actual} − {ΔL}). X = redundant force (kN or kN·m), f in mm/kN or rad/kN·m, ΔL = displacement of released structure at the redundant coordinate.
f_ij = ∫ (m_i m_j / EI) dx + ∫ (n_i n_j / AE) dx (+ ∫ t_i t_j / GJ dx for torsion). m, n, t = BM, axial force and torque due to unit force at i or j.
Stiffness method: {P} = [K]{Δ}; {Δ} = [K]⁻¹{P}; [k] = [f]⁻¹; {F}member = [k]{δ} + {FEF}.
Axial element (local): [k′] = (AE/L) | 1 −1 ; −1 1 |, A in mm², E in N/mm², L in mm → k in N/mm (÷1,000 for kN/mm).
Plane truss element (global, DOF u_i v_i u_j v_j): [k] = (AE/L) | c² cs −c² −cs ; cs s² −cs −s² ; −c² −cs c² cs ; −cs −s² cs s² |, c = cos θ, s = sin θ.
Beam element (DOF v₁ θ₁ v₂ θ₂): [k] = (EI/L³) | 12 6L −12 6L ; 6L 4L² −6L 2L² ; −12 −6L 12 −6L ; 6L 2L² −6L 4L² |, EI in kN·m², L in m.
Rotational (slope-deflection) form: M_near = (4EI/L)θ_near + (2EI/L)θ_far − (6EI/L²)Δ + FEM.
Standard FEMs: UDL w over span L → wL²/12 each end; central point load W → WL/8; settlement Δ (both ends fixed) → 6EIΔ/L².
Transformation: {δ′} = [T]{δ}; [k]global = [T]ᵀ[k′][T]; [T] orthogonal, so [T]⁻¹ = [T]ᵀ.
Temperature/lack of fit: axial fixed-end force F = E A α ΔT (α in /°C); half bandwidth B = (ΔN_max + 1) × DOF per node.

Example 1 - Indeterminacy and matrix sizes. Single-bay single-storey portal frame, both supports fixed: m = 3, j = 4, r = 6.

Example 2 - Flexibility method, propped cantilever. Span L = 6 m fixed at A, roller at B, UDL w = 20 kN/m, EI = 30,000 kN·m² constant. Redundant X = vertical reaction at B (Ds = 1).

Example 3 - Stiffness method, continuous beam (2 DOF). Beam A-B-C: A fixed, B and C simple supports (rollers); AB = 6 m, BC = 4 m, EI = 30,000 kN·m², UDL 20 kN/m on AB only. Unknown DOFs: θB (1), θC (2). Anticlockwise moments positive.

Example 4 - Truss element matrix and bar force. Diagonal member: A = 1,200 mm², E = 2 × 10⁵ N/mm², L = 4 m = 4,000 mm, inclined with c = 0.8, s = 0.6 (3-4-5 geometry).

Example 5 - Direct stiffness assembly, stepped bar. Nodes 1-2-3 in a line; element 1 (1-2) has AE/L = 100 kN/mm, element 2 (2-3) has AE/L = 50 kN/mm. Node 1 fixed, axial load P = 60 kN at node 3.

FeatureFlexibility (force) methodStiffness (displacement) method
UnknownsRedundant forces {X}Joint displacements {Δ}
Number of equationsDs (static indeterminacy)Dk (degrees of freedom)
Equations written fromCompatibility of displacementsEquilibrium at joints
Matrix formedFlexibility [f]Stiffness [K]
Needs released structureYes - choice by judgementNo - restrained (fixed-joint) state is unique
Suits determinate structuresNot applicable (Ds = 0)Yes, works unchanged
ProgrammabilityPoorExcellent - element-by-element assembly
Hand useArches, rings, low-Ds beamsFrames, grids, trusses with few DOFs
Classical equivalentConsistent deformation, Castigliano IISlope-deflection, moment distribution

Where it is used

Interview questions

Common mistakes

Related topics

Structural analysis: determinate and indeterminate structures · Structural dynamics basics · Tall buildings, shear walls and lateral loads · Steel structures design (IS 800) · Reinforced concrete design (IS 456) · Bridge engineering

Open in the Knowledge reader →Find jobs →