🏗️ Civil Engineering

Matrix Methods

Start MCQ Practice →

Matrix Methods

Subject: Civil Engineering Chapter: Theory of Structures Topic: 5.5 Matrix Methods

1. Introduction

Matrix methods of structural analysis are the systematic procedures in which all the operations of structural analysis, namely the formulation of member force-displacement relations, the assembly of the structure equations and the solution for unknowns, are carried out with the help of matrix algebra. The two fundamental approaches are the flexibility method, also called the force method or the compatibility method, and the stiffness method, also called the displacement method or the equilibrium method. In the flexibility method the redundant forces are the primary unknowns, while in the stiffness method the joint displacements are the primary unknowns. Both methods lead to a compact set of simultaneous equations which are ideal for computer solution.

The matrix formulation removes the limitations of hand methods and provides a uniform procedure that works for every type of structure, whether it is a truss, a beam, a frame or a grid. The primary advantage is that the same set of operations, when repeated for every element, produces a computer program that can analyse a structure with hundreds of members in seconds. The matrices of flexibility and stiffness are exact inverses of each other for the same degree of freedom set, and this duality is the central idea that links the force method and the displacement method.

In the examinations, matrix methods are tested at the conceptual level, usually asking for the elements of the flexibility matrix, the stiffness matrix, the flexibility of a cantilever under an end load, or the steps of the force and displacement approaches. This chapter will explain the flexibility matrix and the stiffness matrix for the simplest elements, show how the two methods differ, and provide worked numerical examples on single-element systems, which are the standard examination questions.

2. Flexibility Method

In the flexibility method, the structure is first made statically determinate by releasing the redundant forces. The primary or released structure is then subjected separately to the external loads and to unit values of each redundant force. The flexibility coefficient fij is defined as the displacement at the point and in the direction of the redundant i due to a unit value of the redundant j acting on the released structure. By Maxwell's theorem of reciprocal displacements, the flexibility matrix is symmetric, so fij = fji.

The compatibility equations of the flexibility method state that the total displacement at each redundant is zero, because the redundant connects a point that cannot separate. If delta i is the displacement caused by the external loads at the location of redundant i, and fij are the flexibility coefficients, the compatibility equations are delta + F X = 0, where X is the vector of redundant forces. Solving this matrix equation gives the redundants, after which the determinate structure is analysed with the loads and the redundants acting together.

The flexibility matrix of a simple cantilever for the end rotation and end deflection is the classic example. For a cantilever of length L with EI constant, the tip deflection due to unit tip load is L3/3EI, the tip rotation due to unit tip moment is L/EI, the tip rotation due to unit tip load is L2/2EI, and the tip deflection due to unit tip moment is L2/2EI. The flexibility matrix therefore has these four coefficients, with the off-diagonal terms equal by reciprocity.

Numerical example: A cantilever of length 4 m with EI = 40000 kNm2 carries a tip load of 30 kN. Compute the tip deflection and the tip rotation. Solution: Tip deflection = PL3/3EI = 30 x 64 / (3 x 40000) = 1920 / 120000 = 0.016 m = 16 mm. Tip rotation = PL2/2EI = 30 x 16 / (2 x 40000) = 480 / 80000 = 0.006 rad.

3. Stiffness Method

In the stiffness method the unknown joint displacements are expressed in terms of the applied forces through the stiffness matrix. The stiffness coefficient Kij is defined as the force at degree of freedom i due to a unit displacement at degree of freedom j, with all other displacements held zero. The stiffness matrix is the inverse of the flexibility matrix for the same set of degrees of freedom, and like the flexibility matrix it is symmetric, so Kij = Kji.

The equilibrium equations of the stiffness method are written as F = K D, where F is the vector of applied joint forces, D is the vector of joint displacements and K is the assembled stiffness matrix. The displacement method is preferred in practice because the assembly of the stiffness matrix is systematic and the boundary conditions are easy to apply; virtually every commercial structural analysis program uses the stiffness approach. The stiffness matrix of a structure is banded and symmetric, which allows efficient storage.

