Skip to content
Family Table Math
Auto

Modulus, Reciprocal and Squared Graphs

If you know the graph of y=f(x)y = f(x), you can sketch a whole family of related graphs without plotting a single new point: y=∣f(x)∣y = \lvert f(x) \rvert, y=f(∣x∣)y = f(\lvert x \rvert), y=1f(x)y = \dfrac{1}{f(x)}, y=f(ax+b)y = f(ax + b) and y=[f(x)]2y = [f(x)]^2. Each one follows a simple rule about what happens to the yy-values or the xx-values. The trick is knowing which key points stay put, which move, and where new asymptotes appear.

The modulus (absolute value) of a number is its distance from 00:

∣x∣={x,x≥0−x,x<0\lvert x \rvert = \begin{cases} x, & x \ge 0 \\ -x, & x \lt 0 \end{cases}

So ∣3∣=3\lvert 3 \rvert = 3 and ∣−3∣=3\lvert -3 \rvert = 3. The modulus is never negative. Solving equations with it is on the page about modulus equations and inequalities.

The modulus acts on the output. Wherever f(x)≥0f(x) \ge 0, nothing changes. Wherever f(x)<0f(x) \lt 0, the yy-value changes sign.

  • Keep the parts of the graph on or above the xx-axis.
  • Reflect the parts below the xx-axis in the xx-axis.
  • Zeros stay where they are, but often become sharp corners.
  • A local minimum below the axis, like (2,−1)(2, -1), becomes a local maximum (2,1)(2, 1).
  • The range has no negative values.

y = f(|x|): copy the right half onto the left

Section titled “y = f(|x|): copy the right half onto the left”

The modulus acts on the input. For x≥0x \ge 0, f(∣x∣)=f(x)f(\lvert x \rvert) = f(x), so the right half is unchanged. For x<0x \lt 0, f(∣x∣)=f(−x)f(\lvert x \rvert) = f(-x), which is the mirror image.

  • Delete the part of the graph to the left of the yy-axis.
  • Reflect the part on the right of the yy-axis in the yy-axis.
  • The new graph is always symmetric in the yy-axis (it’s an even function).
  • Every feature with x>0x \gt 0 appears twice: a zero at x=3x = 3 gives zeros at x=±3x = \pm 3.

Each new yy-value is 11 divided by the old one. This is covered in detail on reciprocal functions. The main rules:

On y=f(x)y = f(x)On y=1f(x)y = \dfrac{1}{f(x)}
a zero at x=ax = aa vertical asymptote x=ax = a
a vertical asymptote x=ax = athe graph approaches 00 as x→ax \to a (a hole on the xx-axis at (a,0)(a, 0), since f(a)f(a) isn’t defined)
f(x)→±∞f(x) \to \pm\infty for large ∣x∣\lvert x \rverthorizontal asymptote y=0y = 0
horizontal asymptote y=cy = c, c≠0c \ne 0horizontal asymptote y=1cy = \dfrac{1}{c}
a point with y=1y = 1 or y=−1y = -1the same point (invariant)
a local minimum (p,q)(p, q), q≠0q \ne 0a local maximum (p,1q)\left(p, \dfrac{1}{q}\right), and vice versa
positive / negativepositive / negative (same sign)

Here both aa and bb act on xx, so both are horizontal. Write f(ax+b)=f(a(x+ba))f(ax + b) = f\left(a\left(x + \dfrac{b}{a}\right)\right):

  • a horizontal translation of ba\dfrac{b}{a} units to the left (right if ba\dfrac{b}{a} is negative), and
  • a horizontal stretch by a factor of 1∣a∣\dfrac{1}{\lvert a \rvert} (with a reflection in the yy-axis if a<0a \lt 0).

Do the stretch first, then the translation by ba\dfrac{b}{a}. (Or translate by bb first, then stretch.)

The simplest way to map points: the point (p,q)(p, q) on y=f(x)y = f(x) moves to where ax+b=pax + b = p, so

(p,q)→(p−ba, q)(p, q) \to \left(\frac{p - b}{a},\ q\right)

yy-values don’t change, so horizontal asymptotes stay put; a vertical asymptote x=px = p moves to x=p−bax = \dfrac{p - b}{a}. There’s more on this in combined transformations.

  • The graph is never below the xx-axis.
  • Zeros stay zeros, and the graph touches the axis smoothly there (no corner), so each zero becomes a local minimum.
  • Points with y=1y = 1 or y=−1y = -1 go to y=1y = 1; points with y=0y = 0 stay at 00.
  • Where ∣f(x)∣>1\lvert f(x) \rvert \gt 1, the graph moves further from the axis; where ∣f(x)∣<1\lvert f(x) \rvert \lt 1, it moves closer to the axis.
  • A turning point of ff at (p,q)(p, q) gives a turning point at (p,q2)(p, q^2).
  • A horizontal asymptote y=cy = c becomes y=c2y = c^2; vertical asymptotes stay, with the graph going up on both sides.

Let f(x)=x2−4x+3f(x) = x^2 - 4x + 3. Sketch y=∣f(x)∣y = \lvert f(x) \rvert and y=f(∣x∣)y = f(\lvert x \rvert), labelling the key points.

Solution. First the features of ff: f(x)=(x−1)(x−3)f(x) = (x - 1)(x - 3), so the zeros are 11 and 33; the vertex is halfway between them, at (2,f(2))=(2,−1)(2, f(2)) = (2, -1); and the yy-intercept is (0,3)(0, 3).

y=∣f(x)∣y = \lvert f(x) \rvert. The graph is below the xx-axis only for 1<x<31 \lt x \lt 3. Reflect that piece upward: the vertex (2,−1)(2, -1) becomes a local maximum (2,1)(2, 1), and the zeros (1,0)(1, 0) and (3,0)(3, 0) become sharp corners. Everything else is unchanged, including the yy-intercept (0,3)(0, 3).

y=f(∣x∣)y = f(\lvert x \rvert). Delete the graph for x<0x \lt 0, and reflect the right half in the yy-axis. The right half has zeros at 11 and 33 and a minimum at (2,−1)(2, -1), so the new graph has zeros at ±1\pm 1 and ±3\pm 3, minimums at (±2,−1)(\pm 2, -1), and a sharp corner at the yy-intercept (0,3)(0, 3).

Left: y = |x squared - 4x + 3|, with the part below the x-axis flipped up. Right: y = f(|x|), the right half mirrored in the y-axis. The original parabola is dashed in both. y = |f(x)| (1, 0) (3, 0) (2, 1) (0, 3) −2 2 4 −2 2 4 y = f(|x|) (−2, −1) (2, −1) (0, 3) −4 −2 2 4 −2 4
Left: y=∣f(x)∣y = \lvert f(x) \rvert flips the part below the xx-axis. Right: y=f(∣x∣)y = f(\lvert x \rvert) mirrors the right half in the yy-axis.

The graph of y=f(x)y = f(x) has a zero at (−2,0)(-2, 0), a local maximum at (0,4)(0, 4), a local minimum at (3,−2)(3, -2) and a vertical asymptote x=5x = 5. Find the corresponding features of y=f(2x−4)y = f(2x - 4), and describe the transformation.

Solution. Here a=2a = 2 and b=−4b = -4, so (p,q)→(p+42, q)(p, q) \to \left(\dfrac{p + 4}{2},\ q\right):

FeatureOn y=f(x)y = f(x)On y=f(2x−4)y = f(2x - 4)
zero(−2,0)(-2, 0)(−2+42,0)=(1,0)\left(\frac{-2 + 4}{2}, 0\right) = (1, 0)
local maximum(0,4)(0, 4)(2,4)(2, 4)
local minimum(3,−2)(3, -2)(3.5,−2)(3.5, -2)
vertical asymptotex=5x = 5x=5+42=4.5x = \frac{5 + 4}{2} = 4.5

Since f(2x−4)=f(2(x−2))f(2x - 4) = f(2(x - 2)), the graph is stretched horizontally by a factor of 12\dfrac{1}{2} (towards the yy-axis) and then translated 22 units right. (Equivalently: translate 44 units right first, then stretch by 12\frac{1}{2}. The order matters, and the point mapping avoids the issue.)

Check one point: f(2(3.5)−4)=f(3)=−2f(2(3.5) - 4) = f(3) = -2 ✓.

Sketch y=1f(x)y = \dfrac{1}{f(x)} for f(x)=x2−4x+3f(x) = x^2 - 4x + 3, showing asymptotes, the turning point, the yy-intercept and any invariant points.

Solution.

  • Vertical asymptotes at the zeros of ff: x=1x = 1 and x=3x = 3.
  • Horizontal asymptote y=0y = 0, since f(x)→∞f(x) \to \infty for large ∣x∣\lvert x \rvert.
  • Turning point: ff has a minimum (2,−1)(2, -1), so 1f\dfrac{1}{f} has a maximum (2,1−1)=(2,−1)\left(2, \dfrac{1}{-1}\right) = (2, -1). It’s an invariant point, because y=−1y = -1.
  • yy-intercept: 1f(0)=13\dfrac{1}{f(0)} = \dfrac{1}{3}.
  • Invariant points where f(x)=1f(x) = 1: x2−4x+2=0x^2 - 4x + 2 = 0, so x=2±2x = 2 \pm \sqrt{2}, giving (0.586,1)(0.586, 1) and (3.41,1)(3.41, 1). Where f(x)=−1f(x) = -1: x2−4x+4=0x^2 - 4x + 4 = 0, so only x=2x = 2.
  • Signs: ff is positive outside 1<x<31 \lt x \lt 3 and negative inside, so the outer branches are above the xx-axis and the middle branch is below.
The parabola y = x squared - 4x + 3 and its reciprocal, which has vertical asymptotes x = 1 and x = 3, a local maximum at (2, -1), and meets the parabola where y = 1 or -1 (2, −1) (0.586, 1) (3.41, 1) x = 1 x = 3 2 4 −2 2 4 y = 1/f(x) y = f(x) = x² − 4x + 3
y=f(x)y = f(x) (orange) and y=1f(x)y = \dfrac{1}{f(x)} (blue) meet wherever y=±1y = \pm 1.

Let f(x)=2x−2f(x) = 2^x - 2. Describe the graph of y=[f(x)]2y = [f(x)]^2: its asymptote, intercepts, turning points and the points where y=1y = 1.

Solution. First the features of ff: horizontal asymptote y=−2y = -2 (as x→−∞x \to -\infty), zero at 2x=22^x = 2, so x=1x = 1, and yy-intercept f(0)=−1f(0) = -1. ff is increasing everywhere.

For y=[f(x)]2y = [f(x)]^2:

  • Asymptote: as x→−∞x \to -\infty, f(x)→−2f(x) \to -2, so [f(x)]2→4[f(x)]^2 \to 4. The horizontal asymptote is y=4y = 4.
  • Zero: x=1x = 1 stays a zero, and the graph touches the axis there: a local minimum at (1,0)(1, 0).
  • yy-intercept: (−1)2=1(-1)^2 = 1, so (0,1)(0, 1).
  • Points with y=1y = 1: where f(x)=±1f(x) = \pm 1. f(x)=−1f(x) = -1 at x=0x = 0, and f(x)=1f(x) = 1 when 2x=32^x = 3, so x=log⁡23≈1.58x = \log_2 3 \approx 1.58. The points are (0,1)(0, 1) and (1.58,1)(1.58, 1).

So, reading left to right: the graph starts just below the asymptote y=4y = 4 (because ∣f(x)∣<2\lvert f(x) \rvert \lt 2 there), decreases through (0,1)(0, 1) to touch the xx-axis at (1,0)(1, 0), then rises through (1.58,1)(1.58, 1) and grows very quickly, faster than ff itself, because ∣f(x)∣>1\lvert f(x) \rvert \gt 1 there.

Mixing up ∣f(x)∣\lvert f(x) \rvert and f(∣x∣)f(\lvert x \rvert). ∣f(x)∣\lvert f(x) \rvert changes the outputs (flip the parts below the xx-axis up). f(∣x∣)f(\lvert x \rvert) changes the inputs (throw away the left half and mirror the right half). Ask yourself: is the modulus around the whole function or only around xx?

Reflecting the left half for f(∣x∣)f(\lvert x \rvert). It’s the right half (x≥0x \ge 0) that you keep and mirror. Whatever ff did for negative xx is lost.

Shifting by b instead of b/a for f(ax + b). For f(2x−4)f(2x - 4), the shift is 22 right, not 44 right. Factor out aa first, or map points with x=p−bax = \dfrac{p - b}{a}.

Changing the y-values in f(ax + b). Only xx-coordinates change, so maximum and minimum values, horizontal asymptotes and yy-intercept heights at matching points stay the same.

Drawing zeros of [f(x)]² as crossings or corners. [f(x)]2[f(x)]^2 is never negative, so it touches the axis and turns smoothly at each zero. (That’s different from ∣f(x)∣\lvert f(x) \rvert, which usually has a sharp corner there.)

Forgetting invariant points on 1/f(x). The graphs of ff and 1f\dfrac{1}{f} always meet where f(x)=±1f(x) = \pm 1. Finding these points makes the sketch much more accurate.

1. (Warm-up) Let f(x)=2x−4f(x) = 2x - 4. Describe the graph of y=∣f(x)∣y = \lvert f(x) \rvert, giving its vertex and yy-intercept.

Solution

ff is a line with zero x=2x = 2 and yy-intercept −4-4. The part for x<2x \lt 2 is below the axis, so it’s reflected up. The result is a V shape with its vertex at (2,0)(2, 0) and yy-intercept (0,4)(0, 4), with slope −2-2 on the left and 22 on the right.

2. (Warm-up) The points (−3,2)(-3, 2), (0,−1)(0, -1) and (4,0)(4, 0) lie on the graph of y=f(x)y = f(x). Find the corresponding points on:

  • (a) y=∣f(x)∣y = \lvert f(x) \rvert
  • (b) y=[f(x)]2y = [f(x)]^2
  • (c) y=f(∣x∣)y = f(\lvert x \rvert)
Solution

(a) Make each yy-value non-negative: (−3,2)(-3, 2), (0,1)(0, 1), (4,0)(4, 0).

(b) Square each yy-value: (−3,4)(-3, 4), (0,1)(0, 1), (4,0)(4, 0).

(c) Only points with x≥0x \ge 0 survive, and each is mirrored: (0,−1)(0, -1), (4,0)(4, 0) and (−4,0)(-4, 0). The point (−3,2)(-3, 2) is not on the new graph (the new graph’s value at x=−3x = -3 is f(3)f(3), which we don’t know).

3. (Warm-up) The point (4,−1)(4, -1) lies on y=f(x)y = f(x). Find the corresponding point on y=f(2x+6)y = f(2x + 6).

Solution

Solve 2x+6=42x + 6 = 4: x=−1x = -1. The yy-value doesn’t change, so the point is (−1,−1)(-1, -1).

Check: f(2(−1)+6)=f(4)=−1f(2(-1) + 6) = f(4) = -1 ✓.

4. (Core) Let f(x)=(x+2)(x−1)(x−4)f(x) = (x + 2)(x - 1)(x - 4). Its local maximum is (−0.732,10.4)(-0.732, 10.4) and its local minimum is (2.73,−10.4)(2.73, -10.4) (3 s.f.). Describe the key points of:

  • (a) y=∣f(x)∣y = \lvert f(x) \rvert
  • (b) y=f(∣x∣)y = f(\lvert x \rvert)
Solution

First, f(0)=(2)(−1)(−4)=8f(0) = (2)(-1)(-4) = 8, and the zeros are −2-2, 11 and 44.

(a) ff is negative for x<−2x \lt -2 and for 1<x<41 \lt x \lt 4; those parts are flipped up. Zeros (−2,0)(-2, 0), (1,0)(1, 0) and (4,0)(4, 0) become corners. The local maximum (−0.732,10.4)(-0.732, 10.4) is unchanged; the local minimum becomes a local maximum (2.73,10.4)(2.73, 10.4). The yy-intercept is (0,8)(0, 8). For x<−2x \lt -2 the graph now rises steeply to the left instead of falling.

(b) Keep x≥0x \ge 0: yy-intercept (0,8)(0, 8), zeros at 11 and 44, local minimum (2.73,−10.4)(2.73, -10.4). Mirror it: zeros at −1-1 and −4-4, local minimum (−2.73,−10.4)(-2.73, -10.4). The point (0,8)(0, 8) becomes a sharp local maximum. (The old maximum at x=−0.732x = -0.732 is lost, because it had x<0x \lt 0.)

5. (Core) Let f(x)=4−x2f(x) = 4 - x^2. Sketch y=1f(x)y = \dfrac{1}{f(x)}, showing its asymptotes, its turning point and all invariant points.

Solution

Vertical asymptotes at the zeros of ff: x=−2x = -2 and x=2x = 2. Horizontal asymptote y=0y = 0.

ff has a maximum (0,4)(0, 4), so 1f\dfrac{1}{f} has a minimum (0,14)\left(0, \dfrac{1}{4}\right).

Invariant points: 4−x2=14 - x^2 = 1 gives x=±3x = \pm\sqrt{3}, so (±3,1)(\pm\sqrt{3}, 1); 4−x2=−14 - x^2 = -1 gives x=±5x = \pm\sqrt{5}, so (±5,−1)(\pm\sqrt{5}, -1).

ff is positive for −2<x<2-2 \lt x \lt 2, so the middle branch is a U shape above the axis with its minimum at (0,14)\left(0, \frac{1}{4}\right), going up beside both asymptotes. The outer branches are below the axis: they go down beside the asymptotes and approach the xx-axis from below far out.

6. (Core) Let f(x)=x2−4xf(x) = x^2 - 4x. Describe the graph of y=[f(x)]2y = [f(x)]^2, giving its zeros, its turning points, and the exact xx-values where y=1y = 1.

Solution

f(x)=x(x−4)f(x) = x(x - 4) has zeros 00 and 44 and vertex (2,−4)(2, -4).

[f(x)]2[f(x)]^2: zeros 00 and 44, each a local minimum where the graph touches the axis: (0,0)(0, 0) and (4,0)(4, 0). The vertex gives a local maximum (2,(−4)2)=(2,16)(2, (-4)^2) = (2, 16).

y=1y = 1 where f(x)=±1f(x) = \pm 1:

x2−4x−1=0⇒x=2±5,x2−4x+1=0⇒x=2±3x^2 - 4x - 1 = 0 \Rightarrow x = 2 \pm \sqrt{5}, \qquad x^2 - 4x + 1 = 0 \Rightarrow x = 2 \pm \sqrt{3}

So y=1y = 1 at x=2−5x = 2 - \sqrt{5}, 2−32 - \sqrt{3}, 2+32 + \sqrt{3} and 2+52 + \sqrt{5}.

7. (Core) Let f(x)=ln⁡xf(x) = \ln x, for x>0x \gt 0.

  • (a) Describe the graph of y=∣ln⁡x∣y = \lvert \ln x \rvert.
  • (b) Describe the graph of y=ln⁡∣x∣y = \ln \lvert x \rvert, and state its domain.
  • (c) Find the vertical asymptote and the xx-intercept of y=ln⁡(2x−2)y = \ln(2x - 2).
Solution

(a) ln⁡x<0\ln x \lt 0 for 0<x<10 \lt x \lt 1, so that part is reflected up. The graph comes down from very high beside the asymptote x=0x = 0, touches the axis with a corner at (1,0)(1, 0), then follows ln⁡x\ln x upward.

(b) This is f(∣x∣)f(\lvert x \rvert): the graph of ln⁡x\ln x plus its mirror image in the yy-axis. Domain {x∈R∣x≠0}\{x \in \mathbb{R} \mid x \ne 0\}; zeros at x=±1x = \pm 1; the yy-axis is a vertical asymptote for both halves.

(c) Map with 2x−2=p2x - 2 = p, so x=p+22x = \dfrac{p + 2}{2}. The asymptote x=0x = 0 moves to x=1x = 1, and the zero x=1x = 1 moves to x=32x = \dfrac{3}{2}. Check: ln⁡(2×1.5−2)=ln⁡1=0\ln(2 \times 1.5 - 2) = \ln 1 = 0 ✓.

8. (Challenge) Let f(x)=x−1x+2f(x) = \dfrac{x - 1}{x + 2}.

  • (a) Find 1f(x)\dfrac{1}{f(x)} and state its asymptotes. What happens at x=−2x = -2?
  • (b) State the asymptotes and the xx-intercept of y=∣f(x)∣y = \lvert f(x) \rvert.
Solution

(a) 1f(x)=x+2x−1\dfrac{1}{f(x)} = \dfrac{x + 2}{x - 1}. The zero of ff at x=1x = 1 becomes the vertical asymptote x=1x = 1. The horizontal asymptote y=1y = 1 of ff gives y=11=1y = \dfrac{1}{1} = 1. At x=−2x = -2, ff has a vertical asymptote, so 1f(x)→0\dfrac{1}{f(x)} \to 0: the graph reaches the point (−2,0)(-2, 0), which strictly is a hole, because f(−2)f(-2) itself is undefined.

(b) The modulus doesn’t move vertical asymptotes, so x=−2x = -2 is still one, and ∣1∣=1\lvert 1 \rvert = 1 gives the horizontal asymptote y=1y = 1. The xx-intercept stays at (1,0)(1, 0), now a corner. The part of the graph between x=−2x = -2 and x=1x = 1 (where f<0f \lt 0) is reflected up, so the graph goes up on both sides of x=−2x = -2.

9. (Challenge) Using radians, compare the graphs of y=∣sin⁡x∣y = \lvert \sin x \rvert and y=sin⁡2xy = \sin^2 x for 0≤x≤2π0 \le x \le 2\pi. Give the period and range of each, and describe how they differ at the zeros and in between.

Solution

Both are never negative and both repeat every π\pi: the negative hump of sin⁡x\sin x on π<x<2π\pi \lt x \lt 2\pi becomes a copy of the positive hump. So both have period π\pi and range {y∈R∣0≤y≤1}\{y \in \mathbb{R} \mid 0 \le y \le 1\}, with maximums at (π2,1)\left(\frac{\pi}{2}, 1\right) and (3π2,1)\left(\frac{3\pi}{2}, 1\right) and zeros at 00, π\pi and 2π2\pi.

The differences: ∣sin⁡x∣\lvert \sin x \rvert has sharp corners at its zeros, while sin⁡2x\sin^2 x touches the axis smoothly. And since 0≤∣sin⁡x∣≤10 \le \lvert \sin x \rvert \le 1, squaring makes the values smaller: sin⁡2x≤∣sin⁡x∣\sin^2 x \le \lvert \sin x \rvert, with equality only where y=0y = 0 or y=1y = 1. So the sin⁡2x\sin^2 x humps are narrower, lying inside the ∣sin⁡x∣\lvert \sin x \rvert humps.