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

Rational Functions

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

Ava's robotics club orders custom hoodies. The shop charges a $\$150$ setup fee plus $\$12$ per hoodie. The more hoodies the club orders, the less of the setup fee each hoodie has to carry, but the cost per hoodie never drops below some floor, no matter how big the order. What is that floor, and how do we find it without guessing? Functions like this are rational functions, and the tools in this section (domain, holes, asymptotes) answer exactly that kind of question.

Domain of a rational function

The recipe is short: set the denominator equal to $0$, solve, and exclude those values.

Number line with open circles at −3 and 3, splitting the domain into three open intervals. domaindomaindomain −33 ○ excluded○ excluded (−∞, −3)(−3, 3)(3, ∞) x = −3 and x = 3 make the denominator 0

Look at the graph below and notice what happens near $x=-3$ and $x=3$: the curve breaks apart.

Two quick cases to recognize. A repeated factor, like $x^2 - 10x + 25 = (x-5)^2$, still excludes just one value, $x = 5$. And a denominator that is never zero, like $x^2 + 1$, excludes nothing: the domain is all real numbers.

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

Find the domain 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 symmetry

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 values do not also make the denominator $0$. A fraction is zero only when its numerator is zero.

Sign of a rational function

Why? Between two consecutive "special" numbers, neither $P$ nor $Q$ can cross zero, so neither can change sign. One test point tells you the sign for the whole interval.

Sign chart for (x − 4)/(x + 2): positive left of −2, negative between −2 and 4, positive right of 4. + − + −2 4 undefined f(x) = 0

Even and odd

To test symmetry, replace $x$ with $-x$ and simplify. If $f(-x) = f(x)$, the function 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 such symmetry.

Practice★☆☆Not started
Find the coordinates of the x- and y-intercepts of the function $f(x) = \frac{3x+12}{2x-5}$.

Find the coordinates of the x- and y-intercepts of the function $f(x) = \frac{3x+12}{2x-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 number line where the function takes positive values and where…

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

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

Check algebraically 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

When the denominator is $0$ at $x=a$, one of two things happens, depending on whether the numerator is also $0$ there.

Graph with vertical asymptote x = −3 and horizontal asymptote y = 4. The left branch rises toward positive infinity and the right branch falls toward negative infinity. y = 4 x = −3 f(x) → +∞ f(x) → −∞

When the denominator is a quadratic with an unknown parameter, the discriminant tells you how many zeros it has. If $b^2 - 4ac < 0$, the denominator has no real zeros, so there are no vertical asymptotes (and no holes).

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
Analyze 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…

Analyze 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 slant asymptotes

Vertical asymptotes tell you what happens near a special $x$. Horizontal and slant asymptotes tell you what happens far away, as $x \to \infty$ and $x \to -\infty$ (the end behavior).

A curve approaching a dashed slant line from above as x grows, with the gap between them shrinking. f(x) y = mx + b

Which side of the slant asymptote?

Writing $f(x) = mx+b+\dfrac{r}{Q(x)}$ also tells you whether the curve lies above or below the asymptote: look at the sign of the leftover fraction $\dfrac{r}{Q(x)}$.

Practice★★☆Not started
Find the equation of the slant asymptote of the rational function $f(x) = \frac{2x^2-5x+4}{x-1}$.

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

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

Find the domain, the x- and y-intercepts, and the equations of all the asymptotes of the rational function $f(x) = \frac{3x^2}{x^2-16}$.

Solve
Practice★★☆Not started
Given the function $f(x) = \frac{x^2+1}{x}$, determine its domain, its asymptotes (vertical, horizontal, or slant), 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 slant), and study the position of the curve with respect to its slant asymptote as $x \to +\infty$ and as $x \to -\infty$.

Solve

The reciprocal function and transformations

The simplest rational function is the reciprocal function $f(x) = \dfrac{1}{x}$. More generally, $y = \dfrac{k}{x}$ is inverse variation: $k$ is the constant of proportionality, and $xy = k$ always.

Because it is a parent function, it follows the usual transformation rules.

A hyperbola centered at the point (h, k) with dashed asymptotes x = h and y = k and one branch in the upper right and one in the lower left. x = h y = k (h, k)

