Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Asymptotes

How to use
  1. Pick a function in the Function menu at the top; the groups say which asymptotes it has. The slider values stay as they are. Learn more about picking a function
  2. Asymptotes are dashed lines: red vertical, green horizontal, amber slant. Learn more about reading the plot
  3. The explanation lists every asymptote with its equation and, for a horizontal one, its side. Learn more about the list
  4. The tab Input: b, h moves the vertical asymptotes, Output: a, k the horizontal ones. Learn more about transforming
  5. ▶ runs a slider by itself and Reset puts back the sliders of the tab; the switches hide the base curve or the asymptotes. The Concepts tab explains the three kinds.


Asymptotes of a function
f(x)=1xf\left(x\right)=\frac{1}{x}
g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f\big(b(x - h)\big) + k
b=1b = 1h=0h = 0a=1a = 1k=0k = 0
Asymptotes · Reciprocal
g(x)=a⋅f(b(x−h))+k\displaystyle g(x) = a \cdot f\big(b(x - h)\big) + k
General

bb and hh change which input reaches ff, so they move the vertical asymptotes: x=cx = c becomes x=h+c/bx = h + c/b. A negative bb also swaps the two ends of the graph, and with them the horizontal asymptotes.

For the current setup

Base function · f(x)=1xf(x) = \dfrac{1}{x}

Vertical · x=0x = 0 — where the input b(x−h)b(x - h) reaches the place where ff blows up.

Horizontal · y=0y = 0 on both sides

b=1b = 1
h=0h = 0
Speed






Getting Started with the Visualizer

DemoGetting started
Step 0 of 2
The tool has three parts. Across the top runs a bar with the Function menu and the buttons for zooming, the starting view, saving a picture and full screen. On the left is the graph. On the right is the explanation, with the controls under it.

The graph shows the base function ff as a dashed gray curve and the transformed function g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f(b(x - h)) + k in blue, with its asymptotes drawn as dashed lines: red for vertical, green for horizontal, amber for slant. The explanation lists each one with its equation.

The tool opens with the reciprocal 1/x1/x: a vertical asymptote x=0x = 0 and a horizontal one y=0y = 0 on both sides.

Picking a Function

DemoPicking a function
Step 0 of 3
The Function menu groups eleven functions by which asymptotes they have:

• Vertical only — the logarithm and the tangent, whose vertical asymptotes repeat every π\pi.
• Horizontal only — exponential decay, 1/(1+x2)1/(1 + x^2), arctan and the logistic curve; arctan and the logistic curve level off at different heights on the two sides.
• Vertical and horizontal — the reciprocal, (x+1)/(x−1)(x + 1)/(x - 1) and x/(x2−1)x/(x^2 - 1), which has two vertical asymptotes.
• Slant — x+1/xx + 1/x and (x2−1)/x(x^2 - 1)/x, both with the slant asymptote y=xy = x.

A new function keeps the slider values.

Reading the Plot

The colours are a type code:

• Blue curve — the transformed function gg; dashed gray — the base function ff (switch it off under the controls).
• Red dashed vertical lines — vertical asymptotes, where gg shoots off to ±∞\pm\infty.
• Green dashed horizontal lines — horizontal asymptotes, the heights gg levels off at far to the left or right.
• Amber dashed sloping line — a slant asymptote, the line gg hugs far out.

The switch Asymptotes hides or shows all three kinds at once.

The Asymptotes in the Explanation

DemoTwo vertical asymptotes
Step 0 of 2
Under For the current setup, the explanation lists every asymptote of gg with its equation, worked out from the sliders:

• Vertical — each x=…x = \ldots; for the tangent, the whole family x=…+n⋅…x = \ldots + n \cdot \ldots.
• Horizontal — each y=…y = \ldots, and on which side: both sides, or only as x→+∞x \to +\infty or x→−∞x \to -\infty.
• Slant — the line y=mx+ny = mx + n.

These are exact, not searched for: each base function brings its own asymptotes, and the formulas of the next section move them. With b=0b = 0 the function becomes a constant and has none of its own, which the explanation says.

One-Sided Behaviour at Vertical Asymptotes

Not every vertical asymptote behaves the same on both sides. Three patterns show up among the functions here:

• Sign flip — like 1/x1/x at x=0x = 0: −∞-\infty from the left, +∞+\infty from the right. The curve dives on one side and climbs on the other.

• Same sign — like x/(x2−1)x/(x^2 - 1) near its poles, or 1/x21/x^2: both sides head the same way.

• One-sided — like ln⁡x\ln x at x=0x = 0: only the right side exists, because the function is not defined for x<0x < 0.

Look at the blue curve beside each red line to read which pattern you have; the one-sided limits are worked out in the Limits tool.

Transforming and Tracking Asymptotes

DemoTracking asymptotes with a, k, b, h
Step 0 of 2
The sliders apply the transformation g(x)=a⋅f(b(x−h))+kg(x) = a \cdot f(b(x - h)) + k, split between two tabs:

• Input: b, h — they move the vertical asymptotes: x=cx = c becomes x=h+c/bx = h + c/b. A negative bb also swaps the two ends of the graph, and with them the horizontal asymptotes of the two sides.
• Output: a, k — they move the horizontal asymptotes: y=Ly = L becomes y=aL+ky = aL + k. The vertical ones stay.

A slant asymptote y=mx+ny = mx + n moves with all four: it becomes y=amb x+(an+k−amb h)y = amb\,x + (an + k - amb\,h).

Example: on the reciprocal, drag hh to 22 and the red line moves to x=2x = 2; open the other tab and drag kk to 33, and the green line moves to y=3y = 3.

Oblique Asymptotes

An oblique (or slant) asymptote is a non-horizontal line y=mx+by = mx + b that the curve approaches at infinity. Two functions in the menu demonstrate this:

• The classic oblique x+1/xx + 1/x — at large ∣x∣|x|, the 1/x1/x term shrinks to zero, leaving y=xy = x. The asymptote is the line y=xy = x through the origin.
• The oblique rational (x2−1)/x(x^2 - 1)/x — polynomial-divide to get x−1/xx - 1/x. Same oblique asymptote: y=xy = x.

The detector finds it by computing m=lim⁡x→±∞g(x)/xm = \lim_{x \to \pm\infty} g(x)/x. If that limit is a finite non-zero number, compute b=lim⁡g(x)−mxb = \lim g(x) - mx. If both limits converge, y=mx+by = mx + b is the asymptote.

A function has either a horizontal asymptote on a side or an oblique one or neither — never both. A non-zero slope rules out a finite limit at infinity. The detector enforces this: the oblique check runs only on sides where the horizontal check came back empty.

Oblique asymptotes appear most commonly in rational functions where the numerator's degree is exactly one more than the denominator's.

What Is an Asymptote?

An asymptote is a line (or curve) that the graph of a function approaches arbitrarily closely as a variable approaches some value. Three kinds matter for elementary functions:

• Vertical — x=cx = c is a VA if f(x)→±∞f(x) \to \pm\infty as x→cx \to c from at least one side. Typical sources: division by zero in rational functions, domain boundaries where a function diverges, periodic singularities like tan and cot.

• Horizontal — y=Ly = L is an HA if f(x)→Lf(x) \to L as x→+∞x \to +\infty or x→−∞x \to -\infty. Common in rational functions with degree denominator ≥\geq numerator, in arctan⁡\arctan and logistic curves, in exponential decay.

• Oblique — y=mx+by = mx + b is an oblique asymptote if f(x)−(mx+b)→0f(x) - (mx + b) \to 0 at infinity, with m≠0m \ne 0.

Asymptotes describe end behavior and singular behavior, the two key pieces of a function's global structure beyond its local features.

Why Asymptotes Matter

Asymptotes capture how a function behaves where you can't just evaluate it — at points where it blows up, or as inputs grow without bound.

In rational functions, asymptotes are the skeleton: you find them, sketch them as dashed lines, and the rest of the graph hangs naturally from that scaffolding. Knowing all VAs and the HA (or OA) tells you the function's overall shape before you compute a single point.

In modeling, horizontal asymptotes represent steady states or saturation levels — the logistic curve's HA at y=1y = 1 is the carrying capacity in population models; arctan's HAs at ±π/2\pm\pi/2 are the limits of saturating signals.

