Skip to main content
NSWMaths Extension 1Syllabus dot point

Given the graph of y=f(x)y = f(x), how do we sketch y=f(x)y = |f(x)| and y=f(x)y = f(|x|), and why are they two completely different transformations?

Sketch y=f(x)y = |f(x)| by reflecting the part of y=f(x)y = f(x) below the xx-axis upward, and sketch y=f(x)y = f(|x|) by keeping the part right of the yy-axis and mirroring it across the yy-axis, recognising that y=f(x)y = f(|x|) is always even and that the two transformations coincide only in special cases

The Year 11 Extension 1 dot point on the two absolute-value graph transformations. Why y = |f(x)| flips the part below the x-axis upward (so y stays at least zero) while y = f(|x|) discards the left half and mirrors the right half (always even), where they differ, how to combine them in order, and why |2^x| = 2^x.

Generated by Claude Opus 4.820 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

What this dot point is asking

NESA gives you the graph of y=f(x)y = f(x) and asks you to sketch two new graphs from it: y=f(x)y = |f(x)| and y=f(x)y = f(|x|). These look almost the same on the page, but they are two completely different transformations, and the single most common mistake in this topic is to muddle them. The whole skill is knowing which one acts on the output and which acts on the input, and reading the picture off accordingly.

The two rules in one sentence each:

  • y=f(x)y = |f(x)| takes the absolute value of the height, so it reflects the part of the curve below the xx-axis up above it and leaves the rest alone. The output can never be negative.
  • y=f(x)y = f(|x|) takes the absolute value of the input, so it throws away the left half and replaces it with a mirror image of the right half across the yy-axis. The result is always even.

Everything else on this page is a careful working-out of those two rules, the cases where they happen to give the same picture, and how to combine them. The same "act on the picture, feature by feature" habit drives sketching the reciprocal and adding ordinates; here the features are the xx-intercepts and the yy-axis.

The answer

Two rules, two different parts of the graph

Start from a graph of y=f(x)y = f(x) and ask what each modulus does.

The outer modulus y=f(x)y = |f(x)| acts on the output (yy). For any xx, the new height is f(x)|f(x)|. Where f(x)0f(x) \ge 0 the height is unchanged, because the absolute value of a non-negative number is itself. Where f(x)<0f(x) < 0 the new height is f(x)-f(x), the positive version, which is exactly the old point reflected in the xx-axis. So the recipe is:

Keep everything on or above the xx-axis; reflect everything below the xx-axis up.

The xx-intercepts are the hinge points: a height of 00 stays 00, so the curve is pinned to the axis there, and it bounces off, creating a sharp corner at each intercept.

The inner modulus y=f(x)y = f(|x|) acts on the input (xx). For x0x \ge 0 we have x=x|x| = x, so f(x)=f(x)f(|x|) = f(x) and the right half is unchanged. For x<0x < 0 we have x=x|x| = -x, so f(x)=f(x)f(|x|) = f(-x), which is the value of ff at the matching positive input: the left half is the mirror image of the right half across the yy-axis. So the recipe is:

Keep the part right of the yy-axis; replace the left part with its mirror image across the yy-axis.

The original left half of y=f(x)y = f(x) is thrown away entirely and plays no part. Because the two sides are now mirror images, y=f(x)y = f(|x|) is always an even function.

y=f(x)y = |f(x)|: flip the lower lobe up (a parabola)

The clearest first example is a parabola that dips below the axis. Take f(x)=x24f(x) = x^2 - 4, with xx-intercepts at x=2x = -2 and x=2x = 2 and vertex (0,4)(0, -4).

Reflecting a parabola with the modulus of the functionThe parabola f of x equals x squared minus four is drawn in muted, dipping below the x-axis between x equals minus two and x equals two with vertex at zero comma minus four. The graph of y equals the absolute value of f is drawn in accent: the part below the axis is reflected up, so the lobe between minus two and two becomes a bump peaking at zero comma four, with sharp corners at the x-intercepts.xy-3-2-1123-4-224(0, 4) peak(-2, 0)(2, 0)vertex (0, -4)y = |f(x)|f = x² - 4y = |f(x)|: flip the lobe below the axis UP; corners at the x-intercepts.

