โ๏ธ Function Kingdom ยท Functions
Rational Functions
Find where a rational function is undefined and what its graph does there: vertical and horizontal asymptotes, holes, intercepts and end behaviour, and use them to sketch and read the graph.
In short
- A rational function has no value exactly where its denominator is zero, so the domain question is always "what makes the bottom 0?".
- Factor the top and the bottom before deciding anything: a bracket only on the bottom is a vertical asymptote, the same bracket on both cancels and leaves a hole.
- The coordinates of a hole are two steps โ the x from the cancelled bracket, the y from substituting into the cancelled form, never the original.
- The horizontal asymptote comes from the degrees: bottom bigger gives y = 0, equal gives the ratio of the leading coefficients, top bigger gives none at all.
- The x-intercepts come from the numerator being zero; the y-intercept is f(0). They come from opposite halves of the fraction.
- Just to one side of a vertical asymptote the bracket is a tiny number whose sign decides whether the curve rises or falls, so test a value close by rather than guessing.
- In an average-cost model the horizontal asymptote is the cost of one more item once the fixed cost has been spread thin.
Where the ice is thin
Cartographer Iris maps Graph Lake by walking it, and the first thing she marks is not the shore โ it is the places she cannot stand.
A rational function is one polynomial divided by another:
f(x) = (x + 1)/(x - 3)
Everything interesting about it comes from one rule you already know: you cannot divide by zero. Wherever the bottom is zero, the function has no value at all. Every other x-value is fine.
So the domain of a rational function is found in one move: set the denominator equal to 0, solve, and throw those x-values out. For f(x) = (x + 1)/(x - 3), the bottom is zero when x - 3 = 0, so x = 3 is out and the domain is every real number except 3.
Two details cause almost every wrong answer here.
- Look only at the bottom. The numerator being zero is a perfectly ordinary event โ it just means the graph is sitting on the x-axis there.
- The sign flips. The bracket (x - 3) is zero at x = 3, and (x + 3) is zero at x = -3. Whatever number you read inside the bracket, the excluded x-value is its opposite.
If the denominator is a quadratic, factor it first. x2 - x - 6 = (x - 3)(x + 2) is zero at x = 3 and at x = -2, so two x-values are out, not one.
An asymptote or a hole: what the gap looks like
Knowing the bottom is zero at x = 3 tells you the function has no value there. It does not yet tell you what the graph does. There are two completely different pictures, and factoring both the top and the bottom is what tells them apart.
Case 1: the bracket is only on the bottom. Nothing cancels it. Close to that x-value the denominator is a tiny number, so the quotient becomes enormous, and the curve shoots off up or down. The vertical line there is a vertical asymptote โ a line the graph gets closer and closer to and never touches.
f(x) = (x + 1)/(x - 3) -> vertical asymptote x = 3
Case 2: the same bracket is on the top as well. It cancels, and what is left is an ordinary function with exactly one point missing. That single missing point is a hole.
f(x) = (x2 - 9)/(x - 3) = ((x - 3)(x + 3))/(x - 3) = x + 3, except at x = 3
The cancelling does not put the point back โ x = 3 is still outside the domain โ but the graph either side of it is just the line y = x + 3, so the gap is one dot wide.
Finding the coordinates of a hole is two steps, and the second is the one people skip.
- Step 1. The x-coordinate is the zero of the bracket that cancelled. Here x = 3.
- Step 2. The y-coordinate comes from substituting that x into the cancelled form, never the original. Here y = 3 + 3 = 6, so the hole is at (3, 6).
Substituting into the original gets you 0/0, which is not a height โ it is the signal that a bracket was waiting to cancel.
A function can have both at once. In ((x - 2)(x + 5))/((x - 2)(x - 1)) the bracket (x - 2) cancels, so x = 2 is a hole; (x - 1) survives on the bottom, so x = 1 is a vertical asymptote.
The far view: horizontal asymptotes from the degrees
A vertical asymptote is a close-up question. A horizontal asymptote is the opposite: what height does the graph settle at when x runs a long way out to the left or the right?
You do not need to substitute anything. When x is enormous, the highest power on each side dwarfs every other term, so the whole fraction behaves like the ratio of those two leading terms. That gives three cases, and only three.
- Bottom degree is bigger. The bottom wins the race, the quotient is squeezed towards nothing, and the asymptote is y = 0. For 7/(x - 2), a fixed 7 shared over a huge number is almost 0.
- The degrees are equal. The graph settles at the ratio of the leading coefficients. For (3x2 - x)/(2x2 + 5) the asymptote is y = 3/2 โ the -x and the +5 stop mattering long before the x2 terms do.
- Top degree is bigger. The values grow without bound and never settle, so there is no horizontal asymptote. That is a real answer, not a missing one.
Note the asymmetry: a graph can have many vertical asymptotes โ one for each surviving bracket on the bottom โ but at most one horizontal asymptote, because a curve can only settle at one height in each direction, and for these functions it is the same height both ways.
One more thing a vertical asymptote cannot do but a horizontal one can: the graph is allowed to cross a horizontal asymptote. The asymptote describes the far-out behaviour, not a wall. A vertical asymptote really is a wall, because the function has no value on it.
Intercepts, and putting the sketch together
The intercepts come from the two halves of the fraction, and they come from opposite halves โ which is exactly why they get swapped.
- The x-intercepts are where the graph meets the x-axis, so f(x) = 0. A fraction is zero only when its top is zero (and its bottom is not), so set the numerator to 0 and solve. For (x2 + 5x + 4)/(x + 5), factor the top into (x + 4)(x + 1): the intercepts are x = -4 and x = -1.
- The y-intercept is the height at x = 0, so substitute 0 for every x and work out f(0). For (x + 3)/((x - 2)(x + 5)), f(0) = 3/((-2)(5)) = 3/-10 = -3/10.
A cancelled bracket is not an intercept. In ((x - 3)(x - 1))/((x - 3)(x - 4)) the top is zero at x = 3 and at x = 1, but x = 3 is where the hole is โ the graph never touches the axis there, because it is not there at all. The only crossing is at x = 1.
With those pieces a sketch is a checklist, in this order.
- Factor the top and the bottom completely.
- Cancel any shared bracket, and mark a hole at its zero.
- Mark a dashed vertical line at every surviving zero of the bottom.
- Mark a dashed horizontal line from the degree rule, if there is one.
- Plot the intercepts.
- Join up: between two vertical asymptotes the curve has to travel from one to the other, and out at the edges it hugs the horizontal asymptote.
Reading behaviour, applications, and how to type the answer
Near a vertical asymptote, the side matters. "As x approaches 3 from the right" means x = 3.01, then 3.001 โ so x - 3 is a very small positive number. In f(x) = 1/(x - 3), dividing 1 by 0.001 gives 1000, and closer in it grows without bound: f rises. Approach from the left and x - 3 is a small negative number, so the same function falls without bound instead. Test with one number close by rather than guessing; the sign of that little bracket decides everything.
Applications are usually about a ratio that gets shared out. A workshop pays 60 gold to set up a print run and 10 gold a poster, so n posters cost 60 + 10n and the average cost is
C(n) = (60 + 10n)/n = 60/n + 10
As n grows, 60/n shrinks towards 0 and the average cost slides down towards 10 gold โ the horizontal asymptote, which here means "the cost of one more poster once the set-up is forgotten". Asking *how many posters bring the average down to 12 gold* is the same rational equation read backwards: (60 + 10n)/n = 12 gives 60 = 2n, so n = 30. Mixing problems work the same way, except that what you pour in raises the top and the bottom.
How to type your answer here.
- An asymptote is an equation, so type it as one: x = 3 for a vertical one, y = 2 for a horizontal one. x=3 without spaces is accepted, and so is a bare 3, but write the equation โ it is the habit that stops you calling a height an x-value.
- A hole is a point, typed as the pair (3, 6) โ x first, then y.
- Two asymptotes or two intercepts asked for together go in one pair, smaller x first: (-2, 3).
- An intercept on its own is a single number: 5, or a fraction in lowest terms such as -3/10.
- Where a horizontal asymptote might not exist, the question is multiple choice and one of the options says so. Choose it; "none" is an answer, not a blank.
Worked examples
Example 1
For f(x) = (x + 2)/(x2 - x - 12), state the domain and every vertical asymptote.
- The domain is decided by the bottom alone, so factor it: x2 - x - 12 needs two numbers with product -12 and sum -1, which are -4 and 3.
- x2 - x - 12 = (x - 4)(x + 3), so the bottom is zero at x = 4 and at x = -3.
- Check the top at each: x + 2 is 6 at x = 4 and -1 at x = -3, so neither bracket cancels.
- Domain: every real number except 4 and -3.
- Because nothing cancelled, both are vertical asymptotes: x = 4 and x = -3.
Example 2
The graph of f(x) = (x2 - 5x + 4)/(x2 - 2x - 8) has one hole. Find its coordinates.
- Factor the top: two numbers with product 4 and sum -5 are -4 and -1, so x2 - 5x + 4 = (x - 4)(x - 1).
- Factor the bottom: two numbers with product -8 and sum -2 are -4 and 2, so x2 - 2x - 8 = (x - 4)(x + 2).
- (x - 4) sits on both, so it cancels: f(x) = (x - 1)/(x + 2) for every x except 4.
- The hole is at x = 4. Its height comes from the cancelled form, not the original: (4 - 1)/(4 + 2) = 3/6 = 1/2.
- Hole: (4, 0.5). The bracket (x + 2) survives on the bottom, so x = -2 is a vertical asymptote โ a different kind of gap in the same graph.
Example 3
Find the horizontal asymptote and both intercepts of f(x) = (2x - 6)/(x + 4).
- Degrees first: the top has degree 1 and so does the bottom, so they are equal and the asymptote is the ratio of the leading coefficients.
- Leading coefficients 2 and 1, so the horizontal asymptote is y = 2.
- x-intercept: a fraction is zero when its top is zero, so 2x - 6 = 0 and x = 3. The bottom there is 7, which is fine.
- y-intercept: substitute x = 0. f(0) = (0 - 6)/(0 + 4) = -6/4 = -3/2.
- So the curve crosses the x-axis at x = 3, crosses the y-axis at -3/2, and flattens out towards y = 2 far to the left and far to the right.
Example 4
A stall pays 90 gold to set up and 4 gold for each lantern it makes. How many lanterns bring the average cost down to 7 gold each, and what does the average approach if it keeps going?
- Write the model: n lanterns cost 90 + 4n in total, so the average cost is C(n) = (90 + 4n)/n.
- Set the average equal to the target: (90 + 4n)/n = 7.
- Multiply both sides by n to clear the fraction: 90 + 4n = 7n.
- 90 = 3n, so n = 30 lanterns. Notice the 3: it is the gap between the 7 gold target and the 4 gold a lantern costs on its own.
- For the long run, split the fraction: C(n) = 90/n + 4. As n grows, 90/n shrinks towards 0, so the average slides towards the horizontal asymptote y = 4 โ and never quite reaches it, because the 90 gold always has to be paid by somebody.
Practice problems, with solutions
Three problems of increasing difficulty, each with the full working. In the game these are generated fresh every time; these three are fixed so this page always shows the same ones.
Problem 1
Difficulty 1 of 5f(x) = (x + 3)/(x - 4) What is the equation of the vertical asymptote of this graph? Answer in the form x = ...
Answer: x = 4
- Denominator: x - 4
- x - 4 = 0, so x = 4.
- The numerator (x + 3) has the value 7 at x = 4, so nothing cancels.
- Vertical asymptote: x = 4
Problem 2
Difficulty 3 of 5f(x) = (-2x2 + 4)/(5x2 + x - 1) What is the equation of the horizontal asymptote of this graph? Answer in the form y = ...
Answer: y = -2/5
- Both the top and the bottom have degree 2.
- Leading coefficients: -2 on top, 5 on the bottom.
- Their ratio is -2/5 = -2/5.
- Horizontal asymptote: y = -2/5
Problem 3
Difficulty 4 of 5f(x) = (x2 + 4x - 12)/(x2 + 14x + 48) The graph of f has a single hole in it. Give the coordinates of the hole as the pair (x, y).
Answer: (-6, -4)
- Numerator: x2 + 4x - 12 = (x + 6)(x - 2)
- Denominator: x2 + 14x + 48 = (x + 6)(x + 8)
- Cancel (x + 6): f(x) = (x - 2)/(x + 8) for every x except -6.
- At x = -6: (-6 - 2)/(-6 + 8) = -8/2 = -4.
- Hole: (-6, -4)
Common mistakes
- Flipping the sign of the asymptote: reading (x - 3) as x = -3. A bracket is zero at the opposite of the number written inside it.
- Calling every zero of the denominator an asymptote. If the same bracket is on the top it cancels, and that x-value is a hole instead.
- Answering y = 0 whenever there is a fraction. That is only right when the bottom has the strictly higher degree; with equal degrees the graph settles at the ratio of the leading coefficients.
- Computing the height of a hole from the original function and getting 0/0. The y-coordinate has to come from the cancelled form.
- Swapping the intercepts: solving the denominator for the x-intercept, or reading the numerator for the y-intercept. Zero on top gives the x-intercept; x = 0 substituted in gives the y-intercept.
- Treating a cancelled zero as an x-intercept. The graph does not touch the axis at a hole, because the graph is not there.
- Deciding a graph can never cross its horizontal asymptote. It often does in the middle; the asymptote only describes what happens far out to the left and right.
What you should be able to do
- State the domain of a rational function and tell a vertical asymptote from a hole.
- Find the horizontal asymptote from the degrees of the numerator and denominator.
- Find the intercepts and the coordinates of a hole.
- Match a rational function to its graph, and describe its behaviour near an asymptote.
Where this fits in the curriculum
Common Core
- HSF-IF.C.7.D
High school โ Graph rational functions, identifying zeros and asymptotes when suitable factorisations are available, and showing end behaviour.
HSF-IF.C.7.D is a (+) standard โ beyond the college- and career-ready threshold, i.e. precalculus rather than Algebra II.
- HSF-IF.B.5
High school โ Relate the domain of a function to its graph and, where applicable, to the quantitative relationship it describes.
- HSF-IF.B.4
High school โ For a function that models a relationship between two quantities, interpret key features of graphs and tables in terms of the quantities, and sketch graphs showing key features given a verbal description of the relationship.
SAT
- Passport to Advanced Math
The domain, asymptotes and graph of a rational function.