In calculus, asymptotes are explicitly limits: vertical asymptotes are one-sided limits equal to ±∞\pm\infty, and horizontal asymptotes are limits at infinity. Learning to find asymptotes is learning to compute these limits geometrically, before working with the algebra.

The visualizer lets you build intuition by watching the dashed lines emerge from familiar functions and track sliders in real time.

Families with Vertical Asymptotes Only

Two functions in the menu have vertical asymptotes and nothing else: the logarithm, whose single wall stands at its domain edge, and the tangent, whose walls repeat forever at every half-period. They bracket the two ways a vertical asymptote arises — a domain boundary the function cannot cross, and a periodic division by zero.

Neither function settles toward any height at infinity: the logarithm keeps climbing (ever more slowly), and tangent never stops cycling. That is what "vertical only" means — singular behavior without end-behavior flattening.

The Logarithmic Family

The natural logarithm ln⁡(x)\ln(x) is the cleanest one-sided vertical asymptote in elementary mathematics: a single wall at x=0x = 0, approached from the right only.
-10-5510-55f(x) = ln(x)
ln(x), frozen

One red wall at x = 0, approached from the right only — and no flattening anywhere: the climb never ends.

The one-sidedness is the point: for x<0x < 0 the function simply does not exist, so the list in the explanation gives only the right-hand limit, x→0+:−∞x \to 0^+ : -\infty, and omits the left entry entirely — the pattern examined in One-Sided Limits.

There is no horizontal asymptote: ln⁡(x)\ln(x) grows without bound. It just does so at an ever-decreasing pace — a slow climb that is easy to mistake for flattening until you scroll the plot.

Drag the horizontal shift hh and the wall tracks to x=hx = h; the transformation rules apply verbatim.

The Tangent Family

Tangent multiplies the vertical asymptote into a periodic family: one wall at every x=π/2+nπx = \pi/2 + n\pi, marching across the axis forever.
-10-5510-55f(x) = tan(x)
tan(x), frozen

Red walls at every π/2 + nπ, each branch sweeping the full height between its two fences.

Each wall is a sign-flip asymptote — the curve leaves through +∞+\infty on one side and re-enters from −∞-\infty on the other — and between consecutive walls the function sweeps the entire real line once.

The walls come from tan⁡(x)=sin⁡(x)/cos⁡(x)\tan(x) = \sin(x)/\cos(x): wherever cosine vanishes, the ratio blows up. Because cosine has infinitely many zeros, no other elementary function in the menu matches tangent's asymptote count.

The horizontal-scale slider bb compresses the spacing: at b=2b = 2 the walls stand π/2\pi/2 apart instead of π\pi. Watching the red lines re-space themselves live is the fastest way to internalize the input-transform rule x=c/b+hx = c/b + h.

Families with Horizontal Asymptotes Only

Four functions in the menu flatten toward a height without ever blowing up: exponential decay, the bell curve, the arctangent, and the logistic curve. Between them they cover every horizontal-asymptote pattern: one-sided (decay), one line serving both directions (bell), two different lines (arctan), and a pair of lines boxing the curve in (logistic).

None of them has a vertical asymptote — each is defined and finite on the whole real line. Their interest lies entirely at infinity.

Exponential Decay

The decay curve e−xe^{-x} is the textbook one-sided horizontal asymptote: it hugs y=0y = 0 ever more tightly to the right, and explodes without bound to the left.
-10-5510-55f(x) = e^(−x)
e⁻ˣ, frozen

The curve hugs the green line y = 0 ever more tightly to the right — and ignores it completely to the left.

The asymmetry is the lesson. A horizontal asymptote is a statement about one direction of travel: here f(x)→0f(x) \to 0 as x→+∞x \to +\infty, while the limit as x→−∞x \to -\infty does not exist at all. The explanation gives the horizontal asymptote with its side — x→+∞x \to +\infty only.

The curve never touches its asymptote: e−xe^{-x} is strictly positive. But that is a special feature of this function, not a law — the bell curve shares the same asymptote and also never touches it, while other functions cross their HA freely.