The single lobe between the intercepts is below the axis, so it flips up. The vertex (0,4)(0, -4) becomes the peak (0,4)(0, 4), a reflection straight up through twice 4=84 = 8 units. The arms for x>2|x| > 2 are already above the axis and do not move. The intercepts (2,0)(-2, 0) and (2,0)(2, 0) are fixed, and the smooth turning point of the parabola becomes two sharp corners there, because the curve arrives going down and leaves going up. A quick table confirms every height is just made positive:

xx 3-3 2-2 1-1 00 11 22 33
f(x)f(x) 55 00 3-3 4-4 3-3 00 55
f(x)|f(x)| 55 00 33 44 33 00 55

y=f(x)y = f(|x|): discard the left, mirror the right (a cubic)

For y=f(x)y = f(|x|) the contrast is sharpest with a function that is not already symmetric, so the left half genuinely changes. Take the cubic h(x)=x34x=x(x2)(x+2)h(x) = x^3 - 4x = x(x - 2)(x + 2), with xx-intercepts at x=2x = -2, x=0x = 0 and x=2x = 2.

The same cubic with the modulus of xThe cubic h of x equals x cubed minus four x is drawn in muted. The graph of y equals h of the absolute value of x is drawn in accent: the right half for x greater than or equal to zero is kept exactly, and the left half is discarded and replaced by the mirror image of the right half across the y-axis, so the result is an even function symmetric about the y-axis.xy-2-112-3-2-1123corner (0, 0)keptmirrory = h(|x|)h = x³ - 4xy = h(|x|): keep the right half, mirror it left; the result is even.

The right half (x0x \ge 0) is kept exactly: it passes through the origin, dips to a minimum at (2/3,3.079)\left(2/\sqrt{3}, -3.079\right) and crosses up through (2,0)(2, 0). The original left half is deleted and replaced by the mirror image of that right half, giving a matching dip at (2/3,3.079)\left(-2/\sqrt{3}, -3.079\right) and an intercept at (2,0)(-2, 0). Where the two halves meet at the origin there is a corner, because the right half arrives with a negative slope and the mirror leaves with the opposite slope. The finished graph has line symmetry in the yy-axis: it is even, which you can confirm because h(x)=h(x)h(|{-x}|) = h(|x|) for every xx.

Compare this with what y=h(x)y = |h(x)| does to the same cubic: there we reflect the below-axis pieces up instead of mirroring, and the picture is different.

The modulus of a cubicThe cubic h of x equals x cubed minus four x is drawn in muted with zeros at minus two, zero and two. The graph of y equals the absolute value of h is drawn in accent: every part below the x-axis is reflected up, so the dip on the left and the dip on the right both flip above the axis, giving sharp corners at all three x-intercepts.xy-2-112-3-2-1123(-2, 0)(0, 0)(2, 0)flipped upy = |h(x)|h = x³ - 4xy = |h(x)|: BOTH below-axis dips flip up; three corners, at -2, 0, 2.

For h(x)|h(x)| both below-axis pieces (the far left for x<2x < -2 and the dip between 00 and 22) flip up, giving three corners at 2,0,2-2, 0, 2 and turning the original minimum (2/3,3.079)\left(2/\sqrt{3}, -3.079\right) into a maximum (2/3,3.079)\left(2/\sqrt{3}, 3.079\right). This graph is not even. Putting the two cubic graphs side by side is the quickest way to feel that f(x)|f(x)| and f(x)f(|x|) really are different operations.

When the two transformations agree (and when they cannot)

Because the rules act on different parts, they usually give different graphs, but two clean cases make them coincide or trivial.

An even function is unchanged by f(x)f(|x|). If ff is already even, its graph already has yy-axis symmetry, so "keep the right, mirror it" reproduces the same curve: f(x)=f(x)f(|x|) = f(x). That is why the parabola f(x)=x24f(x) = x^2 - 4 above is identical under f(x)f(|x|). The transformation only does visible work when ff is not even.

An always-positive function is unchanged by f(x)|f(x)|. If f(x)0f(x) \ge 0 for every xx, no part of the graph is below the axis, so there is nothing to reflect and f(x)=f(x)|f(x)| = f(x).

