Linear Inequalities and Linear Programming: Animation 5.1: Feasible Solution Set Source and Credit: Elearn - Punjab
Linear Inequalities and Linear Programming: Animation 5.1: Feasible Solution Set Source and Credit: Elearn - Punjab
CHAPTER
5.1 INTRODUCTION
Fig. 5.21
Many real life problems involve linear inequalities. Here we shall consider those We conclude that the solution set of an inequality consists of all solutions of the
problems (relating to trade, industry and agriculture etc.) which involve systems of linear inequality.
inequalities in two variables. Linear inequalities in such problems are used to prescribe
limitations or restrictions on allocation of available resources (material, capital, machine 5.2.1 Graphing of A Linear Inequality in Two Variables
capacities, labour hours, land etc.). In this chapter, our main goal will be to optimize
(maximize or minimize) a quantity under consideration subject to certain restrictions. Generally a linear inequality in two variables x and y can be one of the following forms:
The method under our discussion is called the linear programming method and it ax + by < c ; ax + by > c ; ax + by 7 c ; ax + by 8 c
involves solutions of certain linear inequalities. where a, b, c are constants and a, b are not both zero.
We know that the graph of linear equation of the form
5.2 LINEAR INEQUALITIES ax + by = c is a line which divides the plane into two disjoint regions as stated below:
(1) The set of ordered pairs (x, y) such that ax + by < c
Inequalities are expressed by the following four symbols; (2) The set of ordered pairs (x, y) such that ax + by > c
> (greater than); < (less than); 8 (greater than or equal to); 7 (less than or equal to) The regions (1) and (2) are called half planes and the line
For example (i) ax < b (ii) ax + b 8 c (iii) ax + by > c (iv) ax + by 7 c are ax + by = c is called the boundary of each half plane.
inequalities. Inequalities (i) and (ii) are in one variable while inequalities (iii) and (iv) are in Note that a vertical line divides the plane into left and right half planes while a non-
two variables. vertical line divides the plane into upper and lower half planes.
The following operations will not afect the order (or sense) of inequality while changing A solution of a linear inequality in x and y is an ordered pair of numbers which satisies
it to simpler equivalent form: the inequality.
(i) Adding or subtracting a constant to each side of it. For example, the ordered pair (1, 1) is a solution of the inequality x + 2y < 6 because
(ii) Multiplying or dividing each side of it by a positive constant. 1 + 2(1) = 3 < 6 which is true.
Note that the order (or sense) of an inequality is changed by multiplying or dividing its There are ininitely many ordered pairs that satisfy the inequality x + 2y < 6, so its graph
each side by a negative constant. will be a half plane.
Note that the linear equation ax + by = c is called “associated or corresponding
Now for revision we consider inequality, x <
3
(A) equation” of each of the above mentioned inequalities.
2
All real numbers <
3
are in the solution set of (A). Procedure for Graphing a linear Inequality in two Variables
2
3
(i) The corresponding equation of the inequality is irst graphed by using ‘dashes’ if the
Thus the interval - ∞, or - ∞ < x <
3
2
is the solution set of the inequality involves the symbols > or < and a solid line is drawn if the inequality involves
2
the symbols 8 or 7.
inequality (A) which is shown in the igure 5.21 (ii) A test point (not on the graph of the corresponding equation) is chosen which
determines that the half plane is on which side of the boundary line.
2 3
1. Quadratic Equations eLearn.Punjab 1. Quadratic Equations eLearn.Punjab
5. Linear Inequalities and Linear Programming eLearn.Punjab 5. Linear Inequalities and Linear Programming eLearn.Punjab
4 5
1. Quadratic Equations eLearn.Punjab 1. Quadratic Equations eLearn.Punjab
5. Linear Inequalities and Linear Programming eLearn.Punjab 5. Linear Inequalities and Linear Programming eLearn.Punjab
6 7
1. Quadratic Equations eLearn.Punjab 1. Quadratic Equations eLearn.Punjab
5. Linear Inequalities and Linear Programming eLearn.Punjab 5. Linear Inequalities and Linear Programming eLearn.Punjab
Example 2. Graph the solution region for the following system of inequalities: Example 3. Graph the following systems of inequalities.
x - 2y 7 6, 2x + y > 2, x + 2y 8 1 0
(i) 2x + y 8 2 (ii) 2x + y 8 2 (iii) 2x + y 8 2
x + 2y 7 10 x + 2y 7 10 x + 2y 7 10
Solution: The graph of the inequalities x - 2y 7 6 and y80 x80 x 8 0, y 8 0
2x + y 8 2 have already drawn in igure 5.31(a) and
5.31(b) and their intersection is partially shown as a Solution:
shaded region in igure 5.31(c) of the example 1 Art (i) The corresponding equations of the inequalities
(5.3). Following the procedure of the example 1 of Art 2x + y 8 2 and x + 2y 7 10 are
(5.3) the graph of the inequality x + 2y 7 10 is shown 2x + y = 2 (I) and x + 2y = 10 (II)
partially in the igure 5.32(a). For the partial graph of 2x + y 8 2 see igure 5.31(b) of the example 1 and the graph of
the inequality x + 2y 7 10 is partially shown in igure 5.32(a) of the example 2.
The intersection of three graphs is the required The solution region of the inequalities
solution region which is the shaded triangular region 2x + y 8 2 and x + 2y 7 10 is the intersection of their
PQR (including its sides) shown partially in the igure individual graphs. The common region of the graphs
5.32(b). of inequalities is partially shown as a shaded region in
igure 5.33(a).
Now we deine a corner point of a solution region.
DEFINITION:
A point of a solution region where two of its boundary lines intersect, is called a
corner point or vertex of the solution region.
The graph of y 8 0 is the upper half plane
Such points play a useful role while solving linear programming problems. In example
including the graph of the corresponding line y = 0
2, the following three corner points are obtained by corresponding equations (of linear
(the x-axis) of the linear inequality y 8 0. The graph of
inequalities given in the example 2) in pairs.
y 8 0 is partially displayed in igure 5.33(b).
Corresponding lines of inequalities: Corner Points
x - 2y = 6, 2x + y = 2 P(2, -2)
x - 2y = 6, x + 2y = 10 Q(8, 1)
2x + y = 2, x + 2y = 10 R(-2, 6)
version: 1.1 version: 1.1
8 9
1. Quadratic Equations eLearn.Punjab 1. Quadratic Equations eLearn.Punjab
5. Linear Inequalities and Linear Programming eLearn.Punjab 5. Linear Inequalities and Linear Programming eLearn.Punjab
The solution region of the system of (iii) The graphs of the system of inequalities in (iii)
inequalities in (i) is the intersection of the graphs are drawn in the solution of (i) and (ii). The solution
shown in igure 5.33(a) and 5.33(b). This solution region in this case, is shown as shaded region ABCD
region is displayed in igure 5.33(c). in igure 5.34. (c).
(ii) See igure 5.33(a) for the graphs of the inequalities 2x + y 8 2 and x + 2y 7 10.
EXERCISE 5.1
1. Graph the solution set of each of the following linear inequality in xy-plane:
(i) 2x + y 7 6 (ii) 3x + 7y 8 21 (iii) 3x - 2y 8 6
The graph of x 8 0 consists of the open (iv) 5x - 4y 7 20 (v) 2x + 1 8 0 (vi) 3y - 4 7 0
half-plane to the right of the corresponding line 2. Indicate the solution set of the following systems of linear inequalities
x = 0 (y-axis) of the inequality x 8 0 and its graph. by shading:
See igure 5.34(a). (i) 2x - 3y 7 6 (ii) x + y 8 5 (iii) 3x + 7y 8 21
2x + 3y 7 12 -y + x 7 1 x-y72
(iv) 4x - 3y 7 12 (v) 3x + 7y 8 21
x ≥ -
3
y74
2
3. Indicate the solution region of the following systems of linear inequalities
Thus the solution region of the inequalities in by shading:
(ii) is partially shown in igure 5.34(b). This region (i) 2x - 3y 7 6 (ii) x + y 7 5 (iii) x + y 8 5
is the intersection of graphs in igure 5.33(a) and 2x + 3y 7 12 y - 2x 7 2 x-y81
5.34(a). y80 x80 y80
(iv) 3x + 7y 7 21 (v) 3x + 7y 7 21 (vi) 3x + 7y 7 21
x-y72 x-y72 2x - y 8 -3
x80 y80 x80
10 11
1. Quadratic Equations eLearn.Punjab 1. Quadratic Equations eLearn.Punjab
5. Linear Inequalities and Linear Programming eLearn.Punjab 5. Linear Inequalities and Linear Programming eLearn.Punjab
4. Graph the solution region of the following system of linear inequalities and It is the polygonal region ABCDE (including its sides)
ind the corner points in each case. as shown in the igure 5.51.
(i) 2x - 3y 7 6 (ii) x + y 7 5 (iii) 3x + 7y 7 21
2x + 3y 7 12 -2x + y 7 2 2x - y 7 -3 Such a region (which is restricted to the irst
x80 y80 y80 quadrant) is referred to as a feasible region for the set
(iv) 3x + 2y 8 6 (v) 5x + 7y 7 35 (vi) 5x + 7y 7 35 of given constraints. Each point of the feasible region
x + 3y 7 6 -x + 3y 7 3 x - 2y 7 2 is called a feasible solution of the system of linear
y80 x80 x80 inequalities (or for the set of a given constraints). A set
5. Graph the solution region of the following system of linear inequalities consisting of all the feasible solutions of the system of
by shading. linear inequalities is called a feasible solution set.
(i) 3x - 4y 7 12 (ii) 3x - 4y 7 12 (iii) 2x + y 7 4
3x + 2y 8 3 x + 2y 7 6 2x - 3y 8 12 Example 1. Graph the feasible region and ind the corner points for the following
x + 2y 7 9 x+y81 x + 2y 7 6 system of inequalities (or subject to the following constraints).
(iv) 2x + y 7 10 (v) 2x + 3y 7 18 (vi) 3x - 2y 8 3 x-y73
x+y77 2x + y 7 10 x + 4y 7 12 x + 2y 7 6 , x 8 0, y80
-2x + y 7 4 -2x + y 7 2 3x + y 7 12
Solution: The associated equations for the inequalities
5.4 PROBLEM CONSTRAINTS x - y 7 3 (i) and x + 2y 7 6 (ii)
are x - y = 3 (1) and x + 2y = 6 (2)
As the point (3, 0) and (0, -3) are on the line (1),
so the graph of x - y = 3 is drawn by joining the points
In the beginning we described that linear inequalities prescribe limitations and
5.5 Feasible solution set so both the ciosed half-planes are on the origin
sides of the lines (1) and (2). The intersection of these
We see that solution region of the inequalities in example 2 of Art 5.3 is not within the closed half-planes is partially displayed as shaded
irst quadrant. If the nonnegative constraints x 8 0 and y 8 0 are included with the system of region in igure 5.52(a).
inequalities given in the example 2, then the solution region is restricted to the irst quadrant.
12 13
1. Quadratic Equations eLearn.Punjab 1. Quadratic Equations eLearn.Punjab
5. Linear Inequalities and Linear Programming eLearn.Punjab 5. Linear Inequalities and Linear Programming eLearn.Punjab
Example 2. A manufacturer wants to make two types of concrete. Each bag of Agrade
concrete contains 8 kilograms of gravel (small pebbles with coarse sand) and 4 kilograms of
cement while each bag of B-grade concrete contains 12 kilograms of gravel and two kilograms
For the graph of y 8 0, see igure 5.33(b) of cement. If there are 1920 kilograms of gravel and 480 kilograms of cement, then graph
of the example 3 of art 5.3. the feasible region under the given restrictions and ind corner points of the feasible region.
The intersection of graphs shown in Solution: Let x be the number of bags of A-grade concrete produced and y denote the
igures 5.52(a) and 5.33(b) is partially graphed number of bags of B-grade concrete produced, then 8x kilograms of gravel will be used
as shaded region in igure 5.52(b). for A-grade concrete and 12y kilograms of gravel will be required for B-grade concretes so
8x + 12y should not exceed 1920, that is,
8x + 12y 7 1920
Similarly, the linear constraint for cement will be
4x + 2y 7 480
Now we have to graph the feasible region for the
linear constraints
8x + 12y 7 1920
The graph of x 8 0 is drawn in igure
4x + 2y 7 480, x 8 0, y 8 0
5.34(a). The intersection of the graphs shown
in igures 5.52(a) and 5.34(a) is graphed in
Taking the one unit along x-axis and y-axis
igure 5.52(c).
equal to 40 we draw the graph of the feasible region
required.
The shaded region of igure 5.53(a) shows the
graph of 8x + 12y 7 1920 including the nonnegative
constraints x 8 0 and y 8 0
14 15
1. Quadratic Equations eLearn.Punjab 1. Quadratic Equations eLearn.Punjab
5. Linear Inequalities and Linear Programming eLearn.Punjab 5. Linear Inequalities and Linear Programming eLearn.Punjab
16 17
1. Quadratic Equations eLearn.Punjab 1. Quadratic Equations eLearn.Punjab
5. Linear Inequalities and Linear Programming eLearn.Punjab 5. Linear Inequalities and Linear Programming eLearn.Punjab
is the intersection of the graphs shown in igures 2. Graph the feasible region of the following system of linear inequalities and
5.54(c) and 5.54(d). It is the shaded region indicated ind the corner points in each case.
in the igure 5.54(e). (i) 2x + y 7 10 (ii) 2x + 3y 7 18 (iii) 2x + 3y 7 18
x + 4y 7 12 2x + y 7 10 x + 4y 7 12
Note: The corner points of feasible region x + 2y 7 10 x + 4y 7 12 3x + y 7 12
the set of constraints in (a) are (1, 0), (3, 0) and x 8 0, y 8 0 x80,y80 x 8 0, y 8 0
(0, 2) while the corner points of the feasible (iv) x + 2y 7 14 (v) x + 3y 7 15 (vi) 2x + y 7 20
region for the set of constraints in (b) are (1, 0), 3x + 4y 7 36 2x + y 7 12 8x+15y 7120
2x + y 7 10 4x + 3y 7 24 x + y 7 11
36 10
(3, 0), , , (0, 4) and (0, 2)
7 7
x 8 0, y 8 0 x 8 0, y 8 0 x 8 0, y 8 0
We see that the feasible solution regions in example 3(a) and 3(b) are of diferent types. 5.6 LINEAR PROGRAMMING
The feasible region in example 3(a) is unbounded as it cannot be enclosed in any circle how
large it may be while the feasible region in example 3(b) can easily be enclosed within a A function which is to be maximized or minimized is called an objective function.
circle, so it is bounded. If the line segment obtained by joining any two points of a region lies Note that there are ininitely many feasible solutions in the feasible region. The feasible
entirely within the region, then the region is called convex. solution which maximizes or minimizes the objective function is called the optimal solution.
The theorem of linear programming states that the maximum and minimum values of the
Both the feasible regions of example 3(a)
objective function occur at corner points of the feasible region.
and 3(b) are convex but the regions such
as shown in the adjoining igures are not Procedure for determining optimal solution:
convex. (i) Graph the solution set of linear inequality constraints to determine feasible region.
(ii) Find the corner points of the feasible region.
(iii) Evaluate the objective function at each corner point to ind the optimal solution.
18 19
1. Quadratic Equations eLearn.Punjab 1. Quadratic Equations eLearn.Punjab
5. Linear Inequalities and Linear Programming eLearn.Punjab 5. Linear Inequalities and Linear Programming eLearn.Punjab
including the non-negative constraints x 8 0 is Solution. The graphs of 2x - 3y 7 6, 2x + y 8 2, are displayed in the example 3 of
partially displayed as shaded region in the igure 5.61. Art. 5.5. Joining the points (6. 0) and (0, 4), we obtain the graph of the line 2x + 3y = 12. As
The graph of 2x - y 7 6 consists of the graph of the line 2(0) + 3(0) = 0 < 12, so the graph of 2x + 3y < 12 is the half plane below the line 2x + 3y = 12.
2x - y = 6 and the half plane on the origin side of the line Thus the graph of 2x + 3y 7 12 consists of the graph of the line 2x + 3y = 12 and the half plane
2x - y=6. A portion of the solution region of the given below the line 2x + 3y = 12. The solution region of 2x - 3y 7 6, 2x + y 8 2 and 2x + 3y 7 12 is the
system of inequalities is shaded in the igure 5.62. triangular region PQR shown in igure 5.63. The non-negative constraints x 8 0,
We see that feasible region is unbounded upwards y 80 indicated the irst quadrant. Thus the feasible region satisfying all the constrains is
and its corner points are A(0, 4), B(3, 1) and C(4, 2). shaded in the igure 5.63 and its corner points are (1, 0) (0, 2), (0, 4),
9
Note that the point at which the lines x + y = 4 and
2x - y = 6 intersect is not a corner point of the feasible , 1 and (3, 0).
2
region.
It is obvious that the expression 2x + 3y does not We ind values of f at the corner points.
posses a maximum value in the feasible region because Corner
f(x, y) = 4x + 5y
its value can be made larger than any number by point
(1, 0) f (1, 0) = 4 x 1 + 5.0 = 4
increasing x and y. We calculate the values of f at the
(0, 2) f (0, 2) = 4 x 0 + 5.2 = 10
corner points to ind its minimum value:
(0, 4) f (0, 4) = 4 x 0 + 5.4 = 20
f (0, 4) = 2(0) + 3 x 4 = 12
(9/2, 1) f (9/2, 1) = 4 x 9/2 + 5.1 = 23
f (3, 1) = 2x3+3x1 = 6+3=9
(3, 0) f (3, 0) = 4 x 3 + 50 x 0 = 12
f (4, 2) = 2x4+3x2 = 8 + 6 = 14
From the above table, it follows that the minimum value of f is 4 at the corner point
Thus the minimum value of 2x + 3y is 9 at the corner point (3, 1).
9
(1, 0) and maximum value of f is 23 at the corner point , 1 . The values of f at the corner
Note: lf f(x , y) = 2x + 2y, then f (0 , 4) = 2 x 0 + 2 x 4 = 8, f (3, 1) = 2 x 3 + 2 x 1 = 6 + 2 = 8 2
points are given below in tabular form.
and f(4, 2) = 2 x 4 + 2 x 2 = 8 + 4 =12. The minimum value of 2x + 2y is the same at two corner points
f(x, y) = 4x + 5y
(0, 4) and (3, 1).
Corner point
f (1, 0) = 4.1 + 6.0 = 4
We observe that the minimum value of 2x + 2y at each point of the line segment AB is
(1, 0)
8 as: f (0, 2) = 4.0 + 6.2 = 12
f(x, y) = 2x + 2(4 - x) (a x + y = 4 ⇒ y = 4 - x)
(0, 2)
(0, 4) f (0, 4) = 4.0 + 6.4 = 24
= 2x + 8 - 2x = 8 (9/2, 1) f (9/2, 1) = 4 . 9/2 + 6.1 = 24
(3, 0) f (3, 0) = 4 x 3 + 6.0 = 12
Example 2. Find the minimum and maximum values of f and f deined as: The minimum value of f is 4 at the point (1, 0) and maximum value of f is 24 at the
f(x, y) = 4x + 5y, f (x, y) = 4x + 6y
9
corner points (0, 4) and , 1 . As observed in the above example, it follows that the
2
under the constraints
2x - 3y 7 6
function f has maximum value at all the points of the line segment between the points
2x + y 8 2 2x + 3y 7 12 x 8 0, y 8 0
20 21
1. Quadratic Equations eLearn.Punjab 1. Quadratic Equations eLearn.Punjab
5. Linear Inequalities and Linear Programming eLearn.Punjab 5. Linear Inequalities and Linear Programming eLearn.Punjab
Now the problem is to maximize the proit function P under the given constraints.
9
(0, 4) and , 1 .
Graphing the inequalities, we obtain the feasible region which is shaded in the igure 5.71.
2 Solving the equations x + y = 100 and 3x + 2y = 240 gives x = 240 - 2(x + y) = 240 - 200 = 40
and y = 100 - 40 = 60, that is; their point of intersection is (40, 60). The corner points of the
Note 1. Some times it may happen that each point of constraint line gives the optimal
feasible region are (0, 0),(0, 100), (40, 60) and (80, 0).
value of the objective function.
Now we ind the values of P at the corner points.
Corner point P(x, y) = 20x + 15y
Note 2. For diferent value of k, the equation 4x + 5y = k represents lines parallel to the
(0, 0) P(0, 0) = 2 0 x 0 + 15 x 0 = 0
line 4x + 5y = 0. For a certain admissible value of k, the intersection of 4x + 5y = k with the
(0, 100) P(0, 100) = 20 x 0 + 15 x 100 = 1500
feasible region gives feasible solutions for which the proit is k.
(40, 60) P(40, 60) = 20 x 40 + 15 x 60 = 1700
(80, 0) P(80, 0) = 20 x 80 + 15 x 0 = 1600
5.7 LINEAR PROGRAMMING PROBLEMS From the above table, it follows that the maximum proit is Rs. 1700 at the corner point
(40, 60). Thus the farmer will get the maximum proit if he cultivates 40 canals of corn and
Convert a linear programming problem to a mathematical form by using variables,
60 canals of wheat.
then follow the procedure given in Art 5.6.
Exam ple 2. A factory produces bicycles and motorcycles by using two machines A and
Example 1: A farmer possesses 100 canals of land and wants to grow corn and wheat.
B. Machine A has at most 120 hours available and machine B has a maximum of 144 hours
Cultivation of corn requires 3 hours per canal while cultivation of wheat requires 2 hours per
available. Manufacturing a bicycle requires 5 hours in machine A and 4 hours in machine B
canal. Working hours cannot exceed 240. If he gets a proit of Rs. 20 per canal for corn and
while manufacturing of a motorcycle requires 4 hours in machine A and 8 hours in machine
Rs. 15/- per canal for wheat, how many canals of each he should cultivate to maximize his
B. If he gets proit of Rs. 40 per bicycle and proit of Rs. 50 per motorcycle, how many bicycles
proit?
and motorcycles should be manufactured to get maximum proit?
Solution: Suppose that he cultivates x canals of corn
and y canals of wheat. Then constraints can be written Solution: Let the number of bicycles to be
as: manufactured be x and the number of motor cycles to
x + y 7 100 be manufactured be y.
3x + 2y 7 240
Then the time required to use machine A for x
Non-negative constraints are x 8 0, y 8 0. Let P(x, y) bicycles and y motorcycles is 5x + 4y (hours) and the time
be the proit function, then required to use machine B for x bicycles and y motorcycles
P(x, y) = 20x + 15y in 4x + 8y (hours). Thus the problem constraints are
5x + 4y 7 120
And 4x + 8y 7 144
⇒ 2x + 4y 7 72 .
22 23
1. Quadratic Equations eLearn.Punjab 1. Quadratic Equations eLearn.Punjab
5. Linear Inequalities and Linear Programming eLearn.Punjab 5. Linear Inequalities and Linear Programming eLearn.Punjab
EXERCISE 5.3
1. Maximize f(x, y) = 2x + 5y
subject to the constraints
2y - x 7 8; x - y 7 4; x 0 8 0; y80
2. Maximize f(x , y) = x + 3y
subject to the constraints
2x + 5y 7 30; 5x + 4y 7 20; x 8 0; y80
3. Maximize z = 2x + 3y; subject to the constraints:
3x + 4y 7 12; 2x + y 7 4: 4x - y 7 4; x 8 0; y 8 0
4. Minimize z = 2x + y: subject to the constraints:
x + y 8 3; 7x + 5y 7 35; x 8 0; y80
24 25