All articles
10 min read

Simplex Method for GATE Maths: A 2-Pivot Worked Example

The simplex method solves linear programming problems by moving between corner points of the feasible region. GATE Mathematics examines it, while the CSIR NET syllabus puts it in a statistics unit.

By Sunil Bansal, Founder · Updated 28 Oct 2026

A student sits at a desk in soft daylight, working on a maths problem on paper with a pencil and calculator.

Key takeaways

  • Maximise 3x + 2y under three constraints: the simplex method reaches Z = 11 at (3, 1) in two pivots. A tied ratio leaves one basic variable at 0, and the dual values (the shadow prices of the constraints) 2, 0 and 1 reproduce Z = 11.
  • GATE Mathematics lists the simplex method in Section 11, Linear Programming, in both the 2026 and 2027 syllabi. In the CSIR NET syllabus file dated November 2018 it sits in Unit IV, which is for statistics candidates.
  • Seven checks solve any simplex problem: standard form, entering column, ratio test over positive entries only, ties, pivot, stop test and answer check.
  • On Beale's classic problem the "most negative entry enters" rule cycles after 6 pivots. Bland's rule (always choose the lowest-numbered eligible variable) finishes in 6 pivots at Z = 5/4.
In this article
  1. 1Do GATE and CSIR NET Mathematics examine the simplex method?
  2. 2How do you run the simplex method in seven checks?
  3. 3What does a complete simplex tableau example look like, pivot by pivot?
  4. 4What does a tied ratio mean, and how do the dual values check your answer?
  5. 5Why do students pick the wrong row or pivot in a simplex table?
  6. 6Can the simplex algorithm cycle forever, and does the pivot rule matter?
  7. 7How do we cover linear programming in our GATE Mathematics course?
  8. 8Frequently asked questions

Three constraints are enough to show the whole simplex method, and one of them produces the tie that confuses students. Maximise 3x + 2y subject to x + y ≤ 4, x + 3y ≤ 6 and x ≤ 3. It takes two pivots, and in the second pivot two ratios tie.

That tie answers a question students ask again and again. A worked example is only useful if your exam asks for the method, so this page first checks the syllabi: the Graduate Aptitude Test in Engineering (GATE) Mathematics syllabus and the Council of Scientific and Industrial Research National Eligibility Test (CSIR NET) syllabus.

Below you get the worked example with every table shown, a seven-check routine to run on any simplex table, each check with a pass or fail test, answers to the usual confusions, and a problem on which the textbook rule loops forever. The close says whether our course covers the topic.

Do GATE and CSIR NET Mathematics examine the simplex method?

GATE Mathematics does, and the CSIR NET syllabus does not ask mathematics candidates to answer it. The GATE 2027 syllabus for the Mathematics (MA) paper lists the simplex method in Section 11, Linear Programming. The CSIR NET common syllabus lists "Linear programming problem, simplex methods, duality" in Unit IV.

The same CSIR file says: "Students in mathematics are expected to answer additional question from Unit II and III." As of the CSIR syllabus file dated November 2018, linear programming sits in Unit IV, which is for statistics candidates, so mathematics candidates are not asked to answer it. Our CSIR NET exam pattern for Maths page covers how the units are examined.

Section 11 of the GATE 2027 syllabus names these topics: linear programming models, convex sets and extreme points, basic feasible solutions, the graphical method, the simplex method, two phase methods, the revised simplex method, infeasible and unbounded models, alternate optima, and weak and strong duality. It also names transportation and assignment problems, which use separate algorithms and are outside this page. The GATE 2026 syllabus has the same paragraph. For how many marks Section 11 has carried, see the marks each syllabus section has carried in recent GATE Mathematics papers.

Definition

Linear programming (LP) Maximising or minimising a linear expression, the objective, subject to linear inequalities, the constraints. The feasible region is the set of points that satisfy every constraint.

If an LP has an optimum, one occurs at a corner of that region, and the simplex method walks from corner to corner, improving the objective at each step. If you are studying for a university operations research paper instead, the same seven checks apply.

How do you run the simplex method in seven checks?