An already-positive function: two to the xThe exponential y equals two to the x is drawn in accent. Because two to the x is positive for every x, it never goes below the x-axis, so the modulus of the function leaves it completely unchanged: the absolute value of two to the x equals two to the x. For contrast, the even function two to the absolute value of x is drawn in muted, agreeing with two to the x for x greater than or equal to zero and rising again on the left.xy-3-2-112123456(0, 1)(1, 2)y = 2^|x|y = 2ˣ = |2ˣ|2ˣ is never negative, so |2ˣ| = 2ˣ (no change). Only f(|x|) alters it.

The exponential f(x)=2xf(x) = 2^x is the standard example: 2x>02^x > 0 for all xx, so 2x=2x|2^x| = 2^x and the graph does not change at all. (Be careful: this is special to f(x)|f(x)|. The other transformation, f(x)=2xf(|x|) = 2^{|x|}, the muted curve above, does change 2x2^x, into the even V-bottomed exponential that agrees with 2x2^x only for x0x \ge 0.) The contrast matters: y=2x1y = |2^x - 1|, where the function does dip below the axis for x<0x < 0, is genuinely altered, so do not assume every exponential is immune.

Combining the two, stage by stage

The richest exam questions ask for both transformations at once, usually y=f(x)y = |f(|x|)|: first make the function even with f(x)f(|x|), then make it non-negative with the outer |\,\cdot\,|. Order matters, so work from the inside out. Take k(x)=(x1)22k(x) = (x - 1)^2 - 2, a parabola with vertex (1,2)(1, -2) and xx-intercepts at x=1±2x = 1 \pm \sqrt{2} (about 0.41-0.41 and 2.412.41). It is deliberately not even, so every stage does visible work.

Stage 1, plot the original y=k(x)y = k(x). Read off the landmarks of k(x)=(x1)22k(x) = (x - 1)^2 - 2: vertex (1,2)(1, -2), yy-intercept (0,1)(0, -1), and xx-intercepts at x=120.41x = 1 - \sqrt{2} \approx -0.41 and x=1+22.41x = 1 + \sqrt{2} \approx 2.41. The graph is not symmetric in the yy-axis.

Stage 1: plot the originalStage one. The parabola k of x equals the quantity x minus one squared minus two is drawn in muted, with vertex at one comma minus two, a y-intercept at zero comma minus one, and zeros at about minus zero point four one and two point four one.Stage 1xy-3-2-1123-2-1123vertex (1, -2)(0, -1)zero ≈ 2.41y = k(x) = (x-1)² - 2Start with the original: vertex (1, -2), zeros at 1 ± √2, not symmetric.

Stage 2, apply the inner modulus y=k(x)y = k(|x|). Keep the right half (x0x \ge 0) and mirror it across the yy-axis. The right half starts at (0,1)(0, -1), dips to the vertex (1,2)(1, -2) and rises through the intercept at x2.41x \approx 2.41. Mirroring gives a matching dip at (1,2)(-1, -2) and an intercept at x2.41x \approx -2.41, with a corner at (0,1)(0, -1) where the halves meet. The graph is now even, but it still dips below the axis.

Stage 2: apply k of the modulus of xStage two. The graph of y equals k of the absolute value of x is drawn in accent over the muted original. The right half for x at least zero is kept exactly; the left half is discarded and replaced by the mirror image of the right half, giving an even graph with a corner at zero comma minus one, two vee-shaped dips with vertices at plus and minus one comma minus two, and zeros at plus and minus two point four one.Stage 2xy-3-2-1123-2-1123corner (0, -1)(-1, -2) mirror(1, -2) kepty = k(|x|)k(|x|): keep the right half, mirror it left. Now even, but still dips below.

Stage 3, apply the outer modulus y=k(x)y = |k(|x|)|. Now reflect the part of the stage-2 graph below the xx-axis up. The whole central region between x2.41x \approx -2.41 and x2.41x \approx 2.41 is below the axis, so it flips up: the two dips at (±1,2)(\pm 1, -2) become two humps peaking at (±1,2)(\pm 1, 2), and the corner at (0,1)(0, -1) becomes a notch at (0,1)(0, 1).

