Graphs of y² = f(x), y = |f(x)| and y = f(|x|) from y = f(x) | Cambridge A Level Maths notes

Free preview: Graphs of y² = f(x), y = |f(x)| and y = f(|x|) from y = f(x)

y = |f(x)|: Reflecting What Is Below the Axis

9231 Paper 1: Further Pure Mathematics 1

Watch: 1-minute explainer

In the last few notes you sketched rational functions like f(x)=x−1x+2: asymptotes, intercepts and turning points. That took real work. Paper 1 also asks you to build three related graphs from that sketch: y=|f(x)|, y=f(|x|) and y2=f(x).

  • The good news: each one comes from a simple rule applied to the sketch you already have, so you never start again from scratch.
  • The skill is knowing which rule, and what happens to roots, asymptotes and turning points under it.

Our function for the whole note

All through this note we use f(x)=x−1x+2. Let's collect its key features once.

FeatureHow we find itResult
Vertical asymptoteDenominator zerox=−2
Horizontal asymptoteRatio of the x terms as x→±∞y=1
RootNumerator zerox=1
y-interceptf(0)−12
GradientQuotient rule: f′(x)=(x+2)−(x−1)(x+2)2f′(x)=3(x+2)2>0, so both branches are increasing.
  • Where is f negative? Between the asymptote and the root: −2<x<1. That matters for all three new graphs.
  • Also f(x)−1=−3x+2, so f is above 1 on the left branch (x<−2) and below 1 on the right (x>−2).

The rule for y = |f(x)|

  • The modulus |a| is the size of a number without its sign: |3|=3 and |−3|=3.
  • Where f(x)⩾0, |f(x)|=f(x), so that part of the graph stays.
  • Where f(x)<0, |f(x)|=−f(x), so that part is reflected in the x-axis.
  • The whole graph ends up on or above the x-axis. Roots of f become points where the graph just touches the axis, usually with a sharp corner (a cusp).
  • Vertical asymptotes do not move. A horizontal asymptote y=c with c<0 becomes y=−c; here y=1 stays.

The recipe

  1. Sketch y=f(x) lightly, with asymptotes dashed.
  2. Mark where the graph is below the x-axis.
  3. Reflect only those parts in the x-axis. Keep the rest exactly as it is.
  4. Label the reflected intercepts (a y-intercept of −a becomes +a) and draw the roots as sharp corners.

👀 Watch me do it: build y=|f(x)| for f(x)=x−1x+2

What I writeWhy I do it
f is negative for −2<x<1.Step 2: this is the only piece that will move.
Left branch (x<−2): above 1, unchanged.It was already above the axis.
Middle piece: was going from −∞ (next to x=−2) up to (1, 0). Reflected, it runs down from +∞, through (0,12), to (1, 0).Step 3: the y-intercept −12 becomes +12.
Right of x=1: unchanged, rising towards y=1.Already positive.
At (1, 0) there is a corner: the gradient jumps from −13 to +13.Step 4: f′(1)=39=13, and reflecting flips its sign.

The graph of y = |f(x)| for f(x) = (x − 1)/(x + 2), with y = f(x) dashed. The part between x = −2 and x = 1 that was below the x-axis is reflected up, so the curve passes through (0, ½) and touches the x-axis at (1, 0).

What the picture shows

  1. The graph of y=|f(x)| for f(x)=x−1x+2, with y=f(x) dashed.
  2. The part between x=−2 and x=1 that was below the x-axis is reflected up.
  3. So the curve passes through (0,12) and touches the x-axis at (1, 0).

📝 Here's the trap

  • Right: draw a sharp corner where the reflected piece meets the x-axis.
  • Wrong: a smooth U-shape through the root. The true graph has a corner there.

✏️ YOUR TURN 1

Try this first:

Let g(x)=x+4x−2. (a) Find the asymptotes, intercepts and the sign of g′(x). (b) Describe the graph of y=|g(x)|.

Answer:

  • (a) Asymptotes x=2 and y=1. Root x=−4; y-intercept g(0)=−2.
  • g′(x)=(x−2)−(x+4)(x−2)2=−6(x−2)2<0, so both branches decrease.
  • g is negative for −4<x<2 (between the root and the asymptote).
  • (b) Reflect that piece up: it rises from a corner at (−4, 0), through (0,2), to +∞ next to x=2. The left part (between 0 and 1, tending to 1) and the right branch (from +∞ down towards 1) are unchanged.

y = f(|x|): Keep the Right Half and Mirror It

Now the modulus is inside the function. That changes everything. Let's work out what f(|x|) does by trying a pair of values.

  • At x=3: f(|3|)=f(3). At x=−3: f(|−3|)=f(3) too.
  • So x=3 and x=−3 give the same height. The left side is a copy of the right side.

The rule

  • 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 half reflected in the y-axis.
  • So: delete everything left of the y-axis, then reflect the right half in the y-axis. The result is always symmetric about the y-axis (an even function).
  • Anything that was only on the left disappears. Here the asymptote x=−2 and the whole left branch are gone.

💡 In plain words

  • |f(x)|: the modulus is on the outside, so it acts on the y-values. Flip anything below the x-axis up.
  • f(|x|): the modulus is on the inside, so it acts on the x-values. Copy the right half onto the left.

👀 Watch me do it: build y=f(|x|) for f(x)=x−1x+2

What I writeWhy I do it
Right half (x⩾0): starts at (0,−12), crosses the x-axis at x=1 and climbs towards y=1.Read it from the sketch of f. The asymptote x=−2 is not in this half.
Delete everything with x<0.The left branch and x=−2 are thrown away.
Reflect the right half in the y-axis.Mirror image.
Roots x=±1; asymptote y=1 on both sides; minimum at (0,−12).Every feature of the right half now appears twice (except the point on the y-axis).
The minimum is a sharp point: the gradient there is ±34.f′(0)=34 on the right, and the mirror gives −34 on the left. They don't match, so there is a corner.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Rational functions and graphs (1.2)

  1. Sketching y = 1/f(x) and Linear-over-Linear Rational Functions
  2. Quadratic-over-Quadratic Graphs, Oblique Asymptotes and the Discriminant Method
  3. Solving Cubic, Quartic and Rational Inequalities
  4. Graphs of y² = f(x), y = |f(x)| and y = f(|x|) from y = f(x)

Video

What's inside for this topic

4 teacher notes, 135 practice questions, 39 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Solving Cubic, Quartic and Rational Inequalities

All Cambridge A Level Maths topics · A Level Maths