Back to How to Solve

How to Solve Absolute Value and Quadratic Systems

Split the absolute value at its critical point, solve a quadratic on each side, and keep only the roots that land on their own side. For y = |x| and y = x² − 2 the critical point is x = 0, the two cases give x = −2 and x = 2 (the roots x = 1 and x = −1 are rejected), so the system has 2 solutions: (−2, 2) and (2, 2).

📐 Algebra〰️ Absolute value📊 Advanced

Count the solutions of an absolute value and quadratic system

Solve y = |ax + b| together with y = px² + qx + r. Enter whole numbers, decimals, or fractions like 1/2.

Solution count

2

y = |x| and y = x² − 2

  • (−2, 2)
  • (2, 2)

Critical point

x = 0

x = 0 when x = 0. That is where |x| switches pieces.

Case 1

When x ≤ 0, that is x ≤ 0:

−(x) = x² − 2

x² + x − 2 = 0 (discriminant 9)

  • x = −2: valid, keep
  • x = 1: rejected (outside this side)

Case 2

When x ≥ 0, that is x ≥ 0:

x = x² − 2

x² − x − 2 = 0 (discriminant 9)

  • x = −1: rejected (outside this side)
  • x = 2: valid, keep
Explain the steps with AI →

The method: critical point, interval cases, solution count

The absolute value |ax + b| behaves like two different lines, joined at the critical point x = −b/a. So the system y = |ax + b|, y = px² + qx + r turns into two ordinary quadratic equations, each valid on only one side.

  1. 1. Find the critical point

    Set the expression inside the bars to zero. For |ax + b| the critical point is x = −b/a.

  2. 2. Write the two interval cases

    On the side where ax + b ≥ 0 replace |ax + b| with ax + b. On the other side replace it with −(ax + b).

  3. 3. Solve the quadratic on each side

    Set each piece equal to px² + qx + r, move everything to one side, and solve with factoring or the quadratic formula.

  4. 4. Reject extraneous roots

    Keep a root only if it lies in the interval where its case applies. A root exactly at the critical point is kept once.

  5. 5. Count the solutions

    Add up the distinct valid roots from both sides. The total is the number of intersection points, from 0 to 4.

The two quadratics, in general (a > 0):

  • Side where ax + b ≥ 0 (x ≥ −b/a): px² + (q − a)x + (r − b) = 0
  • Side where ax + b ≤ 0 (x ≤ −b/a): px² + (q + a)x + (r + b) = 0

If a is negative the two sides swap. If a = 0, solve px² + qx + r = |b| directly. Each quadratic has at most 2 roots, so the system never has more than 4 solutions. If a discriminant is not a perfect square, keep the answer as an exact radical, such as (−1 − √17)/2.

Worked examples

Example 1: y = |x| and y = x² − 2 (2 solutions)

  • Critical point: x = 0.
  • Left (x ≤ 0): −x = x² − 2, so x² + x − 2 = 0, which factors as (x + 2)(x − 1) = 0. x = −2 is valid. x = 1 is rejected because 1 > 0.
  • Right (x ≥ 0): x = x² − 2, so x² − x − 2 = 0, which factors as (x − 2)(x + 1) = 0. x = 2 is valid. x = −1 is rejected because −1 < 0.
  • Check: |−2| = 2 and (−2)² − 2 = 2. |2| = 2 and 2² − 2 = 2.

2 solutions: (−2, 2) and (2, 2)

Example 2: y = |x| and y = x² (3 solutions)

  • Critical point: x = 0.
  • Left (x ≤ 0): −x = x², so x² + x = 0, so x(x + 1) = 0. Both x = 0 and x = −1 are ≤ 0, so both are valid.
  • Right (x ≥ 0): x = x², so x² − x = 0, so x(x − 1) = 0. Both x = 0 and x = 1 are ≥ 0, so both are valid.
  • The root x = 0 appears in both cases but is the same point, so it counts once: 2 + 2 − 1 = 3 solutions.

3 solutions: (−1, 1), (0, 0), and (1, 1)

Example 3: y = |x| and y = x² + 1 (no solution)

  • Left (x ≤ 0): −x = x² + 1, so x² + x + 1 = 0. The discriminant is 1² − 4(1)(1) = −3, which is negative.
  • Right (x ≥ 0): x = x² + 1, so x² − x + 1 = 0. The discriminant is (−1)² − 4(1)(1) = −3, also negative.
  • Neither case has a real root, so there is no solution. The parabola stays above the V everywhere.

0 solutions: the graphs never meet

