Functions & Graphs

Rational Graphs and Asymptotes Explained

Short answer: y = 1/x is undefined at x = 0, so the graph has two separate branches. It has a vertical asymptote at x = 0 and a horizontal asymptote at y = 0. A correct graph leaves a gap at x = 0 and never draws a line joining the branches.

The two branches of y = 1/x with dashed asymptotes along x = 0 and y = 0.

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

Values of y = 1/x
x−2−1−0.500.512
y−0.5−1−2undefined210.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 −∞.

Table and graph of y = 1/x with six valid points on two branches, dashed asymptotes on both axes, and an inset showing an incorrect line through x = 0 crossed out.
Valid points lie on two branches. The inset shows the plotting error to avoid: a segment drawn through the excluded value x = 0.

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.

Plot y = 1/x →

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.

Sampling limits Any plotted graph is built from samples. Our break detection is robust for poles like 1/x and tan x, but extremely narrow features between samples could still be missed. If something looks odd, zoom in and check values with Evaluate.

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.

Plot y = 1/(x − 2) + 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

Watch for these
  • Drawing the curve crossing x = 0.
  • Saying 1/x "equals 0 eventually". It approaches 0 but never reaches it.
  • Typing 1/x-2 when 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.

Sine and cosine curves from −2π to 2π in radians, with the x-axis marked in multiples of π/2.
Functions & Graphs

How to Graph Sine, Cosine and Tangent

Set the angle mode first, then read amplitude, period and asymptotes. Sine and cosine repeat every 2π; tangent repeats every π and has gaps.

Updated 3 min read