Understanding how to find the inequality of a graph is a fundamental skill in algebra that bridges the gap between visual representation and algebraic notation. Whether you are analyzing a shaded region on a coordinate plane or interpreting constraints in a linear programming problem, the ability to translate a visual boundary into a mathematical statement like $y > 2x + 1$ or $x \le 4$ is essential. This process involves identifying the boundary line, determining its equation, and analyzing the shading to select the correct inequality symbol Simple, but easy to overlook..
Identifying the Boundary Line
The first step in writing an inequality from a graph is to locate the boundary line. This line separates the coordinate plane into two distinct half-planes: the solution region (which is shaded) and the non-solution region (which remains unshaded). The boundary line itself corresponds to the equation you would get if you replaced the inequality symbol (${content}lt;, >, \le, \ge$) with an equals sign ($=$).
Look closely at the style of the line. * Dashed (or Dotted) Line: Indicates that the boundary is not part of the solution. Because of that, * Solid Line: Indicates that the boundary is part of the solution. The inequality symbol will be $\le$ (less than or equal to) or $\ge$ (greater than or equal to). Consider this: is it solid or dashed? Day to day, this visual cue dictates whether the points on the line are included in the solution set. The inequality symbol will be ${content}lt;$ (strictly less than) or ${content}gt;$ (strictly greater than) Worth knowing..
Ignoring this distinction is one of the most common errors students make. Always check the line style before writing your final answer.
Determining the Equation of the Line
Once the boundary is identified, you must find its equation in slope-intercept form ($y = mx + b$) or standard form ($Ax + By = C$). Slope-intercept form is generally easier for graphing inequalities because it isolates $y$, making the shading direction more intuitive Most people skip this — try not to..
To find the equation:
- And 2. Calculate the slope ($m$): Identify two clear points on the line (preferably with integer coordinates). Use the formula $m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}$. Find the y-intercept ($b$): Look where the line crosses the y-axis.
- Write the equation: Substitute $m$ and $b$ into $y = mx + b$.
Example: If a solid line crosses the y-axis at $(0, -2)$ and passes through $(2, 1)$, the slope is $\frac{1 - (-2)}{2 - 0} = \frac{3}{2}$. The equation of the boundary is $y = \frac{3}{2}x - 2$ That alone is useful..
If the line is vertical ($x = a$), the slope is undefined. The inequality will look like $x \le a$ or $x > a$. If the line is horizontal ($y = b$), the slope is zero, and the inequality will be $y \ge b$ or $y < b$.
Analyzing the Shaded Region
With the boundary equation established ($y = mx + b$), the next critical step is determining the inequality symbol (${content}lt;, >, \le, \ge$). The shaded area represents all coordinate pairs $(x, y)$ that satisfy the inequality That's the part that actually makes a difference. That's the whole idea..
There are two reliable methods to determine the correct symbol: the Test Point Method and the Slope-Intercept Shortcut Still holds up..
Method 1: The Test Point Method (Foolproof)
This method works for any line orientation (slanted, vertical, or horizontal).
- Pick a point not on the boundary line. The origin $(0,0)$ is the easiest choice, provided the line does not pass through it.
- Substitute the coordinates of the test point into the equation of the boundary line (treating it temporarily as an inequality with a placeholder symbol).
- Check if the statement is True or False.
- If True: The test point lies in the shaded region. The inequality symbol is the one that makes the statement true.
- If False: The test point lies in the unshaded region. The inequality symbol is the opposite of the one tested.
Example: Boundary line is $y = 2x + 1$ (dashed). Test point $(0,0)$. Test $y < 2x + 1 \rightarrow 0 < 2(0) + 1 \rightarrow 0 < 1$. This is True. Since $(0,0)$ makes the statement true, and assuming $(0,0)$ is in the shaded region, the inequality is $y < 2x + 1$. Crucial Check: Verify visually that $(0,0)$ is actually shaded. If the graph shows $(0,0)$ is unshaded, then the inequality is $y > 2x + 1$.
Method 2: The Slope-Intercept Shortcut (Fastest for Slanted Lines)
Only use this if the inequality is solved for $y$ (slope-intercept form) and the line is not vertical.
- Shaded ABOVE the line: The inequality is $y > mx + b$ or $y \ge mx + b$. (Think: $y$ values are greater higher up on the y-axis).
- Shaded BELOW the line: The inequality is $y < mx + b$ or $y \le mx + b$. (Think: $y$ values are less lower down on the y-axis).
Warning: This shortcut fails if the inequality is written in standard form ($Ax + By > C$) or if you haven't solved for $y$ yet. Always ensure $y$ is isolated with a positive coefficient before applying the "above/below" rule. If the coefficient of $y$ is negative (e.g., $-y > 2x$), the direction flips when you divide by $-1$.
Handling Vertical and Horizontal Lines
Special care is needed for lines parallel to the axes because the "above/below" language can be confusing Not complicated — just consistent. No workaround needed..
Vertical Lines ($x = a$)
The boundary is a vertical line crossing the x-axis at $a$.
- Shaded to the RIGHT: $x > a$ (or $x \ge a$ if solid). Values of $x$ increase as you move right.
- Shaded to the LEFT: $x < a$ (or $x \le a$ if solid). Values of $x$ decrease as you move left.
- Test Point Check: Use $(0,0)$ if $a \neq 0$. If the line is $x = 3$ and shading is left, test $(0,0)$: $0 < 3$ is True. Shading includes origin $\rightarrow x < 3$.
Horizontal Lines ($y = b$)
The boundary is a horizontal line crossing the y-axis at $b$ Easy to understand, harder to ignore. Which is the point..
- Shaded ABOVE: $y > b$ (or $y \ge b$ if solid).
- Shaded BELOW: $y < b$ (or $y \le b$ if solid).
- This aligns perfectly with the slope-intercept shortcut because the equation is already $y = b$.
Writing the Final Inequality
Combine the boundary equation with the correct symbol and line type.
Scenario A: Dashed line, equation $y = -\frac{1}{2}x + 4$, shaded below.
- Dashed $\rightarrow$ strict inequality (${content}lt;$ or $
Scenario A: Dashed line, equation $y = -\frac12 x + 4$, shaded below.
Because the boundary is dashed, the inequality must be strict. “Below” means the y‑values of the solution set are lower than the y‑values on the line, so we write
[ y ;<; -\frac12 x + 4 . ]
Scenario B: Solid line, equation $y = -\frac12 x + 4$, shaded above.
A solid boundary allows the inclusive symbol, and “above” indicates larger y‑values, giving
[ y ;>; -\frac12 x + 4 \quad\text{or}\quad y ;\ge; -\frac12 x + 4 . ]
Scenario C: Horizontal line $y = 3$, shaded below.
The boundary is already in slope‑intercept form with a zero slope, so the rule “below = $y$ less than” applies directly. Since the line is solid, we use a non‑strict symbol:
[ y ;<; 3 . ]
Scenario D: Vertical line $x = -2$, shaded left.
Here the boundary is vertical, so the inequality involves only $x$. “Left” means smaller x‑values, and a dashed line calls for a strict sign:
[ x ;<; -2 . ]
Putting it all together
- Identify the boundary type – dashed ⇒ strict (< or >); solid ⇒ inclusive (≤ or ≥).
- Determine the shaded side – above the line means “greater than”; below means “less than”. For vertical lines, “right” = greater $x$, “left” = smaller $x$; for horizontal lines, “above” = greater $y$, “below” = smaller $y$.
- Write the inequality using the appropriate symbol and the boundary equation.
- Verify (optional) by plugging a test point that lies clearly in the shaded region; the inequality should hold true for that point.
Following these steps guarantees that the final inequality accurately reflects the graph, regardless of whether the boundary is slanted, horizontal, or vertical, and whether it is drawn dashed or solid. This systematic approach eliminates guesswork and ensures the correct mathematical representation of the depicted region Not complicated — just consistent..