Skip to content

Mathematics · Ch 12 — Linear Programming

Graphical Method of Solving Linear Programming Problems

12.2.2

Graphical Method of Solving Linear Programming Problems

12.2.2 Graphical Method of Solving Linear Programming Problems

From Inequalities to Optimization

In Class XI you learned to graph a system of linear inequalities in two variables and find the solution region. The graphical method for linear programming builds directly on that skill — but instead of just finding where all constraints are satisfied, we search that region for the point giving the best (maximum or minimum) value of a linear objective function.

Revisit the investment problem from Section 12.2:

5x+y≤100(1)x+y≤60(2)x≥0(3)y≥0(4)\begin{aligned} 5x + y &\leq 100 \quad \text{(1)} \\ x + y &\leq 60 \quad \text{(2)} \\ x &\geq 0 \quad \text{(3)} \\ y &\geq 0 \quad \text{(4)} \end{aligned}

where xx = number of tables and yy = number of chairs. The objective is to maximize profit Z=250x+75yZ = 250x + 75y.

The Feasible Region

Graphing all four inequalities, the shaded region common to all half-planes is the feasible region — in Fig 12.1 of the textbook, the quadrilateral OABC.

Feasible region: The common region determined by all constraints (including x≥0x \geq 0, y≥0y \geq 0) of a linear programming problem.

Every point inside or on the boundary is a feasible solution — for example (10, 50), (0, 60), (20, 0). Any point outside, such as (25, 40), is an infeasible solution.

Watch out

Points on the boundary are also feasible — they satisfy the constraints as equalities. It is a mistake to think only points strictly inside the region are feasible.

The Challenge: Finding the Optimal Point

The feasible region contains infinitely many points, so we cannot check each one. Two fundamental theorems (stated here without proof) solve this problem.

Theorem 1: The Corner Point Principle

Important

Theorem 1: Let RR be the feasible region for a linear programming problem, and Z=ax+byZ = ax + by the objective function. When ZZ has an optimal value (maximum or minimum), this value must occur at a corner point (vertex) of RR.

A corner point is where two boundary lines intersect. So instead of checking every point, we only examine the vertices.

Theorem 2: Existence of Optima for Bounded Regions

Important

Theorem 2: If the feasible region RR is bounded (can be enclosed within a circle), then ZZ has both a maximum and a minimum value on RR, each occurring at a corner point of RR.

Note

If RR is unbounded (extends indefinitely), a maximum or minimum may not exist. However, if an optimal value does exist, it still occurs at a corner point (by Theorem 1).

The Corner Point Method

  1. Find the feasible region and its corner points, by inspection or by solving the equations of the intersecting lines at each vertex.

  2. Evaluate Z=ax+byZ = ax + by at each corner point. Let MM be the largest value and mm the smallest.

  3. Determine optimal values:

    • (i) If RR is bounded, MM is the maximum value and mm the minimum value of ZZ.
    • (ii) If RR is unbounded:
      • (a) MM is the maximum value if and only if the open half-plane ax+by>Max + by > M has no point in common with RR; otherwise ZZ has no maximum.
      • (b) mm is the minimum value if and only if the open half-plane ax+by<max + by < m has no point in common with RR; otherwise ZZ has no minimum.
Tip

The extra check for unbounded regions is crucial: even if a corner point gives the smallest value among all vertices, a point elsewhere in the region might give an even smaller value. …

Theorem 1

Theorem 2: The Corner-Point Theorem for Bounded Feasible Regions

Statement (from NCERT Class 12):

Let RR be the feasible region for a linear programming problem, and let Z=ax+byZ = ax + by be the objective function. If RR is bounded, then the objective function ZZ has both a maximum and a minimum value on RR, and each of these occurs at a corner point (vertex) of RR.

What the hypotheses mean

  • Feasible region RR is the set of all points (x,y)(x, y) that satisfy every constraint (including x≥0,y≥0x \geq 0, y \geq 0). Graphically, it is the common shaded region formed by all the half-planes.
  • Bounded means the region can be enclosed inside some circle of finite radius. In other words, it does not stretch off to infinity in any direction. A bounded feasible region is always a convex polygon (or a line segment, or a single point).
  • Objective function Z=ax+byZ = ax + by is a linear function whose value we want to maximise or minimise.
Important

The theorem guarantees both a maximum and a minimum exist when the region is bounded. This is not true for unbounded regions — there, a maximum or minimum may not exist at all.


Complete Proof

›Proof

Step 1: The feasible region is a closed, bounded convex polygon.

Since RR is defined by a finite set of linear inequalities, its boundary consists of straight line segments. Because RR is bounded, it has a finite number of corner points (vertices). Let these vertices be V1,V2,…,VkV_1, V_2, \dots, V_k.

Step 2: Any point in RR can be expressed as a convex combination of the vertices.

This is a property of convex polygons: every point PP inside or on the boundary of RR can be written as

