James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 2: Functions › Further graphs

Further graphs: |f(x)|, f(|x|), 1/f(x), [f(x)]²

How to sketch y=|f(x)|, y=f(|x|), y=1f(x), [f(x)]2 and y=f(ax+b) directly from the graph of y=f(x), and what happens to roots, turning points and asymptotes.

AHL 2.16HL onlyPaper 1Paper 2≈ 75 min to work through
Before you start: transformations of graphs and rational functions. See Transformations of graphs and Rational functions.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Sketch y=|f(x)| from the graph of y=f(x)AHL 2.16
  • Sketch y=f(|x|) and explain why it is symmetric in the y-axisAHL 2.16
  • Sketch y=1f(x): asymptotes from roots, turning points, invariant pointsAHL 2.16
  • Sketch y=[f(x)]2AHL 2.16
  • Sketch y=f(ax+b) and track the image of a pointAHL 2.16

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Each of these graphs is built from y=f(x) by one simple rule applied to every point. Learn the rule, then apply it to the key features: roots, the y-intercept, turning points and asymptotes. In an exam the sketch is marked on exactly those features, so label them.

Throughout, we use the example f(x)=x2−4x+3=(x−1)(x−3), with roots 1 and 3, y-intercept 3 and minimum point (2,−1).

2.1 The graph of y = |f(x)|

y = |f(x)| Not in booklet: learn it

Keep the parts of y=f(x) on or above the x-axis. Reflect the parts below the x-axis in the x-axis. The graph is never below the axis.

Worked example 1Paper 1
Sketch y=|x2−4x+3|.
Below the axis between the roots: 1<x<3. Reflect this part.
Outside the roots the graph is unchanged.
The minimum (2,−1) becomes a maximum (2,1).
Roots 1 and 3 stay; the graph has sharp corners (cusps) there. y-intercept 3.
At a cusp the graph is not differentiable: draw a clear point, not a smooth curve.

2.2 The graph of y = f(|x|)

y = f(|x|) Not in booklet: learn it

For x≥0, f(|x|)=f(x), so keep the part of the graph with x≥0. Delete the part with x<0 and replace it by the reflection of the right-hand part in the y-axis. The result is always an even function.

Worked example 2Paper 1
Sketch y=f(|x|) for f(x)=x2−4x+3.
Right half: roots 1 and 3, minimum (2,−1), passes through (0,3).
Reflect in the y-axis: roots ±1,±3, minima (±2,−1).
(0,3) becomes a local maximum with a cusp.
In general f(|x|) has a corner at x=0 unless f′(0)=0.

Do not confuse the two: |f(x)| changes the y-values (it reflects vertically), f(|x|) changes the x-values (it reflects horizontally).

2.3 The graph of y = 1/f(x)

This is the hardest of the four, and the one most often examined. Work feature by feature:

On y=f(x)On y=1f(x)
root at x=avertical asymptote x=a
vertical asymptote x=aroot at x=a (a hole if f is undefined there, see below)
f(x)→±∞1f(x)→0: horizontal asymptote y=0
horizontal asymptote y=k≠0horizontal asymptote y=1k
maximum at (a,b), b≠0minimum at (a,1b)
minimum at (a,b), b≠0maximum at (a,1b)
f(x)=±1the same point (invariant)
f(x)>01f(x)>0: the sign never changes
Why do these rules work?

The sign is the same because 1y has the same sign as y. Large values become small and small values become large, so a root (where f is tiny) becomes an asymptote, and a maximum (largest value) becomes a minimum. Points where f=±1 are fixed because 11=1. By the chain rule, ddx1f=−f′(x)[f(x)]2, which is zero exactly where f′(x)=0: stationary points stay at the same x.

Worked example 3Paper 1
Sketch y=1x2−4x+3.
Roots 1 and 3 become vertical asymptotes x=1 and x=3.
f→∞ as x→±∞, so y=0 is a horizontal asymptote, approached from above.
Minimum (2,−1) becomes a maximum (2,−1): an invariant point, since f=−1.
Between the asymptotes the graph is negative, because f is negative there.
y-intercept 13.
Worked example 4Paper 1
f(x)=x+1x−2. Sketch y=1f(x).
1f(x)=x−2x+1
For a rational function you can simply turn it upside down.
Root of f at x=−1 becomes the vertical asymptote x=−1.
Asymptote of f at x=2 becomes the root x=2. Horizontal asymptote y=1 stays y=1.
y-intercept −2 (the reciprocal of f(0)=−12).

2.4 The graph of y = [f(x)]²

  • Never negative.
  • A root of f becomes a point where the graph touches the x-axis (a minimum).
  • Where |f(x)|>1 the graph gets steeper and further from the axis; where |f(x)|<1 it gets flatter and closer.
  • Points with f(x)=±1 map to height 1.
  • Stationary points of f stay stationary, and new ones appear at the roots of f, because ddx[f(x)]2=2f(x)f′(x).
Worked example 5Paper 1
Sketch y=(x2−4x+3)2.
Touches the axis at x=1 and x=3 (minima).
The minimum (2,−1) of f becomes a local maximum (2,1).
y-intercept 32=9. It grows like x4 for large |x|.
Compare with |f(x)|: same roots and same (2,1), but smooth at the roots and much steeper outside them.

