Rational function analyzer
Learn more with Tiger
A rational function is any function that can be written as the ratio of two polynomials: f(x) = P(x)/Q(x). Analyzing a rational function means finding its domain, intercepts, asymptotes, holes, and overall behavior — everything needed to understand and graph it.
What the Analyzer Finds
- Domain: all x-values where Q(x) ≠ 0
- Vertical asymptotes: zeros that remain in the denominator after common factors are canceled
- Horizontal / oblique asymptotes: determined by comparing the degrees of P and Q
- Holes: excluded values where a common factor cancels completely from the denominator
- x-intercepts: where P(x) = 0 and Q(x) ≠ 0
- y-intercept: the value f(0)
How to Ask for an Analysis
State the analysis you want so a rational function is not mistaken for a request to simplify an algebraic fraction. Use analyze((x^2-1)/(x^2-4)), or write a property request such as find domain of 1/(x^2+1), find asymptotes of x^2/(x-1), or find holes of (x^2+x-6)/(x^2-9). You can also write f(x)= or y= after the analysis request.
Step-by-Step Method
- Factor the numerator and denominator completely.
- Cancel common factors to find holes.
- Set the remaining denominator equal to zero for vertical asymptotes.
- Compare degrees for the horizontal or oblique asymptote.
- Find intercepts and plot key points.
Example: Vertical and Horizontal Asymptotes
For f(x) = (x² − 1)/(x² − 4), the domain excludes x = −2 and x = 2. No factor cancels, so both excluded values are vertical asymptotes. The numerator and denominator have equal degree and equal leading coefficients, so the horizontal asymptote is y = 1. The x-intercepts are x = −1 and x = 1, and the y-intercept is 1/4.
Example: A Hole and a Vertical Asymptote
Factor (x² + x − 6)/(x² − 9) as (x+3)(x−2)/((x+3)(x−3)). The common factor creates a hole at x = −3. After cancellation, its y-value is 5/6, so the hole is (−3, 5/6). The remaining denominator gives a vertical asymptote at x = 3.
Example: No Real Vertical Asymptote
For f(x) = 1/(x² + 1), the denominator is never zero for real x. The domain is all real numbers, there are no real vertical asymptotes or x-intercepts, the horizontal asymptote is y = 0, and the y-intercept is 1.
Example: An Oblique Asymptote
Divide x² by x−1 to get x+1 with remainder 1. Therefore x²/(x−1) = x+1 + 1/(x−1), so the oblique asymptote is y = x+1 and the vertical asymptote is x = 1.
Why It Matters
- Precalculus and calculus: rational functions appear in limits, integration, and partial fractions
- Physics: inverse-square laws, lens equations, and circuit impedance are rational functions
- Economics: average cost functions and rate models are often rational
Try It
Try analyze((x^2-1)/(x^2-4)), find holes of (x^2+x-6)/(x^2-9), find domain of 1/(x^2+1), or find asymptotes of x^2/(x-1). The analyzer returns the complete set of domain restrictions, holes, asymptotes, and intercepts even when the prompt names one property.