P1 1.8 - Shading inequalities

P1 1.8 - Shading inequalities

Represent linear and quadratic inequalities as regions of the coordinate plane. You will choose the correct boundary style, test which side satisfies a condition, and locate the overlap when several inequalities must hold together.

Boundary equations

Which points lie above y=x2y=x^2 and below y=x+2y=x+2 at the same time? A region can contain infinitely many points, but its edges come from equations you can draw and solve.

Start with y≥x+2y\ge x+2. At x=1x=1, it allows every height y≥3y\ge3. Repeating this for every horizontal position fills a region above the line. Equality gives the dividing edge, y=x+2y=x+2.

Boundary equation

The boundary equation of an inequality is obtained by replacing its inequality symbol with an equals sign. It separates the points that satisfy the condition from those that do not. Whether the edge itself belongs to the solution depends on whether equality is allowed.

A boundary can be straight, curved, horizontal or vertical. For example, x>2x>2 has the vertical boundary x=2x=2; it selects points to the right. The condition y≤−1y\le-1 has horizontal boundary y=−1y=-1.

Worked example 1: a straight boundary

Question. Find and locate the boundary for y≥x+2y\ge x+2.

Plan. Replace ≥\ge with equality and find two points on the resulting line.

y=x+2:x=0  ⟹  y=2,y=0  ⟹  x=−2.y=x+2:\qquad x=0\implies y=2,\qquad y=0\implies x=-2.

A straight line is determined by two distinct points.

Answer. The boundary is the line y=x+2y=x+2, through (0,2)(0,2) and (−2,0)(-2,0).

Check. Both coordinates satisfy the original inequality with equality: 2≥22\ge2 and 0≥00\ge0.

Change only xx to x2x^2. Equality still supplies the edge, but two points are no longer enough to describe its curved shape.

Worked example 2: a curved boundary

Question. Find and locate the boundary for y≥x2+2y\ge x^2+2.

Plan. Use the parabola's minimum and symmetric points.

x−2−1012x2+263236\begin{array}{c|rrrrr} x&-2&-1&0&1&2\\\hline x^2+2&6&3&2&3&6 \end{array}

Since x2≥0x^2\ge0, the minimum height is 22, at x=0x=0.

Answer. The boundary is the upward-opening parabola y=x2+2y=x^2+2, with vertex (0,2)(0,2), through (±1,3)(\pm1,3) and (±2,6)(\pm2,6).

Check. Opposite xx-values give equal squares, so the listed points have the expected symmetry about the vertical axis.

The boundary equation gives the shape; the inequality then chooses the allowed side.

Watch out

The boundary of y>x2+2y>x^2+2 is y=x2+2y=x^2+2, even though the boundary points themselves are excluded. Do not omit the edge when describing the region.

Separate the boundary from the side to be shaded.

Solid and dotted boundaries

A boundary's line style tells you whether points with equality are included in the solution.

The point (1,2)(1,2) lies on y=x+1y=x+1. It satisfies y≥x+1y\ge x+1, because 2≥22\ge2, but fails y>x+1y>x+1, because 2>22>2 is false. Points strictly above the line satisfy both inequalities; only the edge changes.

Boundary conventions

Use a solid boundary for ≤\le or ≥\ge: equality is included. Use a dotted boundary for << or >>: equality is excluded. These conventions apply to curves as well as straight lines.

Shade the solution side unless the question asks you to shade the unwanted region. Label the intended region clearly; dark shading by itself does not say which convention you have used.

[DIAGRAM: asset_name: Including or excluding a boundary; asset_slug: solid-dotted-boundaries; caption: The shaded side stays the same when equality is removed; the edge changes from solid to dotted.; description: Two coordinate panels show the region above y equals x plus one. The left has a solid boundary and y greater than or equal to x plus one; the right has a dotted boundary and y strictly greater than x plus one.]
The shaded side stays the same when equality is removed

To choose a side, use a test point away from the boundary. For y>x+1y>x+1, (0,0)(0,0) gives 0>10>1, false, so reject its side. The point (0,2)(0,2) gives 2>12>1, true, so shade the side containing it. On y<f(x)y<f(x), “below” means a smaller yy-coordinate at the same xx; a downward-opening parabola does not reverse that meaning.

Watch out

A point on the boundary cannot choose the side: it gives equality. If the origin lies on the boundary, choose another easy point such as (0,1)(0,1) or (1,0)(1,0).

Choose both the line style and the region.

Linear regions

Several simultaneous inequalities select the overlap of their individual regions.

The word and matters: a point must satisfy every condition. Draw all boundaries first, decide their styles, then test the side of each. A point in the final region survives every test.

Worked example 3: a bounded linear region

Question. Describe the region satisfying x≥0x\ge0, y≥0y\ge0 and x+y≤4x+y\le4, giving its vertices.

Plan. Work in the first quadrant and keep the side of x+y=4x+y=4 containing the origin.

The line meets the axes where

x=0  ⟹  y=4,y=0  ⟹  x=4.x=0\implies y=4,\qquad y=0\implies x=4.

At (0,0)(0,0), x+y=0≤4x+y=0\le4, so keep the side below this line. The axis conditions remove negative coordinates.

