Nonlinear functions · Lesson 5

Absolute value, radical and rational functions

Absolute value. The graph of f(x)=a∣x−h∣+kf(x) = a|x - h| + k is a V with its vertex at (h,k)(h, k), read the same way as vertex form of a quadratic. If aa is positive the V opens up and kk is the minimum value; if aa is negative it opens down and kk is the maximum. The two sides are straight lines with slopes aa and −a-a.

Square root. You can't take the square root of a negative number, so inside\sqrt{\text{inside}} needs inside ≥0\ge 0. For g(x)=2x−6+1g(x) = \sqrt{2x - 6} + 1, solve 2x−6≥02x - 6 \ge 0: the domain is x≥3x \ge 3. The graph starts at (3,1)(3, 1) and rises to the right, getting less steep. The domain depends on what is under the root, not on whether xx itself is positive.

Rational functions are fractions with xx in the denominator. They are undefined wherever the denominator is 0. If that factor doesn't cancel with the numerator, the graph has a vertical asymptote there: it shoots up or down beside a vertical line it never touches. For f(x)=2x−1x+3f(x) = \frac{2x - 1}{x + 3}, the vertical asymptote is x=−3x = -3. (If the same factor is in the numerator and cancels, that xx is still excluded from the domain, but the graph has a hole there instead of an asymptote.)

A rational function can also level off toward a horizontal asymptote as xx gets very large or very negative. When the top and bottom are both linear, ax+bcx+d\frac{ax + b}{cx + d}, the horizontal asymptote is y=acy = \frac{a}{c}, the ratio of the xx-coefficients. For f(x)=1x−2+1f(x) = \frac{1}{x - 2} + 1, the asymptotes are x=2x = 2 and y=1y = 1.

The graph of y = \frac{1}{x - 2} + 1 with its asymptotes−3−2−11234567−4−3−2−11234560xy(3, 2)
The graph of y=1x−2+1y = \frac{1}{x - 2} + 1 with its asymptotes Two separate branches. A dashed vertical line at x = 2 and a dashed horizontal line at y = 1 are the asymptotes. The right branch passes through (3, 2). The left branch crosses the y-axis between y = 0 and y = 1, below the dashed line, and crosses the x-axis at (1, 0). Both branches bend toward the dashed lines without touching them.

Worked example Easy

The graph of y = f(x)−3−2−1123456789−6−5−4−3−2−1123456xy(3, -4)(-1, 0)(7, 0)(0, -1)
The graph of y=f(x)y = f(x) A V-shaped graph opening upward with its vertex, the lowest point, at (3, -4). It crosses the x-axis at (-1, 0) and (7, 0) and the y-axis at (0, -1).

The graph of y=f(x)y = f(x) is shown. Which equation defines ff?

  1. f(x)=∣x+3∣−4f(x) = |x + 3| - 4
  2. f(x)=∣x−4∣−3f(x) = |x - 4| - 3
  3. f(x)=∣x−3∣+4f(x) = |x - 3| + 4
  4. f(x)=∣x−3∣−4f(x) = |x - 3| - 4Answer

How to solve it

  1. The vertex is (3,−4)(3, -4), so h=3h = 3 and k=−4k = -4 in ∣x−h∣+k|x - h| + k.
  2. That gives f(x)=∣x−3∣−4f(x) = |x - 3| - 4.
  3. Check the intercepts: f(0)=3−4=−1f(0) = 3 - 4 = -1, f(−1)=4−4=0f(-1) = 4 - 4 = 0 and f(7)=4−4=0f(7) = 4 - 4 = 0.

Why each choice is right or wrong

  • A. Incorrect. This reads the sign of hh backward. ∣x+3∣|x + 3| puts the vertex at x=−3x = -3.
  • B. Incorrect. This puts 4 inside the absolute value and 3 outside, the reverse of what the graph needs. ∣x−4∣−3|x - 4| - 3 has its vertex at (4,−3)(4, -3), but the graph's vertex is (3,−4)(3, -4): the number inside gives the xx-coordinate (3) and the number outside gives the yy-coordinate (−4-4).
  • C. Incorrect. This puts the vertex at (3,4)(3, 4), above the xx-axis. The constant outside is read as written, so a vertex at y=−4y = -4 needs −4-4.
  • D. Correct. The vertex (3,−4)(3, -4) gives ∣x−3∣−4|x - 3| - 4, and it matches the intercepts (0,−1)(0, -1), (−1,0)(-1, 0) and (7,0)(7, 0).

Worked example Medium

g(x)=2x−6+1g(x) = \sqrt{2x - 6} + 1

What is the domain of the function gg?

  1. All real numbers xx such that x≥−3x \ge -3
  2. All real numbers xx such that x≥0x \ge 0
  3. All real numbers xx such that x≥3x \ge 3Answer
  4. All real numbers xx such that x≥6x \ge 6

