Example \(\PageIndex{2}\): Sketching a Rational Function
Sketch the graph of \(f(x)=\frac{x^2}{1−x^2}\).
Solution
Step 1: The function \(f\) is defined as long as the denominator is not zero. Therefore, the domain is the set of all real numbers \(x\) except \(x=±1.\)
Step 2: Find the intercepts. If \(x=0,\) then \(f(x)=0\), so \(0\) is an intercept. If \(y=0\), then \(\frac{x^2}{(1−x^2)}=0,\) which implies x=0. Therefore, (0,0) is the only intercept.
Step 3: \(f(−x)=\frac{(−x)^2}{1−(−x)^2} = \frac{x^2}{1−x^2}\) This IS \(f(x)\), so this function is Even. It will be symmetric with the y-axis.
Step 4(a): Evaluate the limits at infinity. Since \(f\) is a rational function, divide the numerator and denominator by the highest power in the denominator: \(x^2\). We obtain
\(\lim_{x→±∞}\frac{x^2}{1−x^2}=\lim_{x→±∞}\frac{1}{\frac{1}{x^2}−1}=−1.\)
Therefore, \(f\) has a horizontal asymptote of \(y=−1\) as \(x→∞\) and \(x→−∞.\) HA: \(y=−1\)
Step 4(b): To determine whether \(f\) has any vertical asymptotes, first check to see whether the denominator has any zeroes. We find the denominator is zero when \(x=±1\). To determine whether the lines \(x=1\) or \(x=−1\) are vertical asymptotes of \(f\), evaluate \(\lim_{x→1}f(x)\) and \(\lim_{x→−1}f(x)\). By looking at each one-sided limit as \(x→1,\) we see that
\(\lim_{x→1^+}\frac{x^2}{1−x^2}=−∞\) and \(\lim_{x→1^−}\frac{x^2}{1−x^2}=∞.\)
In addition, by looking at each one-sided limit as \(x→−1,\) we find that
\(\lim_{x→−1^+}\frac{x^2}{1−x^2}=∞\) and \(\lim_{x→−1^−}\frac{x^2}{1−x^2}=−∞.\)
VA: \(x=−1\) & \(x=1\)
The one-sided limits tell us where the function is going up or down on each side of the vertical asymptotes.
Step 5: Calculate the first derivative:
\(f′(x)=\frac{(1−x^2)(2x)−x^2(−2x)}{(1−x^2)^2}=\frac{2x}{(1−x^2)^2}\).
Critical points occur at points \(x\) where \(f′(x)=0\) or \(f′(x)\) is undefined. We see that \(f′(x)=0\) when \(x=0.\) The derivative \(f′\) is not undefined at any point in the domain of \(f\). However, \(x=±1\) are not in the domain of \(f\). Therefore, to determine where \(f\) is increasing and where \(f\) is decreasing, divide the interval \((−∞,∞)\) into four smaller intervals: \((−∞,−1), (−1,0), (0,1),\) and \((1,∞)\), and choose a test point in each interval to determine the sign of \(f′(x)\) in each of these intervals. The values \(x=−2, x=−\frac{1}{2}, x=\frac{1}{2}\), and \(x=2\) are good choices for test points as shown in the following table.
| Interval |
Test point |
Sign of \(f′(x)=\frac{2x}{(1−x^2)^2}\) |
Conclusion |
| \((−∞,−1)\) |
\(x=−2\) |
\(−/+=−\) |
\(f\) is decreasing. |
| \((−1,0)\) |
\(x=−/2\) |
\(−/+=−\) |
\(f\) is decreasing. |
| \((0,1)\) |
\(x=1/2\) |
\(+/+=+\) |
\(f\) is increasing. |
| \((1,∞)\) |
\(x=2\) |
\(+/+=+\) |
\(f\) is increasing. |
NOTE: this table is equivalent to the line with asterisks on \(−1\), \(0\) and \(1\) and the Signs of the Derivative on the line using the technique shown above .
Be sure to write \(f′\) along the line to indicate this is the First Derivative Test.
Step 6: From the table, we see that \(f\) has a local minimum at \(x=0\) but no local maximum. \(f(0)=0.\) So the local minimum is \((0,0)\).
Step 7: Calculate the second derivative:
\(f''(x)=\frac{(1−x^2)^2(2)−2x(2(1−x^2)(−2x))}{(1−x^2)^4}\)
\(=\frac{(1−x^2)[2(1−x^2)+8x^2]}{(1−x^2)^4}\)
\(=\frac{2(1−x^2)+8x^2}{(1−x^2)^3}\)
\(=\frac{6x^2+2}{(1−x^2)^3}.\)
To determine the intervals where \(f\) is concave up and where \(f\) is concave down, we first need to find all points \(x\) where \(f''(x)=0\) or \(f''(x)\) is undefined. Since the numerator \(6x^2+2≠0\) for any \(x, f''(x)\) is never zero. Furthermore, \(f''\) is not undefined for any \(x\) in the domain of \(f\). However, as discussed earlier, \(x=±1\) are not in the domain of \(f\). Therefore, to determine the concavity of \(f\), we divide the interval \((−∞,∞)\) into the three smaller intervals \((−∞,−1), (−1,−1)\), and \((1,∞)\), and choose a test point in each of these intervals to evaluate the sign of \(f''(x)\). in each of these intervals. The values \(x=−2, x=0\), and \(x=2\) are possible test points as shown in the following table.
| Interval |
Test Point |
Sign of \(f''(x)=\frac{6x^2+2}{(1−x^2)^3}\) |
Conclusion |
| \((−∞,−1)\) |
\(x=−2\) |
\(+/−=−\) |
\(f\) is concave down. |
| \((−1,−1)\) |
\(x=0\) |
\(+/+=+\) |
\(f\) is concave up |
| \((1,∞)\) |
\(x=2\) |
\(+/−=−\) |
\(f\) is concave down. |
NOTE: this table is equivalent to the line with triangles on \(−1\) and \(1\) and the Signs of the Second Derivative on the line using the technique shown above .
Be sure to write \(f''\)along the line to indicate this is the Concavity Test.
Step 8: Although \(f\) changes concavity at \(x=−1\) and \(x=1\), there are no inflection points at either of these places because \(f\) is not continuous at \(x=−1\) or \(x=1.\) So, there are no points of inflection.
Step 9: Combining all this information, we arrive at the graph of \(f\) shown below.
\(f(x)=\frac{x^2}{(1−x^2)}\).