Rational functions, transformations and modelling
🖨 Print a self-study sheet Why print?
A lamp looks dimmer the further away you stand. A drink gets weaker the more water you add. The average cost of each item falls the more items a factory makes. In each case one quantity shrinks as another grows, and rational functions, which are quotients of polynomials, are the tool for describing it. The AP Precalculus exam asks you to read their key features from the formula, to describe what happens near the "breaks" in the graph, and to explain in context what an asymptote means. This lesson also covers transformations of graphs and the choice of a model, two ideas that appear throughout Units 1 to 3.
Zeros, holes and vertical asymptotes
To read the features of , the first job is to factor the numerator and the denominator. Then we compare the factors on top with the factors on the bottom, because whether a factor cancels decides how the graph behaves at that place.
- A factor that cancels leaves a hole in the graph: just one point is missing there.
- A zero of the denominator that does not cancel gives a vertical asymptote: the graph shoots up or down without bound near that line.
- A zero of the numerator that does not cancel gives a zero of : the graph meets the horizontal axis there. Many students mix up a hole and a vertical asymptote, because both appear when the denominator is zero. Whether the factor cancels is what tells them apart.
End behavior of rational functions
When the input is very large, the highest-degree terms of the numerator and the denominator overpower everything else. So to see where the graph goes at its two ends, we only need to compare the degrees, as the table shows:
| Degrees | End behavior |
|---|---|
| numerator denominator | horizontal asymptote |
| numerator denominator | horizontal asymptote |
| numerator denominator | slant asymptote: a line found by division |
| numerator denominator +1 | behaves like a polynomial of degree (difference of degrees) |
Near a vertical asymptote x=a the denominator is very small, so the function values are very large: they grow without bound, upwards or downwards. We write this in limit notation, for example \displaystyle\lim_{x\to a^+}r(x)=\infty.
Transformations
Transformations let us build many new functions from a graph we already know, instead of drawing each one from scratch. The function g(x)=a\,f\big(b(x-h)\big)+k transforms the graph of f in four ways: a horizontal dilation by factor \dfrac1{|b|}, a horizontal translation by h, a vertical dilation by factor |a| and a vertical translation by k. When a or b is negative there is a reflection too. To follow a single point, take b=1: a point (x_0,y_0) on f moves to (x_0+h,\ ay_0+k).
Building and choosing models
When we meet a real situation, the first question is how the quantity behaves. If the rate of change is constant, we choose a linear function. If the second differences are constant, or there is a single turning point, we choose a quadratic. If one quantity is inversely proportional to another, we choose a rational function. Once the type is chosen, we use the given data to find the parameters.
Similar exercises
Find the hole and any vertical asymptotes of f(x)=\dfrac{x^2-9}{x-3}.
What you need: factor the numerator as a difference of squares.
Show solution
Factoring, f(x)=\dfrac{(x-3)(x+3)}{x-3}. The factor x-3 cancels, so f(x)=x+3 for x\ne3.
Since the only zero of the denominator cancels, there is no vertical asymptote. There is a hole at x=3, at height 3+3=6.
So the graph is the line y=x+3 with a hole at (3,6).
Answer. Hole at (3,6); no vertical asymptote.
Find the horizontal asymptote of g(x)=\dfrac{5x-1}{2x+3}.
What you need: equal degrees: divide the leading coefficients.
Show solution
The function g(x)=\dfrac{5x-1}{2x+3} is defined when 2x+3\neq0, that is x\neq-\dfrac32.
The horizontal asymptote is found from the limit of g(x) as x\to\pm\infty. Dividing the numerator and the denominator by x (for x\neq0), we have g(x)=\frac{5-\frac1x}{2+\frac3x}.
As x\to\pm\infty, we have \dfrac1x\to0 and \dfrac3x\to0, so \lim_{x\to\pm\infty}g(x)=\frac{5-0}{2+0}=\frac52.
This agrees with the rule: the numerator and the denominator both have degree 1, with leading coefficients 5 and 2, so the horizontal asymptote is y=\dfrac52.
So the horizontal asymptote of the graph of g is the line y=\dfrac52.
Answer. y=\dfrac52.
Find the slant asymptote of h(x)=\dfrac{x^2+1}{x}.
What you need: divide each term of the numerator by x.
Show solution
Dividing, h(x)=x+\dfrac1x.
As x\to\pm\infty, the term \dfrac1x tends to 0, so h(x) gets closer and closer to x.
So the slant asymptote is the line y=x.
Answer. y=x.
The graph of f(x)=x^2 is transformed to g(x)=(x+2)^2-1. Describe the transformation and give the vertex of g.
What you need: f(x+2) shifts left; -1 shifts down.
Show solution
Replacing x by x+2 translates the graph 2 units to the left, and subtracting 1 translates it 1 unit down.
The vertex (0,0) of f moves to (-2,-1).
So g is the graph of f translated 2 left and 1 down, with vertex (-2,-1).
Answer. Left 2, down 1; vertex (-2,-1).
The point (6,4) lies on the graph of f. Which point lies on the graph of g(x)=f(2x)?
What you need: solve 2x=6.
Show solution
For g(x)=f(2x) to use the value f(6), we need 2x=6, so x=3.
Then g(3)=f(6)=4.
So the point (3,4) lies on the graph of g: a horizontal dilation by factor \dfrac12.
Answer. (3,4).
Application exercises
A company's cost of producing x items is 500+4x dollars, so the average cost per item is A(x)=\dfrac{500+4x}{x}.
a) Find the horizontal asymptote of A.
b) Interpret it in context.
What you need: equal degrees, or divide each term by x.
Show solution
a) Dividing, A(x)=\dfrac{500}{x}+4. As x\to\infty, \dfrac{500}{x}\to0, so the horizontal asymptote is y=4.
b) The fixed cost of 500 dollars is spread over more and more items, so the average cost approaches the cost of 4 dollars for each extra item.
So the average cost per item approaches 4 dollars as production increases.
Answer. y=4: the average cost tends to 4 dollars per item.
The concentration of a medicine in the blood, in mg/L, t hours after an injection is C(t)=\dfrac{5t}{t^2+1}.
a) Find the concentration after 2 hours.
b) What happens to the concentration in the long run? Explain using the degrees.
What you need: substitute t=2; compare the degrees of the numerator and the denominator.
Show solution
a) C(2)=\dfrac{10}{4+1}=2 mg/L.
b) The numerator has degree 1 and the denominator degree 2, so C(t)\to0 as t\to\infty.
So the concentration is 2 mg/L after 2 hours and approaches 0 in the long run, as the body removes the medicine.
Answer. a) 2 mg/L; b) it tends to 0.
A rectangle has area 36 m². Express its length L as a function of its width w, and describe what happens to L as w becomes very small.
What you need: Lw=36.
Show solution
From Lw=36, we get L=\dfrac{36}{w} for w>0.
As w\to0^+, L=\dfrac{36}{w}\to\infty: the graph has a vertical asymptote at w=0.
So L=\dfrac{36}{w}, and a very narrow rectangle with area 36 m² must be very long.
Answer. L=\dfrac{36}{w}; L\to\infty as w\to0^+.
Write a rational function with a vertical asymptote x=2, a horizontal asymptote y=3 and a zero at x=1.
What you need: put x-2 in the denominator, x-1 in the numerator, and choose the leading coefficient for the horizontal asymptote.
Show solution
The zero at x=1 needs a factor x-1 in the numerator, and the vertical asymptote x=2 needs a factor x-2 in the denominator that does not cancel.
With numerator and denominator of degree 1, the horizontal asymptote is the ratio of the leading coefficients, so we take 3 in the numerator: r(x)=\frac{3(x-1)}{x-2}.
Check: r(1)=0, the denominator is zero at x=2, and the ratio of leading coefficients is 3.
So r(x)=\dfrac{3(x-1)}{x-2} is one such function.
Answer. For example r(x)=\dfrac{3(x-1)}{x-2}.
Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.
Part I. Multiple choice
\dfrac{x+1}{(x-1)(x+1)}: the factor x+1 cancels (a hole at x=-1).
Equal degrees: \dfrac42=2.
Adding inside the bracket shifts the graph left.
\dfrac{x^3}{x^2+1}=x-\dfrac{x}{x^2+1}, and the last term tends to 0.
Part II. True or false
| a) r has a zero at x=2. | ||
| b) The graph has a vertical asymptote x=-1. | ||
| c) The graph has a horizontal asymptote y=1. | ||
| d) r(0)=2. |
r(0)=\dfrac{-2}{1}=-2.
Part III. Short answer
For x\ne1, f(x)=x+1, which is 2 at x=1.
\dfrac63=2.
Show answers and explanations
- Part I, question 1: B. \dfrac{x+1}{(x-1)(x+1)}: the factor x+1 cancels (a hole at x=-1).
- Part I, question 2: D. Equal degrees: \dfrac42=2.
- Part I, question 3: A. Adding inside the bracket shifts the graph left.
- Part I, question 4: C. \dfrac{x^3}{x^2+1}=x-\dfrac{x}{x^2+1}, and the last term tends to 0.
- Part II, question 1: a) True; b) True; c) True; d) False. r(0)=\dfrac{-2}{1}=-2.
- Part III, question 1: 2. For x\ne1, f(x)=x+1, which is 2 at x=1.
- Part III, question 2: 2. \dfrac63=2.