7.2 Stiffness matrix method for beams
After this lesson you should be able to:
- Write the 4 × 4 stiffness matrix of a beam element and explain the physical meaning of each term.
- Assemble the structure stiffness matrix of a continuous beam, partition it into free and restrained degrees of freedom, and add fixed-end forces as equivalent joint loads.
- Solve continuous beams with support settlement and elastic (spring) supports, and recover member-end moments and reactions.
Theory
The stiffness (displacement) method turns the force method around. The unknowns are joint displacements, not redundant forces, and there is no choice to make: every free translation and rotation of a joint is an unknown, called a degree of freedom. Slope-deflection in lesson 4.1 is the hand version of this idea; the matrix form organises it so that the same steps solve any beam or frame, which is why every analysis program uses it. Sign convention for this chapter (the usual matrix convention): global x to the right and y upward; displacements and forces are positive along these axes; rotations and moments are positive anticlockwise, both for joints and for member-end moments. Bending moment diagrams are still drawn with sagging positive. Chapter 4 used clockwise-positive member-end moments, so a member-end moment found here has the opposite sign to the same moment written in Chapter 4; the physical answer is the same.
A prismatic beam element between nodes 1 and 2 has four end displacements: the transverse displacement v and rotation θ at each end. The element stiffness matrix k relates them to the four end forces. Column j of k is the set of end forces needed to hold the element with a unit value of displacement j and all others zero. A unit rotation at one end needs 4EI/L there and 2EI/L at the far end; a unit transverse displacement needs shear 12EI/L³ and end moments 6EI/L². The matrix is symmetric, and on its own it is singular, because a free element can move as a rigid body without any force.
Assembly adds each element’s terms into the structure matrix K at the positions of its global degrees of freedom: where two elements meet at a node their stiffnesses at that node add up, just as the joint stiffness 4EI/L of each member adds in moment distribution. Supports are applied by partitioning: the rows and columns of the restrained degrees of freedom are separated out, leaving K_ff, which is invertible when the structure is stable. Loads between nodes are replaced by equivalent joint loads equal and opposite to the fixed-end forces.
Settlements and springs fit in naturally. A known support movement is a prescribed displacement: its effect K_fp d_p moves to the right-hand side. A spring support of stiffness k at a degree of freedom simply adds k to the diagonal term of K at that position. After solving for the free displacements, each element’s end forces are its fixed-end forces plus k times its end displacements, and reactions follow from the restrained rows.
Derivation
- Assume the deflected shape of an element between nodes 1 and 2 as a cubic v(x) = a_0 + a_1x + a_2x² + a_3x³; with no load between nodes this is the exact solution of EI v'''' = 0.
- Fit the four constants to v_1, θ_1 at x = 0 and v_2, θ_2 at x = L. This gives the cubic shape functions, and the curvature v'' is linear along the element.
- End moments and shears follow from M = EI v'' and V = −EI v''' at the ends. Collecting terms gives the element equation {f} = [k]{d} + {f_F}, with [k] = (EI/L³)[[12, 6L, −12, 6L], [6L, 4L², −6L, 2L²], [−12, −6L, 12, −6L], [6L, 2L², −6L, 4L²]] for {d} = {v_1, θ_1, v_2, θ_2}.
- Equilibrium at every node: the sum of element end forces equals the applied joint load. Writing this for all nodes with element terms placed by their global numbers gives K D = P − P_F, where P_F collects fixed-end forces.
- Partition D into free D_f and prescribed D_p (zero, or a known settlement): K_ff D_f = P_f − P_Ff − K_fp D_p, so D_f = K_ff⁻¹(P_f − P_Ff − K_fp D_p).
- Reactions: R_p = K_pf D_f + K_pp D_p + P_Fp; element end forces {f} = [k]{d} + {f_F}. The moment terms reproduce the slope-deflection equations of lesson 4.1, written with anticlockwise-positive moments.
Beam element: k = (EI/L³)[[12, 6L, −12, 6L], [6L, 4L², −6L, 2L²], [−12, −6L, 12, −6L], [6L, 2L², −6L, 4L²]] for {v_1, θ_1, v_2, θ_2} (kN/m, kN/rad, kN m/rad)Rotational terms only (no transverse movement): M_12 = (2EI/L)(2θ_1 + θ_2) + M_F12 (kN m)Fixed-end forces, uniform load w: shears wL/2 up at both ends; moments +wL²/12 at end 1, −wL²/12 at end 2 (anticlockwise positive)Fixed-end moments for settlement Δ of end 2 relative to end 1 (downward): +6EIΔ/L² at both ends; shears ±12EIΔ/L³Structure equation: K_ff D_f = P_f − P_Ff − K_fp D_p (kN, kN m)Spring support: add k (kN/m or kN m/rad) to the diagonal term of its degree of freedomMember end forces: {f} = [k]{d} + {f_F}; reactions from the restrained rows
- Linear elastic, prismatic elements; small displacements, so equilibrium is written on the undeformed shape.
- Bending deformation only (Euler–Bernoulli); axial and shear deformations of beams are neglected, which is accurate for span-to-depth ratios above about 10.
- Loads between nodes are handled exactly through fixed-end forces; the element shape is exact for nodal loads.
- Supports are rigid, prescribed (settlement) or linear springs; a support that can lift off needs a separate check.
- Limits: first-order linear analysis only; non-prismatic members need their own stiffness terms or more elements, deep beams need shear deformation, and slender members under large axial load need geometric stiffness (second-order analysis).
Codes and standards
Indian Standards are cited by number and clause only; no clause text, tables or figures are reproduced. Other standards are listed for comparison, not ranked.
- Stiffness analysis of beams is a result of mechanics; no design code governs the mechanics of this lesson, and no Indian Standard clause is cited here.
- Indian, European and American practice, side by side and not ranked, accept linear elastic analysis by the stiffness method for continuous beams and frames, ask that member stiffness assumptions (for example cracked or uncracked sections) be stated, and allow limited moment redistribution in their concrete codes; their values are not reproduced here.
Worked examples
Problem. The floor beam ABC is fixed at A, on a roller at B and pinned at C. Span AB = 6 m carries 20 kN/m and span BC = 4 m carries a central 40 kN load; EI is constant. Solve by the stiffness method.
- Free degrees of freedom: θ_B and θ_C (A is fixed; the vertical displacements at B and C are zero). Stiffness terms: AB, 4EI/6 = 0.667EI at B; BC, 4EI/4 = 1.0EI at each end and 2EI/4 = 0.5EI across.
- K_ff = EI[1.667 0.5; 0.5 1.0].
- Fixed-end moments (anticlockwise positive): AB, +wL²/12 = +60 at A and −60 at B; BC, +PL/8 = +20 at B and −20 at C. Equivalent joint moments = minus the sum at each joint: at B, −(−60 + 20) = +40; at C, −(−20) = +20 kN m.
- Solve EI[1.667 0.5; 0.5 1.0]{θ_B; θ_C} = {40; 20}: determinant 1.417, θ_B = (40 − 10)/1.417 = 21.18/EI, θ_C = (33.33 − 20)/1.417 = 9.41/EI rad (anticlockwise).
- End moments: M_AB = 60 + (2EI/6)θ_B = 67.06; M_BA = −60 + (4EI/6)θ_B = −45.88; M_BC = 20 + 1.0 × 21.18 + 0.5 × 9.41 = +45.88; M_CB = −20 + 0.5 × 21.18 + 9.41 = 0 (pin, as it must be).
- In the Chapter 4 clockwise convention these are M_A = −67.06 and M_B = −45.88 kN m, both hogging; reactions 63.53, 87.94 and 8.53 kN as in lesson 4.1 and lesson 7.1.
Answer. θ_B = 21.18/EI, θ_C = 9.41/EI; M_A = 67.06 kN m and M_B = 45.88 kN m hogging; R_A = 63.53, R_B = 87.94, R_C = 8.53 kN
Problem. A two-span floor beam ABC has spans of 5 m, pins at A and C and a roller at B, with EI = 40 000 kN m². Both spans carry 18 kN/m. Support B settles 5 mm. Find the moment at B and the reactions, and compare with no settlement.
- Free degrees of freedom: θ_A, θ_B, θ_C; v_B = −0.005 m is prescribed. Per span: 4EI/L = 32 000, 2EI/L = 16 000 kN m/rad and 6EI/L² = 9 600 kN.
- Fixed-end moments from the load: ±18 × 25/12 = ±37.5 kN m. From the settlement: span AB, whose right end drops, +6EIΔ/L² = +9 600 × 0.005 = +48 kN m at both A and B; span BC, whose left end drops, −48 kN m at both B and C.
- Totals: span AB, A +85.5 and B +10.5; span BC, B −10.5 and C −85.5 kN m.
- Equations: 32 000θ_A + 16 000θ_B = −85.5; 16 000θ_A + 64 000θ_B + 16 000θ_C = −(10.5 − 10.5) = 0; 16 000θ_B + 32 000θ_C = +85.5. By symmetry θ_B = 0, so θ_A = −2.672 × 10⁻³ rad and θ_C = +2.672 × 10⁻³ rad.
- M_BA = 10.5 + 16 000 × (−2.672 × 10⁻³) = −32.25 kN m, so the hogging moment at B is 32.25 kN m.
- Reactions: span AB, R_A = 45 − 32.25/5 = 38.55 kN; R_C = 38.55 kN; R_B = 180 − 2 × 38.55 = 102.90 kN. Without settlement M_B = −wL²/8 = −56.25 kN m and R_B = 112.5 kN.
Answer. M_B = 32.25 kN m hogging (56.25 without settlement); R_A = R_C = 38.55 kN, R_B = 102.90 kN
Problem. A beam AB, 8 m long, is fixed at A and its far end B hangs from a steel tie that acts as a spring of stiffness 5 000 kN/m; EI = 40 000 kN m². It carries 10 kN/m. Find the deflection at B, the tie force and the moment at A.
- Free degrees of freedom at B: v_B and θ_B. Element terms: 12EI/L³ = 937.5 kN/m, 6EI/L² = 3 750 kN, 4EI/L = 20 000 kN m/rad.
- K_ff = [937.5 + 5 000, −3 750; −3 750, 20 000] (the spring adds to the v_B diagonal).
- Fixed-end forces at B: shear wL/2 = 40 kN up and moment −wL²/12 = −53.33 kN m. Equivalent joint loads: {−40; +53.33}.
- Determinant 5 937.5 × 20 000 − 3 750² = 104.69 × 10⁶. v_B = (−40 × 20 000 + 3 750 × 53.33)/104.69 × 10⁶ = −5.73 mm; θ_B = (5 937.5 × 53.33 − 3 750 × 40)/104.69 × 10⁶ = 1.59 × 10⁻³ rad.
- Tie force = 5 000 × 0.00573 = 28.66 kN (tension, holding B up). Statics: R_A = 80 − 28.66 = 51.34 kN; M_A = 28.66 × 8 − 80 × 4 = −90.75 kN m (hogging).
- Compare: rigid prop 30 kN and M_A = −80 kN m; no tie 0 kN and −320 kN m. The tie stiffness sits between the two limits, as expected.
Answer. v_B = 5.73 mm down; tie force 28.66 kN; M_A = 90.75 kN m hogging; R_A = 51.34 kN
Step-by-step procedure
- Number the nodes and the degrees of freedom; mark which are free, which are fixed and which have prescribed movements.
- Write each element’s stiffness matrix (or only the rotation terms when translations are zero) and its fixed-end forces from the loads and from any settlement.
- Assemble K and the equivalent joint load vector; add spring stiffnesses to the diagonal.
- Partition and solve K_ff D_f = P_f − P_Ff − K_fp D_p.
- Recover element end forces {f} = [k]{d} + {f_F} and the reactions; convert to sagging/hogging for the bending moment diagram.
- Check: moments at pins are zero, joint moments balance, the sum of reactions equals the total load, and K_ff is symmetric with positive diagonal terms.
Site notes
- Software output for a continuous beam can be checked in minutes with the rotation-only form of K: two or three joint rotations are enough for most floor beams.
- A support that is really a tie, a hanger or a soft bearing should be modelled as a spring, not as a rigid support; the moments can change a lot, as Example 3 shows.
- Measured settlements from survey can be entered as prescribed displacements to see their effect on existing beams before deciding on repairs.
- Where a beam is much stiffer than its supports (for example a deep transfer girder on slender columns), support flexibility governs the force distribution; model it.
- For concrete members state whether gross or cracked stiffness is used; cracking reduces EI and therefore reduces settlement moments.
- Mixing sign conventions: matrix programs use anticlockwise-positive moments, hand methods often use clockwise-positive; convert before comparing.
- Adding fixed-end moments to the load vector with the wrong sign: the equivalent joint load is minus the fixed-end force.
- Forgetting the settlement term, or applying the settlement to both spans with the same sign (the span whose right end drops and the span whose left end drops get opposite fixed-end moments).
- Trying to invert the full K before supports are applied; it is singular because the beam can move as a rigid body.
- Treating the rotation at a pin or roller as zero; only translations are restrained there.
The diagonal term for a joint rotation equals the sum of 4EI/L of the members meeting there (3EI/L for a member whose far end is pinned and condensed out). Final moments must be zero at end pins, and for a two-span beam under full uniform load without settlement the middle-support moment must be wL²/8; a settlement Δ of that support reduces it by 3EIΔ/L² (here 3 × 40 000 × 0.005/25 = 24 kN m, from 56.25 to 32.25 kN m).
Summary
- The stiffness method takes joint displacements as unknowns: K D = P − P_F.
- The beam element matrix holds 12EI/L³, 6EI/L², 4EI/L and 2EI/L; it is symmetric and singular on its own.
- Assembly adds element terms by global numbers; supports are applied by partitioning.
- Settlements are prescribed displacements; springs add to the diagonal.
- End forces = fixed-end forces + k times end displacements; the results agree with slope-deflection and moment distribution.
Practice questions
Tap a question to see the answer.
1For a beam element with L = 5 m and EI = 40 000 kN m², give 12EI/L³, 6EI/L², 4EI/L and 2EI/L.
3 840 kN/m, 9 600 kN, 32 000 kN m/rad and 16 000 kN m/rad.
2A propped cantilever, fixed at A and on a roller at B, spans 6 m and carries 10 kN/m. Find θ_B and M_A by the stiffness method.
One unknown θ_B: (4EI/6)θ_B = +30, θ_B = 45/EI; M_A = 30 + (2EI/6)(45/EI) = 45 kN m hogging (= wL²/8).
3A two-span beam with 4 m spans, pins at the ends and a roller in the middle, carries 15 kN/m. Using θ_B = 0 by symmetry, find θ_A and the moment at B.
(4EI/4)θ_A = −20, θ_A = −20/EI; M_BA = −20 + (2EI/4)(−20/EI) = −30 kN m, i.e. 30 kN m hogging (wL²/8).
4Why is the assembled K of a beam singular before supports are applied?
Without supports the beam can translate and rotate as a rigid body with no internal force, so K has zero-energy modes and no inverse.
5How is a rotational spring of stiffness 8 000 kN m/rad at a beam end included?
Add 8 000 to the diagonal term of that rotation in K; the spring moment is 8 000 times the rotation found.
6A fixed-ended beam of span 5 m with EI = 40 000 kN m² has one end settle by 5 mm. Find the end moments.
6EIΔ/L² = 6 × 40 000 × 0.005/25 = 48 kN m at each end, both acting the same way round (anticlockwise when the right end drops).
References
Standard texts, listed in no order of merit. Our explanations, examples and diagrams are original; nothing is copied from these books.
- R. C. Hibbeler, Structural Analysis, Pearson, 10th edition, 2018.
- C. S. Reddy, Basic Structural Analysis, Tata McGraw Hill (now McGraw Hill Education (India)), 3rd edition, 2011.
- D. Menon, Structural Analysis, Narosa Publishing House, 2nd edition.
- B. J. Goodno, J. M. Gere, Mechanics of Materials, Cengage Learning, 9th edition, 2018.