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
▶ 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)=x1
g(x)=a⋅f(b(x−h))+k
b=1h=0a=1k=0
Asymptotes · Reciprocal
g(x)=a⋅f(b(x−h))+k
General
b and h change which input reaches f, so they move the vertical asymptotes: x=c becomes x=h+c/b. A negative b also swaps the two ends of the graph, and with them the horizontal asymptotes.
For the current setup
Base function · f(x)=x1
Vertical · x=0 — where the input b(x−h) reaches the place where f blows up.
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 f as a dashed gray curve and the transformed function g(x)=a⋅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/x: a vertical asymptote x=0 and a horizontal one y=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 π. • Horizontal only — exponential decay, 1/(1+x2), 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) and x/(x2−1), which has two vertical asymptotes. • Slant — x+1/x and (x2−1)/x, both with the slant asymptote y=x.
A new function keeps the slider values.
Reading the Plot
The colours are a type code:
• Blue curve — the transformed function g; dashed gray — the base function f (switch it off under the controls). • Red dashed vertical lines — vertical asymptotes, where g shoots off to ±∞. • Green dashed horizontal lines — horizontal asymptotes, the heights g levels off at far to the left or right. • Amber dashed sloping line — a slant asymptote, the line g 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 g with its equation, worked out from the sliders:
• Vertical — each x=…; for the tangent, the whole family x=…+n⋅…. • Horizontal — each y=…, and on which side: both sides, or only as x→+∞ or x→−∞. • Slant — the line y=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=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/x at x=0: −∞ from the left, +∞ from the right. The curve dives on one side and climbs on the other.
• Same sign — like x/(x2−1) near its poles, or 1/x2: both sides head the same way.
• One-sided — like lnx at x=0: only the right side exists, because the function is not defined for x<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 transformationg(x)=a⋅f(b(x−h))+k, split between two tabs:
• Input: b, h — they move the vertical asymptotes: x=c becomes x=h+c/b. A negative b 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=L becomes y=aL+k. The vertical ones stay.
A slant asymptote y=mx+n moves with all four: it becomes y=ambx+(an+k−ambh).
Example: on the reciprocal, drag h to 2 and the red line moves to x=2; open the other tab and drag k to 3, and the green line moves to y=3.
Oblique Asymptotes
An oblique (or slant) asymptote is a non-horizontal line y=mx+b that the curve approaches at infinity. Two functions in the menu demonstrate this:
• The classic obliquex+1/x — at large ∣x∣, the 1/x term shrinks to zero, leaving y=x. The asymptote is the line y=x through the origin. • The oblique rational(x2−1)/x — polynomial-divide to get x−1/x. Same oblique asymptote: y=x.
The detector finds it by computing m=limx→±∞g(x)/x. If that limit is a finite non-zero number, compute b=limg(x)−mx. If both limits converge, y=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=c is a VA if f(x)→±∞ as x→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=L is an HA if f(x)→L as x→+∞ or x→−∞. Common in rational functions with degree denominator ≥ numerator, in arctan and logistic curves, in exponential decay.
• Oblique — y=mx+b is an oblique asymptote if f(x)−(mx+b)→0 at infinity, with m=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=1 is the carrying capacity in population models; arctan's HAs at ±π/2 are the limits of saturating signals.
In calculus, asymptotes are explicitly limits: vertical asymptotes are one-sided limits equal to ±∞, 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) is the cleanest one-sided vertical asymptote in elementary mathematics: a single wall at x=0, approached from the right only.
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<0 the function simply does not exist, so the list in the explanation gives only the right-hand limit, x→0+:−∞, and omits the left entry entirely — the pattern examined in One-Sided Limits.
There is no horizontal asymptote: 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 h and the wall tracks to x=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π, marching across the axis forever.
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 +∞ on one side and re-enters from −∞ 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): 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 b compresses the spacing: at b=2 the walls stand π/2 apart instead of π. Watching the red lines re-space themselves live is the fastest way to internalize the input-transform rule x=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−x is the textbook one-sided horizontal asymptote: it hugs y=0 ever more tightly to the right, and explodes without bound to the left.
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)→0 as x→+∞, while the limit as x→−∞ does not exist at all. The explanation gives the horizontal asymptote with its side — x→+∞ only.
The curve never touches its asymptote: e−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 k moves the resting level: y=k becomes the new floor, the model's steady state.
The Bell Curve
The function 1/(1+x2) makes one symmetric hump at the origin and dies off to zero in both directions — one horizontal asymptote serving both ends of the axis.
1/(1 + x²), frozen
One symmetric hump, both tails sliding down to the same green floor — and no wall anywhere.
The denominator 1+x2 is never zero, so there is no vertical asymptote anywhere: a rational function with poles nowhere on the real line. Peak value 1 at x=0, half-height at x=±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→±∞, the both-sides case.
Compare it with exponential decay: same asymptote, but the bell approaches it polynomially (∼1/x2) rather than exponentially — visibly slower once you look for it.
The Arctangent Function
Arctangent is the canonical two-asymptote function: it rises from y=−π/2 on the far left to y=+π/2 on the far right, a different horizontal asymptote on each side.
arctan(x), frozen
Two different green ceilings: −π/2 catching the left tail, +π/2 catching the right.
The two limits are genuinely different numbers — limx→−∞=−π/2 and limx→+∞=+π/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 become arctangent's horizontal ceilings. Inverting a function reflects its graph across y=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) climbs its S-shape between two horizontal asymptotes: the floor y=0 behind it and the ceiling y=1 ahead.
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 0 and 1. The midpoint crossing at (0,21) is the curve's only inflection.
The ceiling is the famous one: in population models y=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 a and shift k move both bounds together: floor k, ceiling a+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), and the three-branch rationalx/(x2−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/x is the archetype — one vertical asymptote, one horizontal, two branches, and the page's opening view.
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=0 is a sign-flip: x→0− dives to −∞, x→0+ soars to +∞ — the first pattern in One-Sided Limits. The horizontal floor y=0 catches both tails.
Every transformed reciprocal b(x−h)a+k keeps exactly this structure with the lines moved to x=h and y=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) moves both asymptotes away from the axes: the wall stands at x=1, the floor at y=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=1 (the pole), and the leading coefficients give limx→±∞=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 — −∞ from the left, +∞ from the right — exactly like the reciprocal, because near the pole the function behaves like 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) carries two vertical asymptotes at once — walls at x=−1 and x=1 — cutting the curve into three branches over one horizontal floor.
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): 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=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=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° rotations of each other.
The Classic Oblique Function
The sum x+1/x is the cleanest oblique-asymptote specimen: at large ∣x∣ the 1/x term evaporates and the curve settles against the slanted line y=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 x, vanishing part 1/x. That is the oblique-asymptote pattern in its purest form — f(x)−(mx+b)→0 with the difference written out explicitly.
There is also a vertical asymptote at x=0 from the 1/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), the lower peaks at (−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 looks different from x+1/x but divides out to x−1/x: same slanted asymptote y=x, same wall at x=0.
(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 here versus +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=±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.
Related Concepts and Tools
Limits at Infinity — formal theory of limx→∞f(x). Horizontal and oblique asymptotes are exactly these limits made visible.
One-Sided Limits — the x→c− and x→c+ notation for the two sides of a vertical asymptote. Vertical asymptotes correspond to one-sided limits being ±∞.
Rational Functions — the natural home of asymptotes. Polynomial-division and degree comparisons let you find HAs and OAs algebraically; setting the denominator to zero gives VA candidates.
Domain of a Function — VAs always sit at points where the function is undefined, but not every undefined point is a VA (removable singularities exist). The Domain visualizer complements this one.
Function Symmetry — another structural property in the Function Properties group. Combined with asymptotes, symmetry pins down a function's gross shape.
Logarithmic Functions, Tangent Function, Exponential Functions — the elementary functions whose asymptotic behavior is foundational for everything else.
Continuity and Discontinuity — VAs are a specific type of essential discontinuity; the theory connects directly to limit theory.
Function Composition — composing with a rational function can create new vertical asymptotes where the inner function hits an excluded value.
Range of a Function — a horizontal asymptote is usually the value the range approaches without reaching, so the two readings of a graph answer each other.
Functions Families Gallery — which families carry asymptotes at all: rational, exponential, logarithmic and tangent, and which never do.