Linear Programming

RS Aggarwal Class 12 Maths Solutions Exercise 33A — Linear Programming

RS Aggarwal, Class 12 Mathematics — Linear Programming, Exercise 33A. All 11 questions solved.

Independent solutions by Shiwam’s Classes. Not affiliated with or endorsed by the author or publisher of the book.

Exercise 33A is the groundwork for linear programming: drawing the region where one or several linear inequalities hold. Questions 1 to 6 each ask for a single half-plane. Questions 7 to 9 combine two or more inequalities and ask for the common region. Question 10 shows that a system has no solution, and Question 11 runs the process backwards, reading inequalities off a shaded region.

Key insight. An inequality $ax + by \ge c$ describes one side of the line $ax + by = c$. Draw the line through its two intercepts, then test one point that is not on it (the origin whenever possible). If the test point satisfies the inequality, shade its side; otherwise shade the other side. A strict sign ($<$, $>$) means the line is dashed and excluded; $\le$ or $\ge$ means it is solid and included. For several inequalities, shade the part common to all of them.

Question 1

Represent graphically the solution set of $x + y \ge 4$.

Solution. Replace the sign by equality: $x + y = 4$. Putting $y = 0$ gives $x = 4$ and putting $x = 0$ gives $y = 4$, so the line passes through $(4, 0)$ and $(0, 4)$.

Test the origin: $0 + 0 \ge 4$ is false, so the origin is not in the region. The solution set is therefore the half-plane on the far side of the line from the origin. The sign is $\ge$, so the line itself belongs to the region and is drawn solid.

Closed half-plane of $x + y = 4$ not containing the origin, line included.

Question 2

Represent graphically the solution set of $x – y \le 3$.

Solution. The boundary is $x – y = 3$. With $y = 0$ we get $x = 3$, and with $x = 0$ we get $y = -3$, so the line joins $(3, 0)$ and $(0, -3)$.

Test the origin: $0 – 0 \le 3$ is true, so the origin lies in the region. Shade the side of the line that contains the origin. Because the sign is $\le$, the line is solid and included.

Closed half-plane of $x – y = 3$ containing the origin, line included.

Question 3

Represent graphically the solution set of $x + 2y > 1$.

Solution. The boundary is $x + 2y = 1$. It meets the $x$-axis at $(1, 0)$ and the $y$-axis at $\left(0, \tfrac12\right)$.

Test the origin: $0 + 0 > 1$ is false, so the region is on the side away from the origin. The sign is strict, so points on the line do not satisfy the inequality and the line is drawn dashed.

Open half-plane of $x + 2y = 1$ not containing the origin, line excluded.

Question 4

Represent graphically the solution set of $2x – 3y < 4$.

Solution. The boundary is $2x – 3y = 4$. Putting $y = 0$ gives $x = 2$; putting $x = 0$ gives $-3y = 4$, so $y = -\tfrac43$. The line passes through $(2, 0)$ and $\left(0, -\tfrac43\right)$.

Test the origin: $0 < 4$ is true, so shade the side containing the origin. The sign is strict, so the line is dashed and excluded.

Open half-plane of $2x – 3y = 4$ containing the origin, line excluded.

Question 5

Represent graphically the solution set of $x \ge y – 2$.

Solution. First bring all the variables to one side: $x – y \ge -2$. The boundary is $x – y = -2$. With $y = 0$ we get $x = -2$, and with $x = 0$ we get $y = 2$, so the line joins $(-2, 0)$ and $(0, 2)$.

Test the origin: $0 – 0 \ge -2$ is true, so the origin is in the region. Shade its side; the sign is $\ge$, so the line is solid and included.

Closed half-plane of $x – y = -2$ containing the origin, line included.

Question 6

Represent graphically the solution set of $y – 2 \le 3x$.

Solution. The boundary is $y – 2 = 3x$, that is $y = 3x + 2$. At $x = 0$ it gives $y = 2$, and at $y = 0$ it gives $x = -\tfrac23$, so the line passes through $(0, 2)$ and $\left(-\tfrac23, 0\right)$.

