← Math — Semester A final exam

appeared in 2/6

Graph with absolute value and a parameter

What it looks like on the exam

As in the midterm: sketch x2−3∣x−1∣−1x^2-3|x-1|-1 and the number of solutions depending on mm.

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

How to solve

A graph like y=x2−3∣x−1∣−1y=x^2-3|x-1|-1 is built by splitting into two cases by the sign of the expression inside the absolute value: x≥1x\ge1 and x<1x<1. On each side it is an ordinary parabola, and at the switch point x=1x=1 the two parts meet in a “corner”. After the sketch, “number of solutions depending on mm” is counting crossings with y=my=m.

  • x≥1x\ge1: y=x2−3x+2y=x^2-3x+2.
  • x<1x<1: y=x2+3x−4y=x^2+3x-4.

The method, step by step

  1. Find where the expression in the absolute value is zero and split into two cases.

    Why: On each side the expression is simple.

  2. On each side: a parabola; check whether the vertex lies on that side.

    Why: A vertex outside its side is not on the graph.

  3. Compute the graph's value at the switch point.

    Why: The corner.

  4. List the critical yy values (vertices on their sides, the corner).

    Why: Boundaries of the cases.

  5. Count crossings with y=my=m in every range and at every critical value.

    Why: The answer by mm.

Cases you will meet

A vertex outside its side

On the side x≥1x\ge1 of x2−3x+2x^2-3x+2 the vertex x=1.5x=1.5 is inside; on the side x<1x<1 of x2+3x−4x^2+3x-4 the vertex x=−1.5x=-1.5 is inside.

An outer absolute value

∣f(x)∣|f(x)|: reflect the negative parts after sketching.

A parameter inside the function

Move the parameter to one side: f(x)=mf(x)=m.

Full topic in the course →
1

Fully worked example

Worked example

How many solutions does x2−3∣x−1∣−1=mx^2-3|x-1|-1=m have, depending on mm?

Solution

IdeaTwo parabolas; vertices (−1.5,−6.25)(-1.5,-6.25) and (1.5,−0.25)(1.5,-0.25), corner (1,0)(1,0).
  1. x<1x<1: y=x2+3x−4y=x^2+3x-4, vertex (−1.5,−6.25)(-1.5,-6.25).

    Why: The vertex is on its side.

  2. x≥1x\ge1: y=x2−3x+2y=x^2-3x+2, vertex (1.5,−0.25)(1.5,-0.25); y(1)=0y(1)=0.

    Why: Corner at (1,0)(1,0).

  3. m<−6.25m<-6.25: none; m=−6.25m=-6.25: one; −6.25<m<−0.25-6.25<m<-0.25: two; m=−0.25m=-0.25: three; −0.25<m<0-0.25<m<0: four; m=0m=0: three; m>0m>0: two.

    Why: Count the crossings.

Checkm=−0.1m=-0.1: two solutions near x=1.5x=1.5 and two more on the left (x2+3x−3.9=0x^2+3x-3.9=0) — one of them x≈0.97<1x\approx0.97<1 ✓.
Common mistakeForgetting that the graph rises to 00 at the corner and missing the “four” case.

Practice