Vertical shift kk moves the resting level: y=ky = k becomes the new floor, the model's steady state.

The Bell Curve

The function 1/(1+x2)1/(1 + x^2) makes one symmetric hump at the origin and dies off to zero in both directions — one horizontal asymptote serving both ends of the axis.
-10-5510-55f(x) = 1/(1 + x²)
1/(1 + x²), frozen

One symmetric hump, both tails sliding down to the same green floor — and no wall anywhere.

The denominator 1+x21 + x^2 is never zero, so there is no vertical asymptote anywhere: a rational function with poles nowhere on the real line. Peak value 11 at x=0x = 0, half-height at x=±1x = \pm 1, and from there the long symmetric slide toward the green line.

Because the function is even, both tails behave identically — the explanation lists a single horizontal asymptote for x→±∞x \to \pm\infty, the both-sides case.

Compare it with exponential decay: same asymptote, but the bell approaches it polynomially (∼1/x2\sim 1/x^2) rather than exponentially — visibly slower once you look for it.

The Arctangent Function

Arctangent is the canonical two-asymptote function: it rises from y=−π/2y = -\pi/2 on the far left to y=+π/2y = +\pi/2 on the far right, a different horizontal asymptote on each side.
-10-5510-55f(x) = arctan(x)
arctan(x), frozen

Two different green ceilings: −π/2 catching the left tail, +π/2 catching the right.

The two limits are genuinely different numbers — lim⁡x→−∞=−π/2\lim_{x \to -\infty} = -\pi/2 and lim⁡x→+∞=+π/2\lim_{x \to +\infty} = +\pi/2 — which is why the explanation lists two separate horizontal asymptotes, each with its own side.

The reason lives in the inverse relationship: arctangent undoes tangent, so tangent's vertical walls at ±π/2\pm\pi/2 become arctangent's horizontal ceilings. Inverting a function reflects its graph across y=xy = x, and the reflection turns vertical asymptotes into horizontal ones.

In applications this shape models saturation — a response that levels off at hard limits in both directions.

The Logistic Curve

The logistic function 1/(1+e−x)1/(1 + e^{-x}) climbs its S-shape between two horizontal asymptotes: the floor y=0y = 0 behind it and the ceiling y=1y = 1 ahead.
-10-5510-55f(x) = 1/(1 + e^(−x))
1/(1 + e⁻ˣ), frozen

The S-curve boxed between its floor y = 0 and ceiling y = 1, crossing the midline at (0, ½).

Like the arctangent it has two HAs, but here they box the curve into a bounded band: every value lies strictly between 00 and 11. The midpoint crossing at (0,12)(0, \tfrac{1}{2}) is the curve's only inflection.

The ceiling is the famous one: in population models y=1y = 1 is the carrying capacity, in machine learning it is the probability limit of the sigmoid. Steady states in models are horizontal asymptotes wearing applied clothing — the point made in Why Asymptotes Matter.

Vertical scale aa and shift kk move both bounds together: floor kk, ceiling a+ka + k.

Families with Both Asymptote Types

Three rational functions in the menu carry vertical and horizontal asymptotes at once: the reciprocal, the shifted rational (x+1)/(x−1)(x+1)/(x-1), and the three-branch rational x/(x2−1)x/(x^2 - 1). This is the classic rational-function situation — poles from the denominator's zeros, plus flattening at infinity because the degrees balance.

Together the dashed lines form a scaffold: sketch the red walls and the green floor first, and the branches of the curve hang from that frame almost by themselves.

The Reciprocal Function

The reciprocal 1/x1/x is the archetype — one vertical asymptote, one horizontal, two branches, and the page's opening view.
-10-5510-55f(x) = 1/x
1/x, frozen

The archetype: red wall at x = 0, green floor at y = 0, two branches pinned between them.

The vertical wall at x=0x = 0 is a sign-flip: x→0−x \to 0^- dives to −∞-\infty, x→0+x \to 0^+ soars to +∞+\infty — the first pattern in One-Sided Limits. The horizontal floor y=0y = 0 catches both tails.