2.5 The graph of y = f(ax + b)

y=f(ax+b) is a horizontal translation and a horizontal stretch. The safest method: a point (p,q) on y=f(x) moves to the x that solves ax+b=p, with the same y-value q.

Worked example 6Paper 1
The point (4,2) lies on y=f(x). Find the corresponding point on y=f(2x−2), and describe the transformation.
2x−2=4⇒x=3. The point is (3,2).
The y-value is unchanged.
f(2x−2)=f(2(x−1)): a horizontal stretch scale factor 12, then a translation of 1 to the right.
Or: translate by (20), then stretch horizontally by 12. Order matters, so state it.
Sketching checklist
  1. Mark the key features of y=f(x) lightly: roots, y-intercept, turning points, asymptotes.
  2. Apply the rule to each feature and write the new coordinates or equations.
  3. Join up with the correct shape: cusps for |f|, smooth touches for f2, curves approaching asymptotes for 1f.
  4. Label everything the question asks for, including asymptote equations.
On your TI-Nspire Calculator tricks →

On a Graphs page, enter f1(x) and then f2(x)=abs(f1(x)), f3(x)=f1(abs(x)), f4(x)=1/f1(x) or f5(x)=(f1(x))2 to check a sketch. The GDC can hide asymptotes or draw false vertical lines, so still use the rules.

3Explore it

The dashed curve is y=f(x). Choose a function and a transformation, and watch how roots, turning points and asymptotes change.

4Common mistakes & exam tips

Common mistakes

  • Confusing |f(x)| (reflect what is below the x-axis) with f(|x|) (reflect what is right of the y-axis).
  • Drawing |f(x)| smooth at the roots: it has sharp corners there.
  • For 1f(x), forgetting the horizontal asymptote y=0 when f→±∞.
  • Changing the sign in 1f(x): it always has the same sign as f(x).
  • For f(ax+b), moving points by +b instead of solving ax+b=p.

Exam tips

  • Always state the equations of asymptotes on the sketch, not just draw them.
  • For 1f(x), give the coordinates of the new turning points: they have the same x and reciprocal y.
  • "Hence" questions often follow: e.g. "hence solve |f(x)|>1". Use your sketch and the points where f(x)=±1.
  • Use a pencil sketch of y=f(x) first; examiners do not penalise construction lines.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
f(x)=2x−4. Write down the coordinates of the cusp on y=|f(x)| and its y-intercept.
Cusp (2,0), y-intercept 4.
FluencyP2
f(x)=(x−1)(x−5). State the roots of y=f(|x|).
±1,±5
FluencyP3
f(x)=x2−6x+5. State the asymptotes and the turning point of y=1f(x).
x=1, x=5, y=0. Maximum (3,−14) since f(3)=−4.
FluencyP4
(6,−3) lies on y=f(x). Find the image on y=f(3x+3).
3x+3=6⇒x=1: (1,−3).
Problem solvingP5
f(x)=2x+1x−3. Find the asymptotes of y=1f(x) and of y=|f(x)|.
1f=x−32x+1: x=−12, y=12. |f|: x=3, y=2.
Problem solvingP6
How many stationary points does y=(x3−3x)2 have?
2ff′=2(x3−3x)(3x2−3)=0: x=0,±3,±1. Five.

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[8 marks]

Let f(x)=x2−2x−3.

  • (a)Sketch the graph of y=|f(x)|, labelling the coordinates of any intercepts and of the local maximum.[3]
  • (b)Sketch the graph of y=1f(x), stating the equations of all asymptotes and the coordinates of any turning points and intercepts.[5]
(a)
correct shape, cusps at x=−1 and x=3A1
y-intercept (0,3)A1
local maximum (1,4)A1
(b)
vertical asymptotes x=−1, x=3A1
horizontal asymptote y=0A1
local maximum (1,−14)A1
y-intercept (0,−13)A1
correct shape in all three regionsA1
Question 2Paper 1[5 marks]

Let f(x)=2x−1x+1, x≠−1.

  • (a)Find the equations of the asymptotes of y=1f(x).[2]
  • (b)Sketch y=f(|x|), showing any asymptotes and intercepts.[3]
(a)
x=12A1
y=12A1
(b)
symmetric in the y-axisA1
horizontal asymptote y=2; no vertical asymptote (since |x|≠−1)A1
intercepts (±12,0), (0,−1)A1
Question 3Paper 2[5 marks]

Let f(x)=x3−3x and g(x)=[f(x)]2.

  • (a)Find the x-coordinates of all the stationary points of g.[3]
  • (b)Find the coordinates of the local maxima of g.[2]
(a)
g′(x)=2f(x)f′(x)=2(x3−3x)(3x2−3)M1
x=0, ±3A1
x=±1A1
(b)
(−1,4) and (1,4)A1A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2025 · TZ3 · Paper 1Q6Sketching y=|f(x)| with asymptotes★★
Nov 2022 · Paper 1Q11Sketching y=|f(x)|, then solving |f(x)|>1★★★
May 2024 · TZ1 · Paper 1Q9Sketching and interpreting y=f(|x|) for an odd function★★★
Nov 2025 · TZ3 · Paper 1Q5Sketching y=f(|x|) and y=|f(x)|, then |f(x)|≥(f(x))2★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake