Quarry School

Rational functions — quick review

The reciprocal function and arrow notation

In plain words

Picture a trip of 1 mile.

Rule

The reciprocal function is f(x) = 1x. Its domain and its range are both (−∞, 0) ∪ (0, ∞): every real number except 0. Near zero: as x → 0+, f(x) → ∞, and as x → 0−, f(x) → −∞. Far away: as x → ∞, f(x) → 0, and as x → −∞, f(x) → 0. In arrow notation the arrow reads "approaches" or "goes to", a raised + means from the right, and a raised − means from the left.

Step

  1. Cross out x = 0. The division 1 ÷ 0 has no value, so the graph has no point on the y-axis.

  2. Plot three anchor points on the right: (12, 2), (1, 1) and (2, 12).

  3. Plot the matching points on the left by switching both signs: (−12, −2), (−1, −1) and (−2, −12). A negative input gives the same size of output with a minus sign.

  4. Near zero, test inputs closer and closer to 0 from each side. From the right the outputs climb without bound. From the left they drop without bound.

  5. Far away, test inputs of larger and larger size. The outputs close in on 0, from above on the right and from below on the left.

  6. Draw two separate smooth branches, one in Quadrant I and one in Quadrant III. Do not join them across x = 0.

  7. Write each trend in arrow notation: first where x heads, then where f(x) heads.

Strategy

  1. Pick the place to study: beside a break in the graph (for 1x, the break is at x = 0) or far out to the right or left.

  2. Choose inputs that march toward that place from one side, such as 0.1, 0.01, 0.001 for the right side of 0, or 10, 100, 1000 for far to the right.

  3. Compute the output for each input and put the pairs in a table.

  4. Read the trend in the output row: growing without bound, falling without bound, or closing in on one number.

  5. Write the sentence in two halves: as x → (where the inputs head), f(x) → (where the outputs head).

  6. Repeat for the other side of the break and for the other far direction. Each one gets its own statement.

Question

What does f(x) = 1x do as x approaches 0 from the left? In plain words: the inputs are negative numbers sliding toward 0. Find where the outputs head.

Answer

As x → 0−, f(x) → −∞.

Trap

The most common mistake is running the two behaviors together: thinking a small input gives a small output, or writing "as x → 0, f(x) → 0". It is the reverse. Inputs near 0 give outputs far from 0, and inputs far from 0 give outputs near 0. Before you write any arrow statement, plug in one test number, such as 0.01 or 1000, and look at both the size and the sign of the answer.

Term

rational function

Definition

A function written as a fraction: one polynomial on top, another polynomial on the bottom. It is defined everywhere except where the bottom equals zero.

Term

vertical asymptote

Definition

A vertical line x = a that the graph shoots up or down beside and never touches. It sits at an input where the bottom is zero after canceling. Say it AS-im-toht.

Term

horizontal asymptote

Definition

A horizontal line y = b that the graph settles toward as x goes far right or far left. It describes the far ends only. The graph may cross it in the middle.

Term

arrow notation

Definition

Shorthand for a trend. x → 2 means x moves toward 2. A raised plus or minus means from the right or the left. f(x) → ∞ means outputs grow without end.

The domain of a rational function

In plain words

Picture a vending machine with one broken button.

Rule

A rational function has the form f(x) = P(x)Q(x), where P(x) and Q(x) are polynomials and Q(x) is not the zero polynomial.
Domain of f: every real number x with Q(x) ≠ 0. Solve Q(x) = 0 on the original formula, before any canceling, and leave out each solution.

Step

  1. Say what is asked. 'Find the domain' means: list every input x that gives an output.

  2. Cover the top. Copy down only the bottom of the formula as it was given. Do not cancel anything first.

  3. Set the bottom equal to 0. This hunts for the inputs that would make the machine divide by 0.

  4. Solve that equation. If the bottom is a line, undo the adding and the multiplying. If it has x2 or higher, factor it and set each factor equal to 0.

  5. Plug each solution back into the original bottom and confirm that you get 0.

  6. Write the domain: all real numbers except those solutions. On a number line, put an open dot at each excluded number and write the pieces between them in interval notation, joined by ∪.