Every transformed reciprocal ab(x−h)+k\frac{a}{b(x-h)} + k keeps exactly this structure with the lines moved to x=hx = h and y=ky = k — which makes it the cleanest function for practicing the tracking rules: two sliders, two dashed lines, one-to-one correspondence.

The hyperbola never meets either line: the two asymptotes are genuine barriers here, though only the vertical one is a barrier by necessity.

The Shifted Rational Function

The quotient (x+1)/(x−1)(x + 1)/(x - 1) moves both asymptotes away from the axes: the wall stands at x=1x = 1, the floor at y=1y = 1.
-10-5510-55f(x) = (x + 1)/(x − 1)
(x + 1)/(x − 1), frozen

The same hyperbola structure moved off the axes: wall at x = 1, level at y = 1.

Both locations are readable from the formula: the denominator vanishes at x=1x = 1 (the pole), and the leading coefficients give lim⁡x→±∞=1\lim_{x \to \pm\infty} = 1 (the level). Equal degrees up and down always produce a horizontal asymptote at the ratio of leading coefficients.

The one-sided limits at the wall flip signs — −∞-\infty from the left, +∞+\infty from the right — exactly like the reciprocal, because near the pole the function behaves like 2/(x−1)2/(x-1).

Unlike the reciprocal, this curve crosses nothing it shouldn't but is allowed to cross its HA — and functions like it do; the green line is a limit, not a fence.

The Three-Branch Rational Function

The function x/(x2−1)x/(x^2 - 1) carries two vertical asymptotes at once — walls at x=−1x = -1 and x=1x = 1 — cutting the curve into three branches over one horizontal floor.
-10-5510-55f(x) = x/(x² − 1)
x/(x² − 1), frozen

Two red walls at x = ±1 cut the curve into three branches; the middle one crosses the green floor at the origin.

The denominator factors as (x−1)(x+1)(x-1)(x+1): two simple zeros, two sign-flip walls. The middle branch lives entirely between the walls, passes through the origin, and — a favorite exam surprise — crosses its horizontal asymptote right there at x=0x = 0. The green line is end behavior only; the middle of the plot owes it nothing.

Degree one over degree two sends the tails to zero, so y=0y = 0 catches both outer branches.

The function is odd — symmetric through the origin — which the three-branch picture makes visible at a glance: the outer branches are 180°180° rotations of each other.

The Classic Oblique Function

The sum x+1/xx + 1/x is the cleanest oblique-asymptote specimen: at large ∣x∣|x| the 1/x1/x term evaporates and the curve settles against the slanted line y=xy = x.
-10-5510-55f(x) = x + 1/x
x + 1/x, frozen

The purple slant y = x catches both far ends while the red wall at x = 0 separates the branches.

The formula IS the decomposition: line part xx, vanishing part 1/x1/x. That is the oblique-asymptote pattern in its purest form — f(x)−(mx+b)→0f(x) - (mx + b) \to 0 with the difference written out explicitly.

There is also a vertical asymptote at x=0x = 0 from the 1/x1/x term, so the two branches each cling to the purple line at their far end and to the red wall at their near end. The upper branch bottoms out at (1,2)(1, 2), the lower peaks at (−1,−2)(-1, -2).

Its partner in the menu, the oblique rational, hides the same structure inside a quotient — polynomial division is what uncovers it.

The Oblique Rational Function

The quotient (x2−1)/x(x^2 - 1)/x looks different from x+1/xx + 1/x but divides out to x−1/xx - 1/x: same slanted asymptote y=xy = x, same wall at x=0x = 0.
-10-5510-55f(x) = (x² − 1)/x
(x² − 1)/x, frozen

Divided out, this is x − 1/x: the same purple slant, approached from the mirror side.

This is the general recipe made visible: when the numerator's degree exceeds the denominator's by exactly one, polynomial division splits the function into a line plus a vanishing remainder. The line is the oblique asymptote.

The sign difference in the remainder (−1/x-1/x here versus +1/x+1/x in the classic oblique) flips which side of the purple line each branch approaches from — compare the two frozen scenes and the mirror-image approach is plain.

Zeros at x=±1x = \pm 1 anchor the two branches to the axis on their way between wall and slant — a curve fully determined by three dashed lines and two crossing points.