CalculatorSignAll calculators

Absolute Value Equation with One Linear Expression Calculator

Solve an equation of the form absolute value of ax plus b equals c using integer coefficients and exact reduced fractions.

Absolute Value Equation with One Linear Expression Calculator

Result
—

Use this calculator on your site

Paste the full code, including the CalculatorSign credit, into a Custom HTML block on your site.

Preview widget

An absolute value equation can have two solutions because a positive distance can be reached from either direction. This calculator solves equations of the form absolute value of ax plus b equals c with integer coefficients. It handles the cases with two roots, one root, no real solution, or every real number as a solution. When a root is fractional, the displayed answer is reduced exactly.

Identify the full expression inside the bars

The first two inputs are the coefficient of x and the constant within the absolute value. Enter their written signs. In the equation absolute value of 3x minus 2 equals 7, use a equal to three, b equal to negative two, and c equal to seven. The right-hand input must represent a single number rather than another expression containing x. If the equation was written in another form, isolate the absolute value expression on one side before entering the parameters.

Absolute value reports a distance from zero and cannot be negative. If the right side is below zero, no real x satisfies the equation. If the right side is zero, the inner expression must equal zero. For a positive right side, the inner expression can equal either the positive value or its negative. That is where the two algebraic branches come from.

Worked equation with two exact solutions

Enter a equal to 3, b equal to negative 2, and c equal to 7. One branch sets 3x minus 2 equal to 7. Adding two to both sides gives 3x equal to 9, which gives x equal to 3. The other branch sets 3x minus 2 equal to negative 7. Adding two gives 3x equal to negative 5, so x equals negative five thirds. The worksheet displays them in increasing order.

Check the first answer by substituting three into the expression. Three times three minus two equals seven, and its absolute value is seven. Substituting negative five thirds makes the inner expression negative five minus two, or negative seven. The absolute value is again seven. Substitution lets you verify both branches independently and catch any sign mistake from moving the constant.

Understand the cases with zero coefficients or target

If a is nonzero and c is zero, the two branches meet at one root. The equation becomes ax plus b equal to zero, so x is negative b divided by a. For example, absolute value of 4x plus 2 equal to zero has the solution negative one half. In that case every x other than that root gives a positive absolute value.

When a is zero, the expression inside the bars is just the constant b. There is no x term to solve for. If the absolute value of b equals c, every real x satisfies the equation because x never affects either side. If those constant values differ, none does. The calculator checks that case before dividing by a so the response does not try to form a ratio with zero denominator.

Use reduced fractions and keep the sign consistent

For a nonzero a, the branch equations yield numerators of c minus b and negative c minus b divided by a. The calculator reduces each result by the common divisor and puts any minus sign on the numerator. Displaying the exact fraction preserves a result such as negative five thirds without rounding it to a decimal approximation. If the reduced denominator is one, the answer displays as an integer.

A negative coefficient of x reverses the order of values when dividing, so solving the plus branch does not necessarily give the larger root. The tool orders the resulting values numerically. If your next task asks where the absolute value lies below or above a threshold, an inequality requires more than the two equality points. The roots can be boundaries to investigate, but the intervals between or beyond them need their own checks.

A graph offers another check. The function follows two line segments meeting where its inner expression equals zero. A horizontal line at positive c meets the graph once on each side of that point when a is nonzero.

Frequently asked questions

Can I input an equation with absolute values on both sides?

This form solves one absolute value of a linear expression against a number. An equation with another expression on the right needs a different analysis.

Why are there two roots only when the target is positive?

Positive c has two numbers at that distance from zero, c and negative c. At zero those possibilities merge, and a negative target has no distance interpretation.

How can I check an answer shown as a fraction?

Substitute the fraction as x in the original inner expression and simplify before taking its absolute value. The result should equal the stated right side.

What happens if my constant b is negative?

Enter it with a minus sign. Solving each branch moves that signed constant to the other side, which is the same as subtracting b.