Run these seven checks in order on every problem. Each has a pass condition and a fail action. The method works on a simplex table, called a tableau: one row per constraint, one column per variable, a right-hand side (RHS) column, and an objective row at the bottom.

  1. 1
    Standard form
    Pass: you are maximising, every constraint is ≤ with RHS ≥ 0, and all variables are ≥ 0. Add a slack variable to each ≤ row to turn it into an equation. The slacks form your starting basis. Fail: if you are minimising, maximise the negative of the objective and flip the sign at the end. A ≥ row needs a surplus variable (subtracted) plus an artificial variable (added). An = row needs an artificial variable. Any artificial variable means you need two-phase or Big-M, not the plain method.
  2. 2
    Entering column
    Pass: the objective row has at least one negative entry, and you pick the most negative. Some books show the objective row with opposite signs (Cj − Zj) and pick the largest positive entry. That selects the same column. If no entry qualifies, go to check 6. Fail: if two columns tie for the most negative entry, take the lowest-numbered column.
  3. 3
    Leaving row
    Divide the RHS by the entering-column entry, for positive entries only, and pick the smallest ratio. Pass: at least one positive entry exists. Fail: if the entering column has no positive entry, the problem is unbounded, so stop.
  4. 4
    Tie test
    Pass: one row has the smallest ratio. If two rows tie, the problem is degenerate. Pick either, with the lower-numbered variable leaving as a safe default. Expect a basic variable equal to 0 after the pivot.
  5. 5
    Pivot
    Divide the pivot row by the pivot element, then clear every other entry in the entering column, including the objective row. Pass: the entering column is now a unit column and every RHS is still ≥ 0. A negative RHS means you used the wrong row.
  6. 6
    Stop test
    Pass: no negative entry remains in the objective row, so the solution is optimal. A zero under a non-basic variable means another optimal solution may exist. Pivot on that column to find out. An artificial variable still positive means the problem is infeasible. Otherwise return to check 2.
  7. 7
    Answer check
    Read each basic variable from the RHS, with non-basic variables at 0. Substitute into every original constraint. Then read the slack-column entries of the objective row as dual values y, the shadow prices of the constraints, and compute Σ(b × y). Pass: it equals Z. Fail: if Σ(b × y) ≠ Z or any original constraint is violated, recheck the last pivot's row operations.

What does a complete simplex tableau example look like, pivot by pivot?

For the problem maximise Z = 3x + 2y subject to x + y ≤ 4, x + 3y ≤ 6, x ≤ 3 and x, y ≥ 0, the optimum is Z = 11 at (3, 1), reached in two pivots.

Start. Slacks s1, s2, s3 are the basis. The most negative objective entry is −3, so x enters. The ratios are 4, 6 and 3, so the s3 row leaves.

A hand with a pencil traces a path from corner to corner of a shaded polygon drawn on squared paper.
Each pivot moves the solution from one corner of the feasible region to the next, which is what the table tracks.
Basisxys1s2s3RHSRatio for x
s11110044
s21301066
s31000133 (smallest)
Z−3−20000

After pivot 1. The point is (3, 0) and Z = 9. Now y enters. The ratios are 1/1 = 1 for the s1 row and 3/3 = 1 for the s2 row. The x row has a 0 in the y column, so it has no ratio. This is the tie. We let s1 leave.

Basisxys1s2s3RHSRatio for y
s10110−111
s20301−131
x100013none
Z0−20039

After pivot 2. No negative entry remains, so the solution is optimal. y = 1, x = 3 and s2 = 0, and Z = 11.

Basisxys1s2s3RHS
y0110−11
s200−3120
x100013
Z0020111

Graph check: the corners of the feasible region are (0, 0), (3, 0), (3, 1) and (0, 2), with Z = 0, 9, 11 and 4. The method visited (0, 0), then (3, 0), then (3, 1), and stopped at the best one.

What does a tied ratio mean, and how do the dual values check your answer?

A tied ratio means the pivot is degenerate, and a basic variable ends up at 0. In the example, s2 = 0 in the last table because the lines x = 3, x + y = 4 and x + 3y = 6 all pass through (3, 1). The point (3, 1) is already fixed by the first two lines. The third line touches it without being needed to define it.

The dual values come from the slack columns of the final objective row: 2 for s1, 1 for s3, and 0 for s2, which is basic. Check 7 then gives 4 × 2 + 6 × 0 + 3 × 1 = 11, equal to Z. The dual constraints also hold: for x, 2 + 0 + 1 = 3 ≥ 3, and for y, 2 + 3 × 0 = 2 ≥ 2. If your arithmetic slipped in a pivot, this check almost always fails, which is why it earns a place in the routine.

Why do students pick the wrong row or pivot in a simplex table?

Students pick the wrong row because they apply the ratio rule without knowing what it measures. The ratio RHS ÷ entry is how far the entering variable can rise before that row's basic variable reaches 0. The smallest ratio is the first limit you hit. Take a larger one and an earlier row goes negative. In the start table, raising x to 4 would give s3 = 3 − 4 = −1, which is infeasible.

Only positive entries count because a zero or negative entry never limits the rise. That row's variable stays the same or grows as the entering variable grows. A negative pivot would also make the new basic variable RHS ÷ (negative) < 0.

When a tableau puzzles you, turn a row back into an equation. The y row of the final table says y + s1 − s3 = 1, so y = 1 − s1 + s3. Raising s1 lowers y, and raising s3 raises it. You can then see what each non-basic variable would do if it entered, which is what the objective row summarises.

