Home / Mathematics / Class XII / Linear Programming
Linear Programming — CUET Mathematics hero
Class XII 📐 Mathematics Ch 12 of 13

Linear Programming

CUET unit: Linear Programming

📌 Snapshot

  • Linear programming for CUET: formulate, draw the region, test the corners and read off the best answer.
  • Why the best plan always sits at a corner of the feasible region, and what changes when the region is unbounded or empty.
  • Objective function, constraints, feasible region and corner points, with every term defined once and used in six worked examples.
  • The four outcomes of an LPP, the unbounded region test and the multiple optima case, with the traps NTA sets.

📖 Detailed Notes

Written and reviewed by Devendra Dubey, Mathematics faculty at UniDrill (M.Sc. Mathematics, Osmania University · 10 years teaching Mathematics). Based on NCERT Mathematics Class XII, Chapter 12.

Why can't a shopkeeper make unlimited profit?

A furniture dealer earns ₹250 on every table and ₹75 on every chair. So why not make a million tables? Because money, space and time run out. The dealer has only ₹50,000 to invest and room for only 60 pieces. Within those limits, which mix of tables and chairs earns the most?

That question, "the best outcome subject to limits", is called optimisation. When both the quantity you want to maximise (profit) and every limit are straight line relationships, it is a linear programming problem (LPP). "Linear" means straight lines and "programming" means planning. The wonderful fact of this chapter is that you never have to try thousands of mixes. The best plan always sits at a corner of a region you can draw, so you test a handful of points and you are done.

Only two decision variables appear here, so the graphical method is enough. (Other methods exist for larger problems, as the history box below explains.)

Turning words into mathematics

Take the dealer's story with $x$ tables and $y$ chairs. A table costs ₹2500 and a chair ₹500, so the investment limit is $2500x + 500y \le 50000$, which simplifies to $5x + y \le 100$ after dividing by 500. Storage gives $x + y \le 60$. You cannot make a negative number of pieces, so $x \ge 0$ and $y \ge 0$. The profit to maximise is $Z = 250x + 75y$. The complete problem is:

$$\text{Maximise } Z = 250x + 75y \quad \text{subject to } 5x + y \le 100,\ \ x + y \le 60,\ \ x \ge 0,\ y \ge 0$$

Phrases map to inequality signs in a fixed way:

Words Symbol Example
At most, not more than, up to $\le$ Storage for at most 60 pieces: $x + y \le 60$
At least, not less than, minimum $\ge$ At least 10 units of a nutrient: $x + y \ge 10$
Cannot be negative $x \ge 0,\ y \ge 0$ A count of items
Equal to, exactly $=$ Rare; a boundary line only

The vocabulary, in one table

Each word has a precise meaning and NTA tests them one by one.

Term Meaning
Decision variables The unknowns $x, y$ you choose (number of tables, chairs)
Objective function The linear function $Z = ax + by$ to be maximised or minimised
Constraints The linear inequalities that limit the choice
Non-negative restrictions $x \ge 0,\ y \ge 0$; part of the constraints, not a separate idea
Feasible region The common region satisfying all constraints, including $x, y \ge 0$
Feasible solution Any point in or on the boundary of the feasible region
Infeasible solution Any point outside the feasible region
Optimal solution A feasible point that gives the best (maximum or minimum) value of $Z$
Corner point (vertex) A point of the feasible region where two boundary lines meet
Bounded region One that can be enclosed in a circle
Unbounded region One that stretches off to infinity in some direction

Drawing the feasible region

To shade one inequality, draw its boundary line as if it were an equation, then test a point not on the line. The origin is the usual choice. If $(0, 0)$ satisfies the inequality, shade the origin's side; otherwise shade the other side. The feasible region is where all the shaded parts overlap. Because each inequality is a half-plane, the overlap is always a convex region: draw a segment between any two points of it and the whole segment stays inside. A convex region has no dents.

Corner points are found by solving the boundary equations in pairs, and then keeping only those solutions that satisfy every other constraint. For the dealer, the line $5x + y = 100$ meets the axes at $(20, 0)$ and $(0, 100)$, and $x + y = 60$ meets them at $(60, 0)$ and $(0, 60)$. The two lines meet where $5x + y = 100$ and $x + y = 60$ agree. Subtracting gives $4x = 40$, so $x = 10$ and $y = 50$. The feasible region is the quadrilateral with corners $O(0, 0)$, $A(20, 0)$, $B(10, 50)$ and $C(0, 60)$. The points $(60, 0)$ and $(0, 100)$ are outside because they break the other limit.

Why the answer is always at a corner

Suppose you want the largest $Z = ax + by$. Each value $Z = c$ is a straight line, and different $c$ give parallel lines. Slide that line across the region in the direction of increasing $Z$. The last point it touches before it leaves is the maximum, and a straight line leaving a region with straight edges always leaves at a corner (or along a whole edge).

Here is the algebra behind the picture. Pick any point $P$ on a segment between two feasible points $A$ and $B$. Then $P = (1 - t)A + tB$ for some $t$ between 0 and 1, and because $Z$ is linear, $Z(P) = (1 - t)Z(A) + tZ(B)$. This is a weighted average, so it can never beat the better of $Z(A)$ and $Z(B)$. Push this argument along the edges of the region and you reach the corners. That gives the two theorems that run the chapter.

Theorem Statement What it lets you do
Theorem 1 If $Z$ has an optimal value on the feasible region, it occurs at a corner point Test only the corners
Theorem 2 If the feasible region is bounded, $Z$ has both a maximum and a minimum, each at a corner Take the largest and smallest corner values

The corner point method

Step What to do Why
1 Draw the feasible region and mark its corner points Only corners can be optimal
2 Evaluate $Z$ at every corner A handful of substitutions
3 Let $M$ be the largest and $m$ the smallest value These are the candidates
4 Bounded region: $M$ is the maximum and $m$ is the minimum Theorem 2 guarantees both exist
5 Unbounded region: $M$ is the maximum only if $ax + by > M$ has no point in the region; $m$ is the minimum only if $ax + by < m$ has no point in the region The region might let $Z$ grow without end

Worked example: the furniture dealer. Maximise $Z = 250x + 75y$ subject to $5x + y \le 100$, $x + y \le 60$, $x, y \ge 0$.

Step What we do Result
1 List the corners of the region (found above) $O(0, 0)$, $A(20, 0)$, $B(10, 50)$, $C(0, 60)$
2 Evaluate $Z$ at each corner $0$, $5000$, $6250$, $4500$
3 The region is bounded, so the largest value is the maximum Maximum $Z = 6250$ at $(10, 50)$

Common wrong step. Listing only the axis intercepts and forgetting the intersection of the two limit lines. Then $(20, 0)$ looks best at $5000$, and the true optimum at $B$ is never tested. The best plan is 10 tables and 50 chairs, not "as many tables as possible".

Worked example: a corner that isn't the intersection. Maximise $Z = 4x + y$ subject to $x + y \le 50$, $3x + y \le 90$, $x, y \ge 0$.

Step What we do Result
1 Find the corners. The lines meet where $2x = 40$ $(0, 0)$, $(30, 0)$, $(20, 30)$, $(0, 50)$
2 Evaluate $Z = 4x + y$ $0$, $120$, $110$, $50$
3 Pick the largest Maximum $Z = 120$ at $(30, 0)$

Common wrong step. Assuming the intersection point $(20, 30)$ must be best because it is the "interesting" corner. It gives only $110$. Which corner wins depends on the coefficients in $Z$, not on how complicated the corner looks.

Pause and predict: for the region above, with corners $(0, 0)$, $(30, 0)$, $(20, 30)$ and $(0, 50)$, which objective function makes the corner $(20, 30)$ the winner: $Z = 4x + y$, $Z = 2x + y$ or $Z = x + 3y$?

Check your answer: $Z = 2x + y$. It gives $0, 60, 70, 50$ at the four corners, so $70$ at $(20, 30)$ wins. The coefficient ratio $2 : 1$ in $Z$ lies between the coefficient ratios of the two constraint lines ($1 : 1$ and $3 : 1$). A ratio above $3$ favours $(30, 0)$, as in $4x + y$. A ratio below $1$ favours $(0, 50)$, as in $x + 3y$ with a maximum of $150$.

Worked example: a minimum with a "greater than" constraint. Minimise $Z = 200x + 500y$ subject to $x + 2y \ge 10$, $3x + 4y \le 24$, $x, y \ge 0$.

Step What we do Result
1 $x + 2y \ge 10$ is the side away from the origin, since $0 \ge 10$ is false. $3x + 4y \le 24$ is the origin's side The region is the triangle between the two lines on the $y$ axis
2 On the $y$ axis the lines give $y = 5$ and $y = 6$. They meet where $x = 10 - 2y$ put into $3x + 4y = 24$ gives $30 - 2y = 24$, so $y = 3$ and $x = 4$ $(0, 5)$, $(0, 6)$, $(4, 3)$
3 Evaluate $Z$ $2500$, $3000$, $2300$
4 Bounded region, so the smallest value is the minimum Minimum $Z = 2300$ at $(4, 3)$

Common wrong step. Including the origin as a corner. It would give $Z = 0$, but $(0, 0)$ fails $x + 2y \ge 10$, so it is not feasible. Always check a candidate against every constraint before using it.

Four ways an LPP can end

Not every LPP has one neat answer. Three special cases need a sentence of explanation, and each has a classic example.

Outcome What the region looks like What you write
Unique optimum Bounded region, one best corner The corner and the value of $Z$
Multiple optimal solutions An edge of the region is parallel to the lines $Z = c$ Two corners tie, and every point on the segment joining them is optimal
No optimum (unbounded) Region unbounded and $Z$ can improve forever Say the maximum (or minimum) does not exist
No feasible solution The constraints contradict each other, region empty The problem is infeasible

Worked example: many best answers. Maximise $Z = 3x + 9y$ subject to $x + 3y \le 60$, $x + y \ge 10$, $x \le y$, $x, y \ge 0$.

Step What we do Result
1 Corners: $x = 0$ meets $x + y = 10$ and $x + 3y = 60$; $x = y$ meets $x + y = 10$ and $x + 3y = 60$ $(0, 10)$, $(0, 20)$, $(5, 5)$, $(15, 15)$
2 Evaluate $Z$ $90$, $180$, $60$, $180$
3 The maximum, $180$, occurs at two corners Every point of the segment from $(0, 20)$ to $(15, 15)$ is optimal
4 The minimum is the smallest value Minimum $Z = 60$ at $(5, 5)$

Why does this happen? Because $Z = 3x + 9y = 3(x + 3y)$. The edge from $(0, 20)$ to $(15, 15)$ lies on the line $x + 3y = 60$, so $Z = 180$ along the whole edge. The sliding line $Z = c$ is parallel to that edge, so it leaves the region along the entire edge at once.

Common wrong step. Reporting only one of the tied corners, or the midpoint alone. The correct statement is "maximum value $180$, attained at every point of the segment joining $(0, 20)$ and $(15, 15)$".

Pause and predict: the feasible region is the whole first quadrant, which is unbounded, and $Z = x + y$. The only corner is $(0, 0)$ with $Z = 0$. Is $0$ the minimum? Is there a maximum?

Check your answer: $0$ is the minimum, because $x + y < 0$ has no point in the first quadrant. There is no maximum, because $x + y > 0$ (any number you like) has points in the region and $Z$ grows without end. The tests for $M$ and $m$ are separate, and one can pass while the other fails.

Worked example: an unbounded region. Minimise $Z = -50x + 20y$ subject to $2x - y \ge -5$, $3x + y \ge 3$, $2x - 3y \le 12$, $x, y \ge 0$.

Step What we do Result
1 Corners of the (unbounded) region $(0, 5)$, $(0, 3)$, $(1, 0)$, $(6, 0)$
2 Evaluate $Z$ $100$, $60$, $-50$, $-300$
3 Smallest value is $m = -300$ at $(6, 0)$. Does $-50x + 20y < -300$ meet the region? Try $(10, 3)$: it satisfies all constraints and gives $Z = -440$ Yes it meets the region, so $-300$ is not the minimum
4 Conclusion for the minimum $Z$ has no minimum
5 Largest value is $M = 100$. In the region $y \le 2x + 5$, so $Z \le -50x + 20(2x + 5) = 100 - 10x \le 100$ No point has $Z > 100$, so the maximum is $100$ at $(0, 5)$

Common wrong step. Reading the smallest tabulated value, $-300$, as the minimum. On a bounded region that is exactly right. On an unbounded one the region can run off in a direction that keeps lowering $Z$, so the half-plane test is not optional.

Worked example: an infeasible problem. Minimise $Z = 3x + 2y$ subject to $x + y \ge 8$, $3x + 5y \le 15$, $x, y \ge 0$.

Step What we do Result
1 The second constraint with $x, y \ge 0$ gives $3x + 3y \le 3x + 5y \le 15$ $x + y \le 5$
2 The first constraint needs $x + y \ge 8$ $8 \le x + y \le 5$ is impossible
3 No point satisfies both The feasible region is empty
4 Conclusion The LPP is infeasible: no solution exists

Common wrong step. Calling an empty region "unbounded". Unbounded regions have points, and may still have an optimum. An empty region has no points at all.

Beyond the textbook. For the exam: a feasible region with fractional corners, such as the corner $\left(\dfrac{20}{19}, \dfrac{45}{19}\right)$, is accepted as the answer. In reality: a factory cannot make $\dfrac{20}{19}$ of a table. When whole numbers are required, rounding the corner can break a constraint or miss the best whole number plan, and the problem becomes an integer programming problem, which is harder. CUET stays with the corner point answer unless a question explicitly asks otherwise.

Beyond the textbook. For the exam: only the graphical method with two variables is needed. In reality: the first LPPs were formulated in the 1940s. L. Kantorovich and F. L. Hitchcock formulated the transportation problem in 1941, G. Stigler stated the diet problem in 1945, and G. B. Dantzig gave the simplex method in 1947. Kantorovich and Koopmans shared the 1975 Nobel Prize in Economics for work on the allocation of resources. Real problems, such as scheduling airline crews or blending refinery products, have thousands of variables. The region then lives in thousands of dimensions, yet the optimum still sits at a corner, and the simplex method works by walking from corner to corner, the same idea you use here.

Exam traps

The trap Why it's tempting The truth
"On an unbounded region the smallest corner value is the minimum." It is true for bounded regions You must check that $ax + by < m$ has no point in the region
"The optimum can be an interior point." A middle point feels like a compromise Interior points are weighted averages of boundary values, so they cannot beat the corners
"An LPP has one optimal point." Most examples do If two corners tie, the whole joining segment is optimal
"Corners are the points where constraint lines cross each other." Intersections are the ones you solve for Axis intercepts and points where a line meets $x = 0$ or $y = 0$ are corners too, if feasible
"Unbounded and infeasible mean the same." Both sound like failure Unbounded: the region has points and might have an optimum. Infeasible: the region is empty
"The origin is always a corner." It is, in the furniture problem Not if a constraint such as $x + 2y \ge 10$ excludes it
"Non-negativity is optional." Word problems rarely mention it $x \ge 0$ and $y \ge 0$ are constraints, and they often create the corners on the axes
"A bounded region has a maximum but maybe no minimum." The unbounded case is mixed A bounded region always has both

Formula sheet

Quantity Rule Gives When to use
Objective function $Z = ax + by$ A number for each point Profit, cost or any linear quantity
Inequality shading Test $(0, 0)$ in the inequality Side to shade Drawing the feasible region
Corner point Solve two boundary equations, keep it if it satisfies all constraints A vertex Building the list to test
Bounded region Maximum and minimum are the largest and smallest corner values Optimum Region fits in a circle
Unbounded, maximum test $M$ is the maximum only if $ax + by > M$ has no point in the region Yes or no Unbounded region
Unbounded, minimum test $m$ is the minimum only if $ax + by < m$ has no point in the region Yes or no Unbounded region
Multiple optima Two corners with equal best $Z$ Whole segment optimal A tie in the table
No solution Constraints contradict, region empty Infeasible Check the overlap
Simplifying a limit Divide by the common factor, for example $2500x + 500y \le 50000$ becomes $5x + y \le 100$ Smaller numbers Before drawing

60-second revision

Topic Lock this in
LPP Linear objective, linear constraints, $x, y \ge 0$
Feasible region Overlap of all half-planes · always convex
Theorem 1 Optimum, if it exists, is at a corner
Theorem 2 Bounded region gives both a maximum and a minimum
Corner point method List corners → evaluate $Z$ → compare
Unbounded region Check $ax + by > M$ or $ax + by < m$ against the region
Ties Two best corners → the whole segment is optimal
Empty region Infeasible, no solution
Quick ideas Test the origin to shade · divide big numbers by common factors · keep only corners that satisfy all constraints

Where this chapter connects

  • Before: Linear Inequalities teaches the half-plane graphs and systems of inequalities that form the feasible region.
  • Lines: Straight Lines gives the intercepts and intersection of the boundary lines you solve for corners.
  • Another kind of optimisation: Application of Derivatives finds maxima and minima of curved functions with calculus. Linear programming finds them for straight line functions with corners.

🎯 Practice MCQs

First 3 questions free · create a free account to unlock the rest — answers & explanations included, no payment needed

Q1. In a linear programming problem, the linear function Z = ax + by that has to be maximised or minimised is called the

▸ Show answer & explanation

Answer: B

Z = ax + by is the objective function. The unknowns x and y are the decision variables, and the inequalities that limit them are the constraints. The other two phrases are not terms of the topic.

Q2. A dealer maximises $Z = 100x + 100y$ subject to $5x + y \le 100$, $x + y \le 60$, $x \ge 0$, $y \ge 0$. The maximum value of Z is 6000, and it is attained

▸ Show answer & explanation

Answer: C

The corners are $(0, 0)$, $(20, 0)$, $(10, 50)$ and $(0, 60)$, giving Z = 0, 2000, 6000, 6000. Two corners tie at 6000, and the edge between them lies on $x + y = 60$, which is parallel to the lines $100x + 100y = c$. So every point of that segment is optimal. Options A and B each name only one of the two tied corners, and $(20, 0)$ gives only 2000.

Q3. The minimum value of $Z = -3x + 4y$ subject to $x + 2y \le 8$, $3x + 2y \le 12$, $x \ge 0$, $y \ge 0$ is

▸ Show answer & explanation

Answer: A

The lines meet where $2x = 4$, so at $(2, 3)$. The corners are $(0, 0)$, $(4, 0)$, $(2, 3)$ and $(0, 4)$ with Z = 0, $-12$, 6 and 16. The region is bounded, so the smallest value, $-12$ at $(4, 0)$, is the minimum. Option D is the maximum, and option B is not smallest because Z can be negative.

🔒 9 more practice MCQs

Create a free account to unlock every MCQ in this chapter — answers and explanations included. No payment needed.

Already registered? Just log in and they'll all appear here.

📊 Previous-Year Questions

Practise with real CUET Mathematics previous-year papers — every question solved, with the correct answer and a step-by-step explanation.

View solved CUET PYQ papers →

Ready to drill Mathematics?

Unlock all MCQs, chapter tests, mocks & PYQs for ₹199/year.

Get UniDrill Pro