Infinitesimals and equivalences

Level UniversityDifficulty ★★★★★Concept⌖ Open in the map

What is it?

A quantity that tends to 0. Two infinitesimals are equivalent (f∼gf \sim g) if f/g→1f/g \to 1: near 0, sin⁡x∼x\sin x \sim x, ex−1∼xe^x - 1 \sim x, ln⁡(1+x)∼x\ln(1 + x) \sim x. Replacing one by the other simplifies limits — and, in floating point, avoids catastrophic cancellation.

Formulas

f∼g (x→a)  ⟺  lim⁡x→af(x)g(x)=1f \sim g \ (x \to a) \iff \lim_{x\to a}\frac{f(x)}{g(x)} = 1
sin⁡x∼x,1−cos⁡x∼x22,ex−1∼x,ln⁡(1+x)∼x\sin x \sim x, \quad 1 - \cos x \sim \tfrac{x^2}{2}, \quad e^x - 1 \sim x, \quad \ln(1+x) \sim x

Where it shows up in computing

  • Floating point (IEEE 754)★★★★★frequentScientific computing and algorithms

    expm1(x) and log1p(x) exist because computing ex−1e^x - 1 or ln⁡(1+x)\ln(1 + x) directly loses all precision for tiny xx.

Where is it used?

Computing topics reachable from here, through the chain of ideas that leads to them:

What depends on it

This page has the essentials. A fuller treatment (intuition, formal definition, worked example) is on the way.

↑ ↓ to navigate · ↵ · Esc