Algebra • Linear Inequalities & Interval Analysis

Single-Variable Linear Inequality Grapher

Solve and graph single-variable linear inequalities on the 1D real number line. Step-by-step algebraic isolation, negative division sign flips, solid ● vs open ○ circles, and interval notation.

|
Last Updated: September 2026
|
Verified Accurate: Order Theory & Real Analysis
Algebra • Single-Variable Linear Inequality Solved & Graphed
Curriculum Presets: Click to load & graph
Format: ax + b [Sign] cx + d Supports variables on one or both sides
Simplified Solution
x ≤ 5
Algebraically Isolated Form
Interval Notation
(-∞, 5]
Half-Bounded Interval
Boundary Point
x = 5
Included (Solid Disc ●)
Set-Builder Notation
{ x ∈ ℝ | x ≤ 5 }
Formal Solution Set

Interactive 1D Real Number Line Graph

Slim Minimal Rays • Solid vs Open Circles
Feasible Solution Ray
Included Endpoint (Solid)
Excluded Endpoint (Open)

Step-by-Step Algebraic Isolation

Rigorous Proof Steps
Direct Answer & Overview
Verified Educational Guide

Single-Variable Linear Inequality Direct Overview

To solve and graph a single-variable linear inequality ax + b ≤ cx + d, collect variable terms on one side (a - c)x and constants on the other d - b. Divide by (a - c), remembering to reverse the inequality sign if dividing by a negative number. Graph the resulting ray on a 1D real number line using a solid disc ● for inclusive bounds (≤, ≥) or an open circle ○ for strict bounds (<, >).

Primary Mathematical Formula Universal Isolation and Order Reversal Principles
Standard Equation
ƒ(x)
Q.E.D.
ax+b≤cx+d  ⟺  (a−c)x≤d−b  ⟺  x≤d−ba−c(a−c>0)ax + b \le cx + d \iff (a - c)x \le d - b \iff x \le \frac{d - b}{a - c} \quad (a - c > 0)
Valid for all real coefficients where a ≠ c. If a = c, the inequality reduces to a constant identity or contradiction.
Exact Formula
Input Parameters
Required
1
Left-Side Expression (ax + b): Linear coefficient a and constant term b on the left.
2
Comparison Operator: Strict or non-strict inequality sign (≤, <, ≥, >).
3
Right-Side Expression (cx + d): Linear coefficient c and constant term d on the right.
Expected Outputs
Calculated
Simplified Inequality: The isolated one-step statement x ≤ k, x < k, x ≥ k, or x > k.
Interval Notation: Standard interval format (e.g. (-∞, 5] or [3, ∞)).
Set-Builder Notation: Formal solution set definition {x ∈ ℝ | ...}.
Critical Boundary Point: Exact real root x = (d - b) / (a - c).
1D Real Number Line Plot: Interactive visual with shaded solution ray and solid ● or open ○ circle.
Worked Numerical Example
Instant Verification
Solve and graph 2x - 3 ≤ 7 on a real number line.
→ Step 1: Add 3 to both sides to isolate the variable term: 2x ≤ 10. Step 2: Divide both sides by positive coefficient 2 (no sign flip required): x ≤ 5. Step 3: Write in interval notation: (-∞, 5]. Step 4: Graph with a solid disc at x = 5 and a shaded ray extending leftward to -∞.
x ≤ 5, Interval: (-∞, 5]

Mathematical Definition of Single-Variable Inequalities

A single-variable linear inequality is a mathematical statement establishing an order relation between two first-degree polynomial expressions in a single unknown real variable $x$. While a linear equation $ax + b = cx + d$ isolates a discrete solution point on the real number line $\mathbb{R}$, a linear inequality describes an infinite continuous continuum of values satisfying the order relation.

The four standard inequality comparison relations are:

Strict Less Than (<)
x < k
Open interval (-\infty, k)
Less Than or Equal (≤)
x ≤ k
Closed interval (-\infty, k]
Strict Greater Than (>)
x > k
Open interval (k, \infty)
Greater Than or Equal (≥)
x ≥ k
Closed interval [k, \infty)

