Rational Functions Advanced. This lesson goes beyond core Algebra I. You can skip it.
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Exclude the zeros of the denominator from the domain
- Graph as a hyperbola with two branches
- Tell a vertical asymptote from a hole by whether the factor cancels
- Compare degrees to find the horizontal asymptote
- Read asymptotes and from the shifted form
- Clear denominators, then discard extraneous candidates
What a rational function is
A rational function is a ratio of two polynomials,
where is not the zero polynomial (the polynomial that equals zero at every input). The word rational comes from ratio: just as a rational number is one integer over another, a rational function is one polynomial over another. Every polynomial you have already studied is a rational function in disguise, since you can write it over the denominator . But the new behavior shows up when the denominator contains the variable.
Our starting example is the reciprocal function
It sends to , sends to , and sends to , turning each input into its reciprocal. A few more examples show the range of shapes the definition allows:
A variable denominator can exclude inputs and create lines that the graph approaches, called asymptotes. Neither feature is required. For example, excludes no real input, though it has a horizontal asymptote. A polynomial such as has no excluded inputs and no straight-line asymptotes.
Finding the domain
A polynomial accepts every real number, but a rational function is choosier. Wherever the denominator equals zero, the rule asks you to divide by zero, and that has no answer. So the domain of a rational function is every real number except the values that make the denominator zero. To find those forbidden inputs, set the denominator equal to zero and solve.
Why dividing by zero has no value#
The quotient means . In general, means . What happens if the divisor is zero?
For , we would need . Every number times zero is zero, so no number works. The same problem occurs for any nonzero :
For , the requirement is . Now every number works, including and , so there is no unique quotient. Thus division by zero fails in both cases: a nonzero numerator gives no answer, and a zero numerator gives no single answer. This is why every zero of the denominator is excluded.
Worked example 1 Find the domain of three rational functions
For each one, set only the denominator to zero, since the numerator never restricts the domain.
For , the denominator is zero when , that is . The domain is every real number except .
For , factor the denominator to find its zeros:
The domain is every real number except and .
For , set , which gives . No real number has a negative square, so the denominator is never zero, and the domain is all real numbers with nothing to exclude.
Check your understanding
What is the domain of ?
The domain excludes only the zeros of the denominator, so factor it and set each factor to zero.
The numerator plays no role in the domain, so the domain is every real number except and .
The reciprocal function and its hyperbola
To see what a rational graph looks like, plot the reciprocal point by point, keeping in mind that is barred from the domain:
The points fall into two separate pieces, called branches. For positive inputs both coordinates are positive, so that branch lives in the upper-right quadrant. For negative inputs both coordinates are negative, so the other branch sits in the lower-left. The two branches never join, because to pass from one to the other the curve would have to cross , and there is no point there. This two-branch curve is a hyperbola.
Look at what happens at the edges. As grows very large in size, say or , the reciprocal becomes very small, then , creeping toward zero without ever equaling it. So far out to the left and right the curve snuggles down against the x-axis. The horizontal line the graph approaches this way is a horizontal asymptote, and here it is the line .
Now let get very close to , say . Then , and at it is : the closer gets to zero, the larger becomes (or the more negative, for small negative ). The curve rises along the y-axis without bound, hugging it ever more tightly but never landing on it, since is not allowed. The vertical line the graph runs along like this is a vertical asymptote, and here it is the line .
An asymptote is a straight line that describes the graph’s behavior far out along a branch. A horizontal asymptote describes a height approached as runs far to the left or right; one direction is enough for the definition. For rational functions, a horizontal asymptote describes both ends. A vertical asymptote describes unbounded outputs as approaches a fixed value. The line is a guide; a graph can cross a horizontal asymptote at an ordinary input, even though this reciprocal graph does not.
Check your understanding
The graph of is a hyperbola with two branches. In which two quadrants do those branches lie?
For a positive input, is negative, so that branch lives where and : the lower-right quadrant. For a negative input, is positive, giving and : the upper-left quadrant. The two asymptotes are unchanged from , the lines and ; only the sign flips which quadrants the branches occupy.
Vertical asymptotes and holes
Compare with . Both exclude , but their nearby values differ:
The first denominator shrinks while its numerator stays , so the outputs grow without bound. The second fraction simplifies to for . Its outputs approach , but is still missing.
Factor and cancel completely before deciding:
- If a factor remains in the reduced denominator, is a vertical asymptote.
- If every copy disappears from that denominator, the excluded input gives a hole. Substitute it into the reduced rule to find the missing point’s height.
Canceling just one copy is not enough if another remains. For example, for , so it still has a vertical asymptote.
The signs can differ even when both graphs have a vertical asymptote. At and , gives and , while gives on both sides. An odd number of remaining copies of changes sign across ; an even number does not. Either case still gives unbounded output size. For instance, makes .
In general, a leftover denominator factor shrinks toward zero while the reduced numerator stays near a nonzero value; complete cancellation instead leaves a formula with a finite value at the excluded input. A full proof of these general statements belongs in calculus, using limits and continuity.
Worked example 2 Find the vertical asymptotes of
The denominator is zero at and . Check whether either factor also cancels with the numerator .
At the numerator is , and at it is . Neither is zero, so neither factor cancels, and both survive in the denominator.
are therefore vertical asymptotes. Near , for instance, the numerator stays close to while the denominator shrinks toward zero. So the fraction grows without bound, and the curve shoots off along the line .
Worked example 3 Locate the hole and the asymptote of
Factor the top and bottom completely and see what cancels:
The factor appears on both the top and the bottom, so it cancels, leaving
Because canceled completely, gives a hole, not an asymptote. Its height is the value of the reduced form there,
so the hole sits at . The other factor, , does not cancel, so is a genuine vertical asymptote. Both and are still excluded from the domain, but the graph looks different at each. The hole at is a single missing point, and the asymptote at is a line the curve runs along.
Check your understanding
The graph of has a hole at which point?
Factor and cancel. The denominator is a difference of squares, so
The factor cancels, so is a hole, not an asymptote. Its height is the reduced value , so the hole is at .
Horizontal asymptotes and end behavior
Vertical asymptotes describe what the graph does near a forbidden input. The horizontal asymptote describes the opposite edge: what height the graph settles toward as runs far out to the left and right. For large input sizes, a nonzero polynomial is dominated by its highest-power term.
Take in . The square term is , while is times smaller and barely nudges the total. The larger becomes, the more completely the top-power term dwarfs everything else. So for the purpose of the far-out behavior, you may compare a rational function’s top and bottom by their leading terms alone. Assume both polynomials are nonzero. Let be the numerator degree and the denominator degree. Three cases result. (If the numerator is identically zero, every allowed output is simply zero.)
If , the denominator’s top power outgrows the numerator’s, so you are dividing a slower-growing quantity by a faster-growing one, and the ratio is squeezed toward zero. The horizontal asymptote is
If , the top and bottom grow at the same rate, and each is dominated by its leading term. Writing the leading coefficients as (top) and (bottom), the ratio settles toward
If , the numerator grows faster than the denominator, so the fraction grows without bound in size and never levels off. There is no horizontal asymptote. In the special case where the numerator is exactly one degree higher, the graph instead lines up far out with a slanted line called a slant asymptote. To see the idea without a new division method, expand . It follows that
The last term approaches zero for large positive or negative , so the graph approaches . The main degree rule remains: a higher numerator degree gives no horizontal asymptote.
Worked example 4 Find the horizontal asymptote in each degree case
Compare the degree of the top with the degree of the bottom.
For , the top has degree and the bottom degree , so . The bottom wins for large , dragging the ratio toward zero:
For , the degrees are equal at , so compare the leading terms. The leading coefficients are on top and on the bottom:
You can sanity-check this by plugging in : the top is about and the bottom about , a ratio near , exactly as predicted.
For , the top has the higher degree, against , so . The fraction grows without bound and there is no horizontal asymptote.
Check your understanding
What is the horizontal asymptote of ?
The top and bottom have the same degree, , so the horizontal asymptote is the ratio of the leading coefficients.
x-intercepts and shifting the hyperbola
A fraction equals zero only when its numerator equals zero (and its denominator does not). So to find where a rational graph crosses the x-axis, set the numerator to zero and solve. Then discard any solution that also makes the denominator zero, since that input is not even in the domain. For the numerator is zero at , and since the denominator there is , the x-intercept is .
Reading a transformed reciprocal is just as direct. Every function of the form
is the basic hyperbola shifted and scaled, using the same moves you applied to other graphs. The in the denominator shifts the graph right by , which drags the vertical asymptote from over to . The on the outside lifts the whole graph up by , carrying the horizontal asymptote from up to . The factor scales the branches. Changing to its negative reflects them across the horizontal asymptote . So the two asymptotes cross at the point , the new center of the hyperbola. The domain and range shift the same way: can be anything but , since that is where the fraction has no value, and can be anything but , since adding to a fraction that never equals zero can never land exactly on .
Worked example 5 Analyze
Match the rule to the form . Writing as gives , and the constant is , with .
The vertical asymptote sits where the denominator is zero, at , and the horizontal asymptote is the added constant, . The center of the hyperbola is where they cross, .
Now read off the intercepts. The y-intercept comes from :
so the graph crosses the y-axis at . The x-intercept comes from setting :
so the graph crosses the x-axis at . With the two asymptotes and these two crossings, you have enough information to sketch this shifted reciprocal.
Check your understanding
What are the vertical asymptote, horizontal asymptote, and center of ?
Write as so it matches the form : this gives , so the vertical asymptote is . The added constant is , so the horizontal asymptote is . The two asymptotes cross at the center, . The sign you see in the denominator is the opposite of the direction the graph shifts, which is why you rewrite as before reading off .
Rebuild worked example 5 in the interactive graph: set , , and . The dashed asymptotes become and .
Now change one control at a time. Moving shifts the vertical asymptote; at , the denominator reads , and the graph shifts left by . Moving shifts the horizontal asymptote. Changing from positive to negative reflects the branches across that horizontal line.
At , the rule gives at every allowed input. The graph is a horizontal line with its point at missing, because is still undefined. There is no vertical asymptote in this special case. The interactive graph still shows the dashed vertical guide at ; when , that guide marks the excluded input, not an asymptote.
Slide the hyperbola
y = 1/x. Its center sits at (0, 0), not shifted at all. One branch lies above and to the right of it and the other below and to the left. It never reaches x = 0 or y = 0: those are its asymptotes.
Solving a rational equation
To solve an equation that has variables in a denominator, clear the fractions by multiplying every term by a common denominator. Then solve the polynomial equation that remains, and finally throw out any candidate that makes an original denominator zero. Do not skip that last step. Multiplying by an expression that could be zero can introduce a false solution, an extraneous one, exactly as squaring did for radical equations.
Worked example 6 Solve two rational equations, one of which has an extraneous solution
First solve . The restrictions are and . On those allowed inputs, multiply both sides by to clear the denominators:
The candidate is allowed. Substitution gives , so the only solution is .
Now solve , where . Multiply every term by :
Before celebrating, check the candidate against the original denominators. Here makes , so it was never in the domain. The candidate is extraneous, and the equation has no solution.
Check your understanding
Solve for , and state whether the result is a genuine solution.
Multiply every term by : , which gives , so . But makes the original denominator equal to zero, so it was never in the domain to begin with. The candidate is extraneous, and the equation has no solution.