Strategy

  1. Work from the formula exactly as it was given. Do not simplify or cancel yet.

  2. Ignore the top. Write the bottom by itself.

  3. Set the bottom equal to 0. The solutions are the inputs to throw out, not the domain itself.

  4. Solve. A bottom like 2x − 6 takes two moves: add 6, then divide by 2. A bottom with x2 or x3 needs factoring first, then each factor is set equal to 0.

  5. Plug every solution back into the original bottom to see the 0 with your own eyes.

  6. Line the excluded numbers up from smallest to largest. They cut the number line into pieces. Write each piece with round parentheses and join the pieces with ∪.

  7. Count: one excluded number makes two pieces, two make three, three make four. If nothing is excluded, the domain is (−∞, ∞).

Question

Find the domain of f(x) = 2x+1x2−x−12. In plain words: list every input x that gives an output, by first finding the inputs that do not.

Answer

Excluded inputs: x = −3 and x = 4
Domain: (−∞, −3) ∪ (−3, 4) ∪ (4, ∞)
In words: all real numbers except −3 and 4

Trap

Canceling before you find the domain. f(x) = x2−1x−1 factors to (x−1)(x+1)x−1 and cancels to x + 1, which looks as if it accepts every number. But the original formula at x = 1 is 0 ÷ 0, which has no answer. The domain is still (−∞, 1) ∪ (1, ∞). Always solve bottom = 0 on the formula as it was given, and simplify only after that.

Term

rational function

Definition

A function written as a fraction: one polynomial on top, another polynomial on the bottom. It is defined everywhere except where the bottom equals zero.

Vertical asymptotes and holes

In plain words

Picture a long sidewalk.

Rule

Factor the top and the bottom and cancel every common factor. If x = a still makes the bottom zero after canceling, the line x = a is a vertical asymptote. If x = a makes the original bottom zero but no longer makes the simplified bottom zero, the graph has a hole (a removable discontinuity) at x = a, and the height of the hole is the value of the simplified formula at a.

Step

  1. Factor the top and the bottom completely.

  2. Set the original bottom equal to 0 and solve. These are the inputs the function cannot take. Every break in the graph sits at one of them.

  3. Cancel every factor that appears in both the top and the bottom. Write the simplified formula, and keep a note of every input you excluded in step 2.

  4. Test each excluded input in the simplified bottom. If the bottom is still zero there, the line x = a is a vertical asymptote.

  5. If the simplified bottom is no longer zero there, the graph has a hole at x = a. Plug a into the simplified formula to get the height b, and write the hole as the point (a, b).

  6. Count. The vertical asymptotes and the holes together must account for every excluded input from step 2.

Question

Find the vertical asymptote of g(x) = x+1x−4 and describe each side of it in arrow notation. In plain words: find the input where the outputs run away without limit, then say which way they run on each side.

Answer

Vertical asymptote: x = 4
As x → 4+, g(x) → ∞
As x → 4−, g(x) → −∞

Strategy

  1. Factor the top and the bottom completely.

  2. Set the original bottom equal to 0 and list every solution. These inputs are out of the domain.

  3. Cancel the factors shared by the top and the bottom, and write the simplified formula with a note of the excluded inputs.

  4. For each excluded input a, check the simplified bottom. Still zero: vertical asymptote x = a.

  5. Not zero any more: hole at x = a. Plug a into the simplified formula for the height.

  6. Count: walls plus holes must equal the number of excluded inputs.

Trap

The most common mistake is to stop at the domain: you find the zeros of the bottom and call every one of them a vertical asymptote. Some of them may be holes. Always factor and cancel first, then sort each excluded input by whether it still makes the simplified bottom zero. Still zero means a wall. No longer zero means a hole, with its height taken from the simplified formula.

Term

rational function

Definition

