Use Sophia to knock out your gen-ed requirements quickly and affordably. Learn more
×

Writing Rational Functions

Author: Sophia

what's covered
In this lesson, you will use the graph and/or characteristics of a rational function to write its equation. Specifically, this lesson will cover:
  1. Writing an Equation of a Rational Function Given Its Characteristics
  2. Interpreting Characteristics of a Rational Function in Real-Life Situations

1. Writing an Equation of a Rational Function Given Its Characteristics

Earlier, we were using the equation of a rational function to determine all its characteristics. Because of the relationship between the equation and these characteristics, we can also write a possible equation of a rational function if we know its characteristics.

EXAMPLE

Write an equation of the rational function whose graph is shown here.



Let’s list the characteristics we see from the graph.
  • The horizontal asymptote is y equals 0. This suggests that the degree of the numerator is smaller than the degree of the denominator.
  • The vertical asymptotes are x equals short dash 3 and x equals 4.
  • The x-intercept is open parentheses 3 comma space 0 close parentheses.
  • The y-intercept is open parentheses 0 comma space 1 close parentheses.
Now, let’s translate all these characteristics to parts of the function.

The vertical asymptotes are x equals short dash 3 and x equals 4 comma which means that the denominator contains open parentheses x plus 3 close parentheses and open parentheses x minus 4 close parentheses as factors. Upon further inspection, the behavior of the graph around the asymptotes suggests that each has odd multiplicity (f open parentheses x close parentheses rightwards arrow infinity on one side of the asymptote and f open parentheses x close parentheses rightwards arrow short dash infinity on the other side). Thus, the factored form of the denominator is open parentheses x plus 3 close parentheses open parentheses x minus 4 close parentheses.

The x-intercept is open parentheses 3 comma space 0 close parentheses comma which means that open parentheses x minus 3 close parentheses is a factor of the numerator.

At this point, we can form our rational function. Our function has the form f open parentheses x close parentheses equals a times fraction numerator open parentheses x minus 3 close parentheses over denominator open parentheses x plus 3 close parentheses open parentheses x minus 4 close parentheses end fraction comma where a is a stretch factor that isn’t apparent from the graph. Similar to our work with polynomials, we use another point on the graph to determine what the value of a is. In this case, we use the y-intercept.

Since the y-intercept is open parentheses 0 comma space 1 close parentheses comma we know f open parentheses 0 close parentheses equals 1. By our equation, f open parentheses 0 close parentheses equals a times fraction numerator open parentheses 0 minus 3 close parentheses over denominator open parentheses 0 plus 3 close parentheses open parentheses 0 minus 4 close parentheses end fraction equals 1 fourth a.

Thus, 1 fourth a equals 1 comma which means a equals 4.

In conclusion, an equation of the pictured rational function is f open parentheses x close parentheses equals 4 times fraction numerator open parentheses x minus 3 close parentheses over denominator open parentheses x plus 3 close parentheses open parentheses x minus 4 close parentheses end fraction comma which is also written f open parentheses x close parentheses equals fraction numerator 4 open parentheses x minus 3 close parentheses over denominator open parentheses x plus 3 close parentheses open parentheses x minus 4 close parentheses end fraction.

Now that we have worked through one example, here are some steps to follow when building an equation of a rational function.

step by step
  1. For each x-intercept, create a factor and place it in the numerator. Raise factors to appropriate powers if needed to account for behaviors around the x-axis.
  2. For each vertical asymptote, create a factor and place it in the denominator. Raise factors to appropriate powers if needed to account for behaviors on both sides of each vertical asymptote.
  3. If there are other characteristics not accounted for (such as a y-intercept or a horizontal or slant asymptote), find the value of the stretch factor that is needed to accommodate the other characteristics.

Now, let’s look at a more involved example.

EXAMPLE

Write an equation of the rational function whose graph is shown below.



Let’s list the characteristics we see from the graph:
  • The horizontal asymptote is y equals 0. This suggests that the degree of the numerator is smaller than the degree of the denominator.
  • The vertical asymptotes are x equals short dash 1 and x equals 2.
  • The x-intercepts are open parentheses short dash 2 comma space 0 close parentheses and open parentheses 3 comma space 0 close parentheses.
  • The y-intercept is open parentheses 0 comma space short dash 1 close parentheses.
Now, let’s translate all these characteristics to parts of the function.

The vertical asymptotes are x equals short dash 1 and x equals 2 comma which means that the denominator contains open parentheses x plus 1 close parentheses and open parentheses x minus 2 close parentheses as factors.

Upon further inspection, the behavior of the graph around x equals short dash 1 suggests odd multiplicity since f open parentheses x close parentheses rightwards arrow infinity on one side and f open parentheses x close parentheses rightwards arrow short dash infinity on the other side.

However, the behavior around x equals 2 suggests even multiplicity since f open parentheses x close parentheses rightwards arrow short dash infinity on both sides of x equals 2. Therefore, the factored form of the denominator is open parentheses x plus 1 close parentheses open parentheses x minus 2 close parentheses squared.

The x-intercepts are open parentheses short dash 2 comma space 0 close parentheses and open parentheses 3 comma space 0 close parentheses comma which means that open parentheses x plus 2 close parentheses and open parentheses x minus 3 close parentheses are factors of the numerator. Since the graph crosses the x-axis at each intercept, each factor has odd multiplicity, so we will assume that each is linear (multiplicity 1). Then, the numerator is open parentheses x plus 2 close parentheses open parentheses x minus 3 close parentheses.

At this point, we can form our rational function. Our function has the form f open parentheses x close parentheses equals a times fraction numerator open parentheses x plus 2 close parentheses open parentheses x minus 3 close parentheses over denominator open parentheses x plus 1 close parentheses open parentheses x minus 2 close parentheses squared end fraction comma where a is a stretch factor that isn’t apparent from the graph. Similar to our work with polynomials, we use another point on the graph to determine what the value of a is. In this case, we use the y-intercept.

