A rational function is a fraction of two polynomials, such as 1/x or (x + 1)/(x − 2). Wherever the denominator is zero the function is undefined, and that usually creates an asymptote — a line the graph approaches but never reaches.
The basic example: y = 1/x
Valid points
| x | −2 | −1 | −0.5 | 0 | 0.5 | 1 | 2 |
|---|---|---|---|---|---|---|---|
| y | −0.5 | −1 | −2 | undefined | 2 | 1 | 0.5 |
The excluded value
At x = 0 you would need 1 ÷ 0, which has no value. So x = 0 is not in the domain. As x gets closer to 0 from the right, 1/x grows without limit (1/0.1 = 10, 1/0.01 = 100). From the left it heads towards −∞.
Two asymptotes
- Vertical asymptote x = 0. The graph approaches the y-axis but never touches it.
- Horizontal asymptote y = 0. As x becomes very large (positive or negative), 1/x gets very close to 0 but never equals it. So 0 is not in the range.
The two branches lie in the first and third quadrants, and the graph is symmetric about the origin.
Why plotters must not join the branches
A graphing tool draws a curve by evaluating the function at many x values and joining neighbouring points. If one sample lands at x = −0.01 (y = −100) and the next at x = 0.01 (y = 100), naive joining draws a steep line through the middle — a line that is not part of the graph.
Our calculator prevents this. Between every pair of samples it checks whether the change in y keeps staying large as it looks closer; a continuous function’s change shrinks, but a pole’s does not. When it detects a pole or jump, it starts a new segment. The same check handles tan x and functions such as 1/x², where both sides head the same way.
Shifting the asymptotes
For y = 1/(x − 2) + 3:
- the vertical asymptote moves to x = 2 (where the denominator is 0);
- the horizontal asymptote moves to y = 3.
The calculator will report “No y-intercept” only when x = 0 is excluded; for this example the y-intercept is 1/(0 − 2) + 3 = 2.5.
Holes versus asymptotes
If a factor cancels — for example (x² − 1)/(x − 1) = x + 1 when x ≠ 1 — the excluded value creates a hole, not an asymptote. The graph looks like the line y = x + 1 with a single missing point at (1, 2). A screen plot usually cannot show a one-point hole, so mark it with an open circle when sketching by hand.
Common mistakes
- Drawing the curve crossing x = 0.
- Saying 1/x "equals 0 eventually". It approaches 0 but never reaches it.
- Typing
1/x-2when you mean 1/(x − 2). Brackets matter: 1/x−2 is (1/x) − 2.
Common questions
Why does the root finder report no roots for 1/x?
Because 1/x is never 0. It changes sign at x = 0, but that is a pole, not a root. The tool checks that the function is continuous across a sign change before reporting a root.
What does “undefined” mean in the value table?
It means the function has no real value at that x — here because of division by zero. It is not the same as 0.
How this guide was made: drafted with AI assistance under the site’s editorial policy. Worked examples and plotted figures are computed by the same maths engine as our calculators and checked by automated tests. Found an error? Report a correction.