Answer. The filled triangle with vertices (0,0)(0,0), (4,0)(4,0) and (0,4)(0,4). All three edges are solid and included.

Check. The interior point (1,1)(1,1) satisfies 1≥01\ge0, 1≥01\ge0 and 1+1≤41+1\le4. The point (3,3)(3,3) fails only the final condition, so it is outside.

Here the shaded solution is the common part of three half-planes.

[DIAGRAM: asset_name: Overlap of three linear inequalities; asset_slug: linear-overlap; caption: Every shaded point satisfies all three inequalities.; description: First-quadrant triangle under x plus y equals four, with all three solid edges and vertices zero comma zero, four comma zero and zero comma four labelled.]
Every shaded point satisfies all three inequalities.

Change only the last inequality's direction. The axes stay fixed, but the region is no longer bounded.

Worked example 4: an unbounded linear region

Question. Describe x≥0x\ge0, y≥0y\ge0 and x+y≥4x+y\ge4.

Plan. Keep the first quadrant, then select the other side of the same line.

The boundary is still x+y=4x+y=4, through (4,0)(4,0) and (0,4)(0,4). The origin fails 0≥40\ge4, whereas (3,3)(3,3) satisfies 6≥46\ge4.

Answer. The first-quadrant region on or above x+y=4x+y=4, extending without bound. Its boundary includes the line segment from (0,4)(0,4) to (4,0)(4,0), the vertical ray x=0, y≥4x=0,\ y\ge4, and the horizontal ray y=0, x≥4y=0,\ x\ge4; all are solid.

Check. (10,0)(10,0) is allowed and (0,0)(0,0) is not. The region therefore cannot be the small triangle from the previous example.

In a sketch, extend unbounded regions towards the edge of your axes rather than inventing a closing boundary.

Watch out

Satisfying one inequality is insufficient. The point (−1,1)(-1,1) satisfies x+y≤4x+y\le4 but fails x≥0x\ge0, so it cannot belong to the triangle.

Locate vertices by intersecting actual boundary equations.

Quadratic regions and intersections

A curved boundary is handled in the same way: compare heights, then find where all the conditions can hold together.

For a region above a parabola and below a line, the parabola must itself be no higher than the line. Their intersection coordinates locate the ends of the region, rather than new vertical boundary lines.

Worked example 5: a region between a curve and a line

Question. Describe y≥x2y\ge x^2 and y≤x+2y\le x+2, including its boundary intersections.

Plan. Solve for the crossings, then keep the points between the two graphs.

x2=x+2  ⟹  (x−2)(x+1)=0  ⟹  x=−1,2.x^2=x+2\implies(x-2)(x+1)=0\implies x=-1,2.

Substituting into y=x+2y=x+2 gives (−1,1)(-1,1) and (2,4)(2,4). Between these horizontal coordinates, x2≤x+2x^2\le x+2.

Answer. The region −1≤x≤2-1\le x\le2, with x2≤y≤x+2x^2\le y\le x+2. Its lower edge is the parabola, its upper edge is the line, and both solid edges and intersection points are included.

Check. At x=0x=0, the allowed heights are 0≤y≤20\le y\le2. At x=3x=3, the conditions demand y≥9y\ge9 and y≤5y\le5, which cannot both hold.

This is the region posed in our opening question.

[DIAGRAM: asset_name: Region between a parabola and a line; asset_slug: quadratic-overlap; caption: The line is above the parabola only between their intersections.; description: The region above y equals x squared and below y equals x plus two is shaded between minus one and two, with both solid boundaries and the intersections minus one comma one and two comma four labelled.]
The line is above the parabola only between their intersections.

Change only the lower condition from y≥x2y\ge x^2 to y>x2y>x^2. Most of the region stays, but the curved edge disappears from the solution.

Worked example 6: a mixed strict boundary

Question. Describe y>x2y>x^2 and y≤x+2y\le x+2, including its boundary intersections.

Plan. Use the same crossing coordinates, then inspect which equalities are allowed.

For an allowed height to exist, we need

x2<x+2  ⟹  −1<x<2.x^2<x+2\implies-1<x<2.

At either crossing, the only height between the graphs would equal x2x^2, which is forbidden.

Answer. The region −1<x<2-1<x<2, with x2<y≤x+2x^2<y\le x+2. Draw the parabola dotted and the line solid. The crossing points (−1,1)(-1,1) and (2,4)(2,4) are excluded, even though the line itself allows equality.

Check. (0,1)(0,1) satisfies both conditions; (0,0)(0,0) fails the strict lower condition. At (−1,1)(-1,1), 1>11>1 is false.

A boundary point must satisfy every inequality just like an interior point. A solid boundary from one condition cannot override a strict condition from another.

Key idea

Use equations to locate boundaries and intersections; use the original inequalities to decide what is included.

Apply the same comparison with a different line.

Quick Recap

  • Replace the inequality by equality to locate its boundary.
  • Solid includes equality; dotted excludes it.
  • Test a point off the boundary to choose the side, then intersect the allowed regions.
  • Solve boundary equations for crossings and check inclusion against every condition.

The opening region is −1≤x≤2-1\le x\le2, with x2≤y≤x+2x^2\le y\le x+2.