Functions, rational expressions, asymptotes
Rational Functions: Formulas, Properties, Asymptotes, and Graphs
A rational function is a ratio of polynomial functions. That simple definition leads to some of the most important ideas in algebra and precalculus: restricted domains, vertical asymptotes, horizontal asymptotes, holes, intercepts, transformations, inverse functions, and graph behaviour near undefined values.
What Is a Rational Function?
A rational function is any function that can be written as the quotient of two polynomial functions. The general form is:
\[ f(x)=\frac{P(x)}{Q(x)} \]
where \(P(x)\) and \(Q(x)\) are polynomials and \(Q(x) \ne 0\). The condition \(Q(x) \ne 0\) is not a minor detail. It is the reason rational functions often have restricted domains, vertical asymptotes, holes, and sharp changes in graph behaviour near certain \(x\)-values.
Rational functions sit between polynomial functions and more advanced functions. They use polynomial algebra, but the denominator creates behaviour that ordinary polynomials do not have. A polynomial is continuous for all real \(x\), while a rational function may break at values where the denominator is zero. This is why students studying polynomials often move next into rational functions and expressions.
Examples of rational functions include:
\[ f(x)=\frac{1}{x}, \qquad g(x)=\frac{x+2}{x-3}, \qquad h(x)=\frac{x^2-4}{x^2+x-6} \]
Each example is a ratio of polynomials. The first is the reciprocal parent function. The second is a linear rational function. The third has quadratic factors and may contain cancellations, holes, or multiple restrictions depending on its factorization.
The Reciprocal Function
The parent rational function is the reciprocal function:
\[ f(x)=\frac{1}{x}, \qquad x \ne 0 \]
Its domain is all real numbers except \(0\):
\[ x \in \mathbb{R}, \quad x \ne 0 \]
Its range is also all real numbers except \(0\):
\[ y \in \mathbb{R}, \quad y \ne 0 \]
The graph has a vertical asymptote at \(x=0\) and a horizontal asymptote at \(y=0\). The graph has two branches: one in quadrant I and one in quadrant III. It is an odd function because:
\[ f(-x)=\frac{1}{-x}=-\frac{1}{x}=-f(x) \]
This means the graph is symmetric about the origin. The reciprocal function is also self-inverse:
\[ f^{-1}(x)=f(x)=\frac{1}{x} \]
A quick check shows why:
\[ f(f(x))=\frac{1}{\frac{1}{x}}=x \]
The reciprocal function is the foundation for transformed rational functions such as \(f(x)=\frac{a}{x-h}+k\). Once you understand how \(1/x\) behaves, shifts, stretches, reflections, domains, ranges, and asymptotes become easier to predict.
Linear Rational Functions
A common rational function in school mathematics is the linear rational function:
\[ f(x)=\frac{ax+b}{cx+d} \]
where \(a,b,c,d\) are constants and \(cx+d \ne 0\). If \(c \ne 0\), the denominator is zero when:
\[ cx+d=0 \] \[ x=-\frac{d}{c} \]
Therefore the domain is:
\[ x \in \mathbb{R}, \quad x \ne -\frac{d}{c} \]
If the numerator and denominator have the same degree, the horizontal asymptote is the ratio of leading coefficients:
\[ y=\frac{a}{c} \]
So the range is often:
\[ y \in \mathbb{R}, \quad y \ne \frac{a}{c} \]
This range statement is correct for a nonconstant linear rational function. The expression becomes constant when \(ad-bc=0\), because the numerator and denominator are scalar multiples after simplification. In that special case, the function has a hole and a constant output rather than the usual two-branch reciprocal shape.
Domain, Range, and Restrictions
The domain of a rational function is found by excluding every \(x\)-value that makes the original denominator equal to zero. This must be done before cancelling factors. For:
\[ f(x)=\frac{x^2-4}{x^2+x-6} \]
factor the numerator and denominator:
\[ f(x)=\frac{(x-2)(x+2)}{(x+3)(x-2)} \]
The denominator is zero at \(x=-3\) and \(x=2\). Even though the factor \(x-2\) cancels algebraically, the original function was still undefined at \(x=2\). Therefore the domain is:
\[ x \in \mathbb{R}, \quad x \ne -3, \quad x \ne 2 \]
The simplified expression is:
\[ f(x)=\frac{x+2}{x+3}, \quad x \ne 2 \]
The simplified expression helps with graphing, but the cancelled restriction stays. The point \(x=2\) becomes a hole, not a valid point. This is one of the most common mistakes in rational functions: students cancel a factor and forget that the original denominator still controlled the domain.
The range can be found in several ways. For simple transformed reciprocal functions, the range is often visible from the horizontal asymptote. For more complicated rational functions, you can set \(y=\frac{P(x)}{Q(x)}\), rearrange to form an equation in \(x\), and determine which \(y\)-values make real solutions possible. This method connects rational functions to rearranging functions and to equation-solving skills from algebraic equations.
| Feature | How to find it | Important warning |
|---|---|---|
| Domain | Set the original denominator not equal to zero. | Do this before cancelling common factors. |
| Vertical asymptote | Use noncancelled zeros of the denominator. | Cancelled denominator zeros become holes, not asymptotes. |
| Horizontal asymptote | Compare degrees and leading coefficients. | The graph may cross a horizontal asymptote at finite \(x\)-values. |
| Hole | Cancel a common factor, then evaluate the simplified function at the cancelled \(x\)-value. | The hole is excluded from the graph even if the simplified expression gives a value. |
| \(x\)-intercept | Set the simplified numerator equal to zero. | A cancelled numerator zero may become a hole instead of an intercept. |
| \(y\)-intercept | Evaluate \(f(0)\), if \(0\) is in the domain. | If the denominator is zero at \(x=0\), there is no \(y\)-intercept. |
Asymptotes of Rational Functions
An asymptote is a line that a graph approaches. Rational functions commonly have vertical asymptotes and horizontal or slant asymptotes. The graph may approach an asymptote from above, below, left, or right, and the behaviour can be different on different intervals.
Vertical Asymptotes
Vertical asymptotes occur at noncancelled zeros of the denominator. Start by factoring:
\[ f(x)=\frac{P(x)}{Q(x)} \]
If \(Q(a)=0\) and the factor causing \(Q(a)=0\) does not cancel with the numerator, then \(x=a\) is a vertical asymptote. Near that value, the denominator approaches zero while the numerator stays nonzero, so the function values often grow without bound:
\[ f(x)\to \infty \quad \text{or} \quad f(x)\to -\infty \]
A graph never crosses a vertical asymptote because the function is not defined there. The graph can approach the line on both sides, but the line itself is not part of the graph.
Horizontal Asymptotes
Horizontal asymptotes describe end behaviour as \(x\to\infty\) or \(x\to-\infty\). Compare the degree of the numerator with the degree of the denominator.
| Degree comparison | Horizontal asymptote | Example |
|---|---|---|
| \(\deg(P) \lt \deg(Q)\) | \(y=0\) | \(\frac{2x+1}{x^2+3}\) |
| \(\deg(P)=\deg(Q)\) | Ratio of leading coefficients | \(\frac{3x^2+1}{5x^2-4}\) has \(y=\frac{3}{5}\) |
| \(\deg(P) \gt \deg(Q)\) | No horizontal asymptote | \(\frac{x^2+1}{x-2}\) has a slant asymptote instead |
For equal degrees, the leading terms dominate for very large positive or negative \(x\). For example:
\[ \frac{3x^2+2x-1}{5x^2-7}\approx \frac{3x^2}{5x^2}=\frac{3}{5} \]
That is why the horizontal asymptote is \(y=\frac{3}{5}\). This is related to end behaviour in polynomial functions, but rational functions compare the dominant terms from two polynomials instead of only one.
Slant and Polynomial Asymptotes
If the numerator degree is exactly one more than the denominator degree, the rational function may have a slant asymptote. Use polynomial long division:
\[ \frac{x^2+3x+2}{x-1}=x+4+\frac{6}{x-1} \]
As \(x\to\pm\infty\), the term \(\frac{6}{x-1}\) approaches \(0\), so the graph approaches:
\[ y=x+4 \]
The slant asymptote is not found from the ratio of leading coefficients. It comes from the quotient in polynomial division. If the numerator degree is more than one greater than the denominator degree, the asymptote can be a higher-degree polynomial rather than a line.
Students studying limits can connect this directly with limits and asymptotes. At the graphing level, the important idea is that the remainder term becomes small far from the origin, so the quotient controls the end behaviour.
Holes and Removable Discontinuities
A hole occurs when a factor in the denominator cancels with a matching factor in the numerator. The simplified expression may look continuous, but the original function is still undefined at the cancelled value.
Consider:
\[ f(x)=\frac{x^2-9}{x^2-5x+6} \]
Factor:
\[ f(x)=\frac{(x-3)(x+3)}{(x-2)(x-3)} \]
Cancel the common factor \(x-3\):
\[ f(x)=\frac{x+3}{x-2}, \quad x \ne 3 \]
The vertical asymptote is \(x=2\), because \(x-2\) remains in the denominator. The hole occurs at \(x=3\), because \(x-3\) cancelled. To find the \(y\)-coordinate of the hole, substitute \(x=3\) into the simplified expression:
\[ y=\frac{3+3}{3-2}=6 \]
The hole is:
\[ (3,6) \]
On the graph, the curve follows the simplified function but has an open point at \((3,6)\). That point is not included because the original function was undefined at \(x=3\).
Intercepts and Sign Analysis
The \(x\)-intercepts of a rational function occur where the function equals zero. A fraction equals zero when its numerator is zero and its denominator is not zero:
\[ \frac{P(x)}{Q(x)}=0 \quad \Rightarrow \quad P(x)=0, \quad Q(x)\ne 0 \]
For a linear rational function:
\[ f(x)=\frac{ax+b}{cx+d} \]
the \(x\)-intercept is found from:
\[ ax+b=0 \] \[ x=-\frac{b}{a} \]
provided \(a\ne 0\) and the denominator is not zero at that value.
The \(y\)-intercept is found by setting \(x=0\), if \(0\) is in the domain:
\[ f(0)=\frac{b}{d} \]
so the \(y\)-intercept is:
\[ \left(0,\frac{b}{d}\right) \]
provided \(d\ne 0\). If \(d=0\), the function is undefined at \(x=0\), so there is no \(y\)-intercept.
Sign analysis helps determine whether the graph is above or below the \(x\)-axis on different intervals. The key values are zeros of the numerator and zeros of the denominator. Place them on a number line, test one value in each interval, and record the sign of the function. This method is also useful for rational inequalities and for graph sketches where only the rough shape is required.
Transformations of the Reciprocal Function
The transformed reciprocal function has the form:
\[ f(x)=\frac{a}{x-h}+k \]
The parameter \(a\) controls vertical stretch, compression, and reflection. The parameter \(h\) shifts the graph horizontally and moves the vertical asymptote. The parameter \(k\) shifts the graph vertically and moves the horizontal asymptote.
| Parameter | Effect | Graph feature |
|---|---|---|
| \(a\) | Vertical stretch/compression; reflection if \(a\lt 0\) | Controls which quadrants the branches occupy relative to the asymptote intersection |
| \(h\) | Horizontal shift | Vertical asymptote becomes \(x=h\) |
| \(k\) | Vertical shift | Horizontal asymptote becomes \(y=k\) |
For:
\[ f(x)=\frac{3}{x-2}-5 \]
the vertical asymptote is:
\[ x=2 \]
and the horizontal asymptote is:
\[ y=-5 \]
The centre of the transformed reciprocal graph is the intersection of the asymptotes, \((2,-5)\). The graph is not defined at \(x=2\), and it never has \(y=-5\) as an output. This transformation language connects rational functions to broader function transformations and types of functions.
Inverse of a Linear Rational Function
Linear rational functions often have inverses that are also rational functions. Start with:
\[ y=\frac{ax+b}{cx+d} \]
Swap \(x\) and \(y\):
\[ x=\frac{ay+b}{cy+d} \]
Clear the denominator:
\[ x(cy+d)=ay+b \]
Expand:
\[ cxy+dx=ay+b \]
Collect terms containing \(y\):
\[ cxy-ay=b-dx \]
Factor \(y\):
\[ y(cx-a)=b-dx \]
Divide:
\[ y=\frac{b-dx}{cx-a} \]
Multiplying numerator and denominator by \(-1\) gives the common equivalent form:
\[ f^{-1}(x)=\frac{dx-b}{a-cx} \]
This formula assumes the function is not constant. The condition \(ad-bc\ne 0\) ensures the transformation is genuinely invertible on its domain and range. If \(ad-bc=0\), the expression may simplify to a constant value after excluding a hole, and a constant function does not have an inverse function.
If inverse functions are new, it is better to derive the inverse step by step rather than memorize the formula. The derivation also reinforces the skill of changing the subject, which is useful across rational, exponential, logarithmic, and trigonometric functions.
How to Graph a Rational Function
A rational function graph should be built from algebraic evidence. Avoid plotting random points first. Start with restrictions and asymptotes, then add intercepts and sign information. This gives the shape before numerical points are needed.
- Factor the numerator and denominator completely, where possible.
- Identify excluded \(x\)-values from the original denominator.
- Cancel common factors only after recording domain restrictions.
- Classify cancelled restrictions as holes and noncancelled denominator zeros as vertical asymptotes.
- Find the horizontal, slant, or polynomial asymptote using degree comparison or division.
- Find \(x\)-intercepts from noncancelled numerator zeros.
- Find the \(y\)-intercept by evaluating \(f(0)\), if defined.
- Use sign analysis or test points to decide where the graph is positive or negative.
- Sketch smooth branches that approach asymptotes and pass through the confirmed intercepts.
- Mark holes as open circles and label asymptotes clearly.
A graphing calculator can confirm the shape, but the algebra explains why the graph behaves that way. If a calculator view hides a hole or makes an asymptote look like a solid line, the factored form is more trustworthy than the screen. For additional practice, a math worksheet generator can help with factoring and graphing repetition, while a math calculator can be useful for checking arithmetic after the graph features have been found by hand.
Worked Examples
The examples below show the full workflow: factor, restrict, classify asymptotes or holes, find intercepts, and describe the graph. This is the safest way to handle rational functions in exams.
Example 1: Basic reciprocal transformation
Analyse:
\[ f(x)=\frac{4}{x+1}-2 \]
The denominator is zero when \(x+1=0\), so the vertical asymptote is:
\[ x=-1 \]
The horizontal shift and vertical shift show the horizontal asymptote:
\[ y=-2 \]
The domain is:
\[ x \in \mathbb{R}, \quad x \ne -1 \]
The range is:
\[ y \in \mathbb{R}, \quad y \ne -2 \]
To find the \(x\)-intercept, set \(f(x)=0\):
\[ \frac{4}{x+1}-2=0 \] \[ \frac{4}{x+1}=2 \] \[ x+1=2 \] \[ x=1 \]
The \(y\)-intercept is \(f(0)=\frac{4}{1}-2=2\), so the graph passes through \((0,2)\).
Example 2: Rational function with a hole
Analyse:
\[ f(x)=\frac{x^2-x-6}{x^2-4} \]
Factor:
\[ f(x)=\frac{(x-3)(x+2)}{(x-2)(x+2)} \]
The denominator is zero at \(x=2\) and \(x=-2\). Therefore:
\[ x \ne 2, \quad x \ne -2 \]
The factor \(x+2\) cancels:
\[ f(x)=\frac{x-3}{x-2}, \quad x \ne -2 \]
The noncancelled denominator factor \(x-2\) gives a vertical asymptote:
\[ x=2 \]
The cancelled value \(x=-2\) gives a hole. Substitute \(x=-2\) into the simplified expression:
\[ y=\frac{-2-3}{-2-2}=\frac{-5}{-4}=\frac{5}{4} \]
The hole is:
\[ \left(-2,\frac{5}{4}\right) \]
The degrees of the simplified numerator and denominator are equal, so the horizontal asymptote is the ratio of leading coefficients:
\[ y=1 \]
Example 3: Slant asymptote
Analyse:
\[ f(x)=\frac{x^2+2x-3}{x-1} \]
The denominator is zero at \(x=1\). Factor the numerator:
\[ x^2+2x-3=(x+3)(x-1) \]
Therefore:
\[ f(x)=\frac{(x+3)(x-1)}{x-1} \]
The factor cancels, so \(x=1\) is a hole, not a vertical asymptote. The simplified function is:
\[ f(x)=x+3, \quad x \ne 1 \]
The hole is found by substituting \(x=1\) into \(y=x+3\):
\[ y=4 \]
So the graph is the line \(y=x+3\) with a hole at \((1,4)\). This example is useful because the original expression looks like a rational function with a possible vertical asymptote, but factoring reveals a removable discontinuity instead.
Example 4: No cancellation and a true slant asymptote
Analyse:
\[ f(x)=\frac{x^2+3x+5}{x+1} \]
The denominator gives a vertical asymptote at:
\[ x=-1 \]
Use polynomial division:
\[ \frac{x^2+3x+5}{x+1}=x+2+\frac{3}{x+1} \]
As \(x\to\pm\infty\), the remainder term \(\frac{3}{x+1}\) approaches \(0\), so the slant asymptote is:
\[ y=x+2 \]
The numerator \(x^2+3x+5\) has discriminant:
\[ b^2-4ac=9-20=-11 \]
so it has no real zeros. Therefore the graph has no \(x\)-intercepts. The \(y\)-intercept is:
\[ f(0)=5 \]
so the graph passes through \((0,5)\).
Finding the Range of a Rational Function
The range is the set of possible output values. For simple transformed reciprocal functions, the range is often clear from the horizontal asymptote. For example, \(f(x)=\frac{a}{x-h}+k\) has range \(y\ne k\), because the reciprocal part \(\frac{a}{x-h}\) can never equal \(0\). However, not every rational function has a range that can be read instantly from the graph. A dependable algebraic method is to write \(y=f(x)\), rearrange for \(x\), and identify which values of \(y\) make the rearranged expression valid.
Consider the linear rational function:
\[ y=\frac{2x+1}{x-3} \]
Rearrange to make \(x\) the subject:
\[ y(x-3)=2x+1 \] \[ xy-3y=2x+1 \] \[ xy-2x=3y+1 \] \[ x(y-2)=3y+1 \] \[ x=\frac{3y+1}{y-2} \]
This rearranged expression is valid only when \(y-2\ne 0\). Therefore \(y\ne 2\), which matches the horizontal asymptote \(y=2\). The range is:
\[ y \in \mathbb{R}, \quad y\ne 2 \]
This method is especially useful when a question asks for range but the graph is not given. It also makes the connection between range and inverse functions clear: the output values of the original function become the allowed input values of its inverse relationship.
Example 5: Range from rearranging
Find the range of:
\[ f(x)=\frac{x+4}{2x-5} \]
Write:
\[ y=\frac{x+4}{2x-5} \]
Clear the denominator:
\[ y(2x-5)=x+4 \]
Expand and collect \(x\)-terms:
\[ 2xy-5y=x+4 \] \[ 2xy-x=5y+4 \] \[ x(2y-1)=5y+4 \]
Divide:
\[ x=\frac{5y+4}{2y-1} \]
This requires \(2y-1\ne 0\), so \(y\ne \frac{1}{2}\). Therefore the range is:
\[ y \in \mathbb{R}, \quad y\ne \frac{1}{2} \]
The same result comes from degree comparison: numerator and denominator have the same degree, and the ratio of leading coefficients is \(\frac{1}{2}\).
Behaviour Near Vertical Asymptotes
Finding the equation of a vertical asymptote is only the first part of graphing. A good sketch also shows whether the graph rises to \(+\infty\) or falls to \(-\infty\) on each side of the asymptote. This is called one-sided behaviour. You do not always need formal limit notation, but you do need to understand signs.
Consider:
\[ f(x)=\frac{1}{x-2} \]
The vertical asymptote is \(x=2\). If \(x\) approaches \(2\) from the right, then \(x-2\) is a very small positive number, so:
\[ f(x)\to +\infty \]
If \(x\) approaches \(2\) from the left, then \(x-2\) is a very small negative number, so:
\[ f(x)\to -\infty \]
The sign of the numerator also matters. For:
\[ g(x)=\frac{-3}{x-2} \]
the signs reverse because the numerator is negative. From the right of \(2\), \(g(x)\to -\infty\). From the left of \(2\), \(g(x)\to +\infty\).
Multiplicity matters too. If a denominator factor is repeated, the graph may go in the same direction on both sides of the asymptote. For example:
\[ f(x)=\frac{1}{(x-2)^2} \]
Since \((x-2)^2\) is positive on both sides of \(x=2\), the function approaches \(+\infty\) from both sides:
\[ x\to 2^- \Rightarrow f(x)\to +\infty \] \[ x\to 2^+ \Rightarrow f(x)\to +\infty \]
This is why sign charts are useful. They tell you not just where the graph is undefined, but also how the graph behaves as it approaches the excluded value.
Rational Equations and Extraneous Solutions
Rational functions are closely related to rational equations. A rational equation contains rational expressions and asks you to solve for a value of the variable. The most common method is to multiply by the least common denominator. This clears fractions, but it can also introduce values that were not allowed in the original equation. Those values must be checked.
Example:
\[ \frac{2}{x-1}=\frac{x}{x-1} \]
The original equation requires \(x\ne 1\). Multiplying both sides by \(x-1\) gives:
\[ 2=x \]
The solution \(x=2\) is allowed, so it is valid. Now compare:
\[ \frac{x}{x-3}=1+\frac{3}{x-3} \]
The restriction is \(x\ne 3\). Multiply by \(x-3\):
\[ x=(x-3)+3 \] \[ x=x \]
This identity is true for every \(x\) except \(x=3\), which remains excluded. The solution set is:
\[ x\in\mathbb{R}, \quad x\ne 3 \]
This kind of question tests whether you understand restrictions, not just algebraic manipulation. If a value makes a denominator zero, it cannot be a solution, even if it appears after clearing fractions.
Rational Inequalities
Rational inequalities ask where a rational expression is positive, negative, greater than a value, or less than a value. The safest approach is a sign chart. Unlike linear inequalities, you cannot usually multiply both sides by a variable denominator without knowing whether that denominator is positive or negative. Multiplying by an unknown sign can reverse the inequality incorrectly.
Suppose:
\[ \frac{x-4}{x+1}\gt 0 \]
The critical values are \(x=4\), where the numerator is zero, and \(x=-1\), where the denominator is zero. These values split the number line into three intervals:
\[ (-\infty,-1), \quad (-1,4), \quad (4,\infty) \]
Test \(x=-2\):
\[ \frac{-2-4}{-2+1}=\frac{-6}{-1}=6\gt 0 \]
Test \(x=0\):
\[ \frac{0-4}{0+1}=-4\lt 0 \]
Test \(x=5\):
\[ \frac{5-4}{5+1}=\frac{1}{6}\gt 0 \]
Therefore:
\[ \frac{x-4}{x+1}\gt 0 \quad \text{on} \quad (-\infty,-1)\cup(4,\infty) \]
The value \(x=-1\) is never included because it makes the denominator zero. The value \(x=4\) is not included because the inequality is strict. If the inequality were \(\ge 0\), then \(x=4\) would be included but \(x=-1\) would still be excluded.
Converting Between Forms
Many rational functions can be rewritten in a form that makes transformations easier to see. For example:
\[ f(x)=\frac{2x+7}{x-3} \]
Use division or decomposition:
\[ 2x+7=2(x-3)+13 \]
Therefore:
\[ f(x)=\frac{2(x-3)+13}{x-3} \] \[ f(x)=2+\frac{13}{x-3} \]
This form immediately shows the vertical asymptote \(x=3\) and horizontal asymptote \(y=2\). It also shows that the graph is a transformed reciprocal function centred at \((3,2)\).
This technique is useful because the original form \(\frac{2x+7}{x-3}\) is good for intercepts, while the transformed form \(2+\frac{13}{x-3}\) is good for graphing. Strong students move between forms depending on the question. If the task asks for intercepts, use the factored or original numerator. If it asks for asymptotes and transformations, use the decomposed form.
Example 6: Rewrite into transformed reciprocal form
Rewrite:
\[ f(x)=\frac{3x-1}{x+2} \]
Express the numerator in terms of \(x+2\):
\[ 3x-1=3(x+2)-7 \]
Substitute:
\[ f(x)=\frac{3(x+2)-7}{x+2} \] \[ f(x)=3-\frac{7}{x+2} \]
Now the asymptotes are visible:
\[ x=-2, \qquad y=3 \]
The negative coefficient \(-7\) means the reciprocal branches are reflected compared with \(+\frac{7}{x+2}\). This helps you sketch the graph without plotting many points.
Rational Functions in Exam Questions
Rational function questions often combine several skills in one problem. A typical exam question might ask you to state the domain, identify asymptotes, find intercepts, sketch the graph, solve an equation involving the function, and explain a transformation. Treat these tasks as one connected workflow rather than separate tricks.
If a question includes parameters, such as:
\[ f(x)=\frac{ax+b}{x-c} \]
read the question carefully. You may be asked to find \(a,b,c\) from graph features. For example, if the vertical asymptote is \(x=4\), then \(c=4\). If the horizontal asymptote is \(y=3\), then \(a=3\). If the graph passes through a given point, substitute that point to find the remaining parameter.
Suppose a graph has vertical asymptote \(x=2\), horizontal asymptote \(y=-1\), and passes through \((0,3)\). A reasonable model is:
\[ f(x)=\frac{a}{x-2}-1 \]
Substitute \((0,3)\):
\[ 3=\frac{a}{0-2}-1 \] \[ 4=-\frac{a}{2} \] \[ a=-8 \]
So:
\[ f(x)=\frac{-8}{x-2}-1 \]
This style of problem tests whether you can move from graph features to algebraic form. It is common in courses that emphasize modelling, transformations, and interpretation of functions.
Technology and Rational Functions
Graphing technology is helpful for rational functions, but it can also hide important details. A graphing window may not show a hole clearly because a hole is a single missing point. A calculator may draw a near-vertical segment at a vertical asymptote if the window resolution is low. It may also make a graph appear to touch an asymptote because the curve gets very close within the chosen viewing window.
Use technology as a check, not as the first source of truth. The factored form tells you excluded values. The simplified form tells you holes and vertical asymptotes. Degree comparison or division tells you end behaviour. Intercepts come from exact substitution. Once those features are known, a graphing calculator is useful for checking the overall shape and for choosing additional points.
In written solutions, always show the algebra behind the graph. A correct sketch without supporting work may not earn full marks if the question asks for asymptotes, domain, or intercepts. Conversely, clear algebra can earn marks even if a hand-drawn graph is not perfectly scaled.
Special Cases and Edge Cases
Most rational function rules are simple when the function is already factored and the degrees are obvious. The mistakes usually happen in edge cases: constant functions, complete cancellation, no real denominator zeros, repeated factors, and graphs that cross horizontal asymptotes. These cases are worth studying because they test understanding rather than memorization.
When the Rational Function Simplifies to a Constant
A rational expression may look like a function with two branches, but after simplification it can become a constant with a hole. For example:
\[ f(x)=\frac{2x+4}{x+2} \]
Factor the numerator:
\[ f(x)=\frac{2(x+2)}{x+2} \]
The expression simplifies to:
\[ f(x)=2, \quad x\ne -2 \]
The graph is the horizontal line \(y=2\) with a hole at \((-2,2)\). There is no vertical asymptote because the problematic factor cancelled. The original domain still excludes \(x=-2\), so the point is missing even though the simplified expression looks harmless. This example is also a warning about assuming every denominator zero creates an asymptote.
When the Denominator Has No Real Zeros
Some rational functions have denominators that never equal zero over the real numbers. For example:
\[ f(x)=\frac{x+1}{x^2+1} \]
Since \(x^2+1\gt 0\) for every real \(x\), the function has domain:
\[ x\in\mathbb{R} \]
It has no vertical asymptotes and no holes. The degree of the numerator is less than the degree of the denominator, so the horizontal asymptote is \(y=0\). This function still behaves rationally because it has a denominator and end behaviour controlled by degree comparison, but it does not have the dramatic break often associated with rational graphs.
Repeated Factors in the Denominator
Repeated denominator factors affect how the graph approaches a vertical asymptote. Compare:
\[ f(x)=\frac{1}{x-2} \]
and:
\[ g(x)=\frac{1}{(x-2)^2} \]
Both have a vertical asymptote at \(x=2\). For \(f(x)\), the denominator changes sign across \(x=2\), so the graph goes to opposite infinities on each side. For \(g(x)\), the squared denominator is positive on both sides, so the graph goes to the same infinity on both sides. In graphing questions, this explains why some branches rise together while others split upward and downward.
Crossing a Horizontal Asymptote
A vertical asymptote is a true barrier because the function is undefined there. A horizontal asymptote is different: it describes what happens far to the left or far to the right. A rational function can cross a horizontal asymptote at a finite point.
To check whether a graph crosses its horizontal asymptote, set the function equal to the asymptote value and solve. For example:
\[ f(x)=\frac{x^2-1}{x^2+1} \]
The horizontal asymptote is:
\[ y=1 \]
Check whether the function reaches \(1\):
\[ \frac{x^2-1}{x^2+1}=1 \] \[ x^2-1=x^2+1 \] \[ -1=1 \]
This is impossible, so this function never crosses \(y=1\). But another rational function may cross its horizontal asymptote if the equation is solvable. The key point is that horizontal asymptotes are about end behaviour, not always forbidden output values.
Interpreting Rational Functions in Context
In modelling, rational functions often describe rates, averages, concentration, cost per unit, intensity, and inverse variation. The restrictions then have practical meaning. If \(x\) represents time, a vertical asymptote may indicate a model breakdown rather than a real infinite value. If \(x\) represents quantity produced, \(x=0\) may be excluded because cost per unit is not meaningful with zero units. If a denominator represents a distance or total, values that make it zero usually fall outside the practical domain.
Always distinguish the mathematical domain from the practical domain. Mathematically, \(f(x)=\frac{100}{x}\) has domain \(x\ne 0\). In a context where \(x\) is the number of students sharing a cost, the practical domain might be positive integers only:
\[ x\in\{1,2,3,\ldots\} \]
The formula is still rational, but the graph interpretation changes because only certain input values make sense. This distinction is common in applications-focused courses and in word problems.
Formula Reference
| Concept | Formula or rule | Use |
|---|---|---|
| General rational function | \(f(x)=\frac{P(x)}{Q(x)}\), \(Q(x)\ne 0\) | Definition |
| Reciprocal parent | \(f(x)=\frac{1}{x}\) | Base graph for transformations |
| Transformed reciprocal | \(f(x)=\frac{a}{x-h}+k\) | Asymptotes \(x=h\), \(y=k\) |
| Linear rational function | \(f(x)=\frac{ax+b}{cx+d}\) | Domain excludes \(x=-\frac{d}{c}\), if \(c\ne 0\) |
| \(x\)-intercept | Set numerator equal to zero after simplification | Find graph crossings on the \(x\)-axis |
| \(y\)-intercept | Evaluate \(f(0)\), if defined | Find graph crossing on the \(y\)-axis |
| Horizontal asymptote, lower numerator degree | \(y=0\) | End behaviour |
| Horizontal asymptote, equal degrees | Ratio of leading coefficients | End behaviour |
| Slant asymptote | Polynomial division quotient | When numerator degree is denominator degree plus \(1\) |
| Inverse linear rational function | \(f^{-1}(x)=\frac{dx-b}{a-cx}\) | For \(f(x)=\frac{ax+b}{cx+d}\), with \(ad-bc\ne 0\) |
Common Mistakes
Study Links for Rational Functions
Rational functions rely on polynomial factoring, function notation, transformations, and equation solving. If a graphing question feels difficult, review functions fundamentals first, then strengthen the algebra using the algebra cheat sheet. For related function families, compare rational graphs with linear functions, quadratic functions, and exponential and logarithmic functions.
IB students can connect the formulas here with IB Mathematics AA functions formulae and IB Mathematics AI functions formulae. For a broader course path, use IB Mathematics Analysis and Approaches or IB Mathematics Applications and Interpretation depending on your course.
Practice Questions
Try these questions without looking at the answers. Show the domain restrictions first, then continue with asymptotes, holes, intercepts, and graph features.
Answers
1. Domain of \(f(x)=\frac{2x+1}{x-4}\)
The denominator is zero at \(x=4\), so: \[ x \in \mathbb{R}, \quad x \ne 4 \]
2. Asymptotes of \(f(x)=\frac{3x-5}{2x+7}\)
Vertical asymptote: \[ 2x+7=0 \Rightarrow x=-\frac{7}{2} \] Equal degrees give horizontal asymptote: \[ y=\frac{3}{2} \]
3. Intercepts of \(f(x)=\frac{x-6}{x+2}\)
\(x\)-intercept from \(x-6=0\): \[ x=6 \] \(y\)-intercept: \[ f(0)=\frac{-6}{2}=-3 \] so the intercepts are \((6,0)\) and \((0,-3)\).
4. Holes and asymptotes of \(f(x)=\frac{x^2-1}{x^2-3x+2}\)
Factor: \[ f(x)=\frac{(x-1)(x+1)}{(x-1)(x-2)} \] The factor \(x-1\) cancels, so \(x=1\) is a hole. The simplified function is: \[ f(x)=\frac{x+1}{x-2} \] The hole is: \[ \left(1,\frac{1+1}{1-2}\right)=(1,-2) \] The vertical asymptote is \(x=2\). The horizontal asymptote is \(y=1\).
5. Slant asymptote of \(f(x)=\frac{x^2+5x+1}{x+2}\)
Divide: \[ \frac{x^2+5x+1}{x+2}=x+3-\frac{5}{x+2} \] The slant asymptote is: \[ y=x+3 \]
6. Inverse of \(f(x)=\frac{2x+3}{x-4}\)
Write \(y=\frac{2x+3}{x-4}\), swap \(x\) and \(y\): \[ x=\frac{2y+3}{y-4} \] Clear the denominator: \[ x(y-4)=2y+3 \] \[ xy-4x=2y+3 \] \[ xy-2y=4x+3 \] \[ y(x-2)=4x+3 \] \[ f^{-1}(x)=\frac{4x+3}{x-2} \]
7. \(f(x)=\frac{5}{x+3}-1\)
Vertical asymptote: \[ x=-3 \] Horizontal asymptote: \[ y=-1 \] Domain: \[ x \in \mathbb{R}, \quad x \ne -3 \] Range: \[ y \in \mathbb{R}, \quad y \ne -1 \]
8. \(f(x)=\frac{x^2-4}{x-2}\)
Factor: \[ f(x)=\frac{(x-2)(x+2)}{x-2} \] The factor cancels, so \(x=2\) is a hole, not a vertical asymptote. The simplified graph is \(y=x+2\) with a hole at: \[ (2,4) \]
Frequently Asked Questions
What makes a function rational?
A function is rational if it can be written as a quotient of two polynomials. The denominator must not be zero for any value included in the domain.
Do rational functions always have vertical asymptotes?
No. A denominator zero creates a vertical asymptote only if the factor does not cancel. If the factor cancels, the graph has a hole instead. Some rational functions simplify to polynomials with holes and no vertical asymptotes.
Can a rational function have more than one vertical asymptote?
Yes. If the denominator has multiple noncancelled real zeros, each one can create a vertical asymptote. For example, a quadratic denominator may create two vertical asymptotes.
How do I know whether to use a horizontal or slant asymptote?
Compare degrees. If the numerator degree is lower or equal to the denominator degree, use horizontal asymptote rules. If the numerator degree is exactly one greater, use polynomial division to find a slant asymptote.
Why do holes stay excluded after cancellation?
Because the original function was undefined at that \(x\)-value. Cancelling produces a simplified expression that matches the original everywhere except at the cancelled value.
Are rational functions continuous?
Rational functions are continuous on every interval of their domain. They are not continuous at values excluded from the domain, such as vertical asymptotes or holes.
Final Notes
Rational functions reward careful algebra. The most important habit is to factor before making decisions. Factoring reveals the domain restrictions, cancelled factors, holes, noncancelled denominator zeros, intercepts, and many graph features. Degree comparison then explains end behaviour through horizontal, slant, or polynomial asymptotes.
For exam work, keep your method consistent: factor, record restrictions, simplify, classify holes and vertical asymptotes, compare degrees, find intercepts, test signs, and sketch. If you follow that sequence, rational function questions become much more predictable, even when the expressions look complicated at first.
