Calculators/Mathematics/Linear equations and inequalities

Linear equations and inequalities

ax + b ⋛ 0 · solution or interval

Linear equations and inequalities — illustration
x +0
Solution of the equation
x = 3

The equation ax + b = 0 has the solution x = −b/a. For an inequality we divide by a, but when a < 0 we reverse the direction of the inequality. For a = 0 the result depends only on b.

Solving first-degree equations and inequalities of the form ax+b □ 0ax+b\ \square\ 0. The equation ax+b=0ax+b=0 has the solution:

x=−ba(a≠0)x=-\frac{b}{a}\quad(a\neq0)

For an inequality we divide both sides by aa, but when a<0a<0 we must reverse the inequality sign — the most common mistake. The result is given as an interval.

Special case a=0a=0: the equation/inequality reduces to a condition on bb alone — it may always hold (an identity, x∈Rx\in\mathbb{R}) or be contradictory (no solutions). Choose the relation from the list.

Examples

2x − 6 = 0
→ x = 3
2x − 6 > 0
→ x ∈ (3, +∞)
−2x + 6 > 0
→ x ∈ (−∞, 3) — sign reversed, since a < 0

Frequently asked questions

When does the inequality sign get reversed?+

When you divide (or multiply) both sides by a negative number. For example, from −2x > 6, dividing by −2 gives x < −3 (the ">" sign becomes "<").

What if the coefficient a = 0?+

Only a condition on b remains. If it holds (e.g. 5 > 0) the inequality is true for every x; if not, there are no solutions.

Found this calculator useful? Share it.

It's free — send it to a friend who's revising.

Teaching? Embed this calculator on your site.

Free widget — paste it on your school site, blog or notes. It links to the full version.

Teaching a class or tutoring? Guide students in NexTutor →