How to solve it

  1. The expression under the square root must not be negative: 2x−6≥02x - 6 \ge 0.
  2. Add 6: 2x≥62x \ge 6. Divide by 2: x≥3x \ge 3.
  3. Check: g(3)=0+1=1g(3) = \sqrt{0} + 1 = 1 is defined, and g(2)=−2+1g(2) = \sqrt{-2} + 1 is not.

Why each choice is right or wrong

  • A. Incorrect. This moves the −6-6 to the other side without changing its sign, writing 2x≥−62x \ge -6, and gets x≥−3x \ge -3. Adding 6 to both sides gives 2x≥62x \ge 6. At x=0x = 0, 2x−6=−62x - 6 = -6, so g(0)g(0) is undefined.
  • B. Incorrect. The restriction is on the expression under the root, not on xx. At x=1x = 1, 2x−6=−42x - 6 = -4, so g(1)g(1) is undefined even though xx is positive.
  • C. Correct. 2x−6≥02x - 6 \ge 0 gives x≥3x \ge 3.
  • D. Incorrect. This stops at 2x≥62x \ge 6 and reads off the 6 without dividing by 2. At x=4x = 4, 2x−6=22x - 6 = 2, so g(4)g(4) is defined even though 4<64 \lt 6.

Worked example Hard

The graph of y = f(x) and its asymptotes−6−5−4−3−2−112345−4−3−2−112345678xy(0, 3)(-2, 1)
The graph of y=f(x)y = f(x) and its asymptotes Two branches with a dashed vertical asymptote at x = -1 and a dashed horizontal asymptote at y = 2. The right branch is above y = 2 and crosses the y-axis at (0, 3). The left branch is below y = 2, passes through (-2, 1), and crosses the x-axis between x = -2 and x = -1.

The graph of the rational function ff is shown. Which of the following could define ff?

  1. f(x)=2x+3x−1f(x) = \frac{2x + 3}{x - 1}
  2. f(x)=x+3x+1f(x) = \frac{x + 3}{x + 1}
  3. f(x)=3x+2x+1f(x) = \frac{3x + 2}{x + 1}
  4. f(x)=2x+3x+1f(x) = \frac{2x + 3}{x + 1}Answer

How to solve it

  1. The vertical asymptote x=−1x = -1 means the denominator is 0 at x=−1x = -1: the denominator is x+1x + 1. That rules out the first choice.
  2. The horizontal asymptote y=2y = 2 means the ratio of the xx-coefficients is 2. Of the remaining choices, only 2x+3x+1\frac{2x + 3}{x + 1} has 21=2\frac{2}{1} = 2.
  3. Check the points: f(0)=31=3f(0) = \frac{3}{1} = 3 and f(−2)=−1−1=1f(-2) = \frac{-1}{-1} = 1. Both match.

Why each choice is right or wrong

  • A. Incorrect. The denominator x−1x - 1 is zero at x=1x = 1, so the vertical asymptote would be x=1x = 1, not x=−1x = -1.
  • B. Incorrect. This matches the vertical asymptote and even the point (0,3)(0, 3), but its horizontal asymptote is y=11=1y = \frac{1}{1} = 1, and f(−2)=1−1=−1f(-2) = \frac{1}{-1} = -1, not 1.
  • C. Incorrect. The horizontal asymptote would be y=3y = 3, and f(0)=2f(0) = 2, not 3. This swaps the numerator's coefficients.
  • D. Correct. The denominator gives the vertical asymptote x=−1x = -1, the ratio 21\frac{2}{1} gives the horizontal asymptote y=2y = 2, and the function passes through (0,3)(0, 3) and (−2,1)(-2, 1).

Trap Reading the asymptote from the wrong part

The vertical asymptote comes from the zero of the denominator, with its sign: x+1x + 1 in the denominator gives x=−1x = -1. A zero of the numerator (where the denominator isn't also 0) is an xx-intercept, not an asymptote. And the horizontal asymptote of ax+bcx+d\frac{ax + b}{cx + d} is ac\frac{a}{c}, not a ratio of the constants.

Trap Domain of a square root

The domain of 2x−6\sqrt{2x - 6} is not x≥0x \ge 0 and not x≥6x \ge 6. Set the whole expression under the root ≥0\ge 0 and solve it completely: x≥3x \ge 3.

Desmos When Desmos is faster

For a square root, find where the domain starts by hand: the graph starts where the expression under the root is 0, so for 2x−6+1\sqrt{2x - 6} + 1 it starts at x=3x = 3. Then graph the function in Desmos to confirm. Desmos draws the graph only where it is defined, so the curve should begin at x=3x = 3 and continue to the right.

Desmos doesn't draw asymptotes for you. Near a vertical asymptote you see the curve shoot up or down, and far out to the sides you see it level off. To test a guess, type the line, such as x = -1 or y = 2, and see whether the curve hugs it without touching.

To match an equation to a graph printed in the question, type each choice and check its asymptotes and a labeled point.