This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 2.16 · HL only
The graphs of |f(x)|, f(|x|), 1/f(x), f(ax + b) and [f(x)]², and modulus equations and inequalities
Given the graph of y=f(x), how do you draw ∣f(x)∣, f(∣x∣), f(x)1, f(ax+b) and [f(x)]2 without plotting, and how do you solve equations and inequalities that contain a modulus?
What you will learn
HL Understand how the graphs of |f(x)| and f(|x|) are built from the graph of f.
HL Know how zeros, turning points and asymptotes change in the graphs of 1 ÷ f(x) and [f(x)]².
HL Understand f(ax + b) as a horizontal translation and stretch applied in the right order.
HL Know how to solve modulus equations and inequalities by cases, by squaring, by graph or with technology.
You must be able to
HL Sketch y = 1 ÷ f(x) from the graph of f, labelling asymptotes and turning points.
HL Sketch y = |f(x)| and y = f(|x|) from a given graph, with key points labelled.
HL Solve a modulus equation by cases, rejecting any false roots.
HL Solve a modulus inequality by squaring, by graph or on the GDC.
HL Sketch y = [f(x)]², showing touching points, squared turning points and new asymptotes.
HL Describe the transformations that map y = f(x) to y = f(ax + b) and find the image of a point.
In the exam. so far Paper 1 only, in parts of 1 to 6 marks, most often "sketch" (y=f(x)1, y=[f(x)]2, y=f(∣x∣), with asymptotes and key points labelled), then "find", "solve" and "state", often an inequality read off the graph just sketched. The guide's example ∣3xarccosx∣>1 needs technology, so belongs to Paper 2.
1The modulus function
The modulus (absolute value) of x is its size without its sign:
∣x∣=x when x≥0, and ∣x∣=−x when x<0
So ∣5∣=5 and ∣−5∣=−(−5)=5. Think of ∣x∣ as the distance from x to 0, and ∣x−a∣ as the distance from x to a.
Figure 1(a) shows y=∣x∣: the line y=x for x≥0, and its reflection y=−x for x<0. It is a V with its corner at the origin.
Figure 1 · y = |x| and y = |2x − 3|
Three facts get used constantly:
∣ab∣=∣a∣∣b∣ and ba=∣b∣∣a∣. But ∣a+b∣is not∣a∣+∣b∣ in general: ∣3+(−5)∣=2, while ∣3∣+∣−5∣=8.
∣x∣2=x2, and ∣x∣=x2. That is why squaring both sides of an equation between two moduli is safe.
∣x∣≥0 always, so an equation like ∣x−2∣=−3 has no solution.
Figure 1(b) shows y=∣2x−3∣. The line y=2x−3 is negative for x<1.5. Those outputs are made positive, so that piece of the line is reflected up in the x-axis. The corner of the V is at the zero of the inside, (1.5,0).
Taking the bars off
A modulus is two formulas glued at the zero of its inside. With several bars, list the zeros in order, split the number line there, and in each piece decide each bar's sign.
The graph is flat at −3. It climbs along y=2x+1, then is flat at 3. The pieces join at x=−2 and x=1.
2y=∣f(x)∣ and y=f(∣x∣)
These two look alike but do different things. Figure 2 shows both, for f(x)=x2−2x−3.
Figure 2 · y = |f(x)| and y = f(|x|), for f(x) = x² − 2x − 3
y=∣f(x)∣: the modulus acts on the output
Every point with f(x)≥0 stays where it is. Every point with f(x)<0 is reflected in the x-axis, (x,y)→(x,−y).
In Figure 2(a) the part of the parabola that was below the axis, between the zeros −1 and 3, is flipped up. The vertex (1,−4) becomes a maximum at (1,4).
The zeros stay where they are: points on the x-axis are invariant. There the graph usually has a sharp point, a cusp, which you draw as a corner, not a curve.
The whole graph lies on or above the x-axis, so its range is y≥0.
y=f(∣x∣): the modulus acts on the input
For x≥0, ∣x∣=x, so the graph is exactly the graph of f. For x<0, f(∣x∣)=f(−x), so the left half is the reflection of the right half in the y-axis.
In practice, rub out the left of the y-axis and reflect the right across.
Figure 2(b) shows the result. The minimum at (1,−4) is copied to (−1,−4), and the zero at 3 is copied to −3. The original zero at −1 has gone, because it was on the discarded left half.
f(∣x∣) is always an even function (2.14). Its graph is symmetric in the y-axis. Any point on the y-axis, such as the y-intercept (0,−3), is invariant.
∣f(x)∣reflects what is below the x-axis upwards.f(∣x∣)replaces the left half by the mirror image of the right half.
Worked example 1 · a cubic (Paper 1). For f(x)=x3−3x+2=(x−1)2(x+2), sketch y=∣f(x)∣ and y=f(∣x∣).
f has a zero at −2, a double zero at 1 (where it touches the axis), a local maximum (−1,4), a local minimum (1,0) and y-intercept (0,2). It is negative only for x<−2.
∣f∣: only the tail left of −2 flips up, leaving a cusp at (−2,0). Everything else, including (−1,4) and the touching point (1,0), is unchanged.
f(∣x∣): keep x≥0 and mirror it. The graph touches the axis at ±1. It has a sharp local maximum at (0,2), since the right half leaves (0,2) going down and so does its mirror image.
The maximum (−1,4) and the zero −2 were on the discarded half, so they are gone.
Domain and range
For ∣f(x)∣ the domain is unchanged and every output becomes non-negative. If f has range −5≤y≤2, then ∣f∣ has range 0≤y≤5.
For f(∣x∣), what the discarded half contributed to the range is lost. For f(x)=(x+3)2, the range is y≥0, reached at x=−3, on the discarded side. So f(∣x∣)=(∣x∣+3)2 has range y≥9, with a sharp minimum at (0,9).
3Modulus equations
Three shapes cover almost every question. Remember the definition: ∣A∣=B means A=B or A=−B, and B must not be negative.
∣f(x)∣=k, with k a positive number
Split: f(x)=k or f(x)=−k. For ∣x2−7∣=2: x2=9 or x2=5, so x=±3 or x=±5.
When the equation is quadratic in ∣x∣, treat ∣x∣ as the unknown, then undo it. x2−5∣x∣+6=0 gives ∣x∣=2 or 3, so x=±2 or ±3.
∣f(x)∣=g(x), with g a function. Split into f(x)=g(x) and f(x)=−g(x) and solve each. Then check every root in the original equation, since a root that makes g(x) negative is false.
Worked example 2 · one false root (Paper 1). Solve ∣x−2∣=3x+2.
case 1: x−2=3x+2,x=−2check: 3x+2=−4<0× rejectcase 2: x−2=−(3x+2),4x=0,x=0check: ∣−2∣=2=3(0)+2✓x=0
Worked example 3 · a quadratic inside (Paper 1). Solve ∣x2−9∣=2x+3, leaving exact answers.
case 1: x2−9=2x+3,x2−2x−12=0,x=1±13case 2: x2−9=−2x−3,x2+2x−6=0,x=−1±72x+3≥0needsx≥−1.5:1+13≈4.61✓,1−13≈−2.61×2x+3≥0needsx≥−1.5:−1+7≈1.65✓,−1−7≈−3.65×x=1+13orx=−1+7
Four candidates, two survivors. Testing g(x)≥0 is quicker than substituting back into a surd.
∣f(x)∣=∣g(x)∣.
Split into f=g or f=−g. Both sides are non-negative automatically, so no checking is needed.
Square both sides. This is safe here because ∣A∣2=A2.
Two moduli added. With ∣x−2∣+∣x+3∣, each bar changes its rule at its own zero, 2 and −3. Split the number line there. Drop the bars in each piece, as in section 1:
∣x−2∣+∣x+3∣=9x<−3:−(x−2)−(x+3)=−2x−1=9,x=−5✓(in the piece)−3≤x≤2:(2−x)+(x+3)=5=9,no solutionx>2:(x−2)+(x+3)=2x+1=9,x=4✓(in the piece)x=−5orx=4
Each answer must lie inside its own piece, the same check as rejecting a false root.
The left-hand side is a flat-bottomed V, so ∣x−2∣+∣x+3∣<9 is −5<x<4.
Graphically
Every modulus equation is also an intersection question (2.4). In Figure 3, ∣2x−3∣=x+1: the line meets the V once on each arm.
The left arm is y=−(2x−3)=3−2x, giving 3−2x=x+1, so x=32. The right arm gives 2x−3=x+1, so x=4.
The picture shows which arm each solution is on, so which case is real.
Figure 3 · |2x − 3| = x + 1 and |2x − 3| < x + 1
4Modulus inequalities
The distance rule. Since ∣x−a∣ is the distance from x to a:
∣x−a∣<b means a−b<x<a+b. ∣x−a∣>b means x<a−b or x>a+b.
"Within b of a" is one interval. "Further than b from a" is two.
Example: ∣5−2x∣<3 gives −3<5−2x<3, so −8<−2x<−2. Dividing by −2 reverses both signs: 1<x<4.
Example: ∣3x+1∣≥5 gives x≥34 or x≤−2.
∣f(x)∣ compared with g(x).
Graph. Solve the equation first, as in section 3, and read the inequality off the sketch. In Figure 3 the V is below the line between the two meeting points. So ∣2x−3∣<x+1 exactly when 32<x<4, with strict signs because the inequality is strict.
Cases. Split at the zero of the inside, solve each inequality, and keep only answers inside their own piece.
For ∣x+1∣<2x:
x≥−1:x+1<2x,x>1inside the piece, so keep x>1x<−1:−(x+1)<2x,x>−31outside the piece x<−1, so nothingx>1
∣f(x)∣ compared with ∣g(x)∣. Both sides are non-negative, so squaring keeps the direction of the inequality.
Squaring is safe only when both sides are non-negative. For ∣x+1∣<2x the right-hand side can be negative, so use the case method or the graph.
With technology. The guide's own example is ∣3xarccosx∣>1. No algebra solves 3xarccosx=1, so on Paper 2:
Note the domain: arccosx is defined only for −1≤x≤1.
Graph y=∣3xarccosx∣ and y=1 on that domain (Figure 4).
Intersect: x=−0.189, 0.254 and 0.937 (3 s.f.).
Read where the curve is above the line. On the left, the curve starts at (−1,3π) and falls to 1 at x=−0.189. On the right, it rises above 1 at 0.254 and falls back at 0.937.
Answer: −1≤x<−0.189 or 0.254<x<0.937. The end point −1 is included because it is in the domain and the curve is above 1 there.
Figure 4 · |3x arccos(x)| > 1, with technology
The dashed grey piece in Figure 4 is 3xarccosx before the modulus. It is negative for x<0; the modulus reflected it up. Without it, the left-hand piece of the answer would be missed.
5y=f(x)1
Replace each height y of the original graph by y1. Everything about the new graph follows from how y1 behaves.
On y=f(x)
On y=f(x)1
Why
a zero, f(a)=0
a vertical asymptote x=a
1 divided by something near 0 is huge
a vertical asymptote x=a
a zero (the graph approaches (a,0))
1 divided by something huge is near 0
f(x)→±∞ as x→±∞
horizontal asymptote y=0
the same reason
horizontal asymptote y=k, k=0
horizontal asymptote y=k1
the reciprocal of k
f(x)=1 or f(x)=−1
the same point: invariant
11=1 and −11=−1
positive / negative
positive / negative
the sign never changes
a maximum at (a,b), b=0
a minimum at (a,b1), and the other way round
bigger heights give smaller reciprocals
increasing (away from zeros)
decreasing
the same reason
The domain of f1 leaves out every zero of f. And f1 is never 0, so its graph can only approach the x-axis, never reach it.
Worked example 5 · f1 for our parabola (Paper 1). Sketch y=x2−2x−31.
Zeros of f at −1 and 3 give the vertical asymptotes x=−1 and x=3. f→+∞ at both ends, so the horizontal asymptote is y=0, approached from above.
The minimum of f at (1,−4) becomes a maximum at (1,−41).
The y-intercept of f is −3, so the y-intercept of f1 is (0,−31).
Where f=1, x=1±5; where f=−1, x=1±3. At those four points the two graphs meet.
Figure 5 draws it.
Outer branches. Outside the zeros f is positive, so both outer branches are above the axis, rising towards the asymptotes.
Middle branch. Between the zeros f is negative, so this branch is below the axis. It is an upside-down arch that peaks at (1,−41) and falls to −∞ at each asymptote.
For y=f1 reflect that middle branch upwards. 2.13 reaches the same graph as a rational function.
Figure 5 · y = 1 ÷ f(x) from y = f(x) = x² − 2x − 3
Worked example 6 · a horizontal asymptote. Let f(x)=x+12x−4, with asymptotes x=−1 and y=2 and zero at x=2. Then f1 has:
vertical asymptote x=2
a zero at (−1,0)
horizontal asymptote y=21
y-intercept (0,−41)
meeting points with f at (5,1) and (1,−1)
f is increasing on each branch, so f1 is decreasing on each.
6y=f(ax+b)
At SL you met y=f(x−a) and y=f(qx) separately. HL combines them. Both changes are inside the bracket, so both are horizontal. The order matters.
The safe way is to build the expression in two steps, replacing x each time:
Replace x by x+b: f(x) becomes f(x+b). This is a translation by the vector (−b,0), that is, b units left.
Replace x by ax: f(x+b) becomes f(ax+b). A horizontal stretch with scale factor a1.
Translate first, then stretch. Stretching first would give f(ax), and then replacing x by x+b gives f(a(x+b))=f(ax+ab), which is different.
The other order works if the translation is adjusted. Write f(ax+b)=f(a(x+ab)). That is a horizontal stretch with scale factor a1 followed by a translation by (−ab,0).
A single point moves by solving for the new x. The point (p,q) on y=f(x) goes to the point where ax+b=p, that is (ap−b,q). Heights and horizontal asymptotes never change.
Worked example 7. For f(x)=x2−2x−3, sketch y=f(2x+1).
Translate 1 left: y=f(x+1). The vertex (1,−4) goes to (0,−4). The zeros −1 and 3 go to −2 and 2.
Stretch horizontally with scale factor 21: y=f(2x+1). The vertex stays at (0,−4), since it is on the y-axis. The zeros halve to −1 and 1.
Figure 6 shows both steps. The point rule gives the same directly: the zero at 3 goes to 23−1=1, and the vertex at 1 goes to 21−1=0.
A check by algebra: f(2x+1)=(2x+1)2−2(2x+1)−3=4x2−4, with zeros ±1 and vertex (0,−4).
Figure 6 · y = f(2x + 1), built in two steps
Worked example 8 · a negative a. If y=f(x) has a maximum at (3,5), then y=f(1−2x) is f(−2x+1). Translate 1 left, stretch by scale factor 21and reflect in the y-axis.
Point rule: 1−2x=3 gives the maximum at (−1,5). Horizontal asymptotes do not move.
7y=[f(x)]2
Square every height. Consequences:
Nothing is negative. The whole graph lies on or above the x-axis.
Zeros stay zeros, and become touching points. Near a zero, f(x) is small and changes sign. Its square is smaller still and does not, so the graph touches the axis and turns, like a double root (2.12).
Heights ±1 go to 1, and 1 is the dividing line. Where ∣f(x)∣>1 the square is bigger than ∣f(x)∣; where ∣f(x)∣<1 it is smaller.
Invariant points only where f=0 or f=1. Only those heights equal their own square. Where f=−1 the square is 1, so that point moves up to height 1. The two graphs do not meet there (unlike f1, where f=−1 is fixed).
Turning points stay at the same x, with the height squared: (a,b) becomes (a,b2). Where b>0 the type stays. Where b<0 it swaps.
Example: a minimum of f below the axis, such as (1,−4), becomes a maximum of [f]2 at (1,16), because moving away from x=1 brings f closer to 0.
Asymptotes. A vertical asymptote x=a stays, with the graph going to +∞ on both sides. A horizontal asymptote y=k becomes y=k2.
If k>0 the side is kept. f→k from below gives [f]2→k2 from below, and from above gives from above.
If k<0 the sides swap. f→−2 from below means values like −2.1, whose squares like 4.41 are above 4. So [f]2→4 from above.
If k=0 then [f]2→0 from above, whichever side f came from.
Figure 7 shows [f(x)]2=(x2−2x−3)2. It touches at −1 and 3, humps to (1,16) in between, and has y-intercept (0,9). It rises steeply further out, beyond x=1±5, where the parabola is above 1.
Figure 7 · The square of f(x) = x² − 2x − 3
Do not confuse [f(x)]2 with f(x2) or ∣f(x)∣. Both touch the axis at zeros, but ∣f∣ has a corner there and [f]2 is smooth.
Practice questions
17 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.
Practice · 2.16 The graphs of |f(x)|, f(|x|), 1/f(x), f(ax + b) and [f(x)]², and modulus equations and inequalities