Stage 3: take the modulus of the resultStage three. The graph of y equals the absolute value of k of the absolute value of x is drawn in accent. Starting from the even graph of stage two, every part below the x-axis, the central region between minus two point four one and two point four one, is reflected up. The two dips become two humps with peaks at plus and minus one comma two, and the central corner at zero comma minus one becomes a notch at zero comma one.Stage 3xy-3-2-1123-2-1123(0, 1)(1, 2) peak(-1, 2)Now |...|: flip the below-axis middle UP. Dips become humps; (1,-2) → (1,2).

Stage 4, finish and read off the features. The completed graph y=k(x)y = |k(|x|)| is even and never negative (range y0y \ge 0). It has xx-intercepts at x±2.41x \approx \pm 2.41 (each a sharp corner where the curve touches the axis), two peaks at (±1,2)(\pm 1, 2), and a central notch at (0,1)(0, 1), then rises on the outside. Every feature was produced by applying the inner modulus first, then the outer one.

Stage 4: the finished combined graphStage four. The completed graph of y equals the absolute value of k of the absolute value of x: an even, entirely non-negative curve with a central notch at zero comma one, two humps peaking at plus and minus one comma two, touching the x-axis with corners at plus and minus two point four one, then rising on the outside.Stage 4xy-3-2-1123-2-1123(0, 1)(1, 2)(-1, 2)(2.41, 0)(-2.41, 0)y = |k(|x|)|Finished: even, never negative, range y ≥ 0. Order matters: f(|x|) first, then |.|.

A reciprocal under the modulus

The outer modulus is just as useful on a curve with an asymptote. Take g(x)=1x1g(x) = \dfrac{1}{x - 1}, with a vertical asymptote at x=1x = 1: the right branch (x>1x > 1) is positive and the left branch (x<1x < 1) is negative.

The modulus of a reciprocal functionThe reciprocal g of x equals one over x minus one is drawn in muted, with a vertical asymptote at x equals one; the left branch lies below the x-axis and the right branch above. The graph of y equals the absolute value of g is drawn in accent: the right branch is unchanged, and the left branch is reflected up so both branches now rise to plus infinity beside the asymptote and the whole graph lies above the x-axis.xy-2-11234-3-2-1123(2, 1) unchanged(0, 1) flipped up(0, -1)x = 1y = |g(x)|g = 1/(x - 1)y = |1/(x-1)|: right branch stays; left branch flips up; both arms now positive.

Under y=g(x)y = |g(x)| the right branch is unchanged (already positive), and the left branch flips up. Instead of the left branch plunging to -\infty as x1x \to 1^-, it now rises to ++\infty; instead of approaching the xx-axis from below as xx \to -\infty, it approaches from above. So both arms of y=1x1y = \left|\dfrac{1}{x - 1}\right| shoot up beside the asymptote x=1x = 1, and the whole graph lies above the xx-axis with horizontal asymptote y=0y = 0. The fixed point (2,1)(2, 1) on the right branch does not move; the point (0,1)(0, -1) on the left branch reflects up to (0,1)(0, 1).

A note on even and odd

The two transformations relate to symmetry in opposite ways, and this is worth pinning down because it explains every "they agree / they differ" case above.

Symmetry: f of the modulus of x is always evenTwo small panels. Left: y equals p of the absolute value of x is built by mirroring the right half across the y-axis, so it is always even with y-axis symmetry, whatever p was. Right: y equals the absolute value of p of x reflects the below-axis parts upward; this preserves y-axis symmetry only if p already had it, and an odd p does not become even.y = p(|x|) is ALWAYS eveny = |p(x)| keeps p's symmetryf(|x|) forces y-axis symmetry; |f(x)| only mirrors heights up, keeping f's own symmetry.

y=f(x)y = f(|x|) is always even, whatever ff was. It is built by mirroring the right half across the yy-axis, which forces line symmetry: f(x)=f(x)f(|{-x}|) = f(|x|). So if a question asks you to make a function even, f(x)f(|x|) is the tool.

y=f(x)y = |f(x)| keeps the symmetry ff already had. Reflecting heights up in the xx-axis does not impose yy-axis symmetry; it preserves whatever symmetry ff has. If ff is even, f(x)|f(x)| is even; if ff is odd, f(x)|f(x)| becomes even (because f(x)=f(x)|{-f(x)}| = |f(x)|, so the heights match across the axis) but only as a side effect of the heights, not the shape. The safe statement to make in an exam is the precise one: f(x)f(|x|) is always even; f(x)|f(x)| is even whenever the heights are symmetric, which holds for any even or odd ff.

How exam questions ask about absolute-value graphs

The wording tells you which rule to reach for.

  • "Sketch y=f(x)y = |f(x)| from the graph of y=f(x)y = f(x)." Reflect the part below the xx-axis up; keep the rest. Mark the xx-intercepts as corners and flip any below-axis minimum into a maximum.
  • "Sketch y=f(x)y = f(|x|)." Keep the right half (x0x \ge 0) and mirror it across the yy-axis. State that the result is even.
  • "Sketch y=f(x)y = |f(|x|)|" (or any combination). Apply the inner modulus first (f(x)f(|x|), making it even), then the outer modulus (reflecting below-axis parts up). Show both stages.
  • "Explain why y=f(x)y = |f(x)| is the same as y=f(x)y = f(x)." Argue that f(x)0f(x) \ge 0 for all xx (no part below the axis to reflect), as for y=2xy = 2^x.
  • "Explain why y=f(x)y = f(|x|) is the same as y=f(x)y = f(x)." Argue that ff is already even (its graph already has yy-axis symmetry), as for y=x24y = x^2 - 4.
  • "Is the transformed graph even?" f(x)f(|x|) is always even. f(x)|f(x)| is even exactly when ff is even or odd; otherwise check directly.
  • "State the range of y=f(x)y = |f(x)|." It is a subset of y0y \ge 0; read the maximum from the reflected peak if the function is bounded.

Exam-style practice questions

Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

HSC-style4 marksThe parabola y=f(x)y = f(x), where f(x)=x24f(x) = x^2 - 4, is drawn. On separate axes sketch (i) y=f(x)y = |f(x)| and (ii) y=f(x)y = f(|x|), in each case stating the coordinates of the vertex or peak and the xx-intercepts.
Show worked answer →

The two transformations act on completely different parts of the graph, so treat them separately.

Sketch y=f(x)y = |f(x)|. The rule is: keep everything on or above the xx-axis, and reflect everything below it back up. Here f(x)=x24f(x) = x^2 - 4 has xx-intercepts at x=2x = -2 and x=2x = 2 and dips to the vertex (0,4)(0, -4) between them. Reflecting that dip upward turns the vertex (0,4)(0, -4) into a peak at (0,4)(0, 4), while the arms outside [2,2][-2, 2] (already above the axis) are unchanged. The xx-intercepts (2,0)(-2, 0) and (2,0)(2, 0) are fixed points, and the graph now has sharp corners there because the curve changes direction as it bounces off the axis.

Sketch y=f(x)y = f(|x|). The rule is: keep the part right of the yy-axis (x0x \ge 0) and replace the left part with the mirror image of the right part. Since f(x)=x24f(x) = x^2 - 4 is already even (its graph is already symmetric in the yy-axis), f(x)=(x)24=x24=f(x)f(|x|) = (|x|)^2 - 4 = x^2 - 4 = f(x): the transformation changes nothing. The graph is the original parabola, vertex (0,4)(0, -4), intercepts (2,0)(-2, 0) and (2,0)(2, 0).

Markers reward the upward reflection of the lobe for part (i) giving the peak (0,4)(0, 4) with corners at the intercepts, and the recognition in part (ii) that an even function is unchanged by f(x)f(|x|), so the graph is identical to the original.

HSC-style5 marksThe cubic y=h(x)y = h(x), where h(x)=x34xh(x) = x^3 - 4x, has xx-intercepts at x=2x = -2, x=0x = 0 and x=2x = 2. By describing the transformation in each case, sketch (i) y=h(x)y = |h(x)| and (ii) y=h(x)y = h(|x|), and state which of the two graphs is even.
Show worked answer →

A cubic shows the contrast sharply, because it is an odd function with parts both above and below the axis.

Sketch y=h(x)y = |h(x)|. Reflect every part of y=h(x)y = h(x) that lies below the xx-axis up above it. The cubic is below the axis on the left (for x<2x < -2) and again between x=0x = 0 and x=2x = 2, so both of those pieces flip up. The result touches the xx-axis with a sharp corner at each of the three intercepts x=2,0,2x = -2, 0, 2, and the local minimum of hh at (2/3,3.079)(2/\sqrt{3}, -3.079) becomes a local maximum of h|h| at (2/3,3.079)(2/\sqrt{3}, 3.079). This graph is not even: it still has more going on for x>0x > 0 than the reflection alone would give for x<0x < 0.

