Q.Maximise the function , subject to the constraints: , , , .
This is a simple linear programming problem with only two variables and four constraints. The feasible region is a rectangle, and the maximum of occurs at the corner , giving .
Why the graphical method works here
Linear programming problems with two variables can be solved visually. Each inequality cuts the plane into two halves — the side that satisfies it is the feasible side. The region where all constraints overlap is called the feasible region. The key theorem says: if a linear objective function has a maximum (or minimum) over a bounded feasible region, it occurs at a corner point (vertex) of that region. So we don't need to check every point — just the corners.
Here, the constraints are:
- — a vertical line at , feasible to the left.
- — a horizontal line at , feasible below.
- , — the first quadrant.
That's a rectangle with corners at , , , and . No sloping lines, no tricky intersections — just a box.
A common mistake is to forget that and are also constraints. Without them, the feasible region would be unbounded on the left and bottom, and the maximum might not exist. Here they are given, so we're safe.
Step-by-step solution
- Plot the constraints and identify the feasible region. Draw the lines and . Shade the side that satisfies each inequality. Since all inequalities are "less than or equal to" with non-negativity, the feasible region is the rectangle with vertices:
Every point inside or on the boundary of this rectangle satisfies all constraints.
- List the corner points. The four vertices are:
- Evaluate the objective function at each corner.
- Compare the values. The largest is at .
Notice that the coefficients and are both positive. Since the feasible region is a rectangle in the first quadrant, the maximum will always be at the corner farthest from the origin in both and directions — here that's . You could have guessed it without calculating all four points, but it's safer to check.
The maximum value is , attained at , .
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.