Latest
  • Admissions openClass 11 Science, 2027‑28: JEE, NEET and MHT‑CET with junior college and hostel under one roofApply now
  • IMGSAT 2027Free scholarship and admission test for Class 10 students, every Saturday and Sunday at our Nashik campusRegister
  • Free Foundation 2026‑27Evening classes for Class 10 in Physics, Chemistry, Maths and Biology, taught by our IITian and doctor facultyJoin free

+91 70303 00666

Maths · Class 12 · Chapter 12

Linear Programming

Linear programming finds the best value (largest profit, smallest cost) of a linear expression when the variables must satisfy a set of linear inequalities. With two variables the whole problem is solved on a graph, and the answer is always found at a corner of the shaded region. The chapter rewards careful graphing far more than clever algebra.

In this chapter: objective function, constraints and non-negativity restrictions, formulating a problem, graphing the feasible region, the corner point method, bounded and unbounded feasible regions, and problems with no solution or many optimal solutions.

The vocabulary

  • Decision variables: the quantities we choose, usually x and y.
  • Objective function: the linear expression Z = ax + by to be maximised or minimised.
  • Constraints: linear inequalities (or equations) the variables must satisfy, such as x + 2y ≤ 10.
  • Non-negativity restrictions: x ≥ 0, y ≥ 0, since quantities like the number of items cannot be negative.
  • Feasible region: the common region of all constraints including non-negativity. Every point in it is a feasible solution; points outside are infeasible.
  • Optimal solution: a feasible point that gives the maximum or minimum value of Z.

Formulating a problem

Word problems (diet, manufacturing, transportation, allocation) all follow the same pattern: name the variables with units, write the objective function, turn every limit on resources into an inequality, and add x, y ≥ 0. Arrange the data in a table first; it prevents mixing up the rows.

Worked example (formulation): A dealer sells tables at a profit of ₹3 hundred and chairs at ₹2 hundred each. A table needs 1 hour of carpentry and 3 hours of polishing; a chair needs 2 hours of carpentry and 1 hour of polishing. At most 10 hours of carpentry and 15 hours of polishing are available. Formulate the problem.
Solution: Let x tables and y chairs be made. Maximise Z = 3x + 2y (in ₹ hundred) subject to x + 2y ≤ 10 (carpentry), 3x + y ≤ 15 (polishing), x ≥ 0, y ≥ 0.

Graphing the feasible region

For each constraint, draw the line ax + by = c using its two intercepts. Test the origin: if (0, 0) satisfies the inequality, shade the side containing the origin; otherwise shade the other side. (If the line passes through the origin, test any other point.) With x, y ≥ 0, only the first quadrant is used. The feasible region is where all shadings overlap.

The corner point method

Fundamental theorem: if the feasible region R is bounded (it can be enclosed in a circle), the objective function Z = ax + by has both a maximum and a minimum value on R, and each occurs at a corner point (vertex) of R. The steps:

  1. Draw the feasible region and find all its corner points, solving pairs of boundary equations where needed.
  2. Evaluate Z at every corner point.
  3. For a bounded region, the largest value is the maximum and the smallest is the minimum.
Bounded feasible region with corner pointswww.iitmedicoguide.comxyO2468102468A(5, 0)B(4, 3)C(0, 5)x + 2y = 103x + y = 15Z = 18feasibleregionZ = 3x + 2y at cornersO(0, 0)0A(5, 0)15B(4, 3)18 maxC(0, 5)10www.iitmedicoguide.com
The feasible region of the table-and-chair problem has four corners. Z = 3x + 2y is largest at B(4, 3); the dashed line 3x + 2y = 18 touches the region only at that corner.
Worked example (solution): Solve the dealer's problem above.
Solution: The lines x + 2y = 10 and 3x + y = 15 meet where x + 2(15 − 3x) = 10, that is, −5x = −20, so x = 4 and y = 3. The corner points are O(0, 0), A(5, 0), B(4, 3) and C(0, 5). Z = 0, 15, 18 and 10 respectively. The maximum is Z = 18 at (4, 3): make 4 tables and 3 chairs for a profit of ₹1800.

If two adjacent corners give the same optimal value, every point on the edge joining them is also optimal, so the problem has infinitely many optimal solutions. The value of Z is still unique.

Unbounded feasible regions

When the region is unbounded, an optimal value may not exist. Evaluate Z at the corners as before, then check:

  • Let M be the largest corner value. The maximum is M only if the open half-plane ax + by > M has no point in common with the feasible region. Otherwise Z has no maximum.
  • Let m be the smallest corner value. The minimum is m only if the open half-plane ax + by < m has no point in common with the feasible region. Otherwise Z has no minimum.
