Asymptotic analysis 2026-10-14
Asymptotic analysis describes what remains dominant as an argument approaches a specified limit. It compares functions or sequences by scale: how much of a complicated expression can be replaced by a simpler one, and how large is the omitted part? The limit may be for a growing input or for a shrinking approximation parameter.
For example, is eventually dominated by its quadratic term, since division by gives . But at , the linear term contributes , compared with only from the quadratic term. A statement about the limiting scale and a good approximation at a particular input are different claims.
Three useful comparisons keep their strengths distinct. Big O notation supplies an eventual upper bound up to a constant multiplier; big theta notation supplies both an upper bound and a lower bound up to constants; asymptotic equivalence makes the ratio tend to one. Little o notation says that a term becomes negligible relative to a specified scale. These distinctions make approximations checkable instead of merely calling one expression small.
The same language connects time complexity with Taylor remainders. In an operation-count model, one asks how a cost scales with input size. In a Taylor expansion, one asks how the approximation error scales with the increment. Neither use requires interpreting the unspecified constant as one. The asymptotic comparison of exponential functions gives another example: dividing by the largest contributing exponential reveals the terms that disappear.
Asymptotic equivalence Created 2026-09-24 Updated 2026-10-14
For functions with nonzero sufficiently near a specified limit,
The same definition applies to sequences as . Equivalently, : replacing by has a relative error tending to zero, and the difference is in little o notation. The limit and reference scale are essential parts of the statement.
For example, because . Replacing the former by the latter gives absolute error , which grows without bound. Thus asymptotic equivalence controls a ratio, rather than requiring the absolute error to vanish. This distinction is crucial when approximating a rapidly growing factorial with Stirling's formula.
By contrast, and have the same order in big theta notation, but are not asymptotically equivalent: their ratio remains two. For positive functions, asymptotic equivalence gives both-sided constant bounds eventually, whereas constant bounds alone do not recover the leading coefficient.
Figure 1.
Local exponential approximation: relative difference tends to zero and absolute error is quadratic
. Details.
For a local example with real , the exponential function obeys as . The Taylor theorem with Lagrange remainder gives
Thus for ,
This states in big O notation, and division by shows that the relative difference measured against vanishes. The diagram uses positive ; the bound is valid on both sides of zero. At , the absolute error is approximately and the relative difference against is approximately .
Big O notation Created 2026-09-24 Updated 2026-10-14
The statement as means there are constants and such that
The same constant must work for all sufficiently large inputs. Near a finite limit point , replace by within the domain. Absolute values allow signed or complex-valued functions; when discussing nonnegative operation counts they can be omitted.
The notation records an upper bound, not an exact leading coefficient or necessarily a tight growth order. For example, because for it is at most . It is also , a weaker statement. A tight comparison uses big theta notation; a ratio tending to one uses asymptotic equivalence. Formally denotes a class of functions, and writing is conventional shorthand for membership in that class. [ref]
Figure 1.
Constants affect finite comparisons while normalized ratios expose eventual growth
. Details.
The first panel compares stipulated operation counts and . Although is linear and quadratic, for ; the ordering reverses beyond their crossing. These are mathematical cost models, not measured runtimes. The time complexity notation describes the growth of whichever cost function has been specified, whether that function represents a worst-case bound, an average, or another explicit quantity.
The middle panel gives a concrete eventual bound: for every . Its normalized ratio approaches one, but the threshold matters. The final panel shows the asymptotic comparison of exponential functions, with its geometrically shrinking relative difference.
Constants may depend on fixed parameters. For each fixed , is with ; one constant cannot cover every positive . A uniform big O bound makes this extra quantifier explicit.
The notation was already used in nineteenth-century number theory. In his 1976 paper, Donald E. Knuth reports Landau identifying Bachmann's 1894 book as the first appearance of known to him. Knuth's account gives the earlier mathematical setting of a notation now also common in time complexity analysis. [ref]
Big theta notation 2026-10-14
At the specified limit, big theta notation means that two positive constants give both-sided bounds:
sufficiently near the limit. Equivalently, and in big O notation. In operation-count analysis, for , using and . This supplies a tight scale without asserting that the normalized ratio tends to one.
For an example with no limiting ratio, let for positive integers . Then , so , but alternates between one and three. A tight growth order is therefore weaker than asymptotic equivalence. The constant bounds also do not fix an exact factor by which a function changes when its argument doubles.
Donald E. Knuth's 1976 paper proposes using for two-sided constant bounds in algorithm analysis. He credits Bob Tarjan and Mike Paterson with independently suggesting the notation. His discussion gives a concrete motivation for distinguishing an eventual upper estimate from a tight comparison. [ref]
For every real ,
For a short proof, put . Integration by parts gives
The last integral is positive and strictly smaller than . Using these two inequalities gives the upper and lower bounds after multiplication by . Dividing both bounds by also proves the leading asymptotic equivalence by the squeeze theorem. For small positive , the bounds remain true but can be loose; they are especially useful when the Gaussian integral tail is already small.
Little o notation Created 2026-10-14 Updated 2026-10-25
When is nonzero sufficiently near the specified limit, little o notation means
Thus the numerator becomes negligible relative to the denominator's scale. As , because ; as , because . The direction of the limit changes the comparison. [ref]
Equivalently, for every , the bound holds sufficiently near that limit, with a threshold allowed to depend on . Big O notation needs only one fixed multiplier, making it weaker. For example, but is not . The useful relation turns asymptotic equivalence into a statement about a negligible remainder.
For the Laplace method, under the usual regularity ( continuous at zero and sufficiently smooth near its isolated minimum), write . On any interval bounded away from zero, continuity and uniqueness of the minimum give a positive gap in , making that contribution exponentially smaller. Set near zero. The leading integral is
A local quadratic lower bound on justifies dominated convergence after this rescaling. Thus, when ,
If , the displayed coefficient vanishes and further local terms of determine the first nonzero asymptotic term; one must not interpret a zero coefficient as an asymptotic equivalence.
For the first Bessel integral, take , . The endpoint minimum is , , , so after dividing by its leading term is .
For the second integral, gives, for fixed real ,
Completing the square proves the last bound for large . It is exponentially smaller than the first integral; the fixed prefactor does not change this. Therefore
Rearranging the outgoing radial null geodesics of the Vaidya metric equation along gives
For the prescribed parametrization by , the chain rule yields
Since , as . The asymptotic equivalence therefore implies
More precisely and , using Big O notation. The positivity of justifies treating as a single-valued function of locally.
First,
For ,
Thus is an asymptotic sequence.
Termwise asymptotic equivalence fails for every , because
For example, as , the positive scale gives for . This illustrates the geometric-mean refinement of an asymptotic sequence.
For , the outer part of the action integral for a linear-to-square-root potential dominates:
The WKB quantization condition therefore gives
Taking the power yields the asymptotic equivalence
Hence
The approximation in part v requires the dimensionless stagnant depth
to remain small. Since makes the numerator order one, this condition is
Using the solution from part v, the equivalent time range is
or, at the level of asymptotic equivalence,
The cooling becomes appreciable on the shorter scale , so these ranges overlap widely when .
The Rayleigh number based on the convecting depth is
The definition of implicit in part iii gives
It follows that
If and , then . The thermal convection therefore remains strongly supercritical throughout the range in which the thin stagnant-layer approximation is valid.
Rationalize the positive difference:
Since the denominator is at least ,
The upper bound is a constant multiple of the convergent p-series with exponent two. The comparison test therefore proves
The asymptotic equivalence of its summand to gives the same conclusion by limit comparison test.
Take and . Then , so . However,
for every , and this ratio does not approach one. Thus asymptotic equivalence need not survive exponentiation. A small relative error between large exponents can leave a nonvanishing additive error. This is the distinction in asymptotic comparison of exponential functions.
Split into the two tails and the interval . On each tail has a fixed nonzero sign, so changing variable to produces a nonstationary Fourier integral. Under the usual decay and regularity needed for integration by parts, these pieces are .
Near the nondegenerate stationary point, make the signed local change
It has at zero and makes the phase exactly . The transformed amplitude tends to . Scale by and use the Fresnel integral to obtain
The tails are smaller than this leading stationary contribution. If , complex conjugation of the Gaussian phase changes the phase correction to and replaces the second derivative by its absolute value:
When the leading coefficient is nonzero this may be written as an asymptotic equivalence. For full rigor, continuity of an arbitrary amplitude alone is not sufficient for the stated nonstationary rate, nor does it ensure convergence of an infinite integral. Piecewise differentiability with integrable derivative, bounded variation, or an equivalent localization/decay hypothesis supplies the usual missing assumption. The exponentially decaying beam amplitude below has the required piecewise regularity.
Regular variation Created 2026-10-05 Updated 2026-10-14
A power law responds to every fixed rescaling by the same factor . Regular variation keeps this scaling behaviour in the limit , while allowing departures from an exact power law. It is useful when the scaling exponent is stable but a smaller correction continues changing. The correction can even grow without bound.
An eventually positive measurable function has regular variation at infinity with index if
The argument is in the domain of a function for sufficiently large . Each is held fixed as the limit is taken; allowing to change with is a different assertion. This is the scalar definition recalled by [ref]. The index is unique: taking determines .
For example, on the function has
Thus has regular variation of index two. Yet : regular variation does not require asymptotic equivalence to a constant times a power law. Doubling gives . At this is approximately , respectively. The ratio approaches four slowly, even though the exponent is exactly two in the limiting scaling law.
Figure 1.
An exact power law has a fixed doubling ratio; a logarithmic correction approaches the same ratio without approaching a constant multiple of that power
. Details.
The slowly varying function isolates this correction. Set . Then
Conversely, multiplying a slowly varying function by gives regular variation of index . Hence the decomposition is exact on its eventual domain of a function; it is the scaling relation, rather than the decomposition itself, that is asymptotic.
A Pareto distribution gives a decreasing example with a direct interpretation. For , take the tail probability . Its regular variation index is . Doubling a threshold divides its tail probability by four, and
For a tail probability with regular variation of index , the same conditional probability tends to . An exponential distribution behaves differently: its corresponding conditional probability is . This comparison explains why scaling limits are useful in extreme value theory; it does not establish that an observed dataset follows a particular tail model. The role of regular variation in heavy-tailed distributions is discussed in Lindskog, Resnick and Roy, introduction, p. 1.
An exponential function is not regularly varying with any finite index: at , , rather than . Boundedness alone is also insufficient, as the oscillating counterexample in slowly varying function shows. Checking a few rescaling ratios at finite arguments can illustrate a proposed law, but cannot prove its limiting definition.
Jovan Karamata developed this theory in his 1930 paper and returned to its fundamental results in 1933. The opening of his 1933 paper identifies the earlier work; pp. 57–58 connect the rescaling limit with a power law and a slowly varying factor. See J. Karamata, Sur un mode de croissance régulière. Théorèmes fondamentaux, Bulletin de la Société Mathématique de France 61 (1933), 55–62. This gives a precise language for “almost a power” without discarding corrections that remain large.
Second Chebyshev function Created 2026-09-28 Updated 2026-10-14
The Second Chebyshev function is the partial sum of the Von Mangoldt function up to a real cutoff :
For example, , , and . At the jump has size ; between and no new prime power greater than one enters the sum. In contrast, the Chebyshev theta function stays at .
There is also an exact connection with the least common multiple. For , each prime number occurs to the highest exponent for which , both in that least common multiple and in the accumulated Von Mangoldt function weights. Thus
This explains the value at : the least common multiple is . The Chebyshev theta function instead gives the natural logarithm of the primorial . The additional prime powers retain the highest required multiplicities.
Why is this useful for the distribution of prime numbers? The Prime number theorem has the equivalent forms
where is the prime-counting function and denotes asymptotic equivalence. Thus an arithmetic function defined using prime factorization has average weight tending to one over long initial intervals of the positive integers. These are substantive asymptotic equivalences, not consequences of the definitions or the Von Mangoldt divisor identity alone. [ref]
The elementary reason the two Chebyshev functions have the same leading behavior is that their difference is small compared with . Every additional prime power has base , and for each such prime number its total extra weight is at most . There are at most such bases, so
This transfers to , or conversely, once either is established. Partial summation then relates the Chebyshev theta function to the prime-counting function. The estimate controls the extra prime powers; proving the leading value itself is the harder Prime number theorem problem.
Stirling formula Created 2026-09-24 Updated 2026-10-14
Stirling's formula turns the long product defining a factorial into a short expression. For positive integers , put
Then as . This is asymptotic equivalence: , so the relative error tends to zero. It does not say that the absolute error tends to zero, and the formula is not an equality for finite . The Gamma function extends this approximation beyond integer inputs. [ref]
For ,
The leading estimate is about low. Multiplying by the first correction factor gives
which is about low. The Stirling correction by Gaussian moments explains why this factor is rather than an arbitrary numerical adjustment.
Figure 1.
Relative factorial errors shrink faster after the first Stirling correction
. For each integer , the curves compare and with the exact factorial. The vertical axis is the nonnegative relative error, on a logarithmic scale. Details.
The usefulness is in ratios as well as in enormous numbers. Applying Stirling's formula to the three factorials in a central binomial coefficient gives
This counts the ways to choose exactly half of objects. Equivalently, for independent fair coin tosses, the binomial distribution assigns probability to exactly heads. An exponentially large count becomes a simple probability scale after cancellation.
For numerical calculations, taking the natural logarithm yields
where . Computing a logarithm of a large factorial avoids representing the factorial itself. The Robbins bounds for Stirling's formula give a finite- interval for this logarithmic remainder, rather than only a limiting statement.
The factor is beautiful because a Gaussian integral lies behind a discrete product. The Gaussian peak behind Stirling's formula displays this connection through the Gamma integral and Laplace's method. A rigorous proof must also control the tails of the integral; the local expansion explains the geometry but is not by itself a complete proof.
James Stirling published Methodus differentialis in 1730, a treatise on summation and interpolation of infinite series. This setting connects the formula with a practical calculation problem: taking logarithms turns a long product into a sum, whose growth can be approximated. [ref]
Take independent copies of the simple random walk on the integer line, each stepping left or right with equal probability at every integer time. Their product Markov chain moves all coordinates at once; each of its diagonal increments has probability . At odd times a return to the origin is impossible. At time , independence gives the displayed return probability, whose asymptotic equivalence follows from Stirling's approximation. The recurrence criterion by return probabilities and the p-series therefore imply recurrence for and a transient Markov chain for .
For the chain from the origin visits only the sublattice whose coordinates all have the same parity. This is one communicating class; restricting to it gives an irreducible Markov chain. The period of a state in a Markov chain is two here. The conclusion applies to that class, without incorrectly claiming Markov chain irreducibility on all of . This walk moves diagonally; the usual axis-step simple random walk has different transition probabilities, even though the same dimensional recurrence threshold holds.