Back to homeMathematics · Precalculus · Change subject
Start for free
Precalculus · Mathematics
Functions · Common Types of Functions

Rational Functions

Before you start, make sure you know: Algebraic fractions (Algebra 1)

Aaliyah starts a business printing custom T-shirts. The heat press and setup cost $\$400$, and each shirt costs $\$6$ in materials. The more shirts she prints, the less of that $\$400$ each shirt has to carry, but her average cost per shirt never drops below some floor, no matter how many she prints. A value a function gets closer and closer to without ever reaching it, and places where a function simply "breaks": that is the world of rational functions.

Domain of a Rational Function

To find the domain, set the denominator equal to $0$, solve, and exclude those values. Factoring usually does the job.

  • $x^2 + 1$ is never $0$ (a square is never negative), so nothing is excluded and the domain is all real numbers.

  • $x^2 + 6x + 9 = (x+3)^2$ is $0$ only at $x = -3$.

  • $x^2 - 5x + 6 = (x-2)(x-3)$ is $0$ at $x = 2$ and $x = 3$.

Number line with the points −3 and 3 excluded by open circles, splitting the domain into three open intervals. domaindomaindomain −33 excludedexcluded (−∞, −3)(−3, 3)(3, ∞) x = −3 and x = 3 make the denominator zero

Here is the graph of $f(x) = \dfrac{5x-2}{x^2-9}$. See what happens near $x = -3$ and $x = 3$.

Practice★☆☆Not started
Calculate the domain of definition of the rational function $f(x) = \frac{5x-2}{x^2-9}$.

Calculate the domain of definition of the rational function $f(x) = \frac{5x-2}{x^2-9}$.

Solve
Practice★☆☆Not started
Determine the domain of the function $f(x) = \frac{x^2+1}{x^2+4x+4}$.

Determine the domain of the function $f(x) = \frac{x^2+1}{x^2+4x+4}$.

Solve

Intercepts, Sign, and Solving $f(x) = c$

To find the y-intercept, compute $f(0)$ (if $0$ is in the domain). To find the x-intercepts, solve $P(x) = 0$, then check that those solutions do not also make the denominator $0$.

Why? Between two consecutive "critical" numbers neither $P$ nor $Q$ can be zero, so each keeps a constant sign there.

To solve $f(x) = c$, multiply both sides by the denominator, solve the resulting equation, and check that the answer is in the domain.

Practice★☆☆Not started
Find the coordinates of the points of intersection with the Cartesian axes of the function $f(x) = \frac{3x+12}{2x-5}$.

Find the coordinates of the points of intersection with the Cartesian axes of the function $f(x) = \frac{3x+12}{2x-5}$.

Solve
Practice★☆☆Not started
Find the value of $x$ for which the function $f(x) = \frac{2x+3}{x-1}$ takes exactly the value $f(x) = 5$.

Find the value of $x$ for which the function $f(x) = \frac{2x+3}{x-1}$ takes exactly the value $f(x) = 5$.

Solve
Practice★☆☆Not started
Study the sign of the rational function $f(x) = \frac{x-4}{x+2}$, clearly indicating the intervals of the real line where the function takes positive values and where it…

Study the sign of the rational function $f(x) = \frac{x-4}{x+2}$, clearly indicating the intervals of the real line where the function takes positive values and where it takes negative values.

Solve

Symmetry: Even and Odd Rational Functions

Before graphing, check for symmetry. If $f(-x) = f(x)$ for every $x$ in the domain, $f$ is even (symmetric about the y-axis). If $f(-x) = -f(x)$, it is odd (symmetric about the origin). If neither holds, there is no symmetry of this kind.

The domain must be symmetric too: if $a$ is in the domain, $-a$ must be as well.

A good shortcut: even numerator over even denominator is even, odd over even is odd, and even over odd is odd.

Practice★☆☆Not started
Check analytically whether the function $f(x) = \frac{3x}{x^2+1}$ is even, odd or has no symmetry with respect to the coordinate axes.

Check analytically whether the function $f(x) = \frac{3x}{x^2+1}$ is even, odd or has no symmetry with respect to the coordinate axes.

Solve

Vertical Asymptotes and Holes

Two branches of a function next to its vertical asymptote x = −3 and horizontal asymptote y = 4, going to positive infinity on the left and negative infinity on the right. y = 4 x = −3 f(x) → +∞ f(x) → −∞

Holes. If a factor cancels, you get a hole, not an asymptote. The $y$-coordinate of the hole comes from the simplified function.

Asymptotes with a parameter. If the denominator has a parameter, use the discriminant to see when it has real zeros. For example, take $f(x) = \dfrac{1}{x^2 - kx + 4}$. The discriminant is $k^2 - 16$. If $-4 < k < 4$, it is negative, the denominator never vanishes, and there are no vertical asymptotes. If $k = \pm 4$, there is one double zero and one asymptote. If $|k| > 4$, there are two asymptotes. Always check that the numerator doesn't vanish at the same place.

Practice★☆☆Not started
Determine the equations of the vertical and horizontal asymptotes of the function $f(x) = \frac{4x-1}{x+3}$.

Determine the equations of the vertical and horizontal asymptotes of the function $f(x) = \frac{4x-1}{x+3}$.

Solve
Practice★★★Not started
Analyse the rational function $f(x) = \frac{x^2-5x+6}{x^2-4}$ in detail. Determine its domain, simplify the algebraic expression indicating for which values the…

Analyse the rational function $f(x) = \frac{x^2-5x+6}{x^2-4}$ in detail. Determine its domain, simplify the algebraic expression indicating for which values the simplification is valid, find the equations of its asymptotes and explain what graphical phenomenon occurs exactly at the point with x-coordinate $x = 2$.

Solve
Practice★★★Not started
Discuss, in terms of the real parameter $k$, the existence of vertical asymptotes for the function $f(x) = \frac{x^2-2x+5}{x^2-kx+9}$. Determine the interval of values…

Discuss, in terms of the real parameter $k$, the existence of vertical asymptotes for the function $f(x) = \frac{x^2-2x+5}{x^2-kx+9}$. Determine the interval of values of $k$ for which the function completely lacks vertical asymptotes.

Solve

Horizontal and Oblique Asymptotes

Why? As $x \to \pm\infty$ the highest-degree terms dominate. With equal degrees they leave the ratio of the leading coefficients. If the numerator has one more degree, division gives a linear quotient $mx + b$ plus a remainder term that shrinks to $0$.

For example, $\dfrac{3x^2+1}{x^2+5}$ has horizontal asymptote $y = 3$, and $\dfrac{x+1}{x^2+1}$ has horizontal asymptote $y = 0$.

The leftover fraction also tells you which side of the asymptote the curve is on. Here $f(x) - (2x-3) = \dfrac{1}{x-1}$. For $x > 1$ this is positive, so the curve is above the line as $x \to +\infty$. For $x < 1$ it is negative, so the curve is below the line as $x \to -\infty$.

Graph of a function approaching a dashed oblique line y = mx + b as x grows. f(x) y = mx + b
Practice★★☆Not started
Find the equation of the oblique asymptote of the rational function $f(x) = \frac{2x^2-5x+4}{x-1}$.

Find the equation of the oblique asymptote of the rational function $f(x) = \frac{2x^2-5x+4}{x-1}$.

Solve
Practice★★☆Not started
Given the function $f(x) = \frac{x^2+1}{x}$, determine its domain, its asymptotes (vertical, horizontal or oblique) and study the position of the curve with respect to…

Given the function $f(x) = \frac{x^2+1}{x}$, determine its domain, its asymptotes (vertical, horizontal or oblique) and study the position of the curve with respect to its oblique asymptote as $x \to +\infty$ and as $x \to -\infty$.

Solve

Putting It Together: Analyzing a Rational Function

When asked to analyze a rational function, follow this checklist:

  1. Factor numerator and denominator.

  2. Find the domain and any holes (cancelled factors).

  3. Find the intercepts.

  4. Find the vertical asymptotes (zeros of the denominator that remain).

  5. Find the horizontal or oblique asymptote.

  6. Make a sign chart.

Working backward: finding parameters

If you know the asymptotes, you can find unknown coefficients. For $f(x) = \dfrac{ax+3}{2x+b}$ with vertical asymptote $x = 4$ and horizontal asymptote $y = 3$:

  • The horizontal asymptote is $\dfrac{a}{2} = 3$, so $a = 6$.

  • The denominator is $0$ at $x = 4$: $2(4) + b = 0$, so $b = -8$.

  • Check that the numerator isn't $0$ at $4$: $6(4) + 3 = 27 \neq 0$. ✓

For an oblique asymptote, write the numerator as (quotient)(denominator) + remainder. Suppose $f(x) = \dfrac{ax^2+bx+c}{x-2}$ has oblique asymptote $y = 3x + 4$ and passes through $(3, 10)$. Then $ax^2 + bx + c = (3x+4)(x-2) + r = 3x^2 - 2x - 8 + r$. So $a = 3$, $b = -2$, $c = r - 8$. The point $(3, 10)$ gives $\dfrac{27 - 6 + c}{1} = 10$, so $c = -11$ (and $r = -3$).

Reading a graph