For inequalities governed by distance thresholds and absolute value bounds, explore our specialized Absolute Value Inequality Grapher.

Fundamental Axioms & The Negative Inversion Rule

Solving inequalities relies on the ordered field axioms of the real numbers $\mathbb{R}$:

Addition / Subtraction Invariance

Adding or subtracting any real quantity $c \in \mathbb{R}$ preserves the inequality sign without change:

u \le v \iff u + c \le v + c, \qquad u - c \le v - c
Positive Multiplication / Division

Multiplying or dividing by a strictly positive scalar $c > 0$ preserves the direction of the inequality sign:

u \le v \implies c \cdot u \le c \cdot v, \qquad \frac{u}{c} \le \frac{v}{c} \quad (\forall c > 0)
Negative Multiplication / Division (Order Reversal)

Multiplying or dividing by a strictly negative scalar $c < 0$ strictly reverses the inequality sign:

u \le v \implies c \cdot u \ge c \cdot v, \qquad \frac{u}{c} \ge \frac{v}{c} \quad (\forall c < 0)

Universal Step-by-Step Algebraic Solving Pipeline

To solve any single-variable linear inequality in the general form $ax + b \le cx + d$:

  1. Collect Variable Terms:

    Subtract $cx$ from both sides: $(a - c)x + b \le d$.

  2. Collect Constant Terms:

    Subtract $b$ from both sides: $(a - c)x \le d - b$.

  3. Isolate $x$ (Apply Sign Flip if $(a - c) < 0$):

    Divide by the net coefficient $A = a - c$. If $A < 0$, flip the sign ($\le \to \ge$, $< \to >$).

    x \le \frac{d - b}{a - c} \quad (A > 0) \qquad \text{OR} \qquad x \ge \frac{d - b}{a - c} \quad (A < 0)
  4. Verify with a Test Point:

    Select a test value inside the proposed solution interval (such as $x = 0$) and substitute it into the original inequality to confirm truth.

Number Line Geometry: Rays, Intervals & Endpoints

The geometric representation on the 1D real number line translates algebraic inequalities into continuous graphical rays:

Solid Disc Indicator (●)

Used when the inequality includes an equality condition ($\le$ or $\ge$). The endpoint is an element of the solution set. Corresponding interval notation uses a square bracket $[ \dots ]$.

Open Circle Indicator (○)

Used for strict order relations ($<$ or $>$). The boundary point itself is excluded, although all values arbitrarily close to it satisfy the condition. Corresponding interval notation uses a round parenthesis $( \dots )$.

Identities, Contradictions & Degenerate Cases

When the variable coefficients cancel out ($a = c$), the expression becomes independent of $x$:

  • Universal Identity (All Real Numbers $\mathbb{R}$): If simplifying yields a true mathematical statement such as $3x + 5 > 3x + 2 \implies 5 > 2$, the inequality is an identity. Every real number $x \in \mathbb{R}$ satisfies the inequality. The solution is $(-\infty, \infty)$, and the entire real axis is shaded.
  • Contradiction (No Solution $\emptyset$): If simplifying yields a false mathematical statement such as $2x + 7 \le 2x - 1 \implies 7 \le -1$, the inequality is a contradiction. No real number can satisfy the statement. The solution set is the empty set $\emptyset$, and no points are shaded on the number line.

Graded Step-by-Step Numerical Examples

Example 1: Negative Division Sign Inversion

Solve and graph: $-3x + 4 > 19$.

1. Subtract 4 from both sides: $-3x > 19 - 4 \implies -3x > 15$.
2. Divide by $-3$: Since $-3 < 0$, reverse sign from $>$ to $<$: $x < \frac{15}{-3} \implies x < -5$.
3. Interval Notation: $(-\infty, -5)$.
4. Graph: Open circle at $x = -5$ with ray pointing to the left toward $-\infty$.
Example 2: Variables on Both Sides

Solve and graph: $7x - 2 \le 3x + 14$.

