Absolute Value Equation Solver

JJ Ben-Joseph headshot JJ Ben-Joseph

Visualizing Absolute Value Equations and Inequalities

An absolute value equation solver is especially useful because absolute value describes distance rather than direction. You can manipulate symbols in |ax+b| correctly and still wonder why an equation may produce two values of x, one value, or none. The responsive canvas turns that distance relationship into a graph: it draws the V-shaped curve for |ax+b| and the horizontal comparison line y=c. As you edit an input, the vertex, slopes, line, and possible intersection points update immediately. This connects the two linear branches of an absolute value relation to the geometry that produces them.

With this absolute value graph, changing a changes the steepness of the V, while changing b moves its vertex horizontally. The value c sets the height of the horizontal line. The calculator marks equation solutions and shades x-regions for inequalities, so you can compare symbolic interval notation with the displayed number-line region. A live text summary below the canvas conveys the same result for screen reader users.

Mathematics of Solving |ax+b|

For this absolute value equation solver, the starting fact is that absolute value measures distance from zero. The function is defined piecewise as |x|={xifx0-xifx<0. To solve an equation such as |ax+b|=c, the expression inside the bars can equal either c or -c. Thus the calculator branches to ax+b=c and ax+b=-c, then solves those two linear equations.

Absolute value inequalities use the same distance idea but normally return intervals rather than isolated roots. For |ax+b|<c, acceptable x-values are within c|a| of the center -ba. Equivalently, solve the compound inequality -c<ax+b<c. A greater-than relation instead selects values outside that distance, producing two rays. The calculator orders the boundary values before displaying an interval, so negative coefficients are handled correctly.

FormEquivalent InequalitySolution Set when a>0
|ax+b|<c-c<ax+b<c(-c-ba,c-ba)
|ax+b|c-cax+bc[-c-ba,c-ba]
|ax+b|>cax+b>c or ax+b<-c(-∞,-c-ba)(c-ba,)
|ax+b|cax+bc or ax+b-c(-∞,-c-ba][c-ba,)

Special cases matter in absolute value equations. If c<0, an equation |ax+b|=c has no solution, because an absolute value is never negative. When c=0, the equation reduces to ax+b=0. For inequalities, a less-than or less-than-or-equal relation with negative c has no solution, while a greater-than or greater-than-or-equal relation with negative c is true for all real numbers. The solver reports these cases directly.

The graph supplies another way to check an absolute value result. The vertex of y=|ax+b| is (-ba,0). Its two arms have slopes -a and a. The line y=c intersects the V twice when c>0, touches it at the vertex when c=0, and lies below it when c<0. Those intersections correspond to the equality solutions shown by the calculator.

Worked Example: Resistor Tolerance as an Absolute Value Inequality

This absolute value inequality example describes a resistor that must remain within 0.8 ohms of a nominal 20 ohms. The tolerance rule is |x-20|0.8. Converting it to a compound inequality gives -0.8x-200.8. Adding twenty to every part gives the permitted interval [19.2,20.8]. In the calculator, enter a=1, b=-20, choose , and set c=0.8. The returned interval and the shaded graph both represent the allowed resistance values.

For this resistor tolerance inequality, reducing c to 0.3 narrows the accepted interval, while increasing c to 2 widens it. The graph makes this change visible as the horizontal comparison height changes and the shaded x-region contracts or expands. The same reasoning applies to any requirement expressed as a maximum deviation from a target.

Absolute Value Equation and Inequality Scenarios

These absolute value solver scenarios show how coefficients and relations change the type of solution set. Entering the values below verifies the algebra on the graph: equalities identify points, less-than relations select an interior interval, and greater-than-or-equal relations select the exterior including boundary points.

abcRelationSolution Set
103=x=3 or x=-3
2-46<(-1,5)
-124>=(-∞,-2][6,)

How to Interpret an Absolute Value Solution Graph

On this absolute value solver graph, the horizontal axis represents x, while the vertical axis displays the expression and the constant c. Blue lines form |ax+b|, and the red line marks y=c. Red dots show intersections for an equation. When an inequality is selected, translucent shading identifies the satisfying x-values: the interior region for less-than cases and the exterior regions for greater-than cases. The canvas redraws after input and window-size changes, and the live text summary repeats the graph's key result for assistive technology.

Limits of This Linear Absolute Value Solver

This absolute value equation solver handles a linear expression inside the bars. If the expression contains x2, multiple absolute value terms, or another nonlinear feature, its solution may require factoring, sign analysis, or numerical methods beyond this calculator. The calculator assumes real coefficients and real solutions. In measurement applications, entered values may be rounded, so an interval used for a safety-critical tolerance should be checked against the governing specification.

Absolute value models deviations from a reference value: a manufacturing tolerance, an error from a predicted measurement, or a target-temperature range are common examples. Use the solver to test the algebra, then inspect the V-shaped graph to confirm whether the answer should be points, an interval, two rays, all real numbers, or no solution. Combining the symbolic result with the distance interpretation gives a dependable way to reason about linear absolute value relations.

Equation parameters

Provide coefficients for |a·x + b| and choose the relationship to the constant. All values accept decimals and negative numbers.

Enter values and choose a relation.

Graph of the absolute value function and the horizontal line defined by the constant. The text below summarizes intersections for screen readers.

Mirror Drift Arcade

Steer the glowing point to the exact distance that solves |ax + b| = c. Hold the balance band as the vertex slides, the target radius pulses, and the line quietly flips its logic.

Target Distance--
Zone ModeEqual
Score0
Streak0.0s
Time Left90s

Tap or drag to move along the number line. Keyboard: ← → to glide, space to steady the drift. Stay in the luminous band to multiply your score.