For a function of the form $f(x) = \dfrac{ax^2}{x^2+b}$:

  • The horizontal asymptote is $y = a$.

  • The graph always passes through the origin, since $f(0) = 0$.

  • It has vertical asymptotes only if $b < 0$, at $x = \pm\sqrt{-b}$. If $b > 0$, the denominator never vanishes.

  • It is even, so its graph is symmetric about the y-axis.

Read the asymptotes off the graph and match them to $a$ and $b$.

Practice★★☆Not started
Find the domain, the points of intersection with the coordinate axes and the equations of all the asymptotes of the rational function $f(x) = \frac{3x^2}{x^2-16}$.

Find the domain, the points of intersection with the coordinate axes and the equations of all the asymptotes of the rational function $f(x) = \frac{3x^2}{x^2-16}$.

Solve
Practice★★☆Not started
Determine the values of the parameters $a$ and $b$ so that the function $f(x) = \frac{ax+7}{3x+b}$ has a vertical asymptote at $x = 2$ and a horizontal asymptote at…

Determine the values of the parameters $a$ and $b$ so that the function $f(x) = \frac{ax+7}{3x+b}$ has a vertical asymptote at $x = 2$ and a horizontal asymptote at $y = \frac{5}{3}$.

Solve
Practice★★★Not started
Find the values of the parameters $a$, $b$ and $c$ of the rational function $f(x) = \frac{ax^2+bx+c}{x-3}$ knowing that it has an oblique asymptote with equation…

Find the values of the parameters $a$, $b$ and $c$ of the rational function $f(x) = \frac{ax^2+bx+c}{x-3}$ knowing that it has an oblique asymptote with equation $y = 2x+1$ and that its graph passes through the point with coordinates $(4, 15)$.

Solve
Practice★★★Not started
From the following graph of a rational function, determine its domain, the equations of its asymptotes (vertical and horizontal) and the points of intersection with the…

From the following graph of a rational function, determine its domain, the equations of its asymptotes (vertical and horizontal) and the points of intersection with the axes. Next, propose an algebraic expression of the type $f(x) = \frac{ax^2}{x^2+b}$ that perfectly fits all these visual characteristics.

X Y 0 2 −2 2
Solve

The Reciprocal Function and Its Transformations

A translated hyperbola with two branches in opposite quadrants, each approaching the dashed asymptotes x = h and y = v without crossing them, centered at the point (h, v). x = h y = v (h, v)

Lines and a hyperbola. To see where a line meets a rational curve, set the expressions equal, clear the denominator, and get a quadratic. A line meets the curve in exactly one point when the discriminant is $0$ (a tangent line), or when the equation degenerates into a linear equation with one solution.

Practice★☆☆Not started
Given the function $f(x) = \frac{1}{x+2} - 4$, explain what elementary geometric transformations (horizontal and vertical translations) have been applied to the graph of…

Given the function $f(x) = \frac{1}{x+2} - 4$, explain what elementary geometric transformations (horizontal and vertical translations) have been applied to the graph of the basic hyperbola $y = \frac{1}{x}$ to obtain it.

Solve
Practice★★★Not started
Determine the values of the real parameter $m$ for which the line with equation $y = mx$ intersects the rational curve $y = \frac{1}{x-2}$ at exactly one single point.…

Determine the values of the real parameter $m$ for which the line with equation $y = mx$ intersects the rational curve $y = \frac{1}{x-2}$ at exactly one single point. Interpret geometrically what these specific lines represent for the curve.

Solve

Inverses and Compositions

To find the inverse of a rational function, swap $x$ and $y$ and solve for $y$. The unknown ends up in both numerator and denominator, so you collect the terms with $y$ on one side and factor.

The domain of $f^{-1}$ is the range of $f$, and the vertical asymptote of $f^{-1}$ is the horizontal asymptote of $f$ (and vice versa).

Composition. To compute $(f \circ f)(x)$, substitute $f(x)$ into $f$ and simplify the complex fraction by multiplying top and bottom by the common denominator. If $(f \circ f)(x) = x$, then $f$ is its own inverse, so the graph of $f$ is symmetric about the line $y = x$.

Practice★★☆Not started
Calculate the analytic expression of the inverse function of $f(x) = \frac{2x-1}{x+3}$ and specify what the domain of this new function $f^{-1}(x)$ is.

Calculate the analytic expression of the inverse function of $f(x) = \frac{2x-1}{x+3}$ and specify what the domain of this new function $f^{-1}(x)$ is.

Solve
Practice★★★Not started
Let the rational function be $f(x) = \frac{x+2}{x-1}$. Prove analytically that the composite function $(f \circ f)(x) = x$ for every value of $x$ belonging to its…

