The ∣f(x)∣ keeps the size of f(x) and drops its sign. From the graph of f you can sketch y=∣f(x)∣, y=f(∣x∣), y=f(x)1, y=[f(x)]2 and y=f(ax+b), using a few rules that move points. You then solve modulus equations and inequalities by splitting into cases, by squaring, or with your GDC.
You'll be able to
Sketch y=∣f(x)∣ and y=f(∣x∣) from the graph of f, with cusps, intercepts and asymptotes, and check them with graphing software.
Sketch y=f(x)1 and y=[f(x)]2 from the graph of f, showing how asymptotes and turning points move.
Map the graph of y=f(x) onto y=f(ax+b), in either order of transformations, and explore it with a dynamic graph.
Solve modulus equations and inequalities by cases, by squaring, or with a GDC, rejecting any false roots.
Before you start2 quick questions on what this builds on
Check yourself
The point (6,5) lies on the graph of y=f(x). Which point must lie on the graph of y=f(3x)?
The of a number is its size, without its sign. You write it with two vertical bars: ∣−5∣=5 and ∣5∣=5. On a number line, ∣x∣ is the distance from x to 0.
So ∣x∣ is never negative. The graph of y=∣x∣ is a V shape with its corner at the origin.
Now put a function inside. In y=∣f(x)∣ the modulus acts on the output. Where f(x)≥0 nothing changes. Where f(x)<0 the y-coordinate changes sign, so that part of the graph is reflected in the x-axis.
1. The x-intercepts are . Where the graph crossed the axis with a non-zero gradient (the usual case), it now bounces off it at a sharp point, a . Where the graph only touched the axis, or crossed it with zero gradient as y=x3 does at the origin, it stays smooth.
2. on a reflected part are reflected too. A horizontal asymptote y=−2 becomes y=2 on that side. An y=mx+c becomes y=−mx−c. Vertical asymptotes stay where they are.
3. No part of the graph is below the x-axis, so the has no negative values.
In y=f(∣x∣) the modulus acts on the input instead. For x≥0, ∣x∣=x, so the graph is the same as y=f(x). For x<0, f(∣x∣)=f(−x), which is the right-hand half mirrored.
The y-intercept is invariant, and there is often a cusp on the y-axis. Anything only to the left of the y-axis disappears, including the x-intercepts and vertical asymptotes there.
Left: y=∣f(x)∣ reflects the dip below the axis. Right: y=f(∣x∣) mirrors the right-hand half. Here f(x)=x2−2x−3.
Worked exampleLet f(x)=x2−2x−3. Sketch the graph of y=∣f(x)∣ and write down the coordinates of its local maximum.
Try it first, then reveal one step at a time.
Factorise: f(x)=(x+1)(x−3). The x-intercepts are −1 and 3, and the y-intercept is −3.
The vertex is halfway between the roots, at x=1: f(1)=1−2−3=−4. So y=f(x) is below the x-axis for −1<x<3, with lowest point (1,−4).
Reflect that part in the x-axis. The lowest point (1,−4) becomes a highest point (1,4), and the y-intercept becomes 3.
Outside −1≤x≤3 the graph is unchanged. At x=−1 and x=3 draw sharp cusps on the axis, not rounded turns.
(1,4)
Worked exampleFor the same f, sketch y=f(∣x∣) and solve f(∣x∣)=0.
Try it first, then reveal one step at a time.
For x≥0 keep y=f(x): it starts at (0,−3), falls to (1,−4), then rises through (3,0).
Delete the part with x<0. The root x=−1 goes with it.
Reflect the right-hand part in the y-axis. You get a W shape with lowest points (−1,−4) and (1,−4), and a cusp at (0,−3).
The roots are x=3 and its mirror image x=−3. Check: f(∣−3∣)=f(3)=0.
x=−3 or x=3
Check yourself
Let f(x)=x+21−3x. Which line is a horizontal asymptote of y=∣f(x)∣?
A rational function needs more care, because a vertical asymptote splits its graph into branches.
Worked exampleLet f(x)=x+23x−6, x=−2. Sketch y=f(∣x∣) and find its range.
Try it first, then reveal one step at a time.
Features of y=f(x): vertical asymptote x=−2, horizontal asymptote y=3, x-intercept 2 and y-intercept f(0)=−3.
Write f(x)=3−x+212. For x≥0, x+212 shrinks towards 0 as x grows. So the graph rises from (0,−3) through (2,0) towards y=3.
The asymptote x=−2 is to the left of the y-axis, so it is deleted. Reflect the right-hand part in the y-axis: y=f(∣x∣) has no vertical asymptote, and a cusp at (0,−3).
The lowest value is −3, at x=0. The graph gets closer and closer to 3 at both ends but never reaches it.
−3≤y<3
Check yourself
Let f(x)=(x−1)(x+2)(x−4). How many solutions does the equation f(∣x∣)=0 have?
Graphing software or your GDC checks a sketch like this quickly. Enter abs( around f(x), then around x, and compare each graph with y=f(x).
Reciprocal and squared graphs
Both y=f(x)1 and y=[f(x)]2 change each y-coordinate on its own, and the x-coordinates never move. So you build each graph one height at a time.
Start with the reciprocal, which you met for y=x1 in 2.8. If f(x)=4 then f(x)1=41, and if f(x)=101 then f(x)1=10. Large heights become small, and small heights become large.
1. The sign stays the same: y=f(x)1 is above the x-axis exactly where y=f(x) is.
2. Points with y=1 or y=−1 are .
3. Each root of f gives a vertical of y=f(x)1.
4. Where f(x)→±∞, f(x)1→0. At a vertical asymptote of f, the new graph reaches the x-axis, drawn with an open circle because f has no value there. If f(x)→±∞ as x→±∞, the x-axis becomes a horizontal asymptote.
5. A horizontal asymptote y=k with k=0 becomes y=k1.
f(x)=2x2−8x+6 (dashed) and y=f(x)1. The roots 1 and 3 become asymptotes, and the minimum (2,−2) becomes the maximum (2,−21).
Worked exampleLet f(x)=2x2−8x+6. Sketch y=f(x)1 and write down the coordinates of its local maximum.
Try it first, then reveal one step at a time.
Factorise: f(x)=2(x−1)(x−3). Rule 3: the roots give the vertical asymptotes x=1 and x=3.
The vertex of f is at x=2: f(2)=8−16+6=−2. So (2,−2) is a local minimum of f.
It becomes a local maximum of y=f(x)1, at (2,−21)=(2,−21).
Between the asymptotes f(x)<0, so the middle branch is below the axis. It falls towards −∞ next to each asymptote.
Outside them f(x)>0 and f(x)→∞, so the outer branches are above the axis and approach y=0. The y-intercept is f(0)1=61.
(2,−21)
Worked exampleLet f(x)=x−34x−2, x=3. Sketch y=f(x)1 and find the equations of its asymptotes.
Try it first, then reveal one step at a time.
Features of y=f(x): vertical asymptote x=3, horizontal asymptote y=4, root x=21 and y-intercept 32.
Rule 3: the root x=21 gives a vertical asymptote of y=f(x)1.
Rule 5: the horizontal asymptote y=4 becomes y=41.
Rule 4: near x=3, f(x)→±∞, so f(x)1→0. That is not an asymptote: the graph reaches (3,0), drawn as an open circle.
The y-intercept is 1÷32=23. Check: for x=3, f(x)1=4x−2x−3, which has exactly these asymptotes.
x=21,y=41
Check yourself
Let f(x)=x2−6x+13. The graph of y=f(x)1 has a local maximum. Where is it?
Now the square. Squaring keeps 0 and 1, turns −1 into 1, and makes every height positive or zero. Heights further than 1 from the axis move further away, and heights closer than 1 move closer.
1. The graph of y=[f(x)]2 is never below the x-axis.
2. Each root of f stays a root, and the graph touches the axis there smoothly: a local minimum, not a .
3. A turning point (a,b) of f stays a turning point, at (a,b2). If b<0, a minimum becomes a maximum and a maximum becomes a minimum. By the chain rule, dxd[f(x)]2=2f(x)f′(x), which is zero where f(x)=0 or f′(x)=0.
4. Vertical asymptotes stay, with both sides going to +∞. A horizontal asymptote y=k becomes y=k2.
Compare y=∣f(x)∣. Neither graph goes below the axis, but ∣f(x)∣ usually has a cusp where f crosses the axis, while [f(x)]2 is smooth there.
Worked exampleLet f(x)=x2−4. Sketch y=[f(x)]2 and write down the coordinates of its local maximum.
Try it first, then reveal one step at a time.
f(x)=(x−2)(x+2) has roots ±2 and a local minimum at (0,−4).
Rule 2: the roots give local minima (−2,0) and (2,0), where the graph touches the axis smoothly.
Rule 3: the minimum (0,−4) has b=−4<0, so it becomes a local maximum at (0,(−4)2)=(0,16).
For ∣x∣>2, f(x) is positive and grows as ∣x∣ grows, so the squared graph rises steeply at both ends. The result is a W shape.
Check with the chain rule: dxd(x2−4)2=4x(x2−4), which is zero at x=0 and x=±2.
(0,16)
Check yourself
Let f(x)=x3−3x. How many turning points does the graph of y=[f(x)]2 have?
Two horizontal changes in one bracket
In 2.11 each bracket held one change, such as f(x+3) or f(2x). Now one bracket holds two, as in f(2x+3). Both are horizontal changes, so their order matters.
Ask which x gives the old input. A point (p,q) on y=f(x) moves to where ax+b=p, which is x=ap−b. The y-coordinate stays q.
Learn this
(p,q) on y=f(x)⟼(ap−b,q) on y=f(ax+b)
Subtract b, then divide by a. As transformations, that is a followed by a . You can also do the stretch first, as long as the translation changes to match.
If a<0, use the scale factor ∣a∣1 and add a in the y-axis. The point rule x=ap−b still works.
Worked exampleThe point (4,7) is a local maximum of y=f(x). Where is the matching local maximum of y=f(2x−6)?
Try it first, then reveal one step at a time.
The new graph takes the old input 4 where 2x−6=4.
Solve: 2x=10, so x=5. The height is unchanged, 7.
Check by translating first: 6 units right gives (10,7), then halving the x-coordinate gives (5,7).
Check by stretching first: halving gives (2,7), then a translation of 26=3 units right gives (5,7).
(5,7)
Worked exampleThe curve y=f(x) has a vertical asymptote x=4 and a local minimum (−2,−3). Let g(x)=f(21x+1). Describe a sequence of transformations that maps the graph of f onto the graph of g, and find the local minimum of y=g(x).
Try it first, then reveal one step at a time.
Here a=21 and b=1. Translate by (−10), then stretch horizontally with scale factor a1=2.
The other order also works: stretch horizontally with scale factor 2, then translate by (−20), since ab=2.
For the minimum, solve 21x+1=−2. So 21x=−3 and x=−6. The height stays −3.
The asymptote moves the same way: 21x+1=4 gives x=6. So y=g(x) has the vertical asymptote x=6.
(−6,−3)
A dynamic graphing tool lets you watch this happen. Below, choose base x2, then set the slider b to 2 and the slider c to −1.5. The widget writes y=(2(x+1.5))2, which is y=(2x+3)2, and the point (1,1) lands on (−1,1), as 21−3=−1 predicts.
Transform a graphDrag the sliders
(1, 1) maps to (1.00, 1.00)
Dashed is the base curve, solid is the image. The open dot on the base lands on the filled dot.
Check yourself
Which sequence maps the graph of y=f(x) onto the graph of y=f(3x−6)?
Check yourself
The only x-intercept of y=f(x) is at x=10. Find the x-intercept of y=f(4x+2).
Solving modulus equations and inequalities
∣A∣=k asks for the numbers at distance k from 0. When k>0 there are two, k and −k. That gives the first method.
Learn this
∣f(x)∣=k⟺f(x)=k or f(x)=−k(k≥0)
Worked exampleSolve ∣2x−5∣=7.
Try it first, then reveal one step at a time.
Split into two cases: 2x−5=7 or 2x−5=−7.
First case: 2x=12, so x=6.
Second case: 2x=−2, so x=−1.
Check: ∣12−5∣=7 and ∣−2−5∣=7.
x=−1 or x=6
Check yourself
Solve ∣3x+2∣=8.
When the other side holds x too, as in ∣f(x)∣=g(x), split into the same two cases. A is never negative, so a solution must also make g(x)≥0. Check every answer in the original equation.
Worked exampleSolve ∣x+1∣=2x−4.
Try it first, then reveal one step at a time.
Case 1: x+1=2x−4, so x=5.
Case 2: x+1=−(2x−4). So x+1=−2x+4, 3x=3 and x=1.
Check x=5: ∣6∣=6 and 2(5)−4=6. It works.
Check x=1: ∣2∣=2, but 2(1)−4=−2. A modulus can't equal a negative number, so reject x=1.
x=5
The V-shaped graph y equals the modulus of x plus 1, with its corner at minus 1, 0, and the line y equals 2x minus 4. They meet once, at 5, 6. A dashed line continues the left arm of the V, y equals minus x minus 1, below the x-axis. It meets the line at 1, minus 2, marked with an open circle, which is not on the V.(5, 6)(1, −2) not on the Vxyy = |x + 1|y = 2x − 4
The line meets the V once, at (5,6). The rejected value x=1 is where the line meets the dashed continuation of the left arm, which is not part of y=∣x+1∣.
When both sides are moduli, square both sides. Both sides are never negative, so squaring keeps an equation true and keeps an inequality the same way round.
Learn this
∣f(x)∣<∣g(x)∣⟺[f(x)]2<[g(x)]2
For a modulus compared with a positive number k, the distance idea is quicker. Numbers less than k from 0 lie between −k and k, and numbers more than k from 0 lie outside.
Learn this
∣f(x)∣<k⟺−k<f(x)<k∣f(x)∣>k⟺f(x)<−k or f(x)>k
Worked exampleSolve ∣x−3∣>∣2x+1∣.
Try it first, then reveal one step at a time.
Both sides are never negative, so square them: (x−3)2>(2x+1)2.
Expand: x2−6x+9>4x2+4x+1.
Move every term to the right: 0>3x2+10x−8. Factorise: (3x−2)(x+4)<0.
The parabola y=(3x−2)(x+4) opens upwards, so it is negative between its roots −4 and 32.
Check x=0 in the original: ∣−3∣=3 and ∣1∣=1, and 3>1 is true.
−4<x<32
Check yourself
Solve ∣2x−1∣≤5.
On Paper 2, use your GDC when algebra can't find the . Graph both sides, with the modulus, and find where they meet. This is the method of 2.15, with part of one graph reflected.
Worked exampleUse your calculator to solve ∣ex−4∣<x+1. Give the end points to 3 s.f.
Try it first, then reveal one step at a time.
Graph y=∣ex−4∣ and y=x+1. The first graph has a cusp where ex=4, at x=ln4=1.386….
Find the intersections: x=0.792059… and x=1.936847…. Zoom out: for large x the exponential grows far faster than the line, and for x≤−1 the line is not above the axis. So there are no more.
Between the intersections the line is above the modulus graph. Test x=1: ∣e−4∣=1.28…, which is less than 2.
Without the modulus, ex−4=x+1 also has the root x=−4.99…. There x+1<0, so it can't equal a modulus. Graphing the modulus keeps this false root out.
The inequality is strict, so the end points are excluded. Round them only now.
0.792<x<1.94
Check yourself
The solution of ∣lnx∣<3−x is a<x<b. Use your calculator to find a. Give your answer to 3 s.f.
Common mistakes
Rounding off the points where y=∣f(x)∣ meets the x-axis. Where f crossed the axis with a non-zero gradient (the usual case), the reflection makes a sharp cusp, so draw a clear corner.
Reflecting part of a graph but not its asymptote. If that part of y=f(x) approaches y=2x−1 below the axis, then y=∣f(x)∣ approaches y=−2x+1 there.
For y=f(∣x∣), mirroring the left half instead of the right, or keeping an asymptote that was left of the y-axis. Keep the right half and copy it onto the left.
Putting a vertical asymptote on y=f(x)1 where f has one. There f(x)1→0, so the graph reaches the x-axis at an open circle.
Giving the scale factor of f(2x+3) as 2, or translating by 3 after stretching first. The scale factor is 21, and after the stretch the translation is 23 units.
Dividing both sides of ∣f(x)∣≤[f(x)]2 by ∣f(x)∣. You get ∣f(x)∣≥1 and lose the roots of f, where both sides are 0. Deal with f(x)=0 separately before you divide.
Exam tips
“Sketch” a transformed graph: label the new intercepts, turning points and asymptote equations, mark any cusps clearly, and stop at the ends of a given domain.
For ∣f(x)∣=g(x), show both cases, then check each value in the original. Reject any value that makes g(x) negative, and say why.
“Hence” after a sketch means read the answer from that sketch: count where a horizontal line meets the graph, or read where one graph is above the other.
On Paper 2, write down the functions you graph and the unrounded intersections. Give the end points to 3 s.f. only at the end.
Key takeaways
Learn this(p,q) on y=f(x)⟼(ap−b,q) on y=f(ax+b)
Learn this∣f(x)∣=k⟺f(x)=k or f(x)=−k(k≥0)
Learn this∣f(x)∣<∣g(x)∣⟺[f(x)]2<[g(x)]2
Learn this∣f(x)∣<k⟺−k<f(x)<k∣f(x)∣>k⟺f(x)<−k or f(x)>k
Learn thisy=∣f(x)∣: reflect the parts below the x-axis in the x-axis. Where f crossed the axis there is usually a cusp.
Learn thisy=f(∣x∣): delete the left half, then reflect the right half in the y-axis. The graph is even.
Learn thisy=f(x)1: roots become vertical asymptotes, points at height ±1 stay, and (a,b) moves to (a,b1) with maximum and minimum swapped.
Learn thisy=[f(x)]2: never negative. Roots become smooth minima on the axis, and (a,b) moves to (a,b2).
Learn thisy=f(ax+b), a>0: translate by (−b0), then stretch horizontally with scale factor a1.
Learn thisModuli on both sides: square both sides. A modulus against x: split into cases, then check each answer.
Practise this
6 past-paper questions on 2.16 in the AA HL bank, each with a mark scheme and a worked explanation.