Menu Close

Matrix methods of analysis: UPSC Civil Engineering Optional PYQ Solutions (2015–2026)

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):

2026 · 4b(ii) 2015 · 1b

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

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 E and I respectively:

[Figure: Cantilever AB fixed at A (left), length l = 2 m; at the free end B, coordinate ① is a vertical (downward) translation and coordinate ② is a clockwise rotation (curved arrow).]

2026 · Paper I · Q4b(ii) · 10 marks

Solution

Unit displacements. The coordinates at B are ① a vertical translation (downward +) and ② a rotation (clockwise +). A is fixed. Column j of [k] holds the forces needed at ① and ② to produce a unit value of displacement j with the other held at zero.

Column 1 (Δ1=1, θ2=0). The beam deflects as a fixed-guided beam.

  • Force at ①: 12EIl3 (downward).
  • Moment at ②: 6EIl2 anticlockwise, so −6EIl2.

Column 2 (θ2=1, Δ1=0).

  • Moment at ②: 4EIl.
  • Force at ①: 6EIl2 upward (it stops B dropping), so −6EIl2.

[k]=[12EIl3−6EIl2−6EIl24EIl]

With l=2 m. [k]=EI[1.5−1.5−1.52.0]

Check. det[k]=EI2(3−2.25)=0.75EI2. The flexibility matrix is [k]−1=1EI[2.667222] =1EI[l3/3l2/2l2/2l] 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: δ=Pl3/3EI.

↑ Back to the question list

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.

2015 · Paper I · Q1b · 10 marks

Solution

Why the matrix must be modified. The assembled global stiffness matrix [K] 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 [K]{D}={P}.

Approach 1: elimination (partitioning).

  1. Number the free DOFs first and the restrained DOFs last (or reorder them): [KffKfrKrfKrr]{DfDr}={PfR}
  2. With Dr=0, solve the reduced system KffDf=Pf (for a support settlement, use Pf−KfrDr).
  3. Find the reactions from R=KrfDf+KrrDr.

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 i, set row i and column i of [K] to zero, put 1 on the diagonal, and set Pi=0 (or the prescribed value di, moving Kjidi to the right-hand side). The equation then reads Di=di.
  • Penalty (large-number) method. Add a very large number β (say 1020 times the largest Kii) to Kii, and set Pi=βdi. This acts like a very stiff spring, forcing Di≈di. 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.

↑ Back to the question list

More on Engineering Mechanics, Strength of Materials and Structural Analysis

Questions: UPSC Civil Services (Main) Examination, Civil Engineering Paper I, 2015–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted