Linear Programming
A furniture dealer has Rs 50,000 to spend and storage for at most 60 pieces. Tables cost Rs 2500 and earn a profit of Rs 250 each; chairs cost Rs 500 and earn Rs 75 each. Buy only tables and the profit is Rs 5000. Buy only chairs and it is Rs 4500. Buy 10 tables and 50 chairs and it jumps to Rs 6250. With infinitely many combinations available, how does the dealer find the best one without checking every possibility by hand? This is the question that opens Chapter 12, and its answer — Linear Programming — turns a vague "maximise my profit" wish into a precise, solvable piece of mathematics. The chapter's big insight is almost shocking in its economy: among the infinitely many points satisfying a set of linear constraints, the best one is never buried in the interior — it always sits at a corner point of the feasible region. That single fact, proved as a theorem here (without proof, as NCERT states, since the proof needs convexity theory beyond this book), converts an infinite search into a finite checklist: list the corners, plug each into the objective function, and read off the winner. This is the Corner Point Method, the working engine of the whole chapter. You will learn to translate a word problem into decision variables, an objective function, and a system of linear constraints; to graph that system and shade the feasible region using the same techniques from Class XI's linear inequalities; to identify corner points either by inspection or by solving pairs of boundary equations; and to handle the subtlety of unbounded regions, where a naive "largest value in my table" can be dangerously wrong. Along the way you meet infeasible problems (no feasible region at all) and problems with infinitely many optimal solutions (an entire edge of the region ties for best). By the end, the furniture dealer's problem — and dozens like it in diet planning, manufacturing, transportation, and allocation of resources — become routine five-step exercises. This is applied mathematics at its cleanest: a real decision, made rigorous by algebra and geometry working together.
- A linear programming problem (LPP) seeks the maximum or minimum value of a linear objective function subject to linear constraints (inequalities or equations) and non-negativity restrictions .
- The feasible region is the set of all points satisfying every constraint simultaneously; every point in it is a feasible solution, and points outside are infeasible.
- The feasible region of a linear programming problem is always a convex region — a bounded or unbounded polygon with no dents.
- Theorem 1 (Fundamental theorem of LPP): if has an optimal value on the feasible region, that value must occur at a corner point (vertex) of the region.
- Theorem 2: if the feasible region is bounded, has both a maximum and a minimum, and both occur at corner points — this guarantees the Corner Point Method always succeeds on bounded regions.
- The Corner Point Method: find every corner point, evaluate at each, and the largest/smallest value found is the maximum/minimum (when the region is bounded).
- When the feasible region is unbounded, a value that looks maximum (or minimum) in the corner-point table must be checked by testing whether the open half-plane (or ) meets the feasible region; if it does, no such optimal value exists.
- If two corner points give the same optimal value of , then every point on the segment joining them is also optimal — the problem has infinitely many optimal solutions.
- A feasible region can be empty (no point satisfies every constraint at once); such an LPP has no feasible solution and hence no optimal solution.
- Key idea: the optimal value of a linear objective function over a convex feasible region always occurs at a corner point, so solving any LPP graphically reduces to listing corner points, evaluating Z at each, and picking the best — with an extra unbounded-region check when needed.
Because a linear objective function's extreme values over a convex feasible region always occur at a vertex, every linear programming problem graphically reduces to finding the corner points and comparing at each of them.
What this chapter covers
The chapter builds in five stages, each depending on the one before it. It opens with the furniture dealer problem, used throughout as the running example, to motivate why real allocation decisions are optimisation problems. From this example the chapter extracts the vocabulary of linear programming: decision variables, objective function, constraints, non-negative restrictions, and the general mathematical formulation of an LPP. Next comes the graphical method: plotting the constraint inequalities exactly as in Class XI, shading the common region, and naming it precisely — feasible region, feasible solution, infeasible solution, optimal solution, bounded and unbounded regions. The heart of the chapter is the pair of theorems that justify the Corner Point Method — that an optimum (if it exists) sits at a vertex, and that a bounded feasible region guarantees both a maximum and a minimum. These are stated without proof in NCERT (their rigorous proof needs convexity results beyond Class XII), but this article gives you the reasoning behind why they must be true, and a worked derivation of the method's mechanics. The chapter then works through NCERT's five core solved examples, escalating in difficulty: a straightforward bounded maximisation (Example 1), a bounded minimisation (Example 2), a problem with multiple optimal solutions (Example 3), an unbounded region requiring the half-plane test (Example 4), and a case with no feasible region at all (Example 5). It closes with Exercise 12.1, ten LPPs to solve graphically, and a Miscellaneous Exercise extending to word problems in diet planning, manufacturing, and transportation — all solved by the identical five-step recipe you master here.
The core ideas
Formulating a linear programming problem
Every LPP begins the same way: identify what you control (the decision variables), what you want to optimise (the objective function), and what limits you (the constraints). For the furniture dealer, let be the number of tables and the number of chairs bought. Since you cannot buy a negative number of tables or chairs,
where: these two conditions are compulsory in every LPP and are stated separately from the other constraints because they arise from the physical meaning of the variables, not from the specific problem's resources. The dealer's money and storage space limit his choices. Investment cannot exceed Rs 50,000, and total pieces cannot exceed 60:
where: dividing through by the common factor 500 turns the first inequality into smaller, easier-to-graph numbers — a standard simplification that preserves the inequality direction because 500 is positive. Finally the goal itself, the profit Z, stated as a linear function of the decision variables — this is the objective function:
where: the coefficients and are the profit per table and per chair; is to be maximised. Collecting all of this gives the complete mathematical formulation:
where: the phrase "subject to" introduces the constraint set; a solution to the LPP is any pair satisfying every one of these conditions, and the optimal solution is the one among them giving the best . In general, a linear programming problem is one that finds the optimal (maximum or minimum) value of a linear objective function of several variables, subject to constraints that are linear inequalities or equations together with non-negativity restrictions. The term linear signals that no variable is squared, multiplied by another variable, or appears under a root; programming refers to planning a course of action, not to computer code.
The feasible region and its geometry
Once the constraints are graphed as half-planes (using the Class XI technique — plot the boundary line, then test a convenient point such as the origin to decide which side satisfies the inequality), their common intersection is the feasible region, also called the solution region. Every point in it — interior or on the boundary — is a feasible solution; every point outside it is an infeasible solution. A feasible region may be bounded (it fits entirely inside some sufficiently large circle) or unbounded (it stretches out indefinitely in some direction). This distinction matters enormously, because Theorem 2 below only guarantees an optimal value when the region is bounded. A crucial structural fact, visible in every example NCERT works, is that the feasible region of a linear programming problem is always convex: the line segment joining any two points of the region lies entirely within the region. Convexity is what makes the corner-point idea work at all — a non-convex region could hide an interior local optimum that no vertex captures.
Corner points and the two fundamental theorems
A corner point (vertex) of a feasible region is a point of the region lying at the intersection of two of its boundary lines. Once the region is drawn, the two theorems that anchor the whole chapter tell us exactly where to look for an optimal value of .
where: must be the region determined by the constraints of an LPP (in particular, a convex region); this theorem does not by itself guarantee that an optimal value exists — it only says where to look if one does.
where: boundedness is the extra condition that upgrades Theorem 1's conditional "if an optimum exists" into an unconditional guarantee — a bounded convex region always has finitely many corner points, and comparing at each of them is guaranteed to find both extremes. NCERT states both without proof, since a full proof requires convexity theory beyond Class XII; the derivation below instead builds the intuition for why they must be true and turns that intuition into the working algorithm — the Corner Point Method.
Worked derivations
The goal here is to see, using only elementary reasoning about straight lines, why a linear objective function can never attain its maximum or minimum at a genuinely interior point of a convex polygon, and why any point on the boundary that is not a vertex is likewise ruled out — forcing every optimum onto one of the finitely many corner points. This is the geometric content behind Theorem 1, made concrete rather than left as an assertion, and it explains why the Corner Point Method is not a lucky shortcut but a logical necessity.
Step 1. Look at what the level sets of look like. For any fixed value , the equation is a straight line, and as varies these lines form a family of parallel lines (all with the same slope ), since only the constant term changes. Increasing corresponds to sliding this line in one fixed direction — the direction of steepest increase, perpendicular to the lines — and decreasing corresponds to sliding it the opposite way.
Step 2. Suppose, for contradiction, that attains its maximum at a point strictly inside the feasible region (not on the boundary at all). Because is interior, a small disc around lies entirely within the region. But the line through has points on both sides of it within that disc, and on one of those two sides is strictly larger than (since is not constant unless , a trivial case excluded from real problems). That nearby point is still feasible, so was not the maximum after all — a contradiction. Hence no genuinely interior point can be optimal.
Step 3. So the optimum must lie on the boundary. Consider any boundary edge of the convex region that is not just a single point — a straight segment joining two corners, say and . Along this whole edge, varies linearly as you move from to (because the edge itself is a straight segment and is a linear function of position along it). A linear function of one parameter attains its extreme values only at the endpoints of the interval it is evaluated on, never in the interior of the interval, unless it is constant throughout. So on this edge, the maximum (and minimum) of occurs at or — the corner points bounding it — or, in the special tied case, equally at every point of the edge.
Step 4. Since the feasible region's entire boundary is made up of finitely many such edges, and each edge pushes its extreme values to its own two endpoints, the overall maximum (and minimum) of over the whole boundary — and hence over the whole region, by Step 2 — must occur at one of the finitely many corner points where two edges meet. This is exactly Theorem 1. Theorem 2 follows because a bounded convex polygon has only finitely many edges and vertices, all of them actual points of the region, so comparing at each vertex is guaranteed to catch both the true maximum and the true minimum — there is no way for the optimum to "escape" toward infinity as it might in an unbounded region. This reasoning is the geometric justification NCERT omits; the two theorems it produces are exactly what license the Corner Point Method used throughout the chapter.
Go deeper · Derivation B · 2 minThe Corner Point Method, step by step, and the unbounded-region check
The goal of this derivation is to turn Theorems 1 and 2 into the precise, repeatable algorithm NCERT calls the Corner Point Method, and — crucially — to derive the extra test needed when the feasible region is unbounded, where the theorems alone are not enough to guarantee an optimal value exists at all. This matters because a student who only memorises "find corners, compare Z" will get Example 4 of the chapter wrong: the largest number in the table is not automatically the maximum when the region is unbounded.
Step 1. Graph every constraint as a half-plane exactly as in Class XI: draw the boundary line of each inequality (treating it as an equation), then test a convenient point not on the line — the origin when it is not itself on the boundary — to decide which side of the line satisfies the inequality, and shade that side. The intersection of all shaded half-planes, together with , is the feasible region .
Step 2. Locate every corner point of . A corner point is the intersection of two of the boundary lines forming 's edges. Some corners are read off directly from the axes intercepts of a single constraint; others require solving two boundary equations simultaneously (elimination or substitution), since a corner is where two lines meet.
Step 3. Evaluate at every corner point found in Step 2, and record the results in a table. Let denote the largest of these values and the smallest.
Step 4. If is bounded (Theorem 2 applies directly), is the true maximum of and is the true minimum, full stop — no further check is needed, because a bounded convex region cannot let escape past every corner value.
Step 5. If is unbounded, Theorem 2 no longer applies, and Theorem 1 only says an optimum, if it exists, is at a corner — it does not guarantee existence. So each candidate must be tested separately: is genuinely the maximum only if the open half-plane shares no point with ; if it does share a point, can be pushed past somewhere in and no maximum exists at all. Symmetrically, is the minimum only if the open half-plane shares no point with ; otherwise has no minimum. This half-plane test is simply asking, geometrically, whether the region keeps extending into territory where is still improving.
Step 6. Two edge cases complete the method: if two corner points give the same optimal value of , then by the "linear function on an edge is extreme only at endpoints, or constant throughout" fact from the previous derivation, every point of the segment joining them gives that same optimal value too — infinitely many optimal solutions. And if the constraints are mutually contradictory, the feasible region is empty, so there is no feasible solution and consequently no optimal solution to report. This six-step procedure — graph, find corners, evaluate, then apply Step 4 or Step 5 depending on boundedness — is executed verbatim in the three worked examples below.
Worked examples
Board level - Maximise Z = 4x + y (NCERT Example 1)
Step 1. The problem is Maximise subject to , , . Graph the two boundary lines and along with the axes; testing the origin in each inequality confirms the region toward the origin's side is feasible, so the feasible region OABC is bounded.
Step 2. Find the corner points. is the origin. is where meets the x-axis (): , so . is where meets the y-axis (): , so . is the intersection of the two lines: solving and by subtraction gives , then , so .
Step 3. Evaluate at each corner: at , ; at , ; at , ; at , .
Step 4. Since the region is bounded, Theorem 2 applies directly — no half-plane check is needed. Comparing all four values, the largest is at .
The maximum value of Z is 120, attained at (30, 0).
Board level - Minimise Z = 200x + 500y (NCERT Example 2)
Step 1. The problem is Minimise subject to , , . Here the first constraint is a "greater than or equal to," so the feasible side of that line is away from the origin, while the second constraint's feasible side is toward the origin; graphing both gives a bounded triangular region ABC.
Step 2. Find the corner points. is where meets the y-axis: , so . is where meets the y-axis: , so . is the intersection of the two lines: from , ; substituting into gives , then , so .
Step 3. Evaluate : at , ; at , ; at , .
Step 4. The region is bounded, so Theorem 2 guarantees these are the true extremes without further checking; the smallest value is at .
The minimum value of Z is 2300, attained at (4, 3).
Competitive level (JEE / NEET) - Unbounded region with a half-plane existence check (NCERT Example 4, extended)
Step 1. The problem is Determine the minimum value of subject to , , , . Graphing all three lines together with the axes shows the feasible region is unbounded, extending indefinitely — this is the signal that Theorem 2 does not apply and the half-plane check will be required.
Step 2. Find the corner points by solving adjacent boundary pairs. Intersecting with the y-axis () gives , so one corner is . Intersecting with : adding the two equations gives ... instead intersecting with the y-axis gives , and intersecting with the x-axis gives ; intersecting with the x-axis gives . The relevant corner points bounding the feasible region are .
Step 3. Evaluate at each: at , ; at , ; at , ; at , . The smallest table value is at .
Step 4. Since the region is unbounded, is only a candidate minimum, so test whether the open half-plane (equivalently ) has any point in common with the feasible region. Graphing this half-plane against the feasible region shows they do overlap (points further along the unbounded direction satisfy both). Because a common point exists, can be pushed below somewhere in the feasible region.
Step 5. Conclusion: since the test half-plane does meet the feasible region, has no minimum value subject to these constraints — the naive smallest table entry is a trap. This is exactly the subtlety JEE examiners like to probe: always check boundedness before declaring a corner-point winner final. Timing note: on an unbounded-region question, spend the first 20 seconds just classifying bounded vs unbounded before computing anything — if unbounded, budget an extra 30-40 seconds for the half-plane existence check on whichever extreme (max or min) the question actually asks for; do not waste time checking the one it doesn't ask about.
Common traps
A very common error is forgetting the non-negative restrictions when shading the feasible region — this silently drags in the second, third, and fourth quadrants and produces a wrong (usually much larger and wrong-shaped) region. Another frequent slip is applying the Corner Point Method's "largest table value is the maximum" shortcut to an unbounded region without running the half-plane test — Example 4 above shows this can manufacture a false answer where in fact no maximum or minimum exists. Students also mix up which side of a boundary line is feasible: always test a convenient point (the origin, if it is not on the line) directly in the original inequality rather than guessing from the picture. When finding a corner point that is the intersection of two lines, a common arithmetic trap is solving the wrong pair of equations — always check that the point you compute is actually a vertex of the shaded region, not the intersection of two lines that happens to fall in the infeasible zone. Finally, when two corner points tie for the optimal value of , students often report only one of them; the correct statement is that every point of the line segment joining the two tied corners is equally optimal, giving infinitely many optimal solutions, not just two.
You should be able to…
- Translate a word problem into decision variables, a linear objective function, and a full set of linear constraints including non-negative restrictions.
- Graph a system of linear inequalities in two variables and correctly shade the common feasible region using the test-point method.
- State precisely what is meant by feasible region, feasible solution, infeasible solution, bounded region, unbounded region, and optimal solution.
- State Theorem 1 and Theorem 2 of this chapter and explain, in your own words, why an optimum of a linear function must occur at a corner point of a convex region.
- Execute the Corner Point Method completely: find every corner point, evaluate Z at each, and correctly conclude the maximum and minimum on a bounded region.
- Recognise when a feasible region is unbounded and correctly apply the open half-plane existence test before declaring a maximum or minimum.
- Identify and correctly interpret a problem with multiple optimal solutions (a tied edge) rather than reporting only a single corner point.
- Recognise when a problem has no feasible region and explain why, by pointing to the specific conflicting constraints.
- Solve a full linear programming word problem end to end within typical exam time, including a clearly labelled sketch of the feasible region.
Ask the tutor: Want to work through Exercise 12.1's transportation or diet-planning word problems together, step by step?
Why must the objective function and constraints be linear, not quadratic or otherwise nonlinear?
The name "linear programming" is precise: both the objective function and every constraint must be linear expressions in the decision variables — no squares, products of variables, or roots. This restriction is what makes the geometry so clean: linear inequalities always produce half-planes with straight boundary lines, their intersection is always a convex polygon, and a linear objective function always has its extremes at a vertex, as proved in this chapter. If the objective function were quadratic, for instance, its level curves would be parabolas or ellipses rather than straight lines, the "extreme only at endpoints of an edge" argument would fail, and an interior point genuinely could be optimal — the Corner Point Method would simply not work. Problems with nonlinear objectives or constraints belong to the broader field of nonlinear programming, which needs calculus-based methods beyond this chapter.
How do I know which side of a boundary line to shade for each constraint?
Pick any point that is clearly not on the boundary line — the origin is almost always the most convenient choice, provided the line does not itself pass through the origin. Substitute that point's coordinates into the original inequality (not the boundary equation). If the inequality holds true at that point, shade the side of the line containing that point; if it is false, shade the opposite side. For example, for , testing gives , which is true, so the origin's side is feasible. Repeat this test independently for every constraint, then take the region common to all of them — that intersection, further restricted to , is the feasible region.
What is the difference between a feasible solution and an optimal solution?
A feasible solution is any point that satisfies every constraint of the problem, including the non-negativity conditions — there are typically infinitely many of them, filling the entire feasible region. An optimal solution is a special feasible solution: the one (or ones, in the tied case) among all feasible solutions that gives the objective function its best possible value, maximum or minimum depending on what the problem asks for. Every optimal solution is necessarily a feasible solution, but the reverse is false — most feasible solutions are not optimal. The whole point of the Corner Point Method is to skip checking every one of the infinitely many feasible solutions and instead check only the finitely many corner points, which by Theorem 1 are guaranteed to include the optimal one.
Why does an LPP sometimes have no feasible region at all, like NCERT Example 5?
A feasible region is empty exactly when the constraints are mutually contradictory — no point in the plane can satisfy all of them simultaneously. In Example 5, the constraints and (together with ) conflict: the first demands and be reasonably large, while the second caps a weighted sum of them at a small value, and no non-negative pair can satisfy both at once. Graphically, the two half-planes required by these constraints simply do not overlap anywhere in the first quadrant. When this happens, the problem has no feasible solution, and consequently no optimal solution exists to report — the correct exam answer is to state clearly that the feasible region is empty and explain briefly why (usually by exhibiting the conflicting requirement).
Do I always have to solve two equations simultaneously to find every corner point?
No — only for the corners that lie at the intersection of two slanted constraint lines. Many corner points are found more quickly by inspection: wherever a constraint line crosses an axis, just set the other variable to zero directly in that line's equation. For instance, in Example 1, came straight from setting in , no simultaneous equations needed. Reserve the elimination-or-substitution method for the corner where two non-axis boundary lines genuinely meet, such as point in that same example. Correctly identifying which corners come from axis intercepts versus line intersections, and sketching the region first, saves significant time under exam conditions.