PYQ Vault

CBSE Class 12 Maths · Linear Programming

Graphical Solution of a Linear Programming Problem

A linear programming problem asks for the largest or smallest value of a linear function Z = ax + by over the region where all the linear constraints hold: draw that region, find its corner points and compare Z at each.

Why this matters

102 questions, eighty-seven of them from board papers: twenty-two in 2023, twenty-one in 2024, twenty-five in 2025 and nineteen in 2026. Every year a three-mark question says "solve graphically", and 2023, 2024 and 2026 also set it as a five-mark long answer. Unbounded regions, where the open half-plane check decides the answer, came in 2023, 2024 and 2025. The one-mark questions name the terms, count corner points, read the constraints off a shaded figure and compare Z at given corners; assertion-reason items came in 2024, 2025 and 2026, a diet case study in 2024, and two-mark "shade the region and mark the corners" questions in 2025. The textbook adds Examples 1 to 5 and all ten questions of Exercise 12.1.

Concept 1 of 6: The terms of an LPP and the corner point theorems

Every linear programming problem has three parts: what you choose (the decision variables), what you want as large or as small as possible (the objective function), and the limits you must obey (the constraints). The one-mark questions ask for these names, and the two theorems tell you where to look for the answer: at the corners.

Definition

  • A linear programming problem asks for the optimal value (maximum or minimum) of a linear function of several variables, subject to the variables being non-negative and satisfying a set of linear inequalities.
  • Objective function: the linear function Z=ax+byZ = ax + by (aa, bb constants) to be maximised or minimised. It is linear, so its degree is 1.
  • Decision variables: xx and yy, the quantities you decide.
  • Constraints: the linear inequalities or equations or restrictions on the variables. x≥0x \ge 0, y≥0y \ge 0 are the non-negative restrictions.
  • Feasible region: the common region determined by all the constraints, including x≥0x \ge 0, y≥0y \ge 0. Every point within and on its boundary is a feasible solution; a point outside it is an infeasible solution.
  • Optimal solution: a point of the feasible region that gives the optimal value of Z.
  • Corner point: a point of the region where two boundary lines meet.
  • A region is bounded if it can be enclosed within a circle; otherwise it is unbounded.
  • Theorem 1: when Z has an optimal value, it occurs at a corner point of the feasible region.
  • Theorem 2: if the feasible region is bounded, Z has both a maximum and a minimum value, and each occurs at a corner point.
  • If the region is unbounded, a maximum or a minimum may not exist; if it exists, it is at a corner point.
TermWhat it meansExample
Objective functionThe linear function to be maximised or minimisedZ=250x+75yZ = 250x + 75y, a dealer's profit on xx tables and yy chairsQ
Board 2025 asked what a profit function of this kind measures: the combined profit from both products, not the number of units made.
Decision variablesThe quantities you choose; they are never negativexx tables and yy chairs
ConstraintsThe restrictions on the decision variablesx+y≤60x + y \le 60: space for at most 60 piecesQ
Board 2024 asked for this name as an MCQ: constraints.
Feasible regionThe common region of all the constraints, including x≥0x \ge 0, y≥0y \ge 0The shaded region on the graphQ
Board 2024 asked for this name as an MCQ: a feasible region.
Feasible solutionAny point within or on the boundary of the feasible regionInfinitely many when the region has any areaQ
Board 2023 asked how many feasible solutions a problem with a four-sided region has. Infinitely many: the number of corners answers a different question.
Optimal solutionA feasible point where Z is largest (or smallest)The corner with the best value of Z
Bounded regionCan be enclosed within a circleZ has both a maximum and a minimum, each at a cornerQ
Board 2025 asked this as an MCQ: a bounded region gives both values.
Unbounded regionCannot be enclosed within any circleA maximum or minimum may not exist; if it exists, it is at a corner
Empty feasible regionNo point satisfies all the constraintsNo feasible solution, so the problem has no solution
Practise this conceptself-check · 4 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/2/1 · Q10Easy

Example 1 · Linear Programming · Graphical Solution and the Feasible Region