A function written as a fraction: one polynomial on top, another polynomial on the bottom. It is defined everywhere except where the bottom equals zero.

Term

vertical asymptote

Definition

A vertical line x = a that the graph shoots up or down beside and never touches. It sits at an input where the bottom is zero after canceling. Say it AS-im-toht.

Term

removable discontinuity

Definition

A single missing point in a graph, also called a hole. It appears when a factor (x − a) cancels from top and bottom with no copy of it left in the bottom: the curve looks unbroken, but that one input has no output.

Term

arrow notation

Definition

Shorthand for a trend. x → 2 means x moves toward 2. A raised plus or minus means from the right or the left. f(x) → ∞ means outputs grow without end.

Horizontal and slant asymptotes

In plain words

Picture a tug of war between the top and the bottom of the fraction while x grows huge.

Rule

For a top that is not the constant 0, compare the degree of the top with the degree of the bottom. Top degree < bottom degree: horizontal asymptote y = 0. Degrees equal: horizontal asymptote y = leadingcoefficientofthetopleadingcoefficientofthebottom. Top degree = bottom degree + 1: no horizontal asymptote, and the slant asymptote is y = the quotient of top ÷ bottom with the remainder dropped. Top degree bigger by 2 or more: neither.

Step

  1. Find the degree of the top and the degree of the bottom: the highest power of x in each. Write both numbers down. A top that is the constant 0 has no degree: that function is 0 wherever it is defined.

  2. If the top's degree is smaller, the horizontal asymptote is y = 0. Stop.

  3. If the degrees are equal, divide the leading coefficient of the top by the leading coefficient of the bottom, keeping both signs. That number is the height of the horizontal asymptote. Stop.

  4. If the top's degree is exactly one more, divide the top by the bottom with polynomial division. The quotient, without the remainder, is the slant asymptote.

  5. If the top's degree is two or more above the bottom's, report that there is no horizontal asymptote and no slant asymptote.

  6. As a consistency check, try a big input such as x = 100 or x = 1000; the output is usually close to the line you found. The degrees or the division decide the asymptote; the number only checks it.

Question

Find the horizontal asymptote of p(x) = 5xx2+4. In plain words: when x is huge, what height do the outputs settle toward?

Answer

Horizontal asymptote: y = 0.

Strategy

  1. Write down two numbers: the degree of the top and the degree of the bottom. If the function is in factored form, multiply the leading terms of the brackets to find each. A top that is the constant 0 has no degree: that function is 0 wherever it is defined.

  2. Top degree smaller: the horizontal asymptote is y = 0.

  3. Degrees equal: the horizontal asymptote is y = leading coefficient of the top ÷ leading coefficient of the bottom, signs included.

  4. Top degree exactly one more: divide the top by the bottom with polynomial division. The slant asymptote is y = the quotient, with the remainder dropped.

  5. Top degree two or more above: there is no horizontal asymptote and no slant asymptote.

  6. Consistency check: plug in x = 100 or x = 1000. The output is usually near the horizontal asymptote's height, or near the slant line's height at that x. The algebra decides; a single input only checks it.

Trap

Dividing the leading coefficients without first comparing the degrees. The ratio of leading coefficients is the horizontal asymptote only when the two degrees are equal. For 3x+1x2−4 the tempting answer y = 3 is wrong: the bottom is stronger, so the answer is y = 0. Write the two degrees down before you touch the coefficients.

Term

rational function

Definition

A function written as a fraction: one polynomial on top, another polynomial on the bottom. It is defined everywhere except where the bottom equals zero.

Term

vertical asymptote

Definition

A vertical line x = a that the graph shoots up or down beside and never touches. It sits at an input where the bottom is zero after canceling. Say it AS-im-toht.

Term

horizontal asymptote

Definition

A horizontal line y = b that the graph settles toward as x goes far right or far left. It describes the far ends only. The graph may cross it in the middle.

Term

slant asymptote

Definition

