Rational Function Grapher
Plot rational functions y = p(x)/q(x) and visualize vertical and horizontal asymptotes.
About the Rational Function Grapher
Plot rational functions y = p(x)/q(x) and visualize vertical and horizontal asymptotes.
How to use this calculator
- Enter the numerator polynomial \(p(x)\).
- Enter the denominator polynomial \(q(x)\).
- Click graph to plot the function and display asymptotes.
- Check the graph for holes, vertical asymptotes, and any horizontal asymptote.
The formula explained
This tool graphs \(y=\frac{p(x)}{q(x)}\), a ratio of two polynomials. It shows how the function behaves where the denominator is zero and how it acts far to the left and right.
- x = the input variable on the horizontal axis
- p(x) = the polynomial in the numerator
- q(x) = the polynomial in the denominator
- y = the output value of the rational function
Step by step method
- Factor the numerator and denominator if possible.
- Find values of \(x\) that make \(q(x)=0\), these are excluded from the domain and may create vertical asymptotes or holes.
- Compare the degrees of \(p(x)\) and \(q(x)\) to estimate the horizontal asymptote.
- Plot the function to confirm the intercepts and asymptotes.
Worked example
Problem. Graph \(y=\frac{x+2}{x-1}\) and identify its asymptotes.
- The denominator is zero at \(x=1\), so the function is undefined there.
- Since the numerator and denominator have the same degree, the horizontal asymptote is \(y=\frac{1}{1}=1\).
- So the graph has a vertical asymptote at \(x=1\) and a horizontal asymptote at \(y=1\).
Answer. Vertical asymptote: \(x=1\). Horizontal asymptote: \(y=1\).
Tips and common mistakes
- If a factor cancels between the numerator and denominator, that point is a hole, not a vertical asymptote.
- A horizontal asymptote describes end behavior, so it tells you what happens as \(x\to\infty\) or \(x\to-\infty\).
Frequently asked questions
What is a vertical asymptote?+
A value of x where the denominator is zero and the function diverges.
What is a horizontal asymptote?+
The value y approaches as x → ±∞.
More Mathematics Tools
Explore related calculators in this category
Absolute Value Calculator
Calculate the absolute value of any number. Use this free calculator for fast, accurate answers, complete with the formula and a worked example.
Absolute Value Equation Solver
Solve equations of the form |ax + b| = c.
Adding Fractions Calculator
Add two fractions with step-by-step simplification.
One-Way ANOVA Calculator
Perform one-way ANOVA on multiple groups.
You Might Also Like
Popular tools from other categories
AC to DC Converter Calculator
Convert AC voltage to DC voltage for different rectifier configurations. Free online calculator with instant, step-by-step results.
Acid-Base Titration Calculator
Calculate concentration from titration data. Get quick, accurate results with this free online calculator, including formulas and worked examples.
ABV Calculator
Calculate alcohol by volume from original and final gravity. Free calculator with instant calculations, the underlying formula, and an easy-to-follow example.
Amortization Schedule Calculator - Free Online
Free Generate a complete amortization schedule. Step-by-step solutions and formulas included. Free, accurate results with step-by-step explanations.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.