Home / Notes / Class 12 / Mathematics / Inequalities and linear programming
Linear inequalities in one and two variables, graphing half planes, feasible regions and corner points, and the method of linear programming to find the greatest or least value of an objective function.
A linear inequality compares a linear expression with a number using <, >, ≤ or ≥. Examples are 2x + 3 < 9 and 3x − 2y ≥ 6. Solving a linear inequality in one variable is like solving an equation, except that multiplying or dividing both sides by a negative number reverses the inequality sign. For example, −2x < 6 gives x > −3.
The solution of an inequality in one variable is shown on a number line. An open circle marks a strict inequality (< or >) and a filled circle marks ≤ or ≥. For x ≥ 2 the graph is a filled circle at 2 with a line going right.
A linear inequality in two variables, such as ax + by ≤ c, has a graph that is a half plane. The line ax + by = c is the boundary. It is drawn solid for ≤ or ≥ (the line is included) and dashed for < or > (the line is not included).
Steps to graph ax + by ≤ c:
A system of inequalities has a solution region where all the shaded half planes overlap. This common region is called the feasible region (or solution region). A point in the feasible region satisfies all the inequalities, and is a feasible solution. The feasible region is convex and is bounded by line segments. It may be bounded (closed in) or unbounded.
Constraints in a real problem are inequalities on quantities such as time, material or money. Most problems also have the non-negativity conditions x ≥ 0 and y ≥ 0, since a quantity of goods cannot be negative. These limit the region to the first quadrant.
Corner points (vertices) of the feasible region are the points where two boundary lines meet. They are found by solving the two boundary equations together. A corner point must also satisfy all the other constraints.
Linear programming is a method of finding the greatest or least value of a linear function, called the objective function, such as Z = px + qy, when x and y satisfy a set of linear constraints. Z might be profit to be maximised or cost to be minimised.
Corner point theorem: if the feasible region is bounded, the objective function has both a maximum and a minimum value, and each occurs at a corner point. If the feasible region is unbounded, a maximum or minimum may not exist. If it exists, it also occurs at a corner point.
Method of solving a linear programming problem:
If two adjacent corner points give the same best value of Z, then every point on the segment between them also gives it, so there are many optimal solutions. If there is no feasible region (the shaded parts do not overlap), the problem has no solution. A quick check is to use a trial point on a line Z = k and see whether it moves into the feasible region as k changes.
Study tip: Draw the graph on a ruled scale and label each line with its equation so that the corner points are clear. Always check every corner point against all constraints before finding Z. Show a small table of corner points and values of Z, and finish with a sentence in words stating the answer with its unit.
Say the meaning first, then open the card to check.
An inequality in which each variable has power 1, such as 2x + y ≤ 8.
The part of the plane on one side of a line, with or without the line.
An inequality that limits the values of the variables.
The set of all points that satisfy every constraint.
The linear function Z that is to be maximised or minimised.
A vertex of the feasible region, where two boundary lines meet.
A feasible point that gives the best value of the objective function.
The requirement x ≥ 0 and y ≥ 0.
| Name | Formula | What it means |
|---|---|---|
| Reverse the sign | If k < 0: a < b gives ka > kb | Multiplying or dividing by a negative number. |
| Boundary line | ax + by = c | Solid for ≤ and ≥, dashed for < and >. |
| Intercepts | x-intercept c/a; y-intercept c/b | From ax + by = c, with a and b not zero. |
| Objective function | Z = px + qy | Evaluate at each corner point. |
| Non-negativity | x ≥ 0, y ≥ 0 | Keeps the region in the first quadrant. |
These are the kind of questions asked for 2, 3 and 5 marks. Try each one before opening the answer.
Subtract 4: −3x < 6. Divide by −3 and reverse the sign: x > −2.
The feasible region is the set of all points that satisfy all the constraints at the same time. A corner point is a vertex of this region, where two boundary lines meet.
Pick a test point that is not on the line, usually the origin. Put its coordinates in the inequality. If the statement is true, shade the side that contains the test point. If it is false, shade the opposite side. A solid line is used for ≤ and ≥, and a dashed line for < and >.
If the feasible region is bounded, the objective function Z has a maximum and a minimum value, and each of them occurs at a corner point of the region.
First define the variables and write the objective function Z. Then write all constraints as linear inequalities, including x ≥ 0 and y ≥ 0. Draw the boundary lines, and use a test point to shade the half plane for each inequality. The common region is the feasible region. Find the coordinates of all corner points by solving pairs of boundary equations. Calculate the value of Z at each corner point. The greatest value is the maximum and the least is the minimum. Finally state the result in words with units.
Answer: Solid line through (2, 0) and (0, −3); shade the side not containing the origin.
Answer: Maximum Z = 11 at (3, 1)
Answer: Minimum Z = 9 at (3, 1)
Answer: Make 4 units of A and 2 units of B for a maximum profit of Rs 260.