All 2 questions UPSC has asked on matrix methods of analysis in the Civil Engineering Optional (Paper I, Engineering Mechanics, Strength of Materials and Structural Analysis) from 2015 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Engineering Mechanics, Strength of Materials and Structural Analysis topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the numbers or the algebra were worked out again independently in code (Python, with SymPy and NumPy) and agree with ours.
- ✓ Checked step by step for descriptive questions, every statement was checked against standard textbooks and the relevant IS codes.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
Develop the stiffness matrix for the beam element AB with respect to the coordinates ① and ② as shown in the figure. Take modulus of elasticity and moment of inertia of beam section as and respectively:
[Figure: Cantilever AB fixed at A (left), length = 2 m; at the free end B, coordinate ① is a vertical (downward) translation and coordinate ② is a clockwise rotation (curved arrow).]
Solution
Unit displacements. The coordinates at B are ① a vertical translation (downward +) and ② a rotation (clockwise +). A is fixed. Column of holds the forces needed at ① and ② to produce a unit value of displacement with the other held at zero.
Column 1 (, ). The beam deflects as a fixed-guided beam.
- Force at ①: (downward).
- Moment at ②: anticlockwise, so .
Column 2 (, ).
- Moment at ②: .
- Force at ①: upward (it stops B dropping), so .
With m.
Check. . The flexibility matrix is These are the standard cantilever tip flexibilities. ✓
✓ Checked by computer We built the element matrix in code from the beam stiffness relations and checked it by solving for a tip load: .
The global stiffness matrix of a structure contains rigid body displacements. Describe how to modify it to account for nodes having zero displacements. Give two approaches.
Solution
Why the matrix must be modified. The assembled global stiffness matrix of an unsupported structure is singular: a rigid-body movement produces no member forces. Supports remove these movements. We bring them in by prescribing zero (or known) displacements at the restrained degrees of freedom before solving .
Approach 1: elimination (partitioning).
- Number the free DOFs first and the restrained DOFs last (or reorder them):
- With , solve the reduced system (for a support settlement, use ).
- Find the reactions from .
In practice, the rows and columns of the restrained DOFs are simply deleted. This is exact and makes the system smaller.
Approach 2: modifying the matrix without changing its size.
- Zero–one method. For each restrained DOF , set row and column of to zero, put 1 on the diagonal, and set (or the prescribed value , moving to the right-hand side). The equation then reads .
- Penalty (large-number) method. Add a very large number (say times the largest ) to , and set . This acts like a very stiff spring, forcing . The method is simple to program but only approximately exact.
Both approaches keep the matrix banded and symmetric. Programs use the second approach so that the storage pattern does not change.
✓ Checked step by step We checked both methods against the standard texts on matrix structural analysis, and tried each on a small beam in code.
More on Engineering Mechanics, Strength of Materials and Structural Analysis
- All Civil Engineering PYQ solutions, topic by topic
- Engineering Mechanics, Strength of Materials and Structural Analysis topic-wise PYQs (questions only, for practice)
- Civil Engineering PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Civil Engineering booklist
Questions: UPSC Civil Services (Main) Examination, Civil Engineering Paper I, 2015–2026. Solutions: Optional Province. Found an error? Tell us.
