Mathongo.com NCERT Solutions Class 12 Maths Chapter 12 Linear Programming (1)
Mathongo.com NCERT Solutions Class 12 Maths Chapter 12 Linear Programming (1)
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