Since the y-intercept is open parentheses 0 comma space short dash 1 close parentheses comma we know f open parentheses 0 close parentheses equals short dash 1. By our equation, f open parentheses 0 close parentheses equals a times fraction numerator open parentheses 0 plus 2 close parentheses open parentheses 0 minus 3 close parentheses over denominator open parentheses 0 plus 1 close parentheses open parentheses 0 minus 2 close parentheses squared end fraction equals short dash 2 over 3 a.

Thus, short dash 2 over 3 a equals short dash 2 comma which means a equals 2 over 3.

In conclusion, an equation of the pictured rational function is f open parentheses x close parentheses equals 2 over 3 times fraction numerator open parentheses x plus 2 close parentheses open parentheses x minus 3 close parentheses over denominator open parentheses x plus 1 close parentheses open parentheses x minus 2 close parentheses squared end fraction comma which is also written f open parentheses x close parentheses equals fraction numerator 2 open parentheses x plus 2 close parentheses open parentheses x minus 3 close parentheses over denominator 3 open parentheses x plus 1 close parentheses open parentheses x minus 2 close parentheses squared end fraction.

Here is one more worked-out example that involves an oblique asymptote.

EXAMPLE

Write an equation of the rational function whose graph is shown here.



Let’s list the characteristics we see from the graph.
  • This function has an oblique asymptote. This suggests that the degree of the numerator is greater than the degree of the denominator.
  • The vertical asymptote is x equals 1.
  • The x-intercepts are open parentheses short dash 3 comma space 0 close parentheses and open parentheses 2 comma space 0 close parentheses.
  • The y-intercept is open parentheses 0 comma space 6 close parentheses.
Now, let’s translate this information into parts of the equation.

Since f open parentheses x close parentheses rightwards arrow infinity on one side of the vertical asymptote and f open parentheses x close parentheses rightwards arrow short dash infinity on the other side, x equals 1 has odd multiplicity. This means that the denominator is x minus 1.

Since the graph crosses the x-axis at each x-intercept, assume that each corresponds to a linear factor. Since open parentheses short dash 3 comma space 0 close parentheses corresponds to x plus 3 and open parentheses 2 comma space 0 close parentheses corresponds to x minus 2 comma the factored form of the numerator is open parentheses x plus 3 close parentheses open parentheses x minus 2 close parentheses.

Next, our function has the form f open parentheses x close parentheses equals a times fraction numerator open parentheses x plus 3 close parentheses open parentheses x minus 2 close parentheses over denominator x minus 1 end fraction for some stretch factor a.

With the given y-intercept at open parentheses 0 comma space 6 close parentheses comma we know f open parentheses 0 close parentheses equals 6.

From the function we built, we have f open parentheses 0 close parentheses equals a times fraction numerator open parentheses 0 plus 3 close parentheses open parentheses 0 minus 2 close parentheses over denominator 0 minus 1 end fraction equals 6 a.

Then, 6 a equals 6 comma which means a equals 1.

In conclusion, f open parentheses x close parentheses equals 1 times fraction numerator open parentheses x plus 3 close parentheses open parentheses x minus 2 close parentheses over denominator x minus 1 end fraction comma or f open parentheses x close parentheses equals fraction numerator open parentheses x plus 3 close parentheses open parentheses x minus 2 close parentheses over denominator open parentheses x minus 1 close parentheses end fraction.

watch
This video presents another example of writing the equation of a rational function given its graph.

Video Transcript


2. Interpreting Characteristics of a Rational Function in Real-Life Situations

Earlier, we discussed real-life situations that were modeled by rational functions. Since we know so many more characteristics of rational functions now, they can be interpreted with real-life meaning.

EXAMPLE

Suppose you have a saltwater solution that contains 5 pounds of salt dissolved in 50 gallons of water. A tap is turned on that adds 4 gallons of water to the solution each minute, and at the same time, 0.5 pounds of salt is added each minute.

We found the concentration of salt (measured in pounds per gallon) to be C open parentheses t close parentheses equals fraction numerator 5 plus 0.5 t over denominator 50 plus 4 t end fraction comma where t is the number of minutes since the water was turned on.

The function is in its simplest form. Let’s find the vertical asymptote:

50 plus 4 t equals 0
Set the denominator equal to 0.
t equals short dash 12.5
Solve for t.

Since this value of t suggests a negative amount of time, the vertical asymptote has no meaning in this situation.

Let’s now find the horizontal asymptote. Since the degrees of the numerator and denominator are the same, the horizontal asymptote is y equals fraction numerator 0.5 over denominator 4 end fraction equals 0.125.

Remember that the horizontal asymptote represents the end behavior of a function. Thus, the horizontal asymptote tells us that the concentration of the solution approaches 0.125 pounds of salt per gallon of water.

summary
In this lesson, you learned how to write an equation of a rational function given its characteristics. For instance, given the graph of a rational function, a possible equation can be formed by first considering vertical asymptotes, holes in the graph, and x-intercepts, along with their behavior near these locations, then finding the vertical stretch factor to accommodate the other characteristics such as the y-intercept or another asymptote. You also learned how to interpret characteristics of a rational function in real-life situations, exploring scenarios where rational functions are used to model the concentration of a solution, and the horizontal asymptote represents the concentration the solution approaches long term, either over time or as more solution is added.

SOURCE: THIS WORK IS ADAPTED FROM PRECALCULUS BY JAY ABRAMSON. ACCESS FOR FREE AT OPENSTAX.ORG/BOOKS/PRECALCULUS/PAGES/1-INTRODUCTION-TO-FUNCTIONS