Test the origin: $0 – 2 \le 0$, that is $-2 \le 0$, is true. The origin is in the region, so shade the side of the line containing it. The line is solid and included.

Closed half-plane of $y – 2 = 3x$ containing the origin, line included.

Question 7

Find the region common to the inequalities $2x + y > 1$ and $2x – y \ge -3$.

Solution. Take the two inequalities one at a time.

For $2x + y > 1$, the line $2x + y = 1$ passes through $\left(\tfrac12, 0\right)$ and $(0, 1)$. The origin gives $0 > 1$, false, so the region is above the line (dashed).

For $2x – y \ge -3$, the line $2x – y = -3$ passes through $\left(-\tfrac32, 0\right)$ and $(0, 3)$. The origin gives $0 \ge -3$, true, so the region is on the origin’s side, which is below the line $y = 2x + 3$ (solid).

The lines meet where $2x + y = 1$ and $2x – y = -3$. Adding gives $4x = -2$, so $x = -\tfrac12$ and $y = 1 – 2\left(-\tfrac12\right) = 2$. The meeting point is $\left(-\tfrac12, 2\right)$.

Above the first line and below the second, the common region is the wedge that opens to the right of this point. It has no upper or right-hand boundary, so it is unbounded.

An unbounded wedge to the right of the corner $\left(-\tfrac12, 2\right)$, above the dashed line $2x + y = 1$ and on or below the solid line $2x – y = -3$.

Question 8

Find the region common to $x – 2y \ge 0$ and $2x – y \le -2$.

Solution. Rewrite each inequality in terms of $y$.

From $x – 2y \ge 0$ we get $y \le \tfrac{x}{2}$: the region on or below the line through the origin with slope $\tfrac12$.

From $2x – y \le -2$ we get $y \ge 2x + 2$: the region on or above the line with slope $2$ and $y$-intercept $2$.

The lines meet when $\tfrac{x}{2} = 2x + 2$, so $x = 4x + 4$, giving $x = -\tfrac43$ and $y = -\tfrac23$.

Check the direction of the region with $x = -2$: the conditions become $y \le -1$ and $y \ge -2$, so there are points, for example $(-2, -1.5)$. With $x = 0$ they become $y \le 0$ and $y \ge 2$, which is impossible. So the region lies to the left of the corner, between the two lines, and it widens as $x$ becomes more negative.

An unbounded region with corner $\left(-\tfrac43, -\tfrac23\right)$, lying to the left of it between the line $y = \tfrac{x}{2}$ (below) and the line $y = 2x + 2$ (above).

Question 9

Draw the region given by $3x + 4y \ge 12$, $x \ge 0$, $y \ge 1$ and $4x + 7y \le 28$.

Solution. Consider each condition.

  • $3x + 4y \ge 12$: the line passes through $(4, 0)$ and $(0, 3)$. The origin gives $0 \ge 12$, false, so we keep the side away from the origin.
  • $4x + 7y \le 28$: the line passes through $(7, 0)$ and $(0, 4)$. The origin gives $0 \le 28$, true, so we keep the side containing the origin.
  • $x \ge 0$: the right side of the $y$-axis.
  • $y \ge 1$: on or above the line $y = 1$.

The corners are where pairs of boundary lines meet and the point satisfies all four conditions:

  • $x = 0$ and $3x + 4y = 12$ give $(0, 3)$.
  • $x = 0$ and $4x + 7y = 28$ give $(0, 4)$.
  • $y = 1$ and $4x + 7y = 28$ give $4x = 21$, so $\left(\tfrac{21}{4}, 1\right)$.
  • $y = 1$ and $3x + 4y = 12$ give $3x = 8$, so $\left(\tfrac83, 1\right)$.

Each of these four points satisfies the other two conditions, so they are the vertices. The region is the bounded quadrilateral joining them.