The common region determined by all the constraints of a linear programming problem is called :

Counting corners as the feasible solutions

Every point inside and on the boundary of the region is a feasible solution, so a region with any area has infinitely many. The corners are only where you look for the optimal value.

Code (D) in a Maths assertion-reason item

In the Maths paper, code (D) means the Assertion is false and the Reason is true. "Every point of the feasible region is an optimal solution" is false (Z takes different values at different points), while the corner point theorem is true: that pair is (D).

A Reason that only defines a word

For code (A) the Reason must explain the Assertion. "A feasible region is the region satisfying all the constraints" is true, but it does not by itself explain why an empty region leaves the problem with no solution, so the answer is (B).

Concept 2 of 6: Drawing the feasible region and finding its corner points

Each inequality cuts the plane along a straight line, and you keep one side of it. Test one point to see which side. The feasible region is the part where all the kept sides overlap, and its corners are where two boundary lines meet inside every other constraint.

Definition

  • Change each inequality into an equation and draw the line through two points, usually where it meets the axes. Label the line with its equation.
  • Test a point not on the line, usually (0,0)(0, 0). If it satisfies the inequality, keep the side containing it; if not, keep the other side.
  • If the line passes through the origin (such as x−2y=0x - 2y = 0), test another point such as (1,0)(1, 0).
  • With ≤\le or ≥\ge the line belongs to the region. With << or >> the line is left out: the solution set is an open half plane.
  • x≥0x \ge 0, y≥0y \ge 0 keep the region in the first quadrant.
  • Shade the common region and name its corners A, B, C, ...
  • Corner points: solve the boundary lines in pairs, and keep a point only if it satisfies every other constraint.
  • Say what kind of region it is: bounded, unbounded (runs off without end), or empty (no common point, so no feasible solution).

Where a boundary line meets the axes

ax+by=c meets the axes at (ca, 0) and (0, cb)ax + by = c \text{ meets the axes at } \left(\dfrac{c}{a},\ 0\right) \text{ and } \left(0,\ \dfrac{c}{b}\right)

Worked example

Draw the feasible region determined by 2x+y≤102x + y \le 10, x+3y≤15x + 3y \le 15, x≥0x \ge 0, y≥0y \ge 0, and find its corner points.
Practise this conceptself-check · 4 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/7/2 · Q24Moderate

Example 2 · Linear Programming · Graphical Solution and the Feasible Region

In a Linear Programming Program (LPP) for objective function Z=14x−10yZ = 14x - 10y subject to constraints x+y≤8x + y \le 8 3x−2y≥−63x - 2y \ge -6 x, y≥0x,\ y \ge 0 shade the feasible region and mark the corner points in a neatly drawn graph.

Skipping the graph

"Solve graphically" and "shade the feasible region" give marks for the graph itself. Draw each line through two marked points, write its equation on it, shade the common region and name every corner. A table of Z values with no graph loses those marks.

Keeping a point that another constraint rejects

Every two lines meet somewhere, but the meeting point is a corner only if it satisfies all the other constraints. Put each candidate into every inequality before you list it.

Testing the origin on a line through the origin

For x−2y≥0x - 2y \ge 0 the origin lies on the line, so it tells you nothing. Test a point such as (1,0)(1, 0): 1≥01 \ge 0 is true, so keep the side containing (1,0)(1, 0).

Calling every first-quadrant region bounded

When the constraints are of the ≥\ge type and keep the region away from the origin, the region usually runs off without end. Say "unbounded" in your answer: it changes the last step of the corner point method.

Concept 3 of 6: Reading the constraints off a shaded graph

This is the drawing step backwards. Each straight edge of the shaded region lies on a line: find its equation from two points on it, then decide the sign by testing a point that is clearly inside the shading.

Definition

  • List the corner points marked on the graph, in order round the region.
  • For each slanted edge, find the line through its two corners: by the two-point form, or by the intercept form when it meets both axes.
  • Test a point strictly inside the shading (the origin, if it is shaded). If it makes ax+byax + by less than cc, the constraint is ax+by≤cax + by \le c; if more, it is ax+by≥cax + by \ge c.
  • Edges along the axes give x≥0x \ge 0 and y≥0y \ge 0. Write them too.
  • A dashed line for a value of Z, or a labelled point outside the shading, is not a constraint: only lines that carry an edge of the region are.

Line through two corners, and the intercept form

y−y1=y2−y1x2−x1(x−x1),xp+yq=1y - y_1 = \dfrac{y_2 - y_1}{x_2 - x_1}(x - x_1), \qquad \dfrac{x}{p} + \dfrac{y}{q} = 1
  • (x1,y1),(x2,y2)(x_1, y_1), (x_2, y_2)two corner points on the same edge
  • p,qp, qwhere the line meets the x-axis and the y-axis

Worked example

A shaded feasible region has corner points O(0,0)O(0, 0), A(6,0)A(6, 0), B(4,3)B(4, 3) and C(0,5)C(0, 5). Write all the constraints that determine it.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/4/3 · Q31Moderate

Example 3 · Linear Programming · Graphical Solution and the Feasible Region

For the given graph of a Linear Programming Problem, write all the constraints satisfying the given feasible region.

Turning every drawn line into a constraint

A graph may also show a dashed line for a value of Z, or a labelled point outside the region. Write a constraint only for a line that carries an edge of the shaded region.

Dropping x≥0x \ge 0 and y≥0y \ge 0

When the shading stops at the axes, x≥0x \ge 0 and y≥0y \ge 0 are constraints too, and an answer that leaves them out is incomplete. Writing x≤0x \le 0, y≤0y \le 0 would put the region in the third quadrant.

Testing a point on the boundary

A corner lies on its lines, so it makes both sides equal and cannot decide the sign. Test a point that is clearly inside the shading.

Concept 4 of 6: The corner point method on a bounded region

A bounded region has infinitely many points, but you never need to try them all: by the corner point theorems the largest and smallest values of Z sit at corners. So the whole method is: find the corners, make a table of Z, read off the answer.

Definition

  • Write the problem: decision variables, the objective function, every constraint including x≥0x \ge 0, y≥0y \ge 0. In a word problem "at most" gives ≤\le and "at least" gives ≥\ge.
  • Draw the lines, shade the feasible region and say that it is bounded.
  • Find each corner point, by inspection on an axis or by solving the two lines that meet there.
  • Make a table of Z at every corner. Let M be the largest value and m the smallest.
  • The region is bounded, so M is the maximum and m is the minimum of Z.
  • Finish with the value of Z and the point where it occurs; in a word problem, say what the point means.

Corner point method, bounded region

Zmax⁡=M=largest value of Z at the corners,Zmin⁡=m=smallest valueZ_{\max} = M = \text{largest value of } Z \text{ at the corners}, \qquad Z_{\min} = m = \text{smallest value}

Worked example

A shopkeeper sells two kinds of lamps. A lamp of type A costs him ₹ 200 and a lamp of type B costs ₹ 100. He has ₹ 3,200 to spend and space for at most 24 lamps. He makes a profit of ₹ 60 on type A and ₹ 40 on type B. Formulate the problem as an LPP and solve it graphically to find how many of each he should buy for the largest profit.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/3/2 · Q28Moderate

Example 4 · Linear Programming · Graphical Solution and the Feasible Region

Solve the following linear programming problem graphically : Minimize z=600x+400yz = 600x + 400y, subject to the constraints x+y≥8x + y \ge 8 x+2y≤16x + 2y \le 16 4x+y≤294x + y \le 29 x,y≥0x, y \ge 0.

Giving the value without the point

"Z is maximum" needs both parts: the value of Z and where it occurs (x=…x = \ldots, y=…y = \ldots). In a word problem, also say what the numbers mean, such as how many of each item.

Not saying the region is bounded

Taking the largest corner value as the maximum is allowed because the region is bounded. Write that sentence before your conclusion; on an unbounded region the same step would be wrong.

Picking the corner with the biggest coordinates

The corner furthest from the origin is not always the best one. A negative coefficient, such as in Z=13x−15yZ = 13x - 15y, can make a corner near the origin the minimum. Work out Z at every corner.

Rounding a fractional corner

A corner such as (3013,613)\left(\dfrac{30}{13}, \dfrac{6}{13}\right) must be kept as fractions. Rounded values can change which corner wins and lose the answer mark.

Concept 5 of 6: The same optimum at two corners, and unknown coefficients in Z

Sometimes Z takes its best value at two corners. Then every point on the edge between them gives the same value, because the line Z = constant lies along that edge. The board turns this round too: it gives the corners where the optimum occurs and asks for the coefficients of Z.

Definition

  • If two corner points give the same maximum (or minimum) value, every point on the line segment joining them gives that value too: the problem has infinitely many optimal solutions.
  • You can often see it coming: on the edge x+2y=10x + 2y = 10, Z=3x+6y=3(x+2y)Z = 3x + 6y = 3(x + 2y) is the same everywhere.
  • Write the answer as "Z is maximum at all the points on the line segment joining A and B", not "at A and B".
  • Condition for a tie at A and B: put Z(A)=Z(B)Z(A) = Z(B) and simplify to a relation between the coefficients. Then make sure the common value really is the largest (or smallest) of all the corners.
  • Values of Z given at corners: substitute each point into Z=ax+byZ = ax + by and solve the two equations for aa and bb.

Same value at two corners

Z(A)=Z(B)=M  ⇒  Z=M at every point of the segment ABZ(A) = Z(B) = M \;\Rightarrow\; Z = M \text{ at every point of the segment } AB

Worked example

Solve graphically: maximise Z=3x+6yZ = 3x + 6y subject to x+2y≤10x + 2y \le 10, x+y≤7x + y \le 7, x≥0x \ge 0, y≥0y \ge 0.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2023 · 65/3/2 · Q28Moderate

Example 5 · Linear Programming · Graphical Solution and the Feasible Region

Solve the following linear programming problem graphically : Maximize z = 3x + 9y subject to the constraints x+y≥10x + y \geq 10, x+3y≤60x + 3y \leq 60, x≤yx \leq y, x≥0x \geq 0, y≥0y \geq 0.

Answering "at two points"

When two corners tie, the optimum is at every point of the segment joining them. Writing only the two corners loses the mark, and NCERT's "show that the minimum occurs at more than two points" is asking for exactly this sentence.

Stopping at Z(A) = Z(B)

Equal values at A and B make a tie, not a maximum. Check that the common value is larger than Z at every other corner (smaller, for a minimum) before you give the condition.

A true Reason that does not explain the tie

"The optimal solution of a bounded LPP must occur at corner points" is true, but it does not explain why the maximum occurs at infinitely many points. With a true Assertion that is code (B), not (A).

Concept 6 of 6: Unbounded regions: the open half-plane check

On an unbounded region the corner values are only candidates, because Z might keep growing (or falling) as you move off along the region. One more step settles it: draw the open half plane where Z beats the candidate. If it misses the region, the candidate is the answer; if it cuts the region, there is no maximum (or no minimum).

Definition

  • Find the corners and make the table of Z as usual. Let M be the largest and m the smallest corner value.
  • Maximum: draw the open half plane ax+by>Max + by > M (dashed line). If it has no point in common with the feasible region, M is the maximum. Otherwise Z has no maximum value.
  • Minimum: draw the open half plane ax+by<max + by < m. If it has no point in common with the feasible region, m is the minimum. Otherwise Z has no minimum value.
  • With ≥\ge constraints and positive coefficients in Z, the minimum usually exists and the maximum does not.
  • If two corners tie for the minimum and the check passes, the minimum is at every point of the segment joining them.

Check for a minimum on an unbounded region

ax+by<m has no point in common with the region  ⇒  Zmin⁡=max + by < m \text{ has no point in common with the region} \;\Rightarrow\; Z_{\min} = m

Worked example

Solve graphically: minimise Z=2x+3yZ = 2x + 3y subject to x+y≥4x + y \ge 4, x+3y≥6x + 3y \ge 6, x≥0x \ge 0, y≥0y \ge 0.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/7/1 · Q30Moderate