The distinction between the two matrix methods is fundamental. In the flexibility method, the degree of static indeterminacy determines the size of the problem, because the number of redundants is the number of unknown forces. In the stiffness method, the degree of kinematic indeterminacy determines the size, because the number of unknown displacements is the number of equations. For highly indeterminate structures the stiffness method has fewer unknowns, while for structures with many joints and few redundants the flexibility method may be smaller.

Numerical example: A cantilever has a stiffness matrix relating tip force and tip moment to tip displacement and tip rotation. Given K11 = 3EI/L3 and the inverse flexibility relation, for L = 4 m and EI = 40000 kNm2, K11 = 3 x 40000 / 64 = 1875 kN/m. If the tip displacement under a 30 kN load is 0.016 m, then F = K11 delta = 1875 x 0.016 = 30 kN, which checks the calculation.

4. Transformation, Assembly and Solution

Both matrix methods require the transformation of the member matrices from local to global coordinates when members are inclined. The transformation matrix T, built from the direction cosines, relates local displacements to global displacements, and the transformed member stiffness matrix is kG = T T k T. For the flexibility method, the member flexibility matrices are also transformed, and the structure flexibility matrix is formed by applying the unit load theorem to the released structure.

The assembly of the structure stiffness matrix in the stiffness method is performed by superposition: the coefficients of each element matrix are added into the global matrix at the positions of the global numbers of the element degrees of freedom. The load vector is assembled by placing the applied joint loads at their global positions, and the boundary conditions are applied by eliminating the restrained degrees of freedom. The reduced system is solved for the displacements by matrix inversion, and the member forces are recovered from the element matrices.

The solution of the stiffness equations is normally carried out by Gaussian elimination or by matrix inversion, and for large systems specialised sparse solvers are used. The condition number of the stiffness matrix, which reflects the relative stiffness of the members, affects the numerical accuracy of the solution. A well-conditioned structure, in which the member stiffnesses are of similar magnitude, gives accurate results, while a structure with members of widely different stiffness may suffer from numerical ill-conditioning.

Numerical example: A plane truss has two members joining a free node to two fixed nodes. Member 1 is horizontal with EA/L = 100 kN/mm and member 2 is vertical with EA/L = 100 kN/mm. A vertical load of 80 kN acts at the free node. The vertical displacement of the free node is D = F/K22 = 80 / (0 + 100) = 0.8 mm, since member 1 is horizontal and does not resist the vertical load. Member 2 then carries the entire 80 kN in tension.

5. Quick Revision Tables

Table 1: Flexibility Coefficients of a Cantilever

Load at tip Tip deflection Tip rotation
Unit tip load P = 1 L3/3EI L2/2EI
Unit tip moment M = 1 L2/2EI L/EI
UDL w over full span wL4/8EI wL3/6EI
Point load W at mid-span 5WL3/48EI WL2/8EI

Table 2: Comparison of Matrix Methods

Feature Flexibility method Stiffness method
Primary unknowns Redundant forces Joint displacements
Basic equations Compatibility delta + F X = 0 Equilibrium F = K D
Size depends on Static indeterminacy Kinematic indeterminacy
Matrix property Symmetric, inverse of K Symmetric, positive definite
Used in software Rarely Almost always

6. Mind Map

flowchart TD
    A[Matrix Methods] --> B[Flexibility method]
    A --> C[Stiffness method]
    A --> D[Transformation]
    A --> E[Assembly and solution]
    B --> B1[Unknowns are redundants]
    B --> B2[Compatibility equations]
    B --> B3[delta + F X = 0]
    B --> B4[Flexibility matrix symmetric]
    C --> C1[Unknowns are displacements]
    C --> C2[Equilibrium F = K D]
    C --> C3[Size = kinematic indeterminacy]
    D --> D1[kG = T^T k T]
    E --> E1[Superpose at joints]
    E --> E2[Apply boundary conditions]
    E --> E3[Solve and recover forces]