A quadrilateral with vertices $(0, 3)$, $(0, 4)$, $\left(\tfrac{21}{4}, 1\right)$ and $\left(\tfrac83, 1\right)$.

Question 10

Show that the solution set of the following linear constraints is empty: $x – 2y \ge 0$, $2x – y \le -2$, $x \ge 0$ and $y \ge 0$.

Solution. The first two constraints are the same as in Question 8: $y \le \tfrac{x}{2}$ and $y \ge 2x + 2$. A point satisfying both must therefore obey

$$2x + 2 \le y \le \frac{x}{2}.$$

For such a point to exist we need $2x + 2 \le \tfrac{x}{2}$, that is $4x + 4 \le x$, so $3x \le -4$ and $x \le -\tfrac43$.

But the third constraint demands $x \ge 0$, which contradicts $x \le -\tfrac43$. No point can satisfy all the constraints together.

Graphically the same thing shows up: the common region of the first two constraints lies entirely to the left of $x = -\tfrac43$, while $x \ge 0$ and $y \ge 0$ confine us to the first quadrant, and the two regions do not overlap.

The constraints are inconsistent: they force $x \le -\tfrac43$ and $x \ge 0$ together, so the solution set is empty.

Question 11

The shaded region in the figure is bounded by the axes and three slanted lines. Find the linear constraints for which it is the solution set.

Solution. The figure is not reproduced here. The region is the quadrilateral in the first quadrant with corners $(0, 2)$, $(1, 0)$, $\left(\tfrac{10}{3}, \tfrac73\right)$ and $(0, 4)$. Its four sides lie on the $y$-axis, the line $2x + y = 2$ (from $(0, 2)$ to $(1, 0)$), the line $x – y = 1$ (from $(1, 0)$ to $\left(\tfrac{10}{3}, \tfrac73\right)$) and the line $x + 2y = 8$ (from $\left(\tfrac{10}{3}, \tfrac73\right)$ to $(0, 4)$).

Now choose the correct sign for each side by testing a point inside the region, such as $(1, 1)$:

  • $x \ge 0$ and $y \ge 0$, since the region is in the first quadrant.
  • $2x + y$ at $(1, 1)$ is $3$, which is greater than $2$, so $2x + y \ge 2$.
  • $x – y$ at $(1, 1)$ is $0$, which is less than $1$, so $x – y \le 1$.
  • $x + 2y$ at $(1, 1)$ is $3$, which is less than $8$, so $x + 2y \le 8$.

Solving the lines in pairs confirms the corners: $x – y = 1$ and $x + 2y = 8$ give $3y = 7$, so $y = \tfrac73$ and $x = \tfrac{10}{3}$; and $2x + y = 2$ and $x – y = 1$ both pass through $(1, 0)$.

$x \ge 0,\ y \ge 0,\ 2x + y \ge 2,\ x – y \le 1,\ x + 2y \le 8$.

Common mistakes

  • Choosing the wrong side after testing the origin. In Questions 1 and 3 the origin fails the inequality, so the shading goes away from it; students who always shade “towards the origin” get these two wrong.
  • Drawing every line solid. Questions 3, 4 and the first inequality of Question 7 have strict signs, so their lines are dashed and not part of the region.
  • Forgetting to bring the variables together before testing. In Question 5, $x \ge y – 2$ must be read as $x – y \ge -2$, and in Question 6 the line is $y = 3x + 2$, not $y = 3x – 2$.
  • In Question 8, assuming the wedge opens to the right. At $x = 0$ the conditions $y \le 0$ and $y \ge 2$ clash, so the region is to the left of the corner.
  • In Question 9, listing all pairwise intersections as vertices. Only the four that satisfy every constraint count; for example $(4, 0)$ and $(7, 0)$ fail $y \ge 1$.

Practise next

The next exercise, 33B, uses these regions to find the maximum and minimum of a linear objective function over a feasible region.

Shiwam's Classes: IIT JEEJEE Main and Advanced, worked in full

Subscribe