KEVOS
ArticlesServicesCase studiesAboutContact
ArticlesServicesCase studiesAboutContact
← ArticlesAsymptotic Cost of Integer MultiplicationEngineering · Engineering MathematicsLesson 709/884← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin JogincomplexitymultiplicationFFTToom-Cook
On this page

Ask about this page

KEVOS AIAsymptotic Cost of Integer Multiplication

KEVOS knowledge first · trusted web sources when needed

Multiprecision Arithmetic

Asymptotic Cost of Integer Multiplication

The M(n) abstraction, the hierarchy of multiplication algorithms, and why downstream bounds are quoted in terms of M(n) rather than fixed exponents.

Engineering / MathematicsMultiprecision Arithmetic2 min readKV-MATH-0508

Cost statements throughout this collection are written in terms of M(n), the cost of multiplying two n-bit integers. Keeping the multiplication cost symbolic rather than fixed makes every downstream bound automatically inherit improvements.

The hierarchy

Integer multiplication methods by asymptotic cost
MethodComplexityPractical range
SchoolbookO(n^2)Small operands
KaratsubaO(n^1.585)Tens to hundreds of limbs
Toom-Cook (3-way)O(n^1.465)Hundreds of limbs
FFT-basedNear-linear up to log factorsVery large operands

Key point

Each successive method has a better exponent and a larger constant. A production library implements several and switches between them by size — the switching thresholds are as important to performance as the algorithms themselves.

Why write M(n)

Many operations reduce to a bounded number of multiplications. Quoting their cost in terms of M(n) keeps the statement true regardless of which multiplication method is in use.

Division with remainder
O(M(n)) by Newton iteration on the reciprocal
Extended GCD
O(M(n) log n) by the half-GCD method
Modular exponentiation
O(M(n) * e) where e is the exponent bit length — see binary powering
Integer square root
O(M(n)) by Newton iteration

Note

The reduction of division to multiplication is not obvious and is worth knowing: compute an approximate reciprocal by Newton's method, multiply, then correct. The Newton iteration doubles the number of correct digits each step, so its total cost is dominated by the final iteration.

Where the abstraction leaks

Two situations require care.

Memory, not time, binds

Sieving methods are limited by memory bandwidth and capacity rather than arithmetic throughput. M(n) says nothing useful about them.

Many small operations

When the operands fit in one or two limbs, the constant overhead of a general multiplication routine dominates its asymptotic cost. Finite field arithmetic frequently lives here.

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 1.2.3. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Related pages

  • Algorithm Notation and Complexity Conventions
  • Polynomial Multiplication Strategies
  • Schoolbook and Karatsuba Multiplication
  • Multiprecision Division and Remainder

Continue learning

Schoolbook and Karatsuba MultiplicationArticle · Engineering MathematicsNEXT LESSON →Multiprecision Division and RemainderArticle · Engineering MathematicsMultiprecision Addition and SubtractionArticle · Engineering MathematicsModular Arithmetic and Montgomery ReductionArticle · Engineering Mathematics
KEVOS · Engineering, manufacturing and project improvement
ArticlesServicesCase studiesAboutContact
© 2026 KEVOS®