Two students at a library table study a worked problem together, one pointing at the page with a pencil.
Checking each row's limit with a study partner shows why the smallest ratio is the first one you hit.

Can the simplex algorithm cycle forever, and does the pivot rule matter?

Yes, it can cycle, though it rarely does. Cycling is rare in practice. Bland's rule (1977) prevents it. The worst case is exponential (the Klee–Minty example, 1972, a constructed LP on which the simplex method visits every corner), although the method is fast in practice.

Beale's classic problem shows a cycle. Maximise ¾x₁ − 20x₂ + ½x₃ − 6x₄ subject to ¼x₁ − 8x₂ − x₃ + 9x₄ ≤ 0, ½x₁ − 12x₂ − ½x₃ + 3x₄ ≤ 0 and x₃ ≤ 1. With "most negative entry enters" and the lowest-numbered variable leaving on a tie, the basis returns to its starting point after 6 pivots with Z stuck at 0, and then repeats. Bland's rule picks the lowest-numbered eligible variable to enter and to leave. With it the problem finishes in 6 pivots at Z = 5/4, with x₁ = 1 and x₃ = 1.

Bland's rule pays for its safety. On random small problems with all constraints ≤ and positive coefficients, Bland's rule usually needs more pivots than the most-negative rule. These are easy problems, so read the result as an illustration only. In an exam, use the most-negative rule, and switch to the lowest-index rule if you notice a pivot sequence repeating.

How do we cover linear programming in our GATE Mathematics course?

Linear Programming is on the syllabus list of our CSIR-NET and GATE Mathematics 2027 course, next to Linear Algebra, Abstract Algebra, Real Analysis, Complex Analysis, Ordinary and Partial Differential Equations, Numerical Analysis and General Aptitude. The course has live interactive classes, recorded lectures for revision, assignments by chapter and topic, previous-year-question discussions, full-length mock tests with performance analysis, and weekly doubt sessions with personal mentorship. See our course page.

As of October 2026 the course costs ₹15,999 as a one-time payment, or four instalments of ₹3,999.75 (₹15,999 in total). A ₹999 demo plan is also available. Our overview of what full-syllabus GATE Mathematics coaching covers explains what to look for in any course.

Work the seven checks on every simplex problem in your assignments, and bring the ones that fail check 7 to a doubt session. Before you pay, try our free study content, which includes demo classes and PDF Drive resources. Questions about the course can go to sbtechmath@gmail.com or +91 81265 45455, between 9am and 7pm, Monday to Saturday.

Prepare GATE Mathematics with SBTech Math

Our CSIR-NET and GATE Mathematics 2027 course includes Linear Programming with live classes, mock tests and weekly doubt sessions.
Contact SBTech Math

Frequently asked questions

Look at the final tableau. A zero in the objective row under a non-basic variable means that variable can enter without changing Z, giving another optimal solution, provided its column has a positive entry to pivot on. Every point between the two optimal corners is optimal too.
Read them from the slack columns of the objective row. In the example they are 2 for s1, 0 for s2 and 1 for s3. Check them by computing Σ(b × y), which must equal Z: here 4 × 2 + 6 × 0 + 3 × 1 = 11.
Use two-phase for GATE, since only it is named in the syllabus. Use Big-M only when your textbook or paper asks for it, because the large M can cause arithmetic errors by hand.
Maximise the negative of the objective, then change the sign of the answer: the minimum of c·x is minus the maximum of −c·x. If the constraints include ≥ rows, you also need surplus and artificial variables, so use two-phase.
Artificial variables start in the basis, so their M terms must be removed from the objective row by row operations before the first pivot. Only then does the objective row show true entries for the non-basic variables. Skipping this step makes a basic variable appear in the objective row.

Sources

  1. 1.GATE 2027 syllabus, Mathematics (MA), IIT Madras, accessed 28 October 2026
  2. 2.GATE 2026 syllabus, Mathematics (MA), IIT Guwahati, accessed 28 October 2026
  3. 3.CSIR-UGC NET common syllabus for Parts B and C, Mathematical Sciences, CSIR HRDG, file dated November 2018 (accessed 28 October 2026)
  4. 4.Simplex algorithm, Wikipedia, accessed 28 October 2026
  5. 5.Our CSIR-NET and GATE Mathematics 2027 course page, prices as of October 2026

Keep reading

SBTechMath.

India's trusted Mathematics learning platform for CSIR-NET, GATE, IIT-JAM, CUET PG, and competitive exam aspirants. Learn concepts that help you succeed.

© 2026 SBTech Math

Powered by PageLens.ai

Crack CSIR-NET, GATE & IIT-JAM with concept-first learning.

Start Now