Example 6 · Linear Programming · Graphical Solution and the Feasible Region

In the Linear Programming Problem for objective function Z=18x+10yZ = 18x + 10y subject to constraints 4x+y≥204x + y \ge 20 2x+3y≥302x + 3y \ge 30 x, y≥0x,\ y \ge 0 find the minimum value of Z.

Stopping at the corner table

On an unbounded region the smallest corner value is not yet the minimum. Without the half plane check the answer is incomplete, and board answers give a step mark for it.

Using ≤\le or ≥\ge in the check

The test region is open: ax+by<max + by < m for a minimum and ax+by>Max + by > M for a maximum, drawn with a dashed line. Its boundary passes through the best corner, so a closed half plane would always meet the region.

Saying "no solution" when only one value fails

An unbounded region often has a minimum but no maximum. If the question asks for the minimum and the check passes, give it; "Z has no maximum value" answers only a maximisation.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (5)

  • Drawing the feasible region and finding its corner points

    Where a boundary line meets the axes

    ax+by=c meets the axes at (ca, 0) and (0, cb)ax + by = c \text{ meets the axes at } \left(\dfrac{c}{a},\ 0\right) \text{ and } \left(0,\ \dfrac{c}{b}\right)
  • Reading the constraints off a shaded graph

    Line through two corners, and the intercept form

    y−y1=y2−y1x2−x1(x−x1),xp+yq=1y - y_1 = \dfrac{y_2 - y_1}{x_2 - x_1}(x - x_1), \qquad \dfrac{x}{p} + \dfrac{y}{q} = 1
  • The corner point method on a bounded region

    Corner point method, bounded region

    Zmax⁡=M=largest value of Z at the corners,Zmin⁡=m=smallest valueZ_{\max} = M = \text{largest value of } Z \text{ at the corners}, \qquad Z_{\min} = m = \text{smallest value}
  • The same optimum at two corners, and unknown coefficients in Z

    Same value at two corners

    Z(A)=Z(B)=M  ⇒  Z=M at every point of the segment ABZ(A) = Z(B) = M \;\Rightarrow\; Z = M \text{ at every point of the segment } AB
  • Unbounded regions: the open half-plane check

    Check for a minimum on an unbounded region

    ax+by<m has no point in common with the region  ⇒  Zmin⁡=max + by < m \text{ has no point in common with the region} \;\Rightarrow\; Z_{\min} = m

Reference tables (1)

The terms of an LPP and the corner point theorems9 rows
TermWhat it meansExample
Objective functionThe linear function to be maximised or minimisedZ=250x+75yZ = 250x + 75y, a dealer's profit on xx tables and yy chairsQ
Board 2025 asked what a profit function of this kind measures: the combined profit from both products, not the number of units made.
Decision variablesThe quantities you choose; they are never negativexx tables and yy chairs
ConstraintsThe restrictions on the decision variablesx+y≤60x + y \le 60: space for at most 60 piecesQ
Board 2024 asked for this name as an MCQ: constraints.
Feasible regionThe common region of all the constraints, including x≥0x \ge 0, y≥0y \ge 0The shaded region on the graphQ
Board 2024 asked for this name as an MCQ: a feasible region.
Feasible solutionAny point within or on the boundary of the feasible regionInfinitely many when the region has any areaQ
Board 2023 asked how many feasible solutions a problem with a four-sided region has. Infinitely many: the number of corners answers a different question.
Optimal solutionA feasible point where Z is largest (or smallest)The corner with the best value of Z
Bounded regionCan be enclosed within a circleZ has both a maximum and a minimum, each at a cornerQ
Board 2025 asked this as an MCQ: a bounded region gives both values.
Unbounded regionCannot be enclosed within any circleA maximum or minimum may not exist; if it exists, it is at a corner
Empty feasible regionNo point satisfies all the constraintsNo feasible solution, so the problem has no solution

Watch out for (20)

Test yourself on Linear Programming

15 past CBSE Class 12 questions from this chapter, timed at 23 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.