Unbounded feasible region for a minimisation problemwww.iitmedicoguide.comxyO12345123(0, 2)(3/2, 1/2)(3, 0)x + y = 2x + 3y = 33x + 5y = 7unboundedfeasible regionZ = 3x + 5y: 10, 7, 93x + 5y < 7 misses the region,so minimum Z = 7www.iitmedicoguide.com
The region above x + y = 2 and x + 3y = 3 extends without limit. The dashed line 3x + 5y = 7 touches it only at (3/2, 1/2), and everything below that line lies outside the region, so 7 is the minimum.
Worked example: Minimise Z = 3x + 5y subject to x + 3y ≥ 3, x + y ≥ 2, x, y ≥ 0.
Solution: Corner points: (3, 0), (0, 2), and the intersection of x + 3y = 3 and x + y = 2, which is (3/2, 1/2). Z = 9, 10 and 7. The region is unbounded, so check the half-plane 3x + 5y < 7. Since 3x + 5y = 2(x + y) + (x + 3y) ≥ 2(2) + 3 = 7 at every feasible point, no feasible point satisfies 3x + 5y < 7. The minimum is Z = 7 at (3/2, 1/2). Z has no maximum here, because it grows without limit as x or y increases.

If the constraints have no common region at all (for example x + y ≤ 2 and x + y ≥ 5 with x, y ≥ 0), the problem has no feasible solution.

Common mistakes: (1) Shading the wrong side of a line because the origin test was skipped. (2) Missing a corner point, especially one on an axis. (3) Solving for the intersection of the wrong pair of lines, which gives a point outside the region. (4) Declaring a maximum for an unbounded region without the half-plane check. (5) Answering with the value of Z when the question asks for the values of x and y (or both).

JEE and MHT‑CET focus

  • Identifying the correct feasible region from a set of inequalities, often from given graphs.
  • Finding corner points and the optimal value quickly.
  • Unbounded regions and the half-plane test; problems where the maximum or minimum does not exist.
  • Recognising multiple optimal solutions when two corners give the same value.
  • Formulating diet, manufacturing and allocation problems from words.

Practice questions

In a linear programming problem, the objective function is always:

  1. Quadratic
  2. Linear
  3. Exponential
  4. Any polynomial
Show answer
B. Both the objective function and the constraints are linear.

For a bounded feasible region, the maximum of Z = ax + by occurs:

  1. At the origin
  2. At a corner point
  3. At the centre of the region
  4. Anywhere inside the region
Show answer
B. This is the fundamental theorem of linear programming.

The maximum of Z = 3x + 4y subject to x + y ≤ 4, x ≥ 0, y ≥ 0 is:

  1. 12
  2. 14
  3. 16
  4. 0
Show answer
C. Corners (0, 0), (4, 0), (0, 4) give 0, 12, 16.

The corner points of a feasible region are (0, 2), (3, 0), (6, 0), (6, 8) and (0, 5). The minimum of Z = 4x + 6y is:

  1. 0
  2. 12
  3. 24
  4. 30
Show answer
B. Values 12, 12, 24, 72, 30; the minimum 12 occurs at (0, 2), (3, 0) and every point of the segment joining them.

The maximum of Z = 5x + 3y subject to 3x + 5y ≤ 15, 5x + 2y ≤ 10, x, y ≥ 0 is:

  1. 10
  2. 9
  3. 235/19
  4. 15
Show answer
C. The lines meet at (20/19, 45/19), where Z = 100/19 + 135/19 = 235/19 ≈ 12.4, more than 10 at (2, 0) and 9 at (0, 3).

The number of corner points of the region x + y ≤ 4, x ≤ 3, x ≥ 0, y ≥ 0 is:

  1. 3
  2. 4
  3. 5
  4. 6
Show answer
B. (0, 0), (3, 0), (3, 1) and (0, 4).

If the feasible region of a maximisation problem is unbounded, then the maximum of Z:

  1. Always exists at a corner
  2. Never exists
  3. May or may not exist
  4. Is always zero
Show answer
C. It exists only if the half-plane ax + by > M does not meet the region.

The constraints x + y ≤ 2, x + y ≥ 5, x ≥ 0, y ≥ 0 give:

  1. A bounded region
  2. An unbounded region
  3. A single point
  4. No feasible region
Show answer
D. No point can have x + y both at most 2 and at least 5.
Call WhatsApp Apply
Chat with us on WhatsApp