P=λ1V1+λ2V2+⋯+λkVkP = \lambda_1 V_1 + \lambda_2 V_2 + \dots + \lambda_k V_k

where λi≥0\lambda_i \geq 0 for all ii and λ1+λ2+⋯+λk=1\lambda_1 + \lambda_2 + \dots + \lambda_k = 1.

Step 3: Evaluate ZZ at such a point.

Since Z=ax+byZ = ax + by is linear, we have:

Z(P)=axP+byP=a(∑i=1kλixi)+b(∑i=1kλiyi)Z(P) = a x_P + b y_P = a\left(\sum_{i=1}^k \lambda_i x_i\right) + b\left(\sum_{i=1}^k \lambda_i y_i\right)

=∑i=1kλi(axi+byi)=∑i=1kλiZ(Vi)= \sum_{i=1}^k \lambda_i (a x_i + b y_i) = \sum_{i=1}^k \lambda_i Z(V_i)

So the value of ZZ at any point PP is a weighted average of its values at the vertices, with the same weights λi\lambda_i.

Step 4: The maximum of ZZ occurs at a vertex.

Let M=max⁡{Z(V1),Z(V2),…,Z(Vk)}M = \max\{Z(V_1), Z(V_2), \dots, Z(V_k)\} be the largest value among the vertices. Then for any point PP in RR:

Z(P)=∑i=1kλiZ(Vi)≤∑i=1kλiM=M∑i=1kλi=MZ(P) = \sum_{i=1}^k \lambda_i Z(V_i) \leq \sum_{i=1}^k \lambda_i M = M \sum_{i=1}^k \lambda_i = M

Therefore, no point in RR can give a value larger than MM. Since MM is actually attained at some vertex (by definition), the maximum value of ZZ on RR is exactly MM, and it occurs at that vertex.

Step 5: The minimum of ZZ occurs at a vertex.

Let m=min⁡{Z(V1),Z(V2),…,Z(Vk)}m = \min\{Z(V_1), Z(V_2), \dots, Z(V_k)\} be the smallest value among the vertices. Then for any point PP in RR:

Z(P)=∑i=1kλiZ(Vi)≥∑i=1kλim=m∑i=1kλi=mZ(P) = \sum_{i=1}^k \lambda_i Z(V_i) \geq \sum_{i=1}^k \lambda_i m = m \sum_{i=1}^k \lambda_i = m

So no point gives a value smaller than mm, and mm is attained at some vertex. Hence the minimum value is mm, occurring at a vertex.

Step 6: Both extremal values exist.

Because RR is bounded and closed, the continuous function ZZ must attain both a maximum and a minimum on RR (by the Extreme Value Theorem from calculus). Steps 4 and 5 show these must be at vertices. This completes the proof.


When is this theorem used? …

Theorem 2

Theorem 2: The Corner-Point Theorem for Bounded Feasible Regions

Statement (from NCERT Class 12):

Let RR be the feasible region for a linear programming problem, and let Z=ax+byZ = ax + by be the objective function. If RR is bounded, then the objective function ZZ has both a maximum and a minimum value on RR, and each of these occurs at a corner point (vertex) of RR.

What the hypotheses mean

  • Feasible region RR is the set of all points (x,y)(x, y) that satisfy every constraint (including x≥0,y≥0x \geq 0, y \geq 0). Graphically, it is the common shaded region formed by all the half-planes.
  • Bounded means the region can be enclosed inside some circle of finite radius. In other words, it does not stretch off to infinity in any direction. A bounded feasible region is always a convex polygon (or a line segment, or a single point).
  • Objective function Z=ax+byZ = ax + by is a linear function whose value we want to maximise or minimise.
Important

The theorem guarantees both a maximum and a minimum exist when the region is bounded. This is not true for unbounded regions — there, a maximum or minimum may not exist at all.


Complete Proof

›Proof

Step 1: The feasible region is a closed, bounded convex polygon.

Since RR is defined by a finite set of linear inequalities, its boundary consists of straight line segments. Because RR is bounded, it has a finite number of corner points (vertices). Let these vertices be V1,V2,…,VkV_1, V_2, \dots, V_k.

Step 2: Any point in RR can be expressed as a convex combination of the vertices.

This is a property of convex polygons: every point PP inside or on the boundary of RR can be written as

P=λ1V1+λ2V2+⋯+λkVkP = \lambda_1 V_1 + \lambda_2 V_2 + \dots + \lambda_k V_k

where λi≥0\lambda_i \geq 0 for all ii and λ1+λ2+⋯+λk=1\lambda_1 + \lambda_2 + \dots + \lambda_k = 1.

Step 3: Evaluate ZZ at such a point.

Since Z=ax+byZ = ax + by is linear, we have:

Z(P)=axP+byP=a(∑i=1kλixi)+b(∑i=1kλiyi)Z(P) = a x_P + b y_P = a\left(\sum_{i=1}^k \lambda_i x_i\right) + b\left(\sum_{i=1}^k \lambda_i y_i\right)

