← Math — Semester A midterm

appeared in 8/10

Graph with absolute values and number of solutions

What it looks like on the exam

Sketch a graph like ∣∣x2+3x−4∣−2∣\big||x^2+3x-4|-2\big| step by step, then the question: for which kk does the line y=ky=k cut the graph in 4 points (or: how many solutions does the equation have).

📘 The lesson on this topic in the courseFunctions and graph transformations→

How to solve

“How many solutions does f(x)=kf(x)=k have” questions are solved with the graph, not algebra: the number of solutions equals the number of points where y=f(x)y=f(x) meets the horizontal line y=ky=k. So sketch ff once, then “slide” the line from bottom to top and count the crossings.

Graphs with absolute values are built in layers. Each layer is a simple operation on the previous graph:

  • ∣f(x)∣|f(x)| — the part below the xx axis is reflected above it.
  • f(x)−cf(x)-c — the whole graph moves down by cc.
  • f(∣x∣)f(|x|) — erase everything left of the yy axis and reflect the right side.

The method, step by step

  1. Start with the inner function (usually a parabola): vertex and zeros.

    Why: This is the skeleton to build on.

  2. Add layer after layer (absolute value, shift, another absolute value) and update the special points.

    Why: Each layer changes only part of the graph.

  3. Write the yy values of every special point (vertices, corners).

    Why: These are the critical values of kk.

  4. Go through the ranges between the critical values of kk, and count crossings in every range and at every critical value.

    Why: A boundary value is a separate case too.

  5. Answer the question: for which kk there are exactly nn solutions.

    Why: Usually the answer is an open interval or isolated values.

Cases you will meet

∣x2−4x∣=k|x^2-4x|=k

  • k<0k<0: no solution.
  • k=0k=0: two.
  • 0<k<40<k<4: four.
  • k=4k=4: three.
  • k>4k>4: two.

∣∣f∣−c∣=k||f|-c|=k

After shifting down, part of the graph is below the axis again — it is reflected and forms new “corners” at height 00 and “hills” of height cc.

f(∣x∣)=kf(|x|)=k

The graph is symmetric: every solution x>0x>0 also gives −x-x. A solution at x=0x=0 counts once.

How many solutions an equation with a parameter has

Move the parameter to one side: f(x)=kf(x)=k, and the same method.

Full topic in the course →
1

Fully worked example

Worked example

For which kk does ∣∣x2−4x∣−2∣=k\big||x^2-4x|-2\big|=k have exactly 66 solutions?

Solution

IdeaThree layers: a parabola, an absolute value, a shift and another absolute value; count crossings with y=ky=k.
  1. y=∣x2−4x∣y=|x^2-4x|: zeros at 00, 44; a hill of height 44 at x=2x=2.

    Why: The vertex (2,−4)(2,-4) is reflected to (2,4)(2,4).

  2. y=∣x2−4x∣−2y=|x^2-4x|-2: the zeros drop to −2-2, the hill to height 22.

    Why: A shift down by 22.

  3. Absolute value again: the corners at x=0,4x=0,4 rise to height 22, and new zeros appear; the hill stays at height 22.

    Why: The negative parts are reflected.

  4. The graph touches height 22 at three points (two corners and the hill) and drops to 00 at four points.

    Why: Critical values of kk: 00 and 22.

  5. For 0<k<20<k<2: eight crossings; k=2k=2: five; k>2k>2: two; k=0k=0: four.

    Why: Count in each range.

  6. There is no kk with exactly 66 solutions.

    Why: The number 66 is not in the list.

Checkk=1k=1: ∣x2−4x∣=3|x^2-4x|=3 (four solutions) or ∣x2−4x∣=1|x^2-4x|=1 (four) — eight together ✓.
Common mistakeCounting k=2k=2 as six — forgetting that each of the three touching points is one point.

Practice