A tilted line y = mx + b that the graph follows far out. It appears when the top's degree is exactly one more than the bottom's. Dividing gives its equation.

Term

removable discontinuity

Definition

A single missing point in a graph, also called a hole. It appears when a factor (x − a) cancels from top and bottom with no copy of it left in the bottom: the curve looks unbroken, but that one input has no output.

Term

arrow notation

Definition

Shorthand for a trend. x → 2 means x moves toward 2. A raised plus or minus means from the right or the left. f(x) → ∞ means outputs grow without end.

Intercepts of a rational function

In plain words

Picture a map with two straight roads.

Rule

Let f(x) = p(x)q(x) be a rational function, where p(x) is the top and q(x) is the bottom.
y-intercept: the point (0, f(0)), when q(0) ≠ 0. When q(0) = 0 there is no y-intercept.
x-intercepts: every point (a, 0) where p(a) = 0 and q(a) ≠ 0. A zero of the top that also makes the bottom 0 is never an x-intercept.

Step

  1. Factor the top and the bottom. Use the original bottom to list the domain: every x except the ones that make the bottom 0.

  2. For the y-intercept, ask whether 0 is in the domain. If it is, compute f(0) and write the point (0, f(0)). If it is not, write: no y-intercept.

  3. For the x-intercepts, set the top equal to 0 and solve. These answers are the candidates.

  4. Test each candidate in the original bottom. Cross out any candidate that makes the bottom 0.

  5. Write each surviving candidate a as the point (a, 0).

  6. Check: put each surviving candidate into the original formula. You should get 0 over a number that is not 0.

Question

Find the y-intercept of f(x) = 2x+6x+2. In plain words: the input is 0. Find the output and write the point.

Answer

y-intercept: (0, 3)

Strategy

  1. Factor the top and the bottom.

  2. Set the original bottom equal to 0 and solve. Those inputs are out of the domain. Keep the list beside you.

  3. y-intercept: if 0 is not on that list, compute f(0) and write (0, f(0)). If 0 is on the list, there is no y-intercept.

  4. x-intercepts: set the top equal to 0 and solve to get the candidates.

  5. Cross out every candidate that is on the list from step 2.

  6. Write each survivor a as (a, 0), then check it in the original formula.

Trap

Keeping a zero of the top that also makes the bottom zero. For f(x) = x2−1x−1, the top is 0 at x = 1 and at x = −1. But x = 1 makes the bottom 0 too, so f(1) is 0 ÷ 0, which is undefined. The graph has a hole at (1, 2) there, and the only x-intercept is (−1, 0). Test every candidate in the original bottom before you call it an intercept.

Term

rational function

Definition

A function written as a fraction: one polynomial on top, another polynomial on the bottom. It is defined everywhere except where the bottom equals zero.

Term

vertical asymptote

Definition

A vertical line x = a that the graph shoots up or down beside and never touches. It sits at an input where the bottom is zero after canceling. Say it AS-im-toht.

Term

horizontal asymptote

Definition

A horizontal line y = b that the graph settles toward as x goes far right or far left. It describes the far ends only. The graph may cross it in the middle.

Term

removable discontinuity

Definition

A single missing point in a graph, also called a hole. It appears when a factor (x − a) cancels from top and bottom with no copy of it left in the bottom: the curve looks unbroken, but that one input has no output.

Graphing a rational function from its features

In plain words

Think of drawing a road on a map before you have driven it.

Rule

For a top that is not the constant 0, split the x-axis at every x-intercept, every vertical asymptote and every hole. On each interval between neighboring split points, f(x) keeps one sign, so one test point tells whether the graph is above or below the x-axis there. The sketch is: dashed asymptotes, plotted intercepts, an open circle at each hole, one test point per interval, then smooth branches that never cross a vertical asymptote and, at the far left and far right, level toward the horizontal asymptote or slant asymptote. When the top's degree is two or more above the bottom's, there is neither, and the far ends follow the polynomial quotient that division gives.

Step

  1. Factor the top and the bottom completely. Set the original bottom equal to 0 to find the inputs to throw out, and write the domain.

  2. Cancel any factor the top and bottom share. Each canceled factor (x − a) with no copy of it left in the bottom marks a hole at x = a: plug a into the simplified formula to get the hole's height, and plan an open circle there.

  3. Set the simplified bottom equal to 0. Each solution is a vertical asymptote. Draw a dashed vertical line at each one.

  4. Compare the degrees of top and bottom to get the horizontal asymptote, or divide when the top's degree is one more to get the slant asymptote. Draw it dashed.

  5. Find the intercepts: f(0) for the y-intercept when 0 is in the domain, and for the x-intercepts the zeros of the simplified top where the original bottom is not 0. Plot them.

  6. Mark every x-intercept, vertical asymptote and hole on the x-axis; with a top that is not the constant 0 there are finitely many. These split points cut the axis into intervals.

  7. Pick one test point inside each interval, plug it in, and plot the point. A positive output means that stretch is above the x-axis. A negative output means it is below.

  8. Draw each branch last: through its plotted points, climbing or diving beside each vertical asymptote on the side its test point says, and, at the far left and far right, leveling toward the horizontal or slant asymptote, or following the quotient from division when there is neither. Put the open circle at each hole.

  9. Check with one input very close to each vertical asymptote and one input far out, such as x = 100.

Strategy

  1. Factor: factor top and bottom, and write the domain from the original bottom.

  2. Holes: cancel shared factors. Each canceled factor (x − a) with no copy of it left in the bottom gives an open circle at x = a, with its height from the simplified formula.

  3. Vertical asymptotes: the zeros of the simplified bottom. Draw them dashed.

  4. Horizontal or slant asymptote: compare degrees, or divide when the top's degree is one more. Draw it dashed.

  5. Intercepts: f(0) for the y-intercept when 0 is in the domain; for the x-intercepts, zeros of the simplified top where the original bottom is not 0.

  6. Test points: one input inside each interval between split points. Plot each one.

  7. Sketch: one smooth branch at a time, obeying every dashed line, then check with numbers.

Question

Sketch the graph of f(x) = x2−x−2x2−4. In plain words: find every feature of the graph from the formula, then draw the one curve that fits all of them.

Answer

Domain: all real numbers except −2 and 2.
Hole (removable discontinuity): open circle at (2, 34).
Vertical asymptote: x = −2.
Horizontal asymptote: y = 1.
Intercepts: (−1, 0) and (0, 12).
Left branch: above y = 1, through (−3, 2), climbing as x approaches −2 from the left.
Right branch: rising from far below beside x = −2, through (−1.5, −1), (−1, 0), (0, 12), the open circle at (2, 34) and (3, 45), leveling toward y = 1 from below.

Trap

The most common mistake is to plot a handful of points and join them all in one stroke, straight through a vertical asymptote. The function has no output at a vertical asymptote, so no part of the curve may pass through that dashed line. Draw every asymptote first, lift the pencil at each vertical one, and let the test point on each side decide whether that side climbs or dives.

Term

rational function

Definition

A function written as a fraction: one polynomial on top, another polynomial on the bottom. It is defined everywhere except where the bottom equals zero.

Term

vertical asymptote

Definition

A vertical line x = a that the graph shoots up or down beside and never touches. It sits at an input where the bottom is zero after canceling. Say it AS-im-toht.

Term

horizontal asymptote

Definition

A horizontal line y = b that the graph settles toward as x goes far right or far left. It describes the far ends only. The graph may cross it in the middle.

Term

slant asymptote

Definition

A tilted line y = mx + b that the graph follows far out. It appears when the top's degree is exactly one more than the bottom's. Dividing gives its equation.

Term

removable discontinuity

Definition

A single missing point in a graph, also called a hole. It appears when a factor (x − a) cancels from top and bottom with no copy of it left in the bottom: the curve looks unbroken, but that one input has no output.

Term

arrow notation

Definition

Shorthand for a trend. x → 2 means x moves toward 2. A raised plus or minus means from the right or the left. f(x) → ∞ means outputs grow without end.

Writing a rational function from its graph

In plain words

So far you were handed a formula and you drew its graph.

Rule

The first candidate formula, with the simplest factors, for a graph that crosses the x-axis at x = p and x = q, has vertical asymptotes at x = r and x = s, and has a hole at x = c is f(x) = a · (x−p)(x−q)(x−c)(x−r)(x−s)(x−c) with a ≠ 0. With no hole, leave out both (x − c) factors. Find a by plugging in one more point of the graph that is not on the x-axis. If the graph goes the same way on both sides of a vertical asymptote, square that bottom factor, the simplest even power. If the graph touches the x-axis at an intercept and turns back, square that top factor. Check the candidate against the rest of the graph: a graph can call for higher powers or for factors with no real zero, such as x2 + 1.

Step

  1. Say what the question asks: build the fraction whose graph has exactly the features you see.

  2. List the x-intercepts. For a crossing at x = p, write the factor (x − p) on the top, and for a touch that turns back, (x − p)2. If there are no x-intercepts, try a top with no x in it, the simplest choice; the rest of the graph can still call for a factor with no real zero, such as x2 + 1.

  3. List the vertical asymptotes. For a wall at x = r, write the factor (x − r) on the bottom. If the graph goes the same way (both up or both down) on the two sides of the wall, write (x − r)2 instead.

  4. Look for a hole (an open circle). For a hole at x = c, write (x − c) on both the top and the bottom.

  5. Put an unknown number a in front of the fraction.

  6. Pick one point on the graph that is not on the x-axis and is not the hole. The y-intercept is usually the most convenient. Plug in its x and its y, then solve for a.

  7. Write the finished formula. Check it against a feature you did not use: the horizontal asymptote or a second point.

Question

The graph shows a rational function. It has a vertical asymptote at x = −2, crosses the x-axis at (1, 0), crosses the y-axis at (0, −1), and levels off at the horizontal asymptote y = 2. Write a formula for it. In plain words: build the fraction whose graph has exactly these features.

Answer

f(x) = 2(x−1)x+2, which multiplies out to 2x−2x+2

Trap

Stopping after the factors. x−1x+2 has the right crossing and the right wall, but its graph passes through (0, −12) and levels off at y = 1. The graph in the example passes through (0, −1) and levels off at y = 2. Always write a in front and use a point to find it, even when a turns out to be 1.

Strategy

  1. List every feature the graph shows: x-intercepts, vertical asymptotes, holes, the horizontal asymptote, and at least one other point.

  2. Turn each x-intercept at x = p into a factor on the top: (x − p) where the graph crosses, (x − p)2 where it touches and turns back.

  3. Turn each vertical asymptote at x = r into a factor (x − r) on the bottom, squared if both sides of the wall go the same way.

  4. Turn each hole at x = c into a factor (x − c) on both the top and the bottom.

  5. Write a in front, plug in a point that is off the x-axis and is not the hole, and solve for a.

  6. Check the finished formula against a feature you did not use.

Term

rational function

Definition

A function written as a fraction: one polynomial on top, another polynomial on the bottom. It is defined everywhere except where the bottom equals zero.

Term

vertical asymptote

Definition

A vertical line x = a that the graph shoots up or down beside and never touches. It sits at an input where the bottom is zero after canceling. Say it AS-im-toht.

Term

horizontal asymptote

Definition

A horizontal line y = b that the graph settles toward as x goes far right or far left. It describes the far ends only. The graph may cross it in the middle.

Term

slant asymptote

Definition

A tilted line y = mx + b that the graph follows far out. It appears when the top's degree is exactly one more than the bottom's. Dividing gives its equation.

Term

removable discontinuity

Definition

A single missing point in a graph, also called a hole. It appears when a factor (x − a) cancels from top and bottom with no copy of it left in the bottom: the curve looks unbroken, but that one input has no output.