7. Important Diagrams (SVG)

The following diagrams show the cantilever element whose flexibility and stiffness matrices are most frequently examined, and the two approaches of the force and displacement methods.

Cantilever Flexibility Coefficients Tip load P Deflected shape Tip deflection f11 = L3/3EI for unit load Tip rotation f21 = L2/2EI for unit load Flexibility matrix F = [L3/3EI L2/2EI; L2/2EI L/EI] Golden Rule The flexibility matrix is symmetric; the off-diagonal terms are equal by Maxwell's reciprocal theorem.

Force Method versus Displacement Method FLEXIBILITY / FORCE METHOD STIFFNESS / DISPLACEMENT Unknowns: redundant forces X Equations: compatibility Size = static indeterminacy Unknowns: displacements D Equations: equilibrium F = K D Size = kinematic indeterminacy Both matrices are symmetric and are inverses of each other. Software almost always uses the stiffness method. Release structure + unit load theorem for flexibility method. Element matrices assembled for stiffness method. Golden Rule Choose the method with fewer unknowns: redundants for flexibility, displacements for stiffness.

8. Common Mistakes

  1. Students often forget that the flexibility and stiffness matrices are inverses of each other, and use one set of coefficients in the wrong method.
  2. The off-diagonal terms of the flexibility matrix are frequently written incorrectly; by Maxwell's theorem fij must equal fji.
  3. A common error is to use the degree of static indeterminacy for the size of the stiffness system, whereas the stiffness system size is the kinematic indeterminacy.
  4. In the flexibility method the compatibility equations are written as delta + F X = 0, but candidates often miss the sign and write delta = F X, which reverses all the redundants.
  5. The tip deflection of a cantilever under a UDL is wL4/8EI, but many students apply the point load formula PL3/3EI with the total load, giving an incorrect result.
  6. When transforming the member stiffness matrix, students frequently use kG = T k instead of kG = T T k T, so the assembled matrix loses its symmetry.
  7. For a cantilever, the tip rotation due to a unit tip load is L2/2EI, but candidates often use L3/3EI, confusing deflection with rotation.

9. Exam Tips

  1. Memorise the four flexibility coefficients of a cantilever: L3/3EI, L2/2EI, L/EI and the reciprocal pair, because they form the basis of flexibility matrix questions.
  2. Remember that the stiffness matrix is the inverse of the flexibility matrix, so for a single-DOF problem K = 1/f directly.
  3. Use Maxwell's theorem to check the symmetry of any flexibility matrix that you compute in the examination.
  4. For the stiffness method, always verify that the number of equations equals the number of unknown displacements, which is the kinematic indeterminacy.
  5. Note that the size of the flexibility system is the static indeterminacy, so for a propped cantilever only one compatibility equation is needed.
  6. Practise the standard deflection results of a cantilever and a simply supported beam, since they provide the flexibility coefficients for released structures.
  7. In matrix transformation questions, remember that for an inclined member the diagonal terms contain cos2 and sin2 of the member angle.

10. Conclusion

Matrix methods bring together the classical force and displacement approaches into a unified algebra that is perfectly suited to computers. In this chapter we have studied the flexibility method, in which the redundant forces are the unknowns and the compatibility equations delta + F X = 0 determine them, and the stiffness method, in which the joint displacements are the unknowns and the equilibrium equations F = K D determine them. We have seen that the two approaches are duals of each other, with symmetric matrices that are inverses, and that the choice between them depends on whether the static or kinematic indeterminacy is smaller. The transformation of member matrices to the global axes and the assembly and solution of the structure equations complete the procedure. The worked examples on the cantilever flexibility coefficients, the simple truss systems and the spring assemblies give the candidate the confidence to answer objective questions on matrix methods quickly. Together with the direct stiffness method, these matrix formulations represent the modern face of structural analysis, and their understanding is essential both for the examination and for professional practice using analysis software.