1. Subtract $3x$ from both sides: $4x - 2 \le 14$.
2. Add 2 to both sides: $4x \le 16$.
3. Divide by 4 ($4 > 0$, no sign flip): $x \le 4$.
4. Interval Notation: $(-\infty, 4]$.
5. Graph: Solid disc at $x = 4$ with ray extending leftward toward $-\infty$.

Real-World Applications in Optimization & Threshold Analysis

  • Business Break-Even and Profitability: Determining the minimum production volume $x$ required for revenue to exceed fixed and variable overhead: $R(x) \ge C(x) \implies p \cdot x \ge F + v \cdot x$. Solving yields $x \ge \frac{F}{p - v}$, the minimum unit threshold.
  • Structural Safety Factors & Load Limits: Civil engineering beam design requires applied bending moments not to exceed maximum allowable tensile strength: $\sigma_{\text{applied}}(x) \le \sigma_{\text{allowable}}$.
  • Electrical Current Limiting: Circuit breakers trip when load current exceeds safety ampacity: $I = P/V \le I_{\text{rated}}$. For linear equations converting boundary lines in two variables, check our General Form to Slope-Intercept Form Converter.

Common Pitfalls & Examination Mistakes

  • Forgetting to Reverse Signs on Negative Division: Dividing $-2x \le 6$ by $-2$ and writing $x \le -3$ is the single most common student error. Dividing by a negative number must flip the direction: $x \ge -3$.
  • Confusing Strict vs. Non-Strict Endpoint Symbols: Using a square bracket for strict inequalities (e.g. $[3, \infty)$ for $x > 3$) implies $x = 3$ is a solution, which violates $3 > 3$. Strict inequalities always take round parentheses.
  • Reversing Signs When Subtracting: The sign flips only during multiplication or division by a negative number. Subtracting a positive or negative number never flips the inequality sign.
Fact-Checked & Verified • Computational Accuracy Standards
Updated September 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

What is a single-variable linear inequality?
A single-variable linear inequality is an algebraic statement comparing two first-degree expressions containing only one variable (typically x), such as ax + b < cx + d. Unlike linear equations which yield discrete individual points, linear inequalities define infinite sets of continuous real numbers represented geometrically as rays or segments on a number line.
Why must you flip the inequality sign when multiplying or dividing by a negative number?
Multiplying or dividing by a negative number reverses the directional order of numbers on the Cartesian real axis. For example, 3 < 7 is true, but multiplying by -1 gives -3 > -7. Therefore, whenever you divide an inequality by a negative coefficient (such as -2x ≤ 8), the sign must flip: x ≥ -4.
What is the difference between open and closed circles on a number line graph?
A closed solid disc (●) represents an included boundary point used for non-strict inequalities (≤ and ≥), indicating that the boundary number itself is part of the solution set. An open circle (○) represents an excluded boundary point used for strict inequalities (< and >), indicating that values up to but not including the boundary number satisfy the inequality.
How do you express single-variable inequality solutions in interval notation?
For x ≤ k, write (-∞, k] (square bracket indicates inclusion). For x < k, write (-∞, k) (parenthesis indicates exclusion). For x ≥ k, write [k, ∞). For x > k, write (k, ∞). Infinity (±∞) always takes a round parenthesis because infinity is an unbounded direction, not a reachable number.
What happens when variable terms cancel out completely (e.g., 2x + 5 > 2x + 1)?
When subtracting cx leaves 0x, the inequality collapses to a numerical comparison: (1) If the resulting statement is true (e.g. 5 > 1), the inequality is an identity, and the solution is all real numbers (-∞, ∞). (2) If the statement is false (e.g. 5 < 1), the inequality is a contradiction, and the solution is the empty set (∅).
How does a single-variable inequality relate to two-variable linear inequalities?
A single-variable inequality like x ≤ 5 is graphed in 1D as a ray along the real line. In 2D, x ≤ 5 represents a vertical boundary line at x = 5 with the entire half-plane to the left shaded. For graphing absolute value inequalities, explore our companion Absolute Value Inequality Grapher.