Every rational function of the form $\dfrac{ax+b}{cx+d}$ (with $c\neq0$ and $ad-bc\neq0$) is a transformed reciprocal function. That is why these functions all share the same shape: two branches around a vertical and a horizontal asymptote.

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

Rational equations, inverses, and compositions

Solving $f(x) = c$

To find where a rational function takes a given value, set up the equation, multiply both sides by the denominator to clear the fraction, solve, and check that the answer is in the domain.

Finding an inverse

To find $f^{-1}$, swap $x$ and $y$ and solve for $y$. With a rational function, the unknown appears twice, so you collect the $y$-terms on one side and factor.

Composing rational functions

To compute $f(f(x))$, substitute the whole expression into itself, then clear the small fractions inside by multiplying the top and bottom by the common denominator.

If you ever find that $f(f(x)) = x$ for every $x$ in the domain, then $f$ undoes itself, so $f = f^{-1}$. Since the graph of an inverse is the reflection of the graph over the line $y=x$, the graph of such a function is symmetric about $y=x$. The simplest example is $y = \dfrac{1}{x}$.

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
Find the equation 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.

Find the equation 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 algebraically 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 algebraically 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 line $y = x$?

Solve

Finding unknown parameters and reading graphs

Sometimes you are given the asymptotes and must find the function. Turn each fact about the graph into an equation.

  • Vertical asymptote at $x=a$: the denominator is $0$ at $x = a$ (and the numerator is not).

  • Horizontal asymptote $y = L$ with equal degrees: the ratio of leading coefficients is $L$.

  • Slant asymptote $y=mx+b$: the quotient of the division is $mx+b$.

  • Passes through a point $(x_0, y_0)$: substitute, $f(x_0)=y_0$.

Reading a graph

When you are given a picture, read these in order. First, where does the curve break apart? Those $x$-values are the vertical asymptotes and holes, and they are excluded from the domain. Second, what height does the curve level off to on the far left and right? That is the horizontal asymptote. Third, where does the curve cross the axes? Those are the intercepts. Then build a formula that matches.

For the family $f(x)=\dfrac{ax^2}{x^2+b}$, the numerator and denominator have equal degree, so the horizontal asymptote is $y=a$. The y-intercept is $(0,0)$. If $b>0$ the denominator is never zero: no vertical asymptotes, domain all reals. If $b<0$ there are vertical asymptotes at $x=\pm\sqrt{-b}$. For example, horizontal asymptote $y=2$ with vertical asymptotes $x=\pm3$ gives $a=2$ and $b=-9$, so $f(x)=\dfrac{2x^2}{x^2-9}$.

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 a slant 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 a slant 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 axis intercepts. Next, propose…

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

X Y 0 2 −2 2
Solve

Rational functions in real situations

Many real quantities are "a fixed amount shared among a changing number": a setup fee shared among hoodies, salt dissolved in a growing volume, a dose spread over time. Each one is a rational function, and its horizontal asymptote has a concrete meaning: the long-term value of the quantity.

Back to the start: the floor for the cost of Ava's hoodies is the horizontal asymptote $y=12$, the price of a single hoodie once the $\$150$ fee is spread thin.

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 time 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

Algebraic tools: bounds, growth, and intersections

Without calculus you can still answer three questions with algebra: "what is the largest value?", "is it always increasing?", and "how many times does a line meet the curve?"

Bounding the outputs with the discriminant

To find which values $y$ a function can take, write $y=f(x)$, clear the fraction, and treat the equation as a quadratic in $x$. The equation has a real solution $x$ only when its discriminant is $\ge 0$. That condition gives the possible values of $y$.

Showing a function is increasing

Divide the polynomials first. A form like $A-\dfrac{B}{\text{something increasing}}$ makes monotonicity easy to see.

Intersecting a line with a rational curve

To find where a line meets a rational curve, set the two expressions equal, clear the denominator, and study the resulting quadratic. The discriminant tells you how many intersection points there are: $\Delta>0$ gives two, $\Delta=0$ gives exactly one, and $\Delta<0$ gives none. Don't forget to throw out any solution that is not in the domain, and to treat the case where the leading coefficient is $0$ separately.

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 calculus, prove purely algebraically that the maximum concentration can never exceed $5$ mg/L and determine at what exact time $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
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 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 point. Interpret geometrically what these specific lines represent for the curve.

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 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