Example 4: y = |x − 1| and y = x² − 3 (rejecting roots)

  • Critical point: x − 1 = 0, so x = 1.
  • Left (x ≤ 1): −(x − 1) = x² − 3, so x² + x − 4 = 0. The discriminant is 1 + 16 = 17, so x = (−1 ± √17)/2, which is about 1.56 or −2.56. Only (−1 − √17)/2 ≈ −2.56 is ≤ 1. The root ≈ 1.56 is rejected.
  • Right (x ≥ 1): x − 1 = x² − 3, so x² − x − 2 = 0, which factors as (x − 2)(x + 1) = 0. Only x = 2 is ≥ 1. The root x = −1 is rejected.
  • Total: 2 solutions. The y-values are (3 + √17)/2 ≈ 3.56 for the left point and y = 1 for the right point (2, 1).

2 solutions: x = (−1 − √17)/2 ≈ −2.56 and x = 2

Example 5: y = |3x| and y = x² + 2 (4 solutions)

  • Critical point: x = 0.
  • Left (x ≤ 0): −3x = x² + 2, so x² + 3x + 2 = 0, which factors as (x + 1)(x + 2) = 0. Both x = −1 and x = −2 are ≤ 0, so both are valid.
  • Right (x ≥ 0): 3x = x² + 2, so x² − 3x + 2 = 0, which factors as (x − 1)(x − 2) = 0. Both x = 1 and x = 2 are ≥ 0, so both are valid.
  • Nothing is rejected and no root sits on the critical point, so all 4 roots count.

4 solutions: (−2, 6), (−1, 3), (1, 3), (2, 6)

Decomposing an absolute value equation into interval cases

The same idea works for any equation with absolute values. Find every critical point, sort them, and treat each interval on its own. Inside one interval every expression between bars has a fixed sign, so the bars can be removed without guessing.

For simple forms like |x| = a and |ax + b| = c, start with how to solve absolute value equations. Use this page when a quadratic, a second absolute value, or a solution count is involved.

Example: |x + 1| + |x − 3| = 6

  • Critical points: x = −1 and x = 3. They make three intervals: x < −1, −1 ≤ x < 3, and x ≥ 3.
  • x < −1: −(x + 1) − (x − 3) = −2x + 2 = 6, so x = −2. It is < −1, so it is valid.
  • −1 ≤ x < 3: (x + 1) − (x − 3) = 4, and 4 ≠ 6, so there is no solution here.
  • x ≥ 3: (x + 1) + (x − 3) = 2x − 2 = 6, so x = 4. It is ≥ 3, so it is valid.
  • Check: |−2 + 1| + |−2 − 3| = 1 + 5 = 6 and |4 + 1| + |4 − 3| = 5 + 1 = 6. The solutions are x = −2 and x = 4.

For the quadratic itself, see the quadratic formula and quadratic equations step by step. For two curves that meet, the systems of equations guide covers the substitution idea.

Absolute value and quadratic systems FAQ

How many solutions can an absolute value and quadratic system have?

For y = |ax + b| with a ≠ 0, you solve one quadratic on each side of the critical point, and each quadratic has at most 2 roots, so the system has at most 4 solutions. You can get 0, 2, 3, or 4 (for example |x| = x² + 1 has 0, |x| = x² − 2 has 2, |x| = x² has 3, and |3x| = x² + 2 has 4). One solution shows up, for instance, when a = 0 and the parabola only touches the horizontal line y = |b|.

How do I find the critical point of an absolute value expression?

Set the expression inside the bars equal to zero and solve. For |ax + b| the critical point is x = −b/a. It splits the number line into two intervals: on one side ax + b ≥ 0, so |ax + b| = ax + b, and on the other ax + b ≤ 0, so |ax + b| = −(ax + b).

Why do I have to reject some roots?

Each interval case is only valid on its own side of the critical point. A root that lands on the other side came from the wrong version of the absolute value, so it does not satisfy the original equation. For |x − 1| = x² − 3, the left case gives (−1 ± √17)/2, but only (−1 − √17)/2 ≈ −2.56 is ≤ 1, so the other root (≈ 1.56) is extraneous.

If a root is exactly the critical point, do I count it twice?

No. A root at the critical point satisfies both interval cases, but it is one point on the graph, so it counts once. That is why |x| = x² has 3 solutions, (−1, 1), (0, 0), and (1, 1), even though each case produces 2 roots.

What changes if a is negative or a = 0?

If a is negative, the sides swap: ax + b ≥ 0 now means x ≤ −b/a, so check each root against the flipped interval. If a = 0, the absolute value is just the constant |b|, there is no critical point, and you solve px² + qx + r = |b| and count its real roots.

How do I decompose an equation with absolute values into interval cases?

Find every critical point (where an expression inside bars equals zero), sort them, and split the number line into intervals. On each interval decide the sign of every expression inside bars, remove the bars with the matching signs, solve, and keep only roots that lie in that interval. For |x + 1| + |x − 3| = 6 the critical points are −1 and 3, and the solutions are x = −2 and x = 4.

Related guides and tools