Feasible Half-Plane Linear Inequalities Optimizer
Shade and solve systems of linear inequalities in two variables ax + by ≤ c. Plot boundary lines, determine whether half-planes contain or exclude the origin using test points, and find the overlapping convex feasible region that forms the foundation of Linear Programming.
🎯 Learning Objectives
- Distinguish between strict inequalities (<, > drawn with dashed lines) and non-strict inequalities (≤, ≥ drawn with solid lines).
- Apply the origin test point (0, 0) to determine which half-plane to shade.
- Find the common feasible region (intersection of multiple half-planes).
- Identify corner points (vertices) of the bounded or unbounded feasible polygon.
📐 Governing Mathematical Laws & Formulas
Half-Plane Division Theorem
Every straight line ax + by = c divides the Cartesian plane into two open half-planes: ax + by < c and ax + by > c.
Feasible Region Convexity
The intersection of any collection of linear half-planes is always a convex polygonal region.
Geometric & First-Principle Intuition
A linear inequality in two variables ax + by ≤ c divides the coordinate plane into two half-planes. The boundary line ax + by = c is solid for non-strict inequalities (≤, ≥) and dashed for strict inequalities (<, >). The solution set of a system of linear inequalities is the intersection of all individual half-planes, known as the Feasible Region. By the Fundamental Corner Point Theorem of Linear Programming, if the feasible region is bounded, any linear objective function Z = px + qy achieves its maximum and minimum values at one of the corner vertices of the region.
🎛️ Simulator Controls & Input Parameters
Configure coefficients and comparison operator (≤, ≥, <, >) for up to 4 simultaneous inequalities.
Substitutes x = 0, y = 0 into the active inequality.
Restricts the feasible region to the first quadrant (Quadrant I).
📋 Step-by-Step Instructions for Using the Simulator
- Enter inequality 2x + 3y ≤ 12: observe the boundary line drawn with x-intercept (6, 0) and y-intercept (0, 4).
- Click "Origin Test": 2(0) + 3(0) = 0 ≤ 12 is TRUE, so the half-plane containing (0, 0) is shaded in cyan.
- Add a second inequality x + 2y ≥ 4: test (0, 0) yields 0 ≥ 4 which is FALSE, so shading faces away from the origin in amber.
- Toggle non-negativity constraints x ≥ 0, y ≥ 0 to restrict focus to Quadrant I.
- Inspect the highlighted overlapping feasible polygon: the vertices are automatically calculated and marked at (4, 0), (6, 0), (0, 4), and (0, 2).
📊 Expected Output & Visual Invariants
Interactive 2D Cartesian coordinate plane with multi-colored semi-transparent shaded half-planes, solid/dashed boundary lines, vertex corner-point markers, and test point verification cards.
How Professionals Use This Mathematical Concept
Used in industrial supply chain optimization, factory production scheduling under raw material constraints, and the classic Stigler diet nutrition problem.
Alka Ma'am's Exam Shortcut
The Origin Test Hack: Always test point (0, 0)! Plug x = 0, y = 0 into the inequality. If 0 ≤ c is mathematically TRUE, shade the side containing the origin! If FALSE, shade the other side! If the line passes through (0,0), test (1, 0) instead.
Common Textbook Trap
Students get confused on which side of the line to shade. Textbooks make it seem complicated with sign charts, causing students to shade the wrong half-plane on board exams!
Exam Question: Finding the Feasible Region and Maximizing Z
Solve the system of inequalities graphically: x + y ≤ 6, 2x + y ≤ 8, x ≥ 0, y ≥ 0. Find the corner points and maximize Z = 3x + 4y.
-
Graph Boundary Lines and Intercepts: Line 1: x + y = 6 passes through (6, 0) and (0, 6). Line 2: 2x + y = 8 passes through (4, 0) and (0, 8):
L_1: x + y = 6, \quad L_2: 2x + y = 8
-
Apply the Origin Test to Both Lines: Test (0, 0): 0 + 0 ≤ 6 (True!) and 0 + 0 ≤ 8 (True!). Combined with x ≥ 0, y ≥ 0, the feasible region lies in the first quadrant containing (0,0):
(0,0) \in \mathcal{F}
-
Find Intersection Point of the Two Lines: Subtract equation 1 from equation 2: (2x + y) - (x + y) = 8 - 6 ⟹ x = 2. Then y = 6 - 2 = 4:
L_1 \cap L_2 = (2, 4)
-
Evaluate Objective Function Z = 3x + 4y at All 4 Corners: Compute Z at vertices (0,0), (4,0), (2,4), (0,6):
Z(0, 0) = 0 \\ Z(4, 0) = 3(4) + 4(0) = 12 \\ Z(2, 4) = 3(2) + 4(4) = 6 + 16 = 22 \\ Z(0, 6) = 3(0) + 4(6) = 24
Frequently Asked Concept Doubts
Q: How do you know whether to draw a solid line or a dashed line?
If the inequality contains an equals sign (≤ or ≥), the boundary line itself is part of the solution, so draw a SOLID line! If strict (< or >), the boundary is excluded, so draw a DASHED line.
Q: Why does the origin test (0,0) work so reliably?
A straight line divides the plane into exactly two connected components. The expression ax + by - c has a constant sign on each side. Evaluating at (0, 0) gives 0 + 0 - c = -c. If this satisfies the inequality, every point on the origin side also satisfies it!
Q: Why do maximum and minimum values always occur at the corner points?
The objective line Z = px + qy is a family of parallel lines with constant slope -p/q. As Z increases, the line moves across the feasible polygon. The very last point of contact before leaving the polygon must be an extreme vertex (corner)!
Prerequisites & Related Visual Labs
itsmathtime.co.in Parent Portal Solutions
Access comprehensive NCERT exercises, step-by-step proofs, and video lectures for Linear Inequalities.