← 2025 Paper 2

UPSC 2025 Maths Optional Paper 2 Q3c — Step-by-Step Solution

15 marks · Section A

Duality · Linear Programming · asked 4× in 13 yrs · Read the full method →

Question

Apply the principle of duality to solve the following linear programming problem: Maximize Z=3x1+4x2Z = 3x_1 + 4x_2 subject to the constraints

x1x21x_1 - x_2 \leq 1 x1+x24x_1 + x_2 \geq 4 x13x23x_1 - 3x_2 \leq 3 x1,x20x_1, x_2 \geq 0

Technique

Construct the dual LP and apply the duality theorem: if the dual is infeasible while the primal is feasible, the primal is unbounded. Duality exposes the unboundedness without iterating the primal simplex.

Solution

A note before starting: as printed, this maximization LP is unbounded — it has no finite optimal vertex. The duality machinery below is exactly what detects this; we solve the problem as stated and arrive at the honest verdict (unbounded). A bounded textbook version would need a sign change (e.g. the second constraint as x1+x24x_1+x_2\le4, or a minimization objective).

Step 1 — Put the primal in standard ”\le, maximize” form. Multiply the \ge constraint by 1-1:

maxZ=3x1+4x2s.t.{x1x21x1x24x13x23x1,x20.\max Z = 3x_1 + 4x_2 \quad\text{s.t.}\quad \begin{cases} x_1 - x_2 \le 1\\ -x_1 - x_2 \le -4\\ x_1 - 3x_2 \le 3\\ x_1,x_2\ge0. \end{cases}

Step 2 — Write the dual. With dual variables y1,y2,y30y_1,y_2,y_3\ge0 (one per primal constraint), the dual of a max-\le primal is a min-\ge problem:

min  W=1y14y2+3y3\min\; W = 1\,y_1 - 4\,y_2 + 3\,y_3

subject to (one constraint per primal variable, transposing the coefficient matrix):

(from x1):     y1y2+y33,\text{(from } x_1\text{): } \;\; y_1 - y_2 + y_3 \ge 3, (from x2):     y1y23y34,\text{(from } x_2\text{): } \;\; -y_1 - y_2 - 3y_3 \ge 4, y1,y2,y30.y_1,y_2,y_3 \ge 0.

Step 3 — Examine dual feasibility. Consider the second dual constraint:

y1y23y34.-y_1 - y_2 - 3y_3 \ge 4.

With y1,y2,y30y_1,y_2,y_3\ge0, the left-hand side y1y23y30-y_1-y_2-3y_3 \le 0 for all feasible yy. Since 0<40 < 4, this inequality can never be satisfied. Hence the dual is infeasible (its feasible region is empty).

Step 4 — Apply the duality theorem. The primal is feasible: e.g. (x1,x2)=(0,4)(x_1,x_2)=(0,4) gives 04=410-4=-4\le1, 0+4=440+4=4\ge4, 012=1230-12=-12\le3 — all satisfied. The duality theorem states: if the dual has no feasible solution but the primal is feasible, then the primal objective is unbounded (above, for a maximization).

Therefore the primal is unbounded: ZZ can be made arbitrarily large.

Step 5 — Direct confirmation. Take x1=0x_1=0, x2=tx_2=t for t4t\ge4. The constraints hold: t1-t\le1, t4t\ge4, 3t3-3t\le3, all satisfied. The objective Z=4t+Z = 4t \to +\infty as tt\to\infty. So no finite optimum exists, consistent with the duality verdict.

Answer

  The primal LP has NO finite optimum — it is unbounded (Z+).  \boxed{\;\text{The primal LP has NO finite optimum — it is unbounded } (Z\to+\infty).\;}

The dual is infeasible (its second constraint y1y23y34-y_1-y_2-3y_3\ge4 is impossible with y0y\ge0); since the primal is feasible, the duality theorem forces the primal to be unbounded. Concretely, along x1=0, x2=tx_1=0,\ x_2=t\to\infty, Z=4tZ=4t\to\infty.

We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.