Sketch y=h(x)y = h(|x|). Keep the right half (x0x \ge 0), which has intercepts at x=0x = 0 and x=2x = 2 and dips to (2/3,3.079)(2/\sqrt{3}, -3.079), then mirror it across the yy-axis. The left half of the original is discarded entirely. The mirror image gives intercepts at x=2x = -2 and x=2x = 2 (the x=0x = 0 root is shared) and a matching dip at (2/3,3.079)(-2/\sqrt{3}, -3.079), with a corner at the origin where the two halves meet. This graph is even, with line symmetry in the yy-axis, because h(x)=h(x)h(|{-x}|) = h(|x|) for every xx.

Markers reward the correct upward reflection for h(x)|h(x)| (three corners, the minimum becoming a maximum) and the keep-right-mirror-left construction for h(x)h(|x|), with the statement that y=h(x)y = h(|x|) is the even graph.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation3 marksThe parabola f(x)=x29f(x) = x^2 - 9 is drawn. Sketch y=f(x)y = |f(x)| and y=f(x)y = f(|x|) on separate axes. State the peak of y=f(x)y = |f(x)| and explain why y=f(x)y = f(|x|) is identical to y=f(x)y = f(x).
Show worked solution →
Sketch y=f(x)y = |f(x)|
Reflect the part of y=f(x)y = f(x) below the xx-axis upward. The parabola f(x)=x29f(x) = x^2 - 9 has xx-intercepts at x=3x = -3 and x=3x = 3 and dips to the vertex (0,9)(0, -9). Flipping that dip up turns the vertex (0,9)(0, -9) into a peak at (0,9)(0, 9); the arms outside [3,3][-3, 3] are already above the axis and stay put. There are sharp corners at the intercepts (3,0)(-3, 0) and (3,0)(3, 0).
Sketch y=f(x)y = f(|x|)
Keep the right half and mirror it across the yy-axis. But f(x)=x29f(x) = x^2 - 9 is already even: replacing xx by x|x| gives f(x)=(x)29=x29f(|x|) = (|x|)^2 - 9 = x^2 - 9, exactly the same rule. So the keep-and-mirror produces the identical parabola.
Why they differ
y=f(x)y = |f(x)| acts on the output (it makes every height non-negative), so it changes the dip; y=f(x)y = f(|x|) acts on the input (it forces yy-axis symmetry), which an already-symmetric parabola has, so nothing happens.
Answer
y=f(x)y = |f(x)| has a peak at (0,9)(0, 9) with corners at (±3,0)(\pm 3, 0); y=f(x)y = f(|x|) is the unchanged parabola y=x29y = x^2 - 9 because ff is already even.
foundation3 marksThe line g(x)=2x4g(x) = 2x - 4 is drawn. Sketch y=g(x)y = |g(x)| and y=g(x)y = g(|x|) on separate axes, stating the corner of each and the xx-intercepts.
Show worked solution →
Sketch y=g(x)y = |g(x)|
Reflect the part of the line below the xx-axis upward. The line g(x)=2x4g(x) = 2x - 4 crosses the axis at x=2x = 2 and is negative for x<2x < 2. Flipping that negative part up gives a V-shape with its corner at the xx-intercept (2,0)(2, 0): the right arm is y=2x4y = 2x - 4 (for x2x \ge 2) and the left arm is y=(2x4)=42xy = -(2x - 4) = 4 - 2x (for x<2x < 2). At x=0x = 0, g(0)=4g(0) = -4, so g(0)=4|g(0)| = 4.
Sketch y=g(x)y = g(|x|)
Keep the part right of the yy-axis and mirror it. For x0x \ge 0 the graph is y=2x4y = 2x - 4, a ray starting at (0,4)(0, -4) and rising. Mirroring it across the yy-axis gives the V-shape y=2x4y = 2|x| - 4, with its corner at (0,4)(0, -4) on the yy-axis. Its xx-intercepts are where 2x4=02|x| - 4 = 0, that is x=2|x| = 2, so x=2x = -2 and x=2x = 2.
Answer
y=g(x)y = |g(x)| is a V with corner (2,0)(2, 0) and single xx-intercept x=2x = 2; y=g(x)y = g(|x|) is a V with corner (0,4)(0, -4) and two xx-intercepts x=2x = -2 and x=2x = 2. The corners land in different places because g(x)|g(x)| pins the corner to the zero of gg, while g(x)g(|x|) always pins the corner to the yy-axis.
core4 marksThe cubic p(x)=x3x=x(x1)(x+1)p(x) = x^3 - x = x(x - 1)(x + 1) has xx-intercepts at x=1x = -1, x=0x = 0 and x=1x = 1. Sketch y=p(x)y = |p(x)| and y=p(x)y = p(|x|) on separate axes, describing the transformation each time, and state which graph is even.
Show worked solution →
Sketch y=p(x)y = |p(x)|
Reflect every part of y=p(x)y = p(x) below the xx-axis upward. The cubic is below the axis between x=1x = -1 and x=0x = 0, and again for x>1x > 1 only briefly? Check the sign: p(x)=x(x1)(x+1)p(x) = x(x-1)(x+1) is negative on x<1x < -1 and on 0<x<10 < x < 1, and positive on 1<x<0-1 < x < 0 and x>1x > 1. So the pieces on x<1x < -1 and on 0<x<10 < x < 1 flip up. The graph touches the axis with sharp corners at all three intercepts x=1,0,1x = -1, 0, 1, and the local minimum of pp at (1/3,0.385)\left(1/\sqrt{3}, -0.385\right) becomes a local maximum at (1/3,0.385)\left(1/\sqrt{3}, 0.385\right).
Sketch y=p(x)y = p(|x|)
Keep the right half (x0x \ge 0), which has intercepts at x=0x = 0 and x=1x = 1 and a dip to (1/3,0.385)\left(1/\sqrt{3}, -0.385\right), then mirror it across the yy-axis. The mirror gives intercepts at x=1x = -1 and x=1x = 1 (with x=0x = 0 shared) and a matching dip at (1/3,0.385)\left(-1/\sqrt{3}, -0.385\right), joined at a corner at the origin.
Which is even
y=p(x)y = p(|x|) is even (line symmetry in the yy-axis) by construction. y=p(x)y = |p(x)| is not even here, because the original cubic was odd, and reflecting heights up does not impose yy-axis symmetry.
Answer
p(x)|p(x)| flips the two below-axis pieces up (corners at 1,0,1-1, 0, 1; the minimum becomes a maximum); p(x)p(|x|) keeps the right half and mirrors it (even, intercepts ±1\pm 1 and 00). Only y=p(x)y = p(|x|) is even.
core4 marksThe reciprocal function r(x)=1x+2r(x) = \dfrac{1}{x + 2} has a vertical asymptote at x=2x = -2. Sketch y=r(x)y = |r(x)|, describing what happens to each branch, and state the equation of any asymptote and the value of yy when x=0x = 0.
Show worked solution →
Identify the two branches
The graph of r(x)=1x+2r(x) = \dfrac{1}{x + 2} has a vertical asymptote at x=2x = -2 and the xx-axis (y=0y = 0) as a horizontal asymptote. To the right of the asymptote (x>2x > -2) the function is positive; to the left (x<2x < -2) it is negative.
Apply y=r(x)y = |r(x)|
Reflect the part below the xx-axis upward. The right branch (x>2x > -2) is already positive, so it is unchanged. The left branch (x<2x < -2) is negative, so it flips up: instead of falling away below the axis it now rises to ++\infty as x2x \to -2^- and approaches the xx-axis from above as xx \to -\infty. After the transformation both branches lie above the xx-axis and both shoot up beside the asymptote.
Read off the values
The vertical asymptote is still x=2x = -2 and the horizontal asymptote is still y=0y = 0 (now approached from above on both sides). At x=0x = 0, r(0)=12r(0) = \dfrac{1}{2}, which is positive, so r(0)=12|r(0)| = \dfrac{1}{2}.
Answer
y=1x+2y = \left|\dfrac{1}{x + 2}\right| has vertical asymptote x=2x = -2 and horizontal asymptote y=0y = 0; the right branch is unchanged, the left branch is reflected up, both arms are positive, and y=12y = \dfrac{1}{2} when x=0x = 0.
exam5 marksLet f(x)=(x2)21f(x) = (x - 2)^2 - 1, a parabola with vertex (2,1)(2, -1) and xx-intercepts x=1x = 1 and x=3x = 3. By applying the transformations in order, sketch y=f(x)y = |f(|x|)|. State the coordinates of every turning point and the xx-intercepts of the final graph.
Show worked solution →
Step 1: apply f(x)f(|x|) first
Keep the part right of the yy-axis and mirror it. For x0x \ge 0 the parabola starts at f(0)=3f(0) = 3, dips to the vertex (2,1)(2, -1), and crosses the axis at x=1x = 1 and x=3x = 3. Mirroring this across the yy-axis gives an even graph: vertices at (2,1)(2, -1) and (2,1)(-2, -1), a corner at (0,3)(0, 3) where the halves meet, and xx-intercepts at x=±1x = \pm 1 and x=±3x = \pm 3.
Step 2: apply the outer |\,\cdot\,|
Now reflect every part of the stage-1 graph that lies below the xx-axis upward. The graph is below the axis in two regions, between x=3x = -3 and x=1x = -1 and between x=1x = 1 and x=3x = 3, each containing one vertex. Flipping those up turns the vertex (2,1)(2, -1) into a peak at (2,1)(2, 1) and the vertex (2,1)(-2, -1) into a peak at (2,1)(-2, 1). The corner at (0,3)(0, 3) is above the axis, so it is unchanged.
Confirm the features
The final graph y=f(x)y = |f(|x|)| is even and never negative. Its xx-intercepts are unchanged at x=±1x = \pm 1 and x=±3x = \pm 3 (a height of zero stays zero under |\,\cdot\,|). Its turning points are the two reflected peaks (2,1)(2, 1) and (2,1)(-2, 1), plus the central corner (0,3)(0, 3), which is a local maximum of the middle arch.
Answer
y=f(x)y = |f(|x|)| is even and lies on or above the xx-axis, with xx-intercepts x=3,1,1,3x = -3, -1, 1, 3, peaks at (±2,1)(\pm 2, 1), and a central corner at (0,3)(0, 3). (Order matters: doing f(x)f(|x|) first then |\,\cdot\,| gives this; the reverse order can give a different graph.)
exam4 marksExplain carefully why the graph of y=2xy = |2^x| is identical to y=2xy = 2^x, but the graph of y=2x1y = |2^x - 1| is not identical to y=2x1y = 2^x - 1. For y=2x1y = |2^x - 1|, state the xx-intercept and describe the transformation.
Show worked solution →
Why 2x=2x|2^x| = 2^x
The transformation y=f(x)y = |f(x)| only changes the parts of a graph that lie below the xx-axis. The exponential f(x)=2xf(x) = 2^x is positive for every real xx (a power of 22 is never zero or negative), so no part of its graph is ever below the axis. With nothing to reflect, 2x=2x|2^x| = 2^x and the graph is completely unchanged.
Why 2x1|2^x - 1| is different
Here f(x)=2x1f(x) = 2^x - 1 does dip below the axis. It is zero when 2x=12^x = 1, that is at x=0x = 0; for x<0x < 0, 2x<12^x < 1 so f(x)<0f(x) < 0, and for x>0x > 0, f(x)>0f(x) > 0. Because there is a genuine below-axis piece (all of x<0x < 0), the transformation has something to act on.
Describe the transformation
Reflect the part of y=2x1y = 2^x - 1 below the xx-axis (the whole region x<0x < 0) up above it. For x0x \ge 0 the graph is unchanged (y=2x1y = 2^x - 1, rising from 00); for x<0x < 0 it is reflected to y=(2x1)=12xy = -(2^x - 1) = 1 - 2^x, which rises from 00 at the corner up towards 11 as xx \to -\infty. The xx-intercept is the single point x=0x = 0, now a sharp corner.
Answer
2x=2x|2^x| = 2^x because 2x2^x is always positive (nothing to reflect), whereas 2x12^x - 1 is negative for x<0x < 0, so y=2x1y = |2^x - 1| reflects that part up, giving an xx-intercept and corner at x=0x = 0. The lesson: f(x)|f(x)| changes a graph only where ff is negative.

Related dot points