Quarry School

Writing a rational function from its graph — quick review

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.