From the free course College Algebra on Lykke
5.6 Rational Functions
Key concepts: Rational functions · Transformations of the reciprocal-squared function · End behavior and local behavior using arrow notation · Domains of rational functions · Vertical asymptotes · Horizontal asymptotes · x- and y-intercepts of rational functions · Removable discontinuities and holes · Graphing rational functions · Applied rational-function problems involving ratios
By the end of this section the student can: Use arrow notation; Solve applied problems involving rational functions; Find the domains of rational functions; Identify vertical asymptotes; Identify horizontal asymptotes; Graph rational functions
5.6 Rational Functions
Average cost reveals why rational functions matter: if producing $x$ items costs $C(x)$ dollars, then the cost per item is not $C(x)$ itself but the ratio $\frac{C(x)}{x}$. Ratios of polynomial expressions create rational functions, whose graphs can approach lines, shoot toward infinity, or contain excluded input values.
A rational function is a function that can be written as the quotient of two polynomial functions:
$$ f(x)=\frac{p(x)}{q(x)}, $$
where $q(x)\neq 0$. The denominator is crucial: any value of $x$ that makes $q(x)=0$ is excluded from the domain, even if algebraic simplification later removes a factor.
Using Arrow Notation
Arrow notation describes what happens to function values as inputs become very large, very negative, or close to a particular number. The notation
$$ x\to\infty $$
means that $x$ increases without bound, while
$$ x\to-\infty $$
means that $x$ decreases without bound. One-sided notation distinguishes values approaching a number from the left or right:
$$ x\to a^- \quad\text{and}\quad x\to a^+. $$
The corresponding output behavior is written with $f(x)\to L$, $f(x)\to\infty$, or $f(x)\to-\infty$.
For the reciprocal-squared function
$$ f(x)=\frac{1}{x^2}, $$
the square makes every nonzero output positive. Far to the left or right, the denominator becomes very large, so the function approaches $0$. Near $x=0$, the denominator becomes very small and positive, so the function increases without bound from either side.
Example: Describe the end behavior and local behavior of $\boldsymbol{f(x)=\frac{1}{x^2}}$.
For the end behavior, as $x\to\infty$, we have $x^2\to\infty$. Therefore,
$$ \frac{1}{x^2}\to 0, $$
so
$$ x\to\infty \Longrightarrow f(x)\to 0. $$
As $x\to-\infty$, squaring still gives $x^2\to\infty$. Thus,
For the local behavior near $x=0$, approach from the left:
$$ x\to 0^- \Longrightarrow x^2\to 0^+, $$
so
$$ \frac{1}{x^2}\to\infty. $$
Approach from the right:
so again
$$ \frac{1}{x^2}\to\infty. $$
Therefore, the complete behavior is
$$ x\to 0^- \Longrightarrow f(x)\to\infty, $$
and
The graph has a vertical asymptote at $x=0$ and a horizontal asymptote at $y=0$.
Solving Applied Problems Involving Rational Functions
Applied rational-function problems commonly involve rates, averages, concentrations, and other ratios. The general method is to identify the quantity in the numerator, identify the quantity in the denominator, form the quotient, simplify it when useful, and interpret the result with the appropriate restrictions.
Suppose the total cost of producing $x$ items is
$$ C(x)=15{,}000x-0.1x^2+1{,}000. $$
The average cost per item is total cost divided by the number of items:
$$ f(x)=\frac{C(x)}{x} =\frac{15{,}000x-0.1x^2+1{,}000}{x}. $$
Because production cannot involve zero items when calculating cost per item, $x>0$ in the applied context.
Example: Find and evaluate the average cost when $\boldsymbol{x=100}$ items are produced.
Start with the quotient:
$$ f(x)=\frac{15{,}000x-0.1x^2+1{,}000}{x}. $$
Separate each term in the numerator:
$$ f(x)
\frac{15{,}000x}{x}
\frac{0.1x^2}{x} + \frac{1{,}000}{x}. $$
Simplify each quotient:
$$ \frac{15{,}000x}{x}=15{,}000, $$
$$ \frac{0.1x^2}{x}=0.1x, $$
and
$$ \frac{1{,}000}{x}=\frac{1{,}000}{x}. $$
Therefore,
$$ f(x)=15{,}000-0.1x+\frac{1{,}000}{x}. $$
Now substitute $x=100$:
$$ f(100)=15{,}000-0.1(100)+\frac{1{,}000}{100}. $$
Evaluate each term:
$$ 0.1(100)=10, \qquad \frac{1{,}000}{100}=10. $$
Thus,
$$ f(100)=15{,}000-10+10=15{,}000. $$
The average cost is $\boxed{$15{,}000}$ per item when $100$ items are produced.
Finding the Domains of Rational Functions
The domain of a rational function consists of all real numbers for which the denominator is not zero. To find the domain, factor the denominator if necessary, set each denominator factor equal to zero, exclude those values, and write the remaining set in interval notation.
A canceled factor still creates a domain restriction. For example,
$$ \frac{x^2-1}{x-1}
\frac{(x-1)(x+1)}{x-1}
x+1, $$
but the original function is undefined at $x=1$. Simplification reveals the function's behavior elsewhere; it does not restore the excluded input.
Example: Find the domain of $\boldsymbol{f(x)=\frac{x^2+4}{x^2-2x-8}}$.
Set the denominator equal to zero:
$$ x^2-2x-8=0. $$
Factor:
$$ x^2-2x-8=(x-4)(x+2). $$
Therefore,
$$ (x-4)(x+2)=0. $$
The zero-product property gives
$$ x-4=0 \quad\text{or}\quad x+2=0, $$
so
$$ x=4 \quad\text{or}\quad x=-2. $$
These values are excluded. Thus, the domain is
$$ (-\infty,-2)\cup(-2,4)\cup(4,\infty). $$
Equivalently,
$$ \boxed{{x\in\mathbb{R}\mid x\neq -2,\ x\neq 4}}. $$
Identifying Vertical Asymptotes of Rational Functions
A vertical asymptote is a vertical line $x=a$ that the graph approaches as function values increase or decrease without bound. For a rational function, first factor the numerator and denominator and cancel common factors. A zero of the remaining denominator identifies a vertical asymptote, provided the numerator is not also zero there after cancellation.
A common factor that cancels produces a removable discontinuity, or hole, rather than a vertical asymptote. A noncanceled denominator factor produces a vertical asymptote because the function remains unbounded near that input.
Example: Find the vertical asymptotes of $\boldsymbol{f(x)=\frac{x^2-1}{x^2-4}}$.
Factor the numerator and denominator:
$$ x^2-1=(x-1)(x+1), $$
$$ x^2-4=(x-2)(x+2). $$
Thus,
$$ f(x)=\frac{(x-1)(x+1)}{(x-2)(x+2)}. $$
There are no common factors to cancel. Set the denominator factors equal to zero:
$$ x-2=0 \Longrightarrow x=2, $$
Therefore, the vertical asymptotes are
$$ \boxed{x=2\quad\text{and}\quad x=-2}. $$
For instance, as $x\to2$, the factor $x-2$ approaches zero while the numerator and the other denominator factor remain nonzero, so the quotient becomes unbounded. The same reasoning applies near $x=-2$.
Identifying Horizontal Asymptotes of Rational Functions
A horizontal asymptote describes the end behavior of a rational function. For
$$ f(x)=\frac{p(x)}{q(x)}, $$
compare the degrees of the numerator and denominator.
If the numerator degree is less than the denominator degree, the horizontal asymptote is
$$ y=0. $$
If the numerator and denominator have the same degree, divide the leading coefficient of the numerator by the leading coefficient of the denominator. The horizontal asymptote is
$$ y=\frac{\text{leading coefficient of }p(x)} {\text{leading coefficient of }q(x)}. $$
If the numerator degree is greater than the denominator degree, there is no horizontal asymptote determined by this rule; polynomial division may instead produce a slant or other polynomial asymptote.
Example: Find the horizontal asymptote of $\boldsymbol{f(x)=\frac{3x^2-5x+1}{2x^2+7}}$.
The numerator has degree $2$, and the denominator also has degree $2$. Therefore, compare their leading coefficients:
$$ \frac{3}{2}. $$
To verify the end behavior algebraically, divide every term by $x^2$:
$$ f(x)
\frac{3x^2-5x+1}{2x^2+7}
\frac{\frac{3x^2}{x^2}-\frac{5x}{x^2}+\frac{1}{x^2}} {\frac{2x^2}{x^2}+\frac{7}{x^2}}. $$
Simplify:
$$ f(x)=\frac{3-\frac{5}{x}+\frac{1}{x^2}} {2+\frac{7}{x^2}}. $$
As $x\to\infty$ or $x\to-\infty$,
$$ \frac{5}{x}\to0, \qquad \frac{1}{x^2}\to0, \qquad \frac{7}{x^2}\to0. $$
Hence,
$$ f(x)\to\frac{3-0+0}{2+0}=\frac{3}{2}. $$
The horizontal asymptote is
$$ \boxed{y=\frac{3}{2}}. $$
Graphing Rational Functions
To graph a rational function, identify its domain restrictions, vertical asymptotes, horizontal or slant asymptotes, intercepts, and several points on each side of the vertical asymptote. Transformations of the reciprocal function
$$ f(x)=\frac{1}{x} $$
and reciprocal-squared function
$$ f(x)=\frac{1}{x^2} $$
make many rational graphs easier to sketch.
For the reciprocal-squared transformation
$$ g(x)=\frac{1}{(x-h)^2}+k, $$
the graph of $y=\frac{1}{x^2}$ shifts horizontally by $h$ units and vertically by $k$ units. Its vertical asymptote is $x=h$, and its horizontal asymptote is $y=k$.
Example: Sketch the graph of $\boldsymbol{g(x)=\frac{1}{(x-3)^2}-4}$.
The expression $(x-3)$ shifts the reciprocal-squared graph right $3$ units, and the term $-4$ shifts it down $4$ units. Therefore,
$$ x=3 $$
is the vertical asymptote, and
$$ y=-4 $$
is the horizontal asymptote.
The domain excludes $x=3$:
$$ (-\infty,3)\cup(3,\infty). $$
Because the reciprocal-squared term is always positive,
$$ \frac{1}{(x-3)^2}>0, $$
so
$$ g(x)=\frac{1}{(x-3)^2}-4>-4. $$
Thus, both branches lie above the horizontal asymptote $y=-4$.
Choose points on the left and right of $x=3$. For $x=2$,
$$ g(2)=\frac{1}{(2-3)^2}-4 =\frac{1}{(-1)^2}-4 =1-4=-3. $$
For $x=4$,
$$ g(4)=\frac{1}{(4-3)^2}-4 =\frac{1}{1^2}-4 =1-4=-3. $$
For $x=1$,
$$ g(1)=\frac{1}{(1-3)^2}-4 =\frac{1}{(-2)^2}-4 =\frac{1}{4}-4 =-\frac{15}{4}. $$
For $x=5$,
$$ g(5)=\frac{1}{(5-3)^2}-4 =\frac{1}{2^2}-4 =\frac{1}{4}-4 =-\frac{15}{4}. $$
The graph is symmetric about the vertical line $x=3$. It rises toward infinity as $x$ approaches $3$ from either side and approaches $-4$ from above as $x\to\infty$ or $x\to-\infty$:
$$ x\to3^- \Longrightarrow g(x)\to\infty, $$
$$ x\to-\infty \Longrightarrow g(x)\to-4, $$
and
Writing Rational Functions
A rational function can often be constructed from its asymptotes and a point on its graph. For a reciprocal transformation with vertical asymptote $x=h$ and horizontal asymptote $y=k$, use
$$ f(x)=\frac{a}{x-h}+k, $$
where $a$ controls the orientation and stretch. The value of $a$ is determined by substituting a known point.
Example: Write a rational function with vertical asymptote $\boldsymbol{x=2}$, horizontal asymptote $\boldsymbol{y=3}$, and passing through $\boldsymbol{(3,5)}$.
Start with the transformed reciprocal form:
$$ f(x)=\frac{a}{x-2}+3. $$
Because the graph passes through $(3,5)$, substitute $x=3$ and $f(x)=5$:
$$ 5=\frac{a}{3-2}+3. $$
Simplify the denominator:
$$ 5=\frac{a}{1}+3. $$
Therefore,
$$ 5=a+3. $$
Subtract $3$ from both sides:
$$ a=2. $$
Substitute $a=2$ into the function:
$$ f(x)=\frac{2}{x-2}+3. $$
To write it as one rational expression, use a common denominator:
$$ f(x)=\frac{2}{x-2}+\frac{3(x-2)}{x-2}. $$
Combine the numerators:
$$ f(x)=\frac{2+3x-6}{x-2} =\frac{3x-4}{x-2}. $$
Thus, one suitable rational function is
$$ \boxed{f(x)=\frac{2}{x-2}+3 =\frac{3x-4}{x-2}}. $$
The denominator confirms the vertical asymptote $x=2$, and the degree comparison or transformed form confirms the horizontal asymptote $y=3$.
Practice Problems
- Describe the end and local behavior of
$$ f(x)=\frac{1}{(x+1)^2}. $$
Answer:
$$ x\to-\infty \Longrightarrow f(x)\to0, \qquad x\to\infty \Longrightarrow f(x)\to0, $$
$$ x\to-1^- \Longrightarrow f(x)\to\infty, \qquad x\to-1^+ \Longrightarrow f(x)\to\infty. $$
The vertical asymptote is $x=-1$, and the horizontal asymptote is $y=0$.
- Find the domain, vertical asymptotes, and horizontal asymptote of
$$ f(x)=\frac{x+3}{x^2-4}. $$
Answer: Factor the denominator:
$$ x^2-4=(x-2)(x+2). $$
The domain excludes $x=-2$ and $x=2$:
$$ (-\infty,-2)\cup(-2,2)\cup(2,\infty). $$
The vertical asymptotes are
$$ \boxed{y=0}. $$
- Write a rational function with vertical asymptote $x=-1$, horizontal asymptote $y=2$, and passing through $(0,5)$.
Answer: Begin with
$$ f(x)=\frac{a}{x+1}+2. $$
Substitute $(0,5)$:
$$ 5=\frac{a}{0+1}+2=a+2. $$
Therefore,
$$ a=3. $$
The function is
$$ \boxed{f(x)=\frac{3}{x+1}+2 =\frac{3x+5}{x+1}}. $$
Content adapted from OpenStax College Algebra 2e by Jay Abramson et al., licensed CC BY 4.0.
Source Materials
Study College Algebra on Lykke
This course page is free to open: signed out, you can read its first two sections, and signing in, on any plan, opens the rest. The free Lykke Chrome extension syncs your own Canvas courses, so ChatGPT, Claude and Muse can answer from your classes and deadlines. It only reads Canvas.
Add the free extensionSign in to open every section