Let the rational function be $f(x) = \frac{x+2}{x-1}$. Prove analytically that the composite function $(f \circ f)(x) = x$ for every value of $x$ belonging to its domain. What geometric conclusion about the graph of $f(x)$ can you draw from this result in relation to the bisector line $y = x$?

Solve

Rational Functions in the Real World: Costs and Rates

Many real quantities are shared out over a changing amount: a fixed cost spread over the units produced, a total job time shared between two workers, a dose spread over time. All of them are rational functions, and the horizontal asymptote has a concrete meaning: the long-run value of the quantity.

Notice that $C(x)$ gets close to $6$ but never equals it, because $\dfrac{400+6x}{x} = 6$ would require $400 = 0$.

Work problems. If one person finishes a job alone in $a$ hours and another in $b$ hours, together they finish $\dfrac1a + \dfrac1b$ of the job per hour. The time together is the reciprocal of that rate.

Back to the beginning: Aaliyah's cost per shirt is always a bit above $\$6$, and the more she prints, the closer it gets. The horizontal asymptote $y = 6$ is the floor.

Practice★★☆Not started
The average production cost (in dollars) of $x$ units of an electronic component is given by the function $C_m(x) = \frac{2500 + 15x}{x}$. Calculate the average cost of…

The average production cost (in dollars) of $x$ units of an electronic component is given by the function $C_m(x) = \frac{2500 + 15x}{x}$. Calculate the average cost of manufacturing 100 units and determine the value toward which the average cost tends if production becomes infinitely large, interpreting the result in the context of the problem.

Solve
Practice★★☆Not started
A tank initially contains 500 gallons of pure water. A saline solution with a concentration of 40 g/L begins to be pumped in at a rate of 10 gal/min. The salt…

A tank initially contains 500 gallons of pure water. A saline solution with a concentration of 40 g/L begins to be pumped in at a rate of 10 gal/min. The salt concentration in the tank after $t$ minutes is given by the function $C(t) = \frac{400t}{500+10t}$. At what instant will the concentration be exactly 25 g/L? What is the equation of the horizontal asymptote of this function and what physical meaning does it have?

Solve
Practice★★☆Not started
Two workers work together to paint a wall. The younger worker would take $x$ hours to do it working alone, while the older worker would take $x+3$ hours. The total time…

Two workers work together to paint a wall. The younger worker would take $x$ hours to do it working alone, while the older worker would take $x+3$ hours. The total time $T(x)$ they take if they work simultaneously is given by the function $T(x) = \frac{x(x+3)}{2x+3}$. If working together they manage to finish the job in exactly 2 hours, how long would the younger worker have taken to paint the wall by himself?

Solve

Rational Models: Bounds and Growth

Two algebraic tricks help you study a rational model without calculus.

Trick 1: bounding the output with a discriminant. To see which values $y = f(t)$ can take, treat $y$ as a given number, clear the denominator, and view the equation as a quadratic in $t$. The value $y$ is attainable only if that quadratic has a real solution, so its discriminant must be $\geq 0$.

Trick 2: rewrite by polynomial division. When the degrees are equal, divide to get $f(t) = A - \dfrac{B}{t^2+1}$. Then you can read off both the long-term value ($A$) and whether the function increases or decreases.

Practice★★★Not started
The concentration $C(t)$ of a drug in the bloodstream $t$ hours after its intramuscular administration is given by the expression $C(t) = \frac{30t}{t^2+9}$ (measured in…

The concentration $C(t)$ of a drug in the bloodstream $t$ hours after its intramuscular administration is given by the expression $C(t) = \frac{30t}{t^2+9}$ (measured in mg/L). Without using differentiation tools, prove purely algebraically that the maximum concentration can never exceed $5$ mg/L and determine at what exact instant $t$ this maximum concentration is reached. (Hint: Set up the equality $C = \frac{30t}{t^2+9}$ as a quadratic equation in the variable $t$ and analyze the condition that its discriminant must satisfy for the time to be a real number).

Solve
Practice★★★Not started
The population of a fish species in a protected lake follows a growth model given by the function $P(t) = \frac{2000t^2+500}{t^2+1}$, where $t \ge 0$ is measured in…

The population of a fish species in a protected lake follows a growth model given by the function $P(t) = \frac{2000t^2+500}{t^2+1}$, where $t \ge 0$ is measured in years from the start of the study. Determine the initial population, the population in the very long term (limit as $t \to +\infty$) and prove algebraically that the population is always growing as time passes. (Hint: Try to express the fraction in the form $A - \frac{B}{t^2+1}$ by performing polynomial division).

Solve

Summary

See all the exercises in this section