=∑i=1kλi(axi+byi)=∑i=1kλiZ(Vi)= \sum_{i=1}^k \lambda_i (a x_i + b y_i) = \sum_{i=1}^k \lambda_i Z(V_i)

So the value of ZZ at any point PP is a weighted average of its values at the vertices, with the same weights λi\lambda_i.

Step 4: The maximum of ZZ occurs at a vertex.

Let M=max⁡{Z(V1),Z(V2),…,Z(Vk)}M = \max\{Z(V_1), Z(V_2), \dots, Z(V_k)\} be the largest value among the vertices. Then for any point PP in RR:

Z(P)=∑i=1kλiZ(Vi)≤∑i=1kλiM=M∑i=1kλi=MZ(P) = \sum_{i=1}^k \lambda_i Z(V_i) \leq \sum_{i=1}^k \lambda_i M = M \sum_{i=1}^k \lambda_i = M

Therefore, no point in RR can give a value larger than MM. Since MM is actually attained at some vertex (by definition), the maximum value of ZZ on RR is exactly MM, and it occurs at that vertex.

Step 5: The minimum of ZZ occurs at a vertex.

Let m=min⁡{Z(V1),Z(V2),…,Z(Vk)}m = \min\{Z(V_1), Z(V_2), \dots, Z(V_k)\} be the smallest value among the vertices. Then for any point PP in RR:

Z(P)=∑i=1kλiZ(Vi)≥∑i=1kλim=m∑i=1kλi=mZ(P) = \sum_{i=1}^k \lambda_i Z(V_i) \geq \sum_{i=1}^k \lambda_i m = m \sum_{i=1}^k \lambda_i = m

So no point gives a value smaller than mm, and mm is attained at some vertex. Hence the minimum value is mm, occurring at a vertex.

Step 6: Both extremal values exist.

Because RR is bounded and closed, the continuous function ZZ must attain both a maximum and a minimum on RR (by the Extreme Value Theorem from calculus). Steps 4 and 5 show these must be at vertices. This completes the proof.


When is this theorem used? …

Figure 12.1A shaded bounded feasible region OABC in the first quadrant formed by the constraint lines 5x + y = 100 and x + y = 60, with corner points A(20, 0), B(10, 50) and C(0, 60) marked.
Fig. 12.1 — A shaded bounded feasible region OABC in the first quadrant formed by the constraint lines 5x + y = 100 and x + y = 60, with corner points A(20, 0), B(10, 50) and C(0, 60) marked.

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your NCERT textbook's own diagram.

Fig 12.1 is the first graphical illustration of a linear programming problem in the chapter. It shows the feasible region for the tables-and-chairs investment problem, and it is the picture that makes the entire Corner Point Method intuitive.

The graph is drawn in the first quadrant only, because the non-negativity constraints x≥0x \geq 0 and y≥0y \geq 0 restrict everything to positive xx and yy. The horizontal axis is labelled xx (number of tables), and the vertical axis is yy (number of chairs). Two straight lines are drawn across this quadrant:

  • The indigo line 5x+y=1005x + y = 100 cuts the yy-axis at (0,100)(0,100) and the xx-axis at (20,0)(20,0).
  • The line x+y=60x + y = 60 cuts the yy-axis at (0,60)(0,60) and the xx-axis at (60,0)(60,0).

These two lines intersect at point BB, whose coordinates are (10,50)(10,50). That intersection is the key — it is where both constraints are simultaneously tight.

The region that satisfies all four constraints — 5x+y≤1005x + y \leq 100, x+y≤60x + y \leq 60, x≥0x \geq 0, y≥0y \geq 0 — is the polygon OABCOABC, shaded light indigo. Its vertices are:

  • O(0,0)O(0,0) — the origin, where nothing is bought.
  • A(20,0)A(20,0) — on the xx-axis, where 5x+y=1005x + y = 100 meets the xx-axis.
  • B(10,50)B(10,50) — the intersection of the two constraint lines.
  • C(0,60)C(0,60) — on the yy-axis, where x+y=60x + y = 60 meets the yy-axis.

Every point inside or on the boundary of this polygon is a feasible solution — a combination of tables and chairs that does not exceed the dealer's budget or storage capacity. Points outside, like (25,40)(25,40), are infeasible because they violate at least one constraint.

Note

The feasible region is always a convex polygon. Here it is bounded (it can be enclosed in a circle), so both a maximum and a minimum value of the objective function exist, and they occur at corner points.

The objective function for this problem is the profit:

Z=250x+75yZ = 250x + 75y

where xx is the number of tables (profit ₹250 per table) and yy is the number of chairs (profit ₹75 per chair). The textbook evaluates ZZ at each corner point:

VertexCoordinatesZ=250x+75yZ = 250x + 75y (₹)
OO(0,0)(0,0)00
AA(20,0)(20,0)50005000
BB(10,50)(10,50)62506250 ← maximum
CC(0,60)(0,60)45004500