Quadratic Formula Calculator
Solve ax² + bx + c = 0 with the quadratic formula: exact roots, discriminant, vertex, graph and steps.
Solve linear, compound, absolute-value, quadratic and rational inequalities in x, with every step shown free.
Solution
The inequality holds for x in (−2, 8), that is, −2 < x < 8.
Graph each side in the graphing calculator: the solution is every x where the graphs compare the way the inequality says.
| Part or case | Where | Inequality on this piece | Solution on this piece |
|---|---|---|---|
| Case 1 | x ≥ 3 | x − 8 < 0 | [3, 8) |
| Case 2 | x < 3 | −x − 2 < 0 | (−2, 3) |
Solve: |x − 3| < 5
An absolute value changes form where its inside is zero, here at x = 3. Where the inside is positive or zero |A| = A, and where it is negative |A| = −A. Solve each case on its own piece of the number line, then combine the cases.
Case 1: x ≥ 3
Here |x − 3| = x − 3, so the comparison becomes x − 8 < 0. Move the constant across: x < 8. Keeping only x ≥ 3 gives [3, 8).
Case 2: x < 3
Here |x − 3| = −(x − 3), so the comparison becomes −x − 2 < 0. Isolate x: −x < 2. Divide both sides by −1, a negative number, so the inequality sign flips: x > −2. Keeping only x < 3 gives (−2, 3).
Combine the cases
Union of the cases: (−2, 8).
Write the solution
Type something like or . You get the answer in interval and set-builder notation, the working, and a number line.
2x + 3 > 5 - x or x^3 - 4x >= 0. Both sides may contain x.-3 < 2x + 1 <= 5, or join two parts with "and" or "or", as in x < -1 or x > 4.|2x + 1| >= 7 or abs(x + 2) < 3.(x + 1)/(x - 2) are allowed, and values that make a denominator zero are excluded automatically. Use ^ for powers. Functions such as sin, sqrt or ln of x are not supported.Flipping the sign
Plain-text formula: a < b and k < 0 ⇒ ka > kb
Adding or subtracting the same number, or multiplying or dividing by a positive number, keeps the direction of an inequality. Multiplying or dividing both sides by a negative number reverses it: from −2x ≥ 6, dividing by −2 gives x ≤ −3.
Absolute value inequalities
Plain-text formula: |A| < c ⇔ − c < A < c, |A| > c ⇔ A < −c or A > c (c > 0)
|A| is the distance of A from 0. "Less than c" keeps A between −c and c, which is one compound "and" inequality. "Greater than c" pushes A beyond either end, which gives two pieces joined by "or". The calculator uses the general form of the same idea: it splits at the zero of the inside and removes the bars on each side.
Sign chart method
Plain-text formula: f(x) = (N(x))/(D(x)) changes sign only where N(x) = 0 or D(x) = 0
A polynomial or rational function is continuous wherever it is defined, so it can only change sign at a zero or at a point where the denominator vanishes. Between those critical points the sign is constant, and one test value decides each interval.
Interval notation
Plain-text formula: (a, b) = {x∣a < x < b}, [a, b] = {x∣a ≤ x ≤ b}
A parenthesis means the endpoint is not included and a bracket means it is. Infinity always gets a parenthesis, and separate pieces are joined with ∪ (union).
The solution set is every x that makes the inequality true. With a strict sign (< or >) the boundary points are left out; with ≤ or ≥ they are included. Values that make a denominator zero are always left out, because the expression is undefined there.
For a compound inequality, "and" (or a chain such as −3 < 2x + 1 ≤ 5) keeps only the overlap of the parts, so the answer is usually one bounded interval. "Or" keeps everything that satisfies at least one part, so the answer often has two pieces joined by ∪.
Two outcomes deserve a closer look. No solution (∅) means nothing works, as with : a square is never negative. All real numbers means everything works, as with . A result such as means every number except 0.
Solve an inequality the same way as an equation, with one extra rule: flip the sign whenever you multiply or divide both sides by a negative number. Then write the answer as a set of x values, not a single number. The method depends on the type of inequality.
For a quadratic, polynomial or rational inequality, move everything to one side so it reads f(x) < 0 (or >, ≤, ≥), find where f is zero or undefined, and test one value in each interval between those points. The worked example below does this for a cubic.
| Type | Example | Method | Answer |
|---|---|---|---|
| Linear | −2x + 5 ≥ 11 | Subtract 5, then divide by −2 and flip the sign | x ≤ −3, or (−∞, −3] |
| Compound | −3 < 2x + 1 ≤ 5 | Subtract 1 from all three parts, then divide by 2 | −2 < x ≤ 2, or (−2, 2] |
| Absolute value, less than | |x − 3| < 5 | Rewrite as −5 < x − 3 < 5 | −2 < x < 8, or (−2, 8) |
| Absolute value, greater than | |2x + 1| ≥ 7 | Split into 2x + 1 ≤ −7 or 2x + 1 ≥ 7 | (−∞, −4] ∪ [3, ∞) |
| Quadratic | x² − 5x + 6 < 0 | Factor as (x − 2)(x − 3), then use a sign chart | (2, 3) |
| Rational | (x + 1)/(x − 2) ≤ 0 | Sign chart, leaving out x = 2 | [−1, 2) |
Adding or subtracting the same number on both sides never changes the direction: if a < b, then a + 5 < b + 5.
Multiplying or dividing by a positive number keeps the direction. Multiplying or dividing by a negative number reverses it: 3 < 4, but −3 > −4.
Never multiply both sides by an expression whose sign you do not know, such as x − 2. It is positive for some x and negative for others, so the sign would flip on only part of the number line. Move everything to one side and use a sign chart instead.
Find every x with x³ − 4x ≥ 0 and write the answer in interval notation.
Answer: The solution is , that is, −2 ≤ x ≤ 0 or x ≥ 2.
Type it as a chain, such as -3 < 2x + 1 <= 5, or join two parts with "and" or "or", such as x < -1 or x > 4. With "and" or a chain, the answer is the overlap of the parts. With "or", it is every x that satisfies at least one part.
It splits the number line where the expression inside the bars is zero. Where the inside is positive or zero, |A| = A; where it is negative, |A| = −A. It solves the inequality on each piece and combines the pieces. For the cases give (−2, 3) and [3, 8), so the solution is (−2, 8).
Only when you multiply or divide both sides by a negative number. For −2x + 5 ≥ 11, subtract 5 to get −2x ≥ 6, then divide by −2 and flip: x ≤ −3. Adding or subtracting never flips the sign.
Use a bracket [ ] when the endpoint satisfies the inequality, which happens with ≤ or ≥. Use a parenthesis ( ) for strict inequalities, for excluded values and always next to ∞.
At that value the expression is undefined, so it cannot be less than, greater than or equal to anything. For the solution is : −1 is included (the fraction is 0 there) but 2 is not.
It means no real number makes the inequality true. For example, has no solution because is at least 4 for every x. An absolute value can never be negative either, so has no solution.
Yes. The answer and every step are free, with no sign-up and no limit on how many inequalities you solve. The calculation runs in your browser.
To find where f(x) = 0 exactly, use the polynomial root finder for polynomials, or the quadratic equation calculator for degree 2. The step-by-step guide to quadratic inequalities walks through a sign chart by hand.
Solve ax² + bx + c = 0 with the quadratic formula: exact roots, discriminant, vertex, graph and steps.
Factor a polynomial completely, with each step labeled by method and a check by expanding.
All real and complex roots of a polynomial up to degree 10, with multiplicities, exact forms and steps.
Solve any equation in x: exact steps for linear and quadratic equations, numerical roots for the rest.
Plot functions, equations, inequalities, parametric and polar curves; find roots and intersections.
Free worked solutions for equations, systems, inequalities, factoring, derivatives, integrals, limits and matrices.
Learn more: For the sign-chart method step by step, read how to solve quadratic inequalities. Linear inequalities follow the rules for linear equations, with one sign flip.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?