Quadratic Functions with Absolute Value — Graphs and Number of Solutions

Quadratic Functions with Absolute Value — Graphs and Number of Solutions

In the article on absolute value functions a straight line turned into a V-shaped graph. Now we apply the same idea to a parabola. The absolute value can sit in two places, and each place changes the graph differently:

y = |x² − 4x + 3| — absolute value of the whole expression,

y = x² − 4|x| + 3 — absolute value only around x.

In every example we use the same parabola g(x) = x² − 4x + 3. Completing the square gives g(x) = (x − 2)² − 1: the vertex is (2, −1), the x-intercepts are (1, 0) and (3, 0), and the y-intercept is (0, 3).


Contents


Absolute value of the whole expression

For y = |g(x)| we first work out the value of the parabola and only then make it positive. Positive values stay, negative values change sign.

x01234
g(x)30−103
|g(x)|30103
Dashed parabola y = x² − 4x + 3 and the orange graph y = |x² − 4x + 3|: the part between x = 1 and x = 3 is reflected above the x-axis

On the graph this means: the part of the parabola below the x-axis is reflected upwards (in the x-axis). Between the roots 1 and 3 a small "arch" appears with its highest point at (2, 1). The graph of y = |g(x)| never goes below the x-axis.


Absolute value only around x

For y = x² − 4|x| + 3 things are different. For x ≥ 0 we have |x| = x, so the expression is the same as g(x). For a negative x we get the same value as for the opposite positive number: x = −1 and x = 1 both give 1 − 4 + 3 = 0.

x−4−3−2−101234
y30−1030−103
Graph of y = x² − 4|x| + 3: two equal

How to draw it: draw only the right half of the parabola (x ≥ 0) and mirror it in the y-axis. The left half of the original parabola is thrown away. The result is an even function — the graph is symmetric about the y-axis, with two minimum points (−2, −1) and (2, −1) and a peak at (0, 3).

💡 Careful: this graph can go below the x-axis. The absolute value is only around x, not around the whole result.


Number of solutions of f(x) = c

The solutions of f(x) = c are the x-coordinates of the points where the graph meets the horizontal line y = c. You only need to count them in the picture.

Graph of y = |x² − 4x + 3| with the lines y = 1 (three intersections) and y = 2 (two intersections)

Worked example 1

How many solutions does |x² − 4x + 3| = c have for different values of c?

cnumber of solutionswhy
c < 00the graph lies entirely on or above the x-axis
c = 02the points (1, 0) and (3, 0)
0 < c < 14the line cuts both outer branches and the arch
c = 13the line touches the arch at (2, 1)
c > 12the line cuts only the outer branches

For c = 1 we check by calculation: either x² − 4x + 3 = 1, so (x − 2)² = 2 and x = 2 ± √2, or x² − 4x + 3 = −1, so (x − 2)² = 0 and x = 2. Three solutions in total. ✓

Worked example 2

How many solutions does x² − 4|x| + 3 = c have?

cnumber of solutions
c < −10
c = −12 (x = −2 and x = 2)
−1 < c < 34
c = 33 (x = −4, x = 0 and x = 4)
c > 32

For c = 3: for x ≥ 0 we solve x² − 4x + 3 = 3, so x(x − 4) = 0 and x = 0 or x = 4. Mirroring adds x = −4. The point x = 0 lies on the y-axis, so it is not doubled. Three solutions in total. ✓


Telling four similar graphs apart

One parabola g(x) gives four different graphs:

equationwhat happens to the parabolahow to recognise it
y = g(x)nothingpart below the x-axis, not symmetric about the y-axis
y = |g(x)|the part below the x-axis is reflected upnever below the x-axis
y = g(|x|)the right half is mirrored to the leftsymmetric about the y-axis, can go below the x-axis
y = |g(|x|)|bothsymmetric about the y-axis and never below the x-axis

Common mistakes

  • Reflecting the whole graph. For |g(x)| only the part below the x-axis is reflected; the part above stays as it is.
  • Mirroring the left half. For g(|x|) the right half (x ≥ 0) is kept and the left half is thrown away.
  • Doubling a point on the y-axis. If a solution is x = 0, mirroring does not create a second one.
  • "A touch doesn't count." When the line y = c only touches the graph (the top of the arch), that is one solution.

Summary

  • y = |g(x)|: reflect the part of the graph below the x-axis upwards.
  • y = g(|x|): draw the right half (x ≥ 0) and mirror it in the y-axis.
  • Number of solutions of f(x) = c = number of intersections of the graph with the line y = c.
  • Watch the touching points (turning point, peak on the y-axis) — that is where the number of solutions changes.

Try it yourself

  1. How many solutions does |x² − 4x + 3| = 2 have?
  2. How many solutions does x² − 4|x| + 3 = 0 have? What are they?
  3. How many solutions does x² − 4|x| + 3 = −2 have?
Answers:
  1. Two. x² − 4x + 3 = 2 gives (x − 2)² = 3 and x = 2 ± √3. The equation x² − 4x + 3 = −2 gives (x − 2)² = −1, which has no solution.
  2. Four: x² − 4x + 3 = 0 for x ≥ 0 gives x = 1 and x = 3; mirroring adds x = −1 and x = −3.
  3. None. The smallest value of the function is −1 (at x = ±2), so the graph never reaches −2.

Practice

👉 Next article: Rational and Power Functions