Free, with every step shown

System of Inequalities Grapher (Shade the Solution Region)

Enter 2 to 4 linear inequalities in x and y to graph them, shade the solution region and get the exact corner points. Add an objective such as 3x + 2y to find its maximum or minimum. For x + y ≤ 8, 2x + y ≤ 10, x ≥ 0, y ≥ 0, the corners are (0, 0), (5, 0), (2, 6) and (0, 8), and the maximum of 3x + 2y is 18 at (2, 6).

Examples:
Solution region

The solution region is a bounded polygon with 4 corner points.

Corner points: (0, 0), (5, 0), (2, 6), (0, 8)

Max of 3x + 2y = 18 at (2, 6)

-4-224681012-4-22468101214
(1) x + y = 8(2) 2x + y = 10(3) x = 0(4) y = 0Shaded = solution region. Open circles (°) lie on a dashed line and are not part of the solution.
Corner (x, y)3x + 2y
(0, 0)0
(5, 0)15
(2, 6)18
(0, 8)16
Step-by-Step Solution
  1. Inequality 1: x + y <= 8 → y ≤ −x + 8. Boundary x + y = 8 is solid (points on the line are included); shade below the line.
  2. Inequality 2: 2x + y <= 10 → y ≤ −2x + 10. Boundary 2x + y = 10 is solid (points on the line are included); shade below the line.
  3. Inequality 3: x >= 0 → x ≥ 0. Boundary x = 0 is solid (points on the line are included); shade right of the line.
  4. Inequality 4: y >= 0 → y ≥ 0. Boundary y = 0 is solid (points on the line are included); shade above the line.
  5. Test point (1, 1): (1) true, (2) true, (3) true, (4) true → it is inside the solution region.
  6. Corner points (solve each pair of boundary lines exactly, keep the ones that satisfy every inequality): (0, 0), (5, 0), (2, 6), (0, 8).
  7. The solution region is a bounded polygon with 4 corner points.
  8. Objective 3x + 2y: evaluate at each corner → (0, 0) → 0, (5, 0) → 15, (2, 6) → 18, (0, 8) → 16.
  9. Maximum = 18 at (2, 6).
Explain the steps with AI

Worked examples

Example 1: Linear programming (maximize)

Maximize 3x + 2y subject to x + y ≤ 8, 2x + y ≤ 10, x ≥ 0, y ≥ 0.

  1. Intersect x + y = 8 and 2x + y = 10: x = 2, y = 6
  2. Corners: (0, 0), (5, 0), (2, 6), (0, 8)
  3. Objective values: 0, 15, 18, 16

Maximum 18 at (2, 6)

Example 2: Dashed and solid boundaries

Graph y > 2x − 3, y ≤ −x + 6, x ≥ 0.

  1. y = 2x − 3 is dashed (strict); shade above it
  2. y = −x + 6 is solid; shade below it. x = 0 is solid; shade to the right
  3. Corners: (0, 6) included; (0, −3) and (3, 3) lie on the dashed line, so they are open

A bounded triangle with vertices (0, −3), (3, 3), (0, 6).

Example 3: Unbounded region (minimize)

Minimize 2x + 3y subject to x + 2y ≥ 4, 3x + y ≥ 6, x ≥ 0, y ≥ 0.

  1. Intersect x + 2y = 4 and 3x + y = 6: x = 8/5, y = 6/5
  2. Corners: (0, 6), (8/5, 6/5), (4, 0); the region is unbounded upward and to the right
  3. Values: 18, 34/5, 8. The region only extends in directions where 2x + 3y grows, so the minimum exists

Minimum 34/5 = 6.8 at (8/5, 6/5)

Example 4: No solution

Graph x + y < 2 and x + y > 5.

  1. Both boundaries have slope −1, so they are parallel
  2. One shading is below y = −x + 2 and the other above y = −x + 5
  3. The shaded half-planes never overlap

No solution: the system is inconsistent.

How the Inequality Grapher Works

1. Parse and normalize: each inequality is rewritten as ax + by (op) c with exact rational coefficients and shown in slope-intercept form, with the side to shade.

2. Exact vertices: every pair of boundary lines is solved with fractions (Cramer’s rule). An intersection is kept only if it satisfies every inequality, so corner points like (8/5, 6/5) are exact.

3. Region: the plane is clipped by each half-plane in turn (Sutherland–Hodgman) to draw the shaded polygon and to detect empty, zero-area or unbounded regions.

4. Objective: a linear objective is evaluated exactly at every corner. Unbounded directions and optima that lie only on a dashed line are reported.

Stuck on a step, or have a word problem?

Press Explain the steps with AI under any answer and the MathAI GPT math solver opens with your numbers already filled in, then explains the method line by line and answers follow-up questions. You can also type or photograph the whole question. On your phone, use MathAI GPT for iPhone or MathAI GPT for Android.

System of Inequalities Grapher FAQ

How do you graph a system of linear inequalities?

Graph each boundary line as if it were an equation, solid for ≤ or ≥ and dashed for < or >. Pick a test point not on the line, such as (0, 0), to decide which side to shade. The solution of the system is the region where all the shadings overlap.

When is the boundary line dashed?

Use a dashed line for strict inequalities (< or >), because points on the line are not solutions. Use a solid line for ≤ and ≥, because points on the line are included. Corner points on a dashed line are drawn as open circles.

How do I find the corner points (vertices) of the region?

Solve each pair of boundary equations as a 2 × 2 system and keep only the intersection points that satisfy every inequality. For x + y ≤ 8, 2x + y ≤ 10, x ≥ 0, y ≥ 0 the corners are (0, 0), (5, 0), (2, 6) and (0, 8).

How does this help with linear programming?

If the feasible region is bounded, a linear objective such as 3x + 2y reaches its maximum and minimum at corner points (the corner point theorem). Evaluate the objective at each corner and pick the largest or smallest. If the region is unbounded the optimum may not exist; the calculator checks this for you.

Related calculators

Link to or cite this page

Copy this URL into your resource list, syllabus, LibGuide or assignment:

https://mathaigpt.com/calculators/system-of-inequalities-grapher

MathAI GPT. (2026). System of Inequalities Grapher. https://mathaigpt.com/calculators/system-of-inequalities-grapher