NCERT Solutions Class 12 Maths Chapter 12 Linear Programming
NCERT Solutions Class 12 Maths Chapter 12 Linear Programming
Exercise 12.1
Solve the following Linear Programming Problems graphically:
1. Maximise Z = 3x + 4y
subject to the constraints: x + y ≤ 4, x ≥ 0, y ≥ 0.
Sol. Maximise Z = 3x + 4y ...(i)
subject to the constraints:
x + y ≤ 4 ...(ii)
x ≥ 0, y ≥ 0 ...(iii)
Step I. Constraint (iii) namely x ≥ 0, y ≥ 0 ⇒ Feasible region
is in first quadrant. Y
Table of values for line x + y = 4
4 B(0, 4)
corresponding to constraint (ii)
3
x
x 0 4
+
2
y
=
y 4 0 1
4
MathonGo 1
Class 12 Chapter 12 - Linear Programming
2. Minimise Z = – 3x + 4y
subject to x + 2y ≤ 8, 3x + 2y ≤ 12, x ≥ 0, y ≥ 0.
Sol. Minimise Z = – 3x + 4y ...(i)
subject to: x + 2y ≤ 8 ...(ii), 3x + 2y ≤ 12 ...(iii), x ≥ 0, y ≥ 0..(iv)
Step I. Constraint (iv) namely x ≥ 0, y ≥ 0 ⇒ Feasible region is
in first quadrant.
Table of values for line x + 2y = 8 of constraint (ii)
x 0 8
y 4 0
3x
y 6 0
+2
Y′
y=
Let us draw the line joining the
12
points (0, 6) and (4, 0).
Now let us test for origin (0, 0) in constraint (iii) which gives 0 ≤
12 and which is true.
∴ Region for constraint (iii) is also on the origin side of the line.
The shaded region in the figure is the feasible region determined
by the system of constraints from (ii) to (iv). The feasible region
OABC is bounded.
Step II. The coordinates of the corner points O, A and C are (0, 0),
(4, 0) and (0, 4) respectively.
Now let us find corner point B, intersection of lines
x + 2y = 8 and 3x + 2y = 12
4
Subtracting 2x = 4 ⇒ x = = 2.
2
Putting x = 2 in first equation 2 + 2y = 8
⇒ 2y = 6 ⇒ y = 3
∴ Corner point B is (2, 3)
Step III. Now let us evaluate Z at each corner point.
Corner Point Z = – 3x + 4y
O(0, 0) 0
A(4, 0) – 12 = m ← Minimum
B(2, 3) 6
C(0, 4) 16
MathonGo 2
Class 12 Chapter 12 - Linear Programming
x 0 2
+2
y 5 0 Y′
y=
10
20 60
Putting x = in first eqn. ⇒ + 5y = 15
19 19
MathonGo 3
Class 12 Chapter 12 - Linear Programming
60 285 − 60 225
⇒ 5y = 15 – = =
19 19 19
45 20 45
⇒ y = . Therefore corner point B , .
19 19 19
Step III. Now we evaluate Z at each corner point.
Corner Point Z = 5x + 3y
O(0, 0) 0
A(2, 0) 10
20 45 100 + 135 235
B , = =M ← Maximum
19 19 19 19
C(0, 3) 9
235
Hence, by Corner Point Method, the maximum value of Z is
19
20 45
attained at the corner point B , .
19 19
235 20 45
⇒ Maximum Z = at , .
19 19 19
4. Minimise Z = 3x + 5y
such that x + 3y ≥ 3, x + y ≥ 2, x, y ≥ 0.
Sol. Minimise Z = 3x + 5y ...(i)
such that: x + 3y ≥ 3 ...(ii), x + y ≥ 2 ...(iii), x, y ≥ 0 ...(iv)
Step I. The constraint (iv) x, y ≥ 0 ⇒ Feasible region is in
first quadrant.
Table of values for line x + 3y = 3 of constraint (ii)
x 0 3
y 1 0
Let us draw the line joining the points (0, 1) and (3, 0).
Now let us test for origin (x = 0, y = 0) in constraint (ii) x + 3y ≥ 3,
which gives us 0 ≥ 3 and which is not true.
∴ Region for constraint (ii) does not contain the origin i.e., the
region for constraint (ii) is not the origin side of the line.
Table of values for line x + y = 2 of constraint (iii)
x 0 2
y 2 0
Let us draw the line joining the points (0, 2) and (2, 0).
Now let us test for origin (x = 0, y = 0) in constraint (iii),
x + y ≥ 2, which gives us 0 ≥ 2 and which is not true.
∴ Region for constraint (iii) does not contain the origin i.e., is
not the origin side of the line.
MathonGo 4
Class 12 Chapter 12 - Linear Programming
2 C(0, 2)
x
3x
+
+
y
5y
=
0, 7
=
2
1 3, 1
5 (0, 1) x+
3y 7 B
=3 2 2
A(3, 0)
X′ X
O 1 (2, 0)2 3
7 ,0
3
Y′
3 1 9 5
B , + = 7 = m ← Smallest
2 2 2 2
C(0, 2) 10
From this table, we find that 7 is the smallest value of Z at the
3 1
corner B , . Since the feasible region is unbounded, 7 may or
2 2
may not be the minimum value of Z.
Step IV. To decide this, we graph the inequality Z < m
i.e., 3x + 5y < 7. 7
Table of values for line 3x + 5y = 7 x 0
3
corresponding to constraint 3x + 5y < 7
7
Let us draw the dotted line joining the y 0
5
MathonGo 5
Class 12 Chapter 12 - Linear Programming
7 7
points 0, and , 0 . This line is to be shown dotted as
5 3
constraint involves < and not ≤, so boundary of line is to be
excluded.
Let us test for origin (x = 0, y = 0) in constraint 3x + 5y < 7, we
have 0 < 7 which is true. Therefore region for this constraint is on
the origin side of the line 3x + 5y = 7.
We observe that the half-plane determined by Z < m has no point
in common with the feasible region. Hence m = 7 is
3 1
the minimum value of Z attained at the point B , .
2 2
3 1
⇒ Minimum Z = 7 at , .
2 2
5. Maximise Z = 3x + 2y
subject to x + 2y ≤ 10, 3x + y ≤ 15, x, y ≥ 0.
Sol. Maximise Z = 3x + 2y ...(i)
subject to:
x + 2y ≤ 10 ...(ii), 3x + y ≤ 15 ...(iii), x, y ≥ 0 ...(iv)
Step I. Constraint (iv) x, y ≥ 0 ⇒ Feasible region is in first
quadrant.
Table of values for the line x + 2y = 10 corresponding to
constraint (ii)
x 0 10
y 5 0
Let us draw the line joining the points (0, 5) and (10, 0).
Let us test for origin (x = 0, y = 0) in constraint (ii), we have 0 ≤ 10
which is true.
∴ Region for constraint (ii) is on the origin side of this line.
Table of values for line 3x + y = 15 corresponding to
constraint (iii)
x 0 5
y 15 0
Let us draw the line joining Y
the points (0, 15) and (5, 0).
Let us test for origin (x = 0, y 15 (0, 15)
= 0) in constraint (iii), we
have 0 ≤ 15 which is true. 10
∴ Region for constraint (iii)
is on the origin side of this
5
line. C(0, 5) B(4, 3)
The shaded region in the
(10, 0)
figure is the feasible region X′
O A(5, 0)
X
x+ 15
determined by the system of 2y
3x +
=1
constraints from (ii) to (iv). 0
y=
bounded.
MathonGo 6
Class 12 Chapter 12 - Linear Programming
Step II. The coordinates of the corner points O, A and C are (0, 0),
(5, 0) and (0, 5) respectively.
Now let us find corner point B, intersection of the lines
x + 2y = 10
and 3x + y = 15
First equation – 2 × second equation gives
– 5x = 10 – 30 ⇒ – 5x = – 20 ⇒ x = 4
Putting x = 4 in x + 2y = 10, we have
4 + 2y = 10 ⇒ 2y = 6 ⇒ y = 3
∴ Corner point B is B(4, 3).
Step III. Now we evaluate Z at each corner point.
Corner Point Z = 3x + 2y
O(0, 0) 0
A(5, 0) 15
B(4, 3) 18 = M ← Maximum
C(0, 5) 10
Hence, by Corner Point Method, the maximum value of Z is 18
attained at the point B(4, 3).
⇒ Maximum Z = 18 at (4, 3).
6. Minimise Z = x + 2y
subject to 2x + y ≥ 3, x + 2y ≥ 6, x, y ≥ 0.
Show that the minimum of Z occurs at more than two
points.
Sol. Minimise Z = x + 2y ...(i)
subject to:
2x + y ≥ 3 ...(ii), x + 2y ≥ 6 ...(iii), x, y ≥ 0 ...(iv)
Step I. Constraint (iv) x, y ≥ 0 ⇒ Feasible region is in first
quadrant.
Table of values for the line 2x + y = 3 corresponding to
constraint (ii).
3
x 0
2
y 3 0
3
Let us draw the line joining the points (0, 3) and , 0 .
2
Now let us test for origin (x = 0, y = 0) in constraint (ii) 2x + y ≥ 3,
we have 0 ≥ 3 which is not true.
∴ The region of constraint (ii) is on that side of the line which
does not contain the origin i.e., the region other than the origin
side of the line.
Table of values for the line x + 2y = 6 corresponding to
constraint (ii).
x 0 6
y 3 0
Let us draw the line joining the points (0, 3) and (6, 0).
MathonGo 7
Class 12 Chapter 12 - Linear Programming
4 x + 2y > 6
B(0, 3)
x+
2 2y
= 6
1 x + 2y < 6
X′ X
O 1 2 3 4 5 A(6, 0)
2x
3 ,0
+
y=
2
3
Y′
MathonGo 9
Class 12 Chapter 12 - Linear Programming
MathonGo 10
Class 12 Chapter 12 - Linear Programming
Let us draw the line joining the points (0, 0) and (20, 40).
Because this line passes through the origin, so we shall have the
test for some point say (100, 0) other than the origin.
Putting x = 100 and y = 0 in constraint (iii) 2x – y ≤ 0, we have
200 ≤ 0 which is not true.
∴ Region for constraint (iii) is the half plane on the side of the
line which does not contain the point (100, 0).
Table of values for the line 2x + y = 200 of constraint (iv).
x 0 100
y 200 0
Let us draw the line joining the points (0, 200) and (100, 0).
Let us test for origin (x = 0, y = 0) in constraint (iv) 2x + y ≤ 200, we
have 0 ≤ 200 which is true. Therefore region for constraint (iv) is the
half-plane on origin side of the line.
The shaded region in the figure is the feasible region determined
by the system of constraints from (ii) to (v). The feasible region
ABCD is bounded.
Step II. The coordinates of the two
corner points are C(0, 200) and Y
D(0, 50). 200 C(0, 200)
0
y=
Corner point A is the intersection
–
of boundary lines x + 2y = 100 and 150
2x
2x – y = 0 i.e., y = 2x.
Solving them, putting y = 2x, x + 100 B(50, 100)
4x = 100
⇒ 5x = 100 ⇒ x = 20. D(0, 50) A(20, 40)
∴ y = 2x = 2 × 20 = 40. (100, 0)
Therefore corner point A(20, 40). X′ X
O 50
Corner point B is the intersection x +150
2x
2y
=1
+
Y′
and 2x – y = 0 i.e., y = 2x.
20
= 200 ⇒ 4x = 200
⇒ x = 50 and therefore y = 2x = 100. Therefore corner point B is
(50, 100).
Step III. Now, we evaluate Z at each corner point.
Corner Point Z = x + 2y
A(20, 40) 100 = m ← Minimum
B(50, 100) 250
C(0, 200) 400 = M ← Maximum
D(0, 50) 100 = m ← Minimum
By Corner Point Method,
Minimum Z = 100 at all the points on the line segment joining
the points (20, 40) and (0, 50).
(See Step III, Example 7, Page 770.
Maximum Z = 400 at (0, 200).
MathonGo 11
Class 12 Chapter 12 - Linear Programming
the line x + 2y = 6.
The shaded region in the 5 (0, 5)
– x + 2y > 1
x+
(0, 3) y=
region determined by the 3 +2
5
x+ – x
system of constraints 2y =
from (ii) to (v). The 0, 1 2 6 C(3, 2)
2
B(4, 1)
feasible region is (– 1, 0) 1
unbounded. X′ X X
O 1 2 3 4 5 7
Step II. The coordinates A(6, 0)
of the corner point A are (5,0)
(6, 0). Y′
Corner point B is the
intersection of the boundary lines
x + y = 5 and x + 2y = 6
Let us solve them for x and y.
Subtracting the two equations 2y – y = 6 – 5 or y = 1.
Putting y = 1 in x + y = 5, we have x + 1 = 5 or x = 4. Therefore,
vertex B is (4, 1).
Corner point C is the intersection of the boundary lines x + y = 5
and x = 3.
MathonGo 12
Class 12 Chapter 12 - Linear Programming
)
–1
,2
1
(shown shaded in the –
(2
=
y<
2
0
figure). y
=
–
x–
x
y
From the figure, we 0
+
<
x
observe that there is no 1 (0, 1) y
–
+
x
point common in the two – (2, 0)
shaded regions. Thus, the X′ X
(– 1, 0) O 1 2
problem has no feasible
region and hence no
feasible solution i.e., no
Y′
maximum value of Z.
MathonGo 14
Class 12 Chapter 12 - Linear Programming
Exercise 12.2
1. Reshma wishes to mix two types of food P and Q in such a
way that the vitamin contents of the mixture contain at
least 8 units of vitamin A and 11 units of vitamin B. Food P
costs ` 60/kg and Food Q costs ` 80/kg. Food P contains 3
units/kg of vitamin A and 5 units/kg of vitamin B while
food Q contains 4 units/kg of vitamin A and 2 units/kg of
vitamin B. Determine the minimum cost of the mixture.
Sol. Step I. Mathematical formulation of L.P.P.
Suppose Reshma mixes x kg of food P and y kg of food Q. The
given data is condensed in the following table:
Type of Quantity Cost Vitamin A Vitamin B
Food (kg) (`/kg) (units/kg) (units/kg)
P x 60 3 5
Q y 80 4 2
Cost of mixture (in `) = 60x + 80y
Let Z = 60x + 80y
We have the following mathematical model for the given problem:
Minimise Z = 60x + 80y ...(i)
subject to the constraints:
3x + 4y ≥ 8 (Vitamin A constraint) ...(ii)
[Given: Vitamin A content of foods X and Y is at least (i.e.,
≥) 8 units]
5x + 2y ≥ 11 (Vitamin B constraint) ...(iii)
[Given: Vitamin B content of foods X and Y is at least (i.e.,
≥) 11 units]
x, y ≥ 0 [... Quantities of food can’t be negative] ...(iv)
Step II. The constraint (iv), x, y ≥ 0.
⇒ Feasible region is in first quadrant.
Table of values for the line 3x + 4y = 8 of constraint (ii)
8
x 0
3
y 2 0
MathonGo 15
Class 12 Chapter 12 - Linear Programming
8
Let us draw the line joining the points (0, 2) and , 0 .
3
Let us test for origin (x = 0, y = 0) in constraint (ii) 3x + 4y ≥ 8,
we have 0 ≥ 8 which is not true.
∴ The region for constraint (ii) is the half plane on non-origin
side of the line 3x + 4y = 8 i.e., the region does not contain the
origin.
Now table of values for the line 5x + 2y = 11 of constraint (iii).
11
x 0
5
11
y 0
2
11 11
Let us draw the line joining the points 0, and 5 , 0 .
2
Let us test for origin (x = 0, y = 0) in constraint (iii) 5x + 2y ≥ 11, we
have 0 ≥ 11 which is not true.
∴ Region for constraint (iii) is on the non-origin side of the line
i.e., does not contain the origin.
11 6
A 0,
2
5
Feasible Region
4
5x
+
3
2y
=
(0, 2)
11
1
B 2, 1
3x + 4y < 8 2
X′ X
O 1 2 8,0
C
3
3x
+
11, 0 4y
= 8
Y′ 5
MathonGo 16
Class 12 Chapter 12 - Linear Programming
3x + 4y = 8 and 5x + 2y = 11
Solve for x and y: F i r s t e q u a t i o n – 2 × s e c o n d e q u a t i o n
gives 3x + 4y – 10x – 4y = 8 – 22
⇒ – 7x = – 14 ⇒ x = 2
Putting x = 2 in 3x + 4y = 8, we have, 6 + 4y = 8 ⇒ 4y = 2
2 1 1
⇒ y = = . Therefore vertex B 2, .
4 2 2
Step IV. Now, we evaluate Z at each corner point.
Corner Point Z = 60x + 80y
11
A 0, 440
2
1
B 2, 160
2
= m ← Minimum
8
C , 0 160
3
From this table, we find that 160 is the minimum value of Z at
1 8
each of the two corner points B 2, and C , 0 .
2 3
Step V. Since the feasible region is unbounded, 160 may or may
not be the minimum value of Z. To decide this, we graph the
inequality Z < m
i.e., 60x + 80y < 160 or 3x + 4y < 8
Table of values for the line 3x + 4y = 8 for this constraint
Z < m.
8
x 0
3
y 2 0
8
The line joining these two points (0, 2) and , 0 has already
3
been drawn for the line of constraint (ii).
Let us test for origin (x = 0, y = 0) in constraint Z < m
i.e., 3x + 4y < 8, we have 0 < 8 which is true.
∴ Region for constraint Z < m in the origin side of the
line 3x + 4y = 8.
Of course points on the line segment BC are included in the
feasible region ( . .. of constraint (ii)) and not in the half-plane
determined by Z < m i.e., 3x + 4y < 8. We observe that the
half-plane determined by Z < m has no point in common with
the feasible region. Hence m = 160 is the minimum value of Z
1 8
attained at each of the points B 2, and C , 0 . Therefore,
2 3
minimum cost = ` 160 at all points lying on the segment joining
1 8
2, 2 and 3 , 0 .
MathonGo 17
Class 12 Chapter 12 - Linear Programming
Step III. The coordinates of the corner points O, A and C are (0, 0),
(25, 0) and (0, 20) respectively.
Corner point B: It is the point of intersection of the boundary
lines 2x + y = 50 and x + 2y = 40
Y
50 (0, 50)
40
30
C(0, 20)
B(20, 10)
10
(40, 0)
X′ X
O 10 20 30 40 50 60
x+
A(25, 0) 2y
2x
=4
0
+
Y′
y=
50
MathonGo 19
Class 12 Chapter 12 - Linear Programming
MathonGo 20
Class 12 Chapter 12 - Linear Programming
Step III. The coordinates of the corner points O, A and C are (0, 0),
(8, 0) and (0, 14) respectively.
Corner point B: It is the point of intersection of the boundary lines
x + 2y = 28 and 3x + y = 24.
First eqn. – 2 × second eqn. gives
x + 2y – 2(3x + y) = 28 – 2 × 24
⇒ x + 2y – 6x – 2y = 28 – 48 ⇒ – 5x = – 20
⇒ x = 4.
Putting x = 4 in x + 2y = 28, 4 + 2y = 28
⇒ 2y = 24 ⇒ y = 12
∴ Corner point B is (4, 12).
Y
(0, 24)
20
16
C(0, 14) 12 B(4, 12)
8 x+
2y
=2
4 8
A(8, 0) (28, 0)
X′ X
O 4 12 16 20 24
3x +
y=
Y′
24
MathonGo 21
Class 12 Chapter 12 - Linear Programming
(0, 12)
3x +
8
y
= 12
C(0, 4) B(3, 3)
x+
3y =
12
X′ X
O A(4, 0) 8 (12, 0)
Y′
− 24
⇒ x =
−8 = 3
Putting x = 3 in x + 3y = 12, 3 + 3y = 12
9
⇒ 3y = 9 ⇒ y = = 3
3
∴ Corner point B is (3, 3).
Step IV. Now, we evaluate Z at each corner point.
Corner Point Z = 17.5x + 7y
O(0, 0) 0
A(4, 0) 70
B(3, 3) 73.5 = M ← Maximum
C(0, 4) 28
By Corner Point Method, maximum Z = 73.5 at (3, 3).
Hence, the profit is maximum equal to ` 73.50 when 3 packages
of nuts and 3 packages of bolts are manufactured.
5. A factory manufactures two types of screws, A and B. Each
type of screw requires the use of two machines, an
automatic and a hand operated. It takes 4 minutes on the
automatic and 6 minutes on hand operated machines to
MathonGo 23
Class 12 Chapter 12 - Linear Programming
x 0 60
y 40 0
Let us draw the straight line joining the points (0, 40) and (60, 0).
Let us test for origin (put x = 0, y = 0) in constraint (ii) 2x +
3y ≤ 120, we have 0 ≤ 120 which is true.
∴ Region for constraint (ii) is on the origin side of the line
2x + 3y = 120.
MathonGo 24
Class 12 Chapter 12 - Linear Programming
x 0 40
y 80 0
Let us draw the straight line joining the points (0, 80) and (40, 0).
Let us test for origin (put x = 0, y = 0) in constraint (iii) 2x + y ≤ 80, we
have 0 ≤ 80 which is true.
∴ Region for constraint (iii) is also towards the origin side of
the line 2x + y = 80.
Y
80 (0, 80)
70
2x
60
+
y=
50
80
40 C(0, 40)
30
B(30, 20)
20
10
(60, 0)
X′ X
O 10 20 30 50 60 70 80
2x
A(40, 0) +3
y=
12
Y′ 0
MathonGo 25
Class 12 Chapter 12 - Linear Programming
12 (0, 12)
11
2x
C(0, 10)
+
9
y=
8
12
7
6
5
4 B(4, 4)
3x
3
+2
y=
2
20
1 20 , 0
X′ 3
X
O 1 2 3 4 5 6 7 8 9 10
A(6, 0)
Y′
Let us test for origin (x = 0, y = 0) in constraint (iii) 3x + 2y ≤ 20, we
have 0 ≤ 20 which is true.
∴ Region for constraint (iii) is on the origin side of the line
3x + 2y = 20.
The shaded region in the figure is the feasible region determined
by the system of constraints from (ii) to (iv). The feasible region
is bounded.
Step III. The coordinates of the corner points O, A and C are (0, 0), (6, 0)
and (0, 10) respectively.
Corner point B: It is the point of intersection of boundary lines
2x + y = 12
and 3x + 2y = 20
2 × First eqn. – Second eqn. gives
4x + 2y – 3x – 2y = 24 – 20 ⇒ x = 4.
Putting x = 4 in 2x + y = 12, we have 8 + y = 12
⇒ y = 4.
∴ Corner point B is (4, 4).
Step IV. Now, we evaluate Z at each corner point.
MathonGo 27
Class 12 Chapter 12 - Linear Programming
Corner Point Z = 5x + 3y
O(0, 0) 0
A(6, 0) 30
B(4, 4) 32 = M ← Maximum
C(0, 10) 30
By Corner Point Method, maximum Z = 32 at (4, 4).
Hence, the profit is maximum when 4 pedestal lamps and 4
wooden shades are manufactured. Maximum profit is ` 32.
7. A company manufactures two types of novelty souvenirs
made of plywood. Souvenirs of type A require 5 minutes
each for cutting and 10 minutes each for assembling.
Souvenirs of type B require 8 minutes each for cutting and
8 minutes each for assembling. There are 3 hours 20
minutes available for cutting and 4 hours for assembling.
The profit is ` 5 each for type A and ` 6 each for type B
souvenirs. How many souvenirs of each type should the
company manufacture in order to maximise the profit?
(Important)
Sol. Step I. Mathematical formulation of L.P.P.
Suppose the company manufactures x souvenirs of type A and y
souvenirs of type B. The given data is condensed in the following
table:
Time for Time for Profit
cutting assembling (`/item)
Type Number (min/item) (min/item)
A x 5 10 5
B y 8 8 6
Total profit = 5x + 6y
Let Z = 5x + 6y
We have the following mathematical model for the given problem:
Maximise Z = 5x + 6y ...(i)
subject to the constraints:
5x + 8y ≤ 200 (Cutting constraint) ...(ii)
[Given: (Maximum) time available for cutting is 3 hours, 20
minutes = 3 × 60 + 20 = 200 minutes]
10x + 8y ≤ 240 (Assembling constraint) ...(iii)
[Given: (Maximum) Time available for assembly is 4 hours
= 4 × 60 = 240 minutes]
x, y ≥ 0 ...(iv)
(... Number of souvenirs can’t be negative)
Step II. Constraint (iv) x, y ≥ 0 ⇒ Feasible region is in first
quadrant.
Table of values for the line 5x + 8y = 200 of constraint (ii)
x 0 40
y 25 0
MathonGo 28
Class 12 Chapter 12 - Linear Programming
Let us draw the line joining the points (0, 25) and (40, 0).
Let us test for origin (x = 0, y = 0) in constraint (ii) 5x + 8y ≤ 200 we
have 0 ≤ 200 which is true.
∴ Region for constraint (ii) is on the origin side of the line
5x + 8y = 200.
Table of values for the line 10x + 8y = 240 of constraint (iii)
x 0 24
y 30 0
Let us draw the line joining the points (0, 30) and (24, 0).
Let us test for origin (x = 0, y = 0) in constraint (iii) 10x + 8y ≤ 240, we
have 0 ≤ 240 which is true.
∴ Region for constraint (iii) is on the origin side of the line
10x + 8y = 240.
(0, 30)
C(0, 25)
20 B(8, 20)
5x
+
10
8y
x+
10 = 20
0
8y
=
24
(40, 0)
0
X′ X
O 10 20
A(24, 0)
Y′
The shaded region in the figure is the feasible region determined
by the system of constraints from (ii) to (iv). The feasible region
is bounded.
Step III. The coordinates of the corner points O, A and C are (0, 0),
(24, 0) and (0, 25) respectively.
Corner point B: It is the point of intersection of the boundary
lines
5x + 8y = 200 and 10x + 8y = 240
− 40
Subtracting, – 5x = – 40 ⇒ x = = 8.
−5
Putting x = 8 in 5x + 8y = 200, we have
160
40 + 8y = 200 ⇒ 8y = 160 ⇒ y = = 20
8
∴ Corner point B(8, 20).
Step IV. Now, we evaluate Z at each corner point.
MathonGo 29
Class 12 Chapter 12 - Linear Programming
Corner Point Z = 5x + 6y
O(0, 0) 0
A(24, 0) 120
B(8, 20) 160 = M ← Maximum
C(0, 25) 150
By Corner Point Method, maximum Z = 160 at (8, 20).
Hence, the profit is maximum when 8 souvenirs of type A and 20
souvenirs of type B are manufactured.
Maximum profit = ` 160.
8. A merchant plans to sell two types of personal computers —
a desktop model and a portable model that will cost `
25,000 and ` 40,000 respectively. He estimates that the total
monthly demand of computers will not exceed 250 units.
Determine the number of units of each type of computers
which the merchant should stock to get maximum profit if
he does not want to invest more than ` 70 lakhs and if his
profit on the desktop model is ` 4500 and on portable
model is ` 5000.
Sol. Step I. Mathematical Formulation of L.P.P.
Suppose the merchant stocks x units of desktop model and
y units of portable model. The given data is condensed in the
following table.
Type Number Cost Profit
of Model of units (`/unit) (`/unit)
Desktop x 25000 4500
Portable y 40000 5000
Total profit = 4500x + 5000y
Let Z = 4500x + 5000y
We have the following mathematical model for the given problem:
Maximise profit Z = 4500x + 5000y ...(i)
subject to the constraints:
x + y ≤ 250 (Demand constraint) ...(ii)
[Given: Total monthly demand of computers will not exceed 250
i.e., ≤ 250]
25000x + 40000y ≤ 70,00,000
[Given: He does not want to invest more than ` 70 lakhs
= ` 70 × 100,000]
Dividing every term by 5000,
or 5x + 8y ≤ 1400 (Investment constraint) ...(iii)
x, y ≥ 0 ...(iv)
(... Number of computers can’t be negative)
Step II. Constraint (iv) x, y ≥ 0 ⇒ Feasible region is in first
quadrant.
MathonGo 30
Class 12 Chapter 12 - Linear Programming
300
(0, 250)
250
x
200
+
y
C(0, 175)
=
150 5x
25
+8
0
100 y=
14 B(200, 50)
50 00
(280, 0)
X′ X
O 50 100 150 200 300
A(250, 0)
Y′
MathonGo 31
Class 12 Chapter 12 - Linear Programming
MathonGo 32
Class 12 Chapter 12 - Linear Programming
MATHEMATICS–XII
40 80
Let us draw the line joining the points 0, and 3 , 0 .
3
Let us test for origin (x = 0, y = 0) in constraint (ii) 3x + 6y ≥ 80, we have
0 ≥ 80 which is not true.
∴ Region for constraint (ii) is the half-plane not containing the
origin i.e., region on the non-origin side of the line 3x + 6y = 80.
Table of values for the line 4x + 3y = 100 of constraint (iii)
x 0 25
100
y 0
3
100 35
C 0,
3
30 Feasible Region
25
4x
20
+
3y
4x
52 +
=
15 6y
10
0, 3 = 4
B 24,
0
10 10
40 3x 4 3
+6
0, 3 y =8 80 , 0
5 A
0 3
X′ X
O 5 10 15 20 (25, 0) 30 35
Y′
80 100
3 , 0 and 0, 3 respectively.
To find corner point B: Corner point B is the point of
intersection of the boundary lines
3x + 6y = 80 and 4x + 3y = 100
MathonGo 33
Class 12 Chapter 12 - Linear Programming
MathonGo 34
Class 12 Chapter 12 - Linear Programming
MathonGo 35
Class 12 Chapter 12 - Linear Programming
x 0 140
y 280 0
Let us draw the line joining the points (0, 280) and (140, 0).
Let us test for origin (x = 0, y = 0) in constraint (ii) 2x + y ≥ 280,
we have 0 ≥ 280 which is not true.
∴ Region for constraint (ii) is the half-plane not containing the
origin i.e., region on the non-origin side of the line 2x + y = 280.
Table of values for the line 3x + 5y = 700 corresponding to
constraint (iii)
700
x 0
3
y 140 0
700
Let us draw the line joining the points (0, 140) and , 0 .
3
Let us test for origin (x = 0, y = 0) in constraint (iii) 3x + 5y ≥ 700,
we have 0 ≥ 700 which is not true.
∴ Region for constraint (iii) is again on the non-origin side of the
line 3x + 5y = 700.
The shaded region in the figure is the feasible region determined
by the system of constraints from (ii) to (iv). The feasible region
is unbounded.
Step III. The coordinates of the corner points. A and C are
700
3 , 0 and (0, 280) respectively.
To find corner point B: Let us solve the equations of bounding
lines 2x + y = 280 and 3x + 5y = 700 for x and y.
300
C(0, 280) Feasible Region
250
2x
200
+y
(0, 140)
80
100
B(100,
3
80) 700 , 0
50 x+
5y
A
=7 3
00
X′ X
O 50 100 150 200 250 300
(140, 0)
6x
500 , 0
+
5y
Y′ 3
=
10
00
MathonGo 36
Class 12 Chapter 12 - Linear Programming
MathonGo 37
Class 12 Chapter 12 - Linear Programming
MathonGo 38
Class 12 Chapter 12 - Linear Programming
MISCELLANEOUS EXERCISE
1. (Refer to Example 9, NCERT Page 521). How many packets of
each food should be used to maximise the amount of vitamin
A in the diet? What is the maximum amount of vitamin A in
the diet?
Sol. (NCERT Page 521), we find that Z is maximum at the point (40, 15).
Hence, the amount of vitamin A under the constraints given in the
problem will be maximum if 40 packets of food P and 15 packets of
food Q are used in the special diet.
The maximum amount of vitamin A will be 285 units.
2. A farmer mixes two brands P and Q of cattle feed. Brand P
costing ` 250 per bag, contains 3 units of nutritional element
A, 2.5 units of element B and 2 units of element C. Brand Q
costing ` 200 per bag contains 1.5 units of nutritional
element A, 11.25 units of element B, and 3 units of element
C. The minimum requirements of nutrients A, B and C are
18 units, 45 units and 24 units respectively. Determine the
number of bags of each brand which should be mixed in
order to produce a mixture having a minimum cost per
bag? What is the minimum cost of the mixture per bag?
Sol. Step I. Mathematical Formulation of L.P.P.
Suppose the farmer mixes x bags of brand P and y bags of brand
Q. The given data is condensed in the following table.
Brand Number Cost Element A Element B Element C
of bags (`/bag) (units/bag) (units/bag) (units/bag)
P x 250 3 2.5 2
Q y 200 1.5 11.25 3
Total cost = 250x + 200y
Let Z = 250x + 200y
We have the following mathematical model for the given problem:
Minimise Z = 250x + 200y ...(i)
subject to the constraints:
3x + 1.5y ≥ 18
[Given: Minimum requirement of nutritional element A is 18
units i.e., ≥ 18 units]
15
or 3x + y ≥ 18
10
Multiplying by 10 and dividing by 15,
or 2x + y ≥ 12 (Nutritional element A constraint)...(ii)
2.5x + 11.25y ≥ 45
[Given: Minimum requirement of nutritional element B is, 45 units
MathonGo 39
Class 12 Chapter 12 - Linear Programming
i.e., ≥ 45 units]
25 1125
or x+ y ≥ 45
10 100
Multiplying by 100 and dividing by 125,
or 2x + 9y ≥ 36 ...(iii)
(Nutritional element B constraint)
2x + 3y ≥ 24 (Nutritional element C constraint) ...(iv)
[Given: Minimum requirement of nutritional element C is 24 units
i.e., ≥ 24 units]
x, y ≥ 0 (... Number of bags can’t be negative)...(v)
Step II. Constraint (v) x, y ≥ 0
⇒ Feasible region is in first quadrant.
Table of values for the line 2x + y = 12 of constraint (ii)
x 0 6
y 12 0
Draw the straight line joining the points (0, 12) and (6, 0).
Let us test for origin (x = 0, y = 0) in constraint 2x + y ≥ 12, we have 0
≥ 12 which is not true.
∴ Region for constraint (ii) 2x + y ≥ 12 is the half-plane not
containing the origin i.e., region on the non-origin side of the line
2x + y = 12.
Table of values for the line 2x + 9y = 36 for constraint (iii)
x 0 18
y 4 0
Let us draw the line joining the points (0, 4) and (18, 0).
Let us test for origin (x = 0, y = 0) in constraint (iii) 2x + 9y ≥ 36, we
have 0 ≥ 36 which is not true.
∴ Region for constraint (iii) is the region on the non-origin side of
the line 2x + 9y = 36.
Table of values for the line 2x + 3y = 24 for constraint (iv)
x 0 12
y 8 0
Draw the line joining the points (0, 8) and (12, 0).
Let us test for origin (x = 0, y = 0) in constraint (iii) 2x + 3y ≥ 24, we
have 0 ≥ 24 which is not true.
∴ Region for constraint (iii) 2x + 3y ≥ 24 is again the region on the
non-origin side of the line 2x + 3y = 24.
The shaded region in the figure is the feasible region determined by
the system of constraints from (ii) to (v). The feasible region is
unbounded.
Step III. The coordinates of the corner points A and D are (18, 0)
and (0, 12) respectively.
Corner point B: It is the point of intersection of the lines
2x + 3y = 24 and 2x + 9y = 36
− 12
Subtracting – 6y = – 12 ⇒ y = =2
−6
MathonGo 40
Class 12 Chapter 12 - Linear Programming
5x
+
14
4y
=
39
12 D(0, 12)
Feasible Region
10
8
(0, 8)
6 C(3, 6)
4
(0, 4)
B(9, 2)
2 2x +
9y =
36
X′ X
O 2 4 6 8 10 12 14 16 A(18, 0)
2x
(6, 0) (12, 0)
2x
+
+
y=
3y
Y′ = 24
12
MathonGo 41
Class 12 Chapter 12 - Linear Programming
39
x 0 = 7.8
5
39
y = 9.75 0
4
Let us draw the dotted line joining the points (0, 9.75) and (7.8, 0).
The line is to be shown dotted because equality sign is absent in
the constraint Z < m i.e., in 5x + 4y < 39.
Let us test for origin (x = 0, y = 0) in this constraint, we have 0 < 39
which is true.
∴ Region for constraint Z < m i.e., 5x + 4y < 39 is towards the
origin side of the line.
We observe that the half plane determined by Z < m has no point
in common with the feasible region. Hence m = 1950 is the
minimum value of Z attained at the point C(3, 6).
∴ Minimum cost is ` 1950 when 3 bags of brand P and 6 bags
of brand Q are mixed.
3. A dietician wishes to mix together two kinds of food X and
Y in such a way that the mixture contains at least 10 units
of vitamin A, 12 units of vitamin B and 8 units of vitamin C.
The vitamin contents of one kg food is given below:
Food Vitamin A Vitamin B Vitamin C
X 1 2 3
Y 2 2 1
One kg of food X costs ` 16 and one kg of food Y costs `
20. Find the least cost of the mixture which will produce
the required diet?
Sol. Step I. Mathematical Formulation of L.P.P.
Let the dietician mix x kg of food X and y kg of food Y. The given
data is condensed in the following table.
Quantity Vitamin A Vitamin B Vitamin C Cost
Food (kg) (units/kg) (units/kg) (units/kg) (`/kg)
X x 1 2 3 16
Y y 2 2 1 20
Total cost = 16x + 20y
Let Z = 16x + 20y
We have the following mathematical model for the given problem:
Minimise Z = 16x + 20y ...(i)
subject to the constraints:
x + 2y ≥ 10 (Vitamin A constraint) ...(ii)
[Given: The mixture contains at least 10 units (i.e., ≥ 10) of vitamin A]
2x + 2y ≥ 12
[Given: The mixture contains at least 12 units (i.e., ≥ 12) of vitamin B]
or x + y ≥ 6 (Vitamin B constraint) ...(iii)
3x + y ≥ 8 (Vitamin C constraint) ...(iv)
[Given: The mixture contains at least 8 units (i.e., ≥ 8) of vitamin C]
MathonGo 42
Class 12 Chapter 12 - Linear Programming
Feasible Region
8 D(0, 8)
7
6 (0, 6)
C(1, 5)
(0, 5)
4 B(2, 4)
3x
3
x +
+y
2y
x
2
+
=1
=8
0
=
1
6
A(10, 0)
X′ X
O 1 2 3 4 5 6 7 8 4 9 10
(6, 0) x
+
8,0 5y
=
Y′ 3 28
MathonGo 43
Class 12 Chapter 12 - Linear Programming
MathonGo 44
Class 12 Chapter 12 - Linear Programming
MathonGo 45
Class 12 Chapter 12 - Linear Programming
∴ Region for x ≤ 20 is the region on the left side of the line x = 20.
Table of values for the line 2x + 3y = 120 of constraint (iv).
x 0 60
y 40 0
Let us draw the line joining the points (0, 40) and (60, 0).
Let us test for origin (x = 0, y = 0) in constraint (iv) 2x + 3y ≤ 120, we
have 0 ≤ 120 which is true.
∴ Region for constraint (iv) is on the origin side of the line
2x + 3y = 120.
The shaded region in the figure is the feasible region determined
by the system of constraints from (ii) to (v). The feasible region is
bounded.
Step III. The coordinates of the corner points O, A and D are
(0, 0), (20, 0) and (0, 40) respectively.
Corner point B: It is the point of intersection of bounding lines
2x + y = 60 and x = 20
Putting x = 20 in 2x + y = 60, we have 40 + y = 60 or y = 20.
∴ Corner point B is (20, 20).
Corner point C: It is the point of intersection of bounding lines
2x + y = 60 and 2x + 3y = 120
− 60
Subtracting – 2y = – 60 or y = = 30
−2
Putting y = 30 in 2x + y = 60, we have
2x + 30 = 60 ⇒ 2x = 30 ⇒ x = 15.
∴ Corner point C is (15, 30).
Step IV. Now, we evaluate Z at each corner point.
Corner Point Z = 7.50x + 5y
O(0, 0) 0
A(20, 0) 150
B(20, 20) 250
C(15, 30) 262.50 = M ← Maximum
D(0, 40) 200
By Corner Point Method, maximum Z = 262.50 at (15, 30).
Y
(0, 60)
x = 20
50
D(0, 40)
30 C(15, 30)
20 B(20, 20)
10
(20, 0) (30, 0) (60, 0)
X′ X
O 10 A 40 50 2x
+
2x
3y
=
+
12
y=
0
Y′
60
MathonGo 46
Class 12 Chapter 12 - Linear Programming
140
Put y = 0, ∴ x = 0.
y = 4x
120
∴ The line y = 4x
x
100
+
Put x = 20, y = 80 60
∴ Point is (20, 80). 40
∴ The graph of line 20
(20, 0)
y = 4x is the line passing X′ X
O 20 60 100 140 180 200
through the origin (0, 0)
and point (20, 80).
Y′
MathonGo 47
Class 12 Chapter 12 - Linear Programming
50 – y
and 40 – (100 – x – y) 60
` 4 ` 3 60
` 2 –
= x + y – 60 quintals need – y
x +
x
to be transported from
B
godown B to shops E and
50
F respectively.
Godown
Clearly, 60 – x ≥ 0, 50 – y ≥ 0
(i.e., 60 ≥ x, 50 ≥ y)
and x + y – 60 ≥ 0
i.e., x ≤ 60, y ≤ 50 and x + y ≥ 60
Total transportation cost Z is given by
5
Z = 6x + 3y + (100 – x – y) + 4(60 – x) + 2(50 – y)
2
+ 3(x + y – 60)
5 3 1
= x + y + 410 = (5x + 3y + 820)
2 2 2
We have the following mathematical model for the given problem:
1
Minimise Z = (5x + 3y + 820) ...(i)
2
subject to the constraints:
x ≥ 0, y ≥ 0 ...(ii)
x + y ≤ 100 ...(iii)
x ≤ 60 ...(iv)
y ≤ 50 ...(v)
x + y ≥ 60 ...(vi)
Step II. Constraint (ii) x ≥ 0, y ≥ 0.
⇒ Feasible region is in first quadrant.
Table of values for the line x + y = 100 of constraint (iii).
x 0 100
y 100 0
Let us draw the straight line joining the points (0, 100) and (100, 0).
Let us test for origin (x = 0, y = 0) in constraint (ii) x + y ≤ 100,
we have 0 ≤ 100 which is true.
MathonGo 49
Class 12 Chapter 12 - Linear Programming
80
constraint (vi) x + y
y
=
70
≥ 60, we have 0 ≥ 60
10
0
60
which is not true. S(10, 50) R(50, 50) y = 50
∴ Region for 50
40 Q(60, 40)
constraint (vi) is the
x
1
Corner Point Z = (5x + 3y + 820)
2
P(60, 0) 560
Q(60, 40) 620
R(50, 50) 610
S(10, 50) 510 = m ← Minimum
By Corner Point Method, minimum Z = 510 at (10, 50).
Hence, the transportation cost is minimum, equal to ` 510, when
the supplies are transported as under:
From / To D E F
A 10 50 40 (... x = 10, y = 50)
B 50 0 0
7. An oil company has two depots A and B with capacities of
7000 L and 4000 L respectively. The company is to supply
oil to three petrol pumps, D, E and F whose requirements
are 4500L, 3000L and 3500L respectively. The distances (in
km) between the depots and the petrol pumps is given in
the following table:
Distance (in km.)
From / To A B
D 7 3
E 6 4
F 3 2
Assuming that the transportation cost of 10 litres of oil is
` 1 per km, how should the delivery be scheduled in order
that the transportation cost is minimum? What is the
minimum cost?
Sol. Step I. Mathematical formulation of L.P.P.
Let x L and y L of oil be transported from depot A to petrol
pumps D and E respectively. Then {7000 – (x + y)} L will be
transported to petrol pump F.
Clearly, x ≥ 0, y ≥ 0 and 7000 – x – y ≥ 0 (⇒ ⇒ 7000 ≥ x + y)
(... Amounts of petrols (in litres) can’t be negative)
i.e., x ≥ 0, y ≥ 0 and Depot
x + y ≤ 7000 A
Now, the requirement of 7000 L ( 7
00
0
petrol pump D is xL –
x–
6 km
4500 L. Since, x L 7 km y L 3 km y ) L
are transported
D E F
from depot A, the P.P. 4500 L P.P.
3000 L 3500 L P.P.
remaining (4500 –
(3000 – y) L
(4 3 km L
x) L need to be 50 0)
0 4 km 2 km 5 0
– 3
transported from depot B. x) y
–
Similarly, (3000 – y) L and L +
B ( x
3500 – (7000 – x – y) 4000 L
= (x + y – 3500) Depot
MathonGo 51
Class 12 Chapter 12 - Linear Programming
The shaded
6000
x = 45 00
region in the
x
+
figure is the
y
5000
=
feasible region
70
00
determined by
the system of (0, 3500) T(500, 3000) S(4000, 3000) y = 3000
constraints 3000
from (ii) to (vi). R(4500, 2500)
The feasible 2000
x
+
y
region is
=
35
1000
bounded.
00
Q(4500, 0) (7000, 0)
Step III. The X′ X
coordinates of O 1000 2000 3000 5000 6000
the corner P(3500, 0)
Y′
points P and Q
are (3500, 0)
and (4500, 0) respectively.
Corner point R: It is the point of intersection of bounding lines x
= 4500 and x + y = 7000
Putting x = 4500, 4500 + y = 7000 ⇒ y = 7000 – 4500 = 2500
MathonGo 52
Class 12 Chapter 12 - Linear Programming
MathonGo 54
Class 12 Chapter 12 - Linear Programming
(0, 180)
(0, 155)
140 C(20, 140)
(0, 120)
100
80
B(40, 100)
60 A(140, 50)
2x
3x x+
40 2y
+
+ =2
y=
4y 40
20 =
62
18
(90, 0) 0 (240, 0)
0
X′ X
O 20 40 60 80 100 120 140 160 180 200
620 , 0
Y′ 3
MathonGo 55
Class 12 Chapter 12 - Linear Programming
MathonGo 56
Class 12 Chapter 12 - Linear Programming
1000
x
+
y
800
=
0) x
12
0
,4 y =
00
600 0
(8 0 2
400 0)
C (1050, 150)
= 6 00
0 3y
0 ,2 x –
200 (4 0
B (1200, 0)
X′ X
O 200 400 800 1000 1200
– 200
(0, – 200) A(600, 0)
Y′
MathonGo 57
Class 12 Chapter 12 - Linear Programming
MathonGo 58