Use a nonzero complex unital Banach algebra with submultiplicative norm, and write its unit as . The complex scalar field is the usual convention in this spectral statement; for a real algebra one uses its complexification. We derive the needed analytic facts from norm-convergent series and scalar complex analysis.
If , completeness makes the Neumann series converge. Multiplying its finite partial sums by gives , which tends to . Hence its sum is the inverse of . If is invertible, then is invertible whenever . This proves that the invertible elements form an open set and that inversion is locally norm-continuous.
Define the Banach algebra spectrum and the resolvent of an element by
For , the Neumann series gives
Thus is bounded by and is closed, because invertibility is open. Also in norm at infinity; for example its norm is at most , since in a nonzero submultiplicative unital algebra. The standard normalization is not needed.
For points where the Banach algebra resolvent exists , multiply out the inverses to get the resolvent identity
For outside the Banach algebra spectrum, put . Locally,
This series and its differentiated series converge uniformly on every smaller disk. It therefore proves is a Banach-space-valued holomorphic function, establishing complex differentiability in the Banach-space norm and gives , without assuming a Banach-algebra-valued analytic theorem. In particular every continuous complex linear functional makes a scalar holomorphic function.
The Banach algebra spectrum is nonempty. Otherwise would be defined and analytic everywhere. Its local norm continuity and decay at infinity make it globally bounded. For every continuous linear functional , the scalar entire function is bounded and tends to zero at infinity, so it is identically zero: the scalar Cauchy estimate for its derivative on circles of radius is , which tends to zero, and the limiting value then fixes its constant as zero. Such functionals separate points by the Hahn-Banach theorem. Explicitly a bounded real functional can be extended from the real span of any nonzero element using its norm, and complexifying it by gives a bounded complex linear functional nonzero on that element. Therefore itself would be zero, contradicting . We have proved the Banach algebra spectrum is a nonempty compact subset of the complex plane.
We next establish the spectral radius formula. The power norms are submultiplicative. If some , their root norms are eventually zero. Otherwise, for any fixed , write with to obtain
Taking roots gives . Taking the infimum in , and using that every root norm is at least that infimum, proves existence of
For , the root test makes converge, even when . The same telescoping multiplication proves it is a two-sided inverse. Hence
For the reverse bound fix . If , integrate the uniformly convergent exterior series term by term on , obtaining
The same integral equals the one on : applying an arbitrary continuous linear functional reduces contour deformation through the Banach algebra spectrum-free annulus to the scalar Cauchy theorem, and separation of points restores equality in . This proves the resolvent Cauchy coefficient formula rather than assuming vector-valued analytic calculus. Using the norm bound for the allowed vector integral gives
Taking th roots yields , and letting finishes the proof:
For the first example take the commutative algebra of dual numbers with norm . Completeness follows from finite dimension, and the product estimate makes the norm submultiplicative. For , but , so . Directly, has inverse for , and its Banach algebra spectrum is . For the second example take with its absolute-value norm and . Its Banach algebra spectrum is , giving .
If the minimal polynomial of has degree , then
has elements and is an intermediate field of
. The tower law for field extensions gives
so .
The multiplicative group of a finite field is cyclic. Choose a generator
of , of order . If lay in a proper intermediate field of degree , its order would divide , a contradiction. Thus
and its minimal polynomial has degree .
For arbitrary , let be the splitting field of
over . Its roots form a field: the Frobenius endomorphism shows they are closed under addition, subtraction, multiplication, and inversion. The derivative is , so there are exactly distinct roots. Thus this root field has order . Applying the preceding generator argument supplies an element whose minimal polynomial over has degree , proving that an irreducible polynomial of every positive degree exists.
Suppose an arbitrary binary operation makes a group and makes a left group action on . For any group action, each acting element induces a bijection: the function induced by its inverse element is its inverse function.
In particular, the acting element whose underlying integer is must induce a bijection . But its power function is
a constant function. This is injective only when all elements of equal . Therefore
This proves the power-map group action obstruction for every possible ; it never assumes that is ordinary integer multiplication, or that the integer is the acting identity element.
Fix . The integer powers of a group element satisfy
For nonnegative integers these rules follow by associativity and counting factors; negative integers are handled by , and opposite signs by cancellation of adjacent inverse elements. All factors are powers of the same element, so no abelian group assumption is involved.
It follows that is a group homomorphism from the additive group of integers to , and
The homomorphism uses ordinary addition on ; composition of the power functions corresponds to ordinary multiplication of exponents.
Map the integers into a field by . Its kernel is a prime ideal of , since the image has no zero divisors. Thus the kernel is either zero or for a prime . In the zero case, the map extends injectively to the rational numbers by taking quotients of nonzero integers. In the other case, its image is the field . This proves the prime-field assertion.
A finite field cannot contain the infinite rational field, so it has characteristic . It is a finite-dimensional vector space over its prime field , say of dimension , and choosing a basis counts its elements as
For existence, put and take a splitting field of over . Its derivative is , so it has exactly distinct polynomial roots. The polynomial roots are closed under addition and multiplication because the Frobenius identity gives and . They include , are closed under additive inverses, and for a nonzero polynomial root , . They therefore form a field of exactly elements. Indeed this field is the splitting field because it contains all polynomial roots and is generated by them.
In order 4, characteristic is 2. For , the multiplicative group has order 3, so and . Factorization of gives . The quadratic has no polynomial root in and is the minimal polynomial. Write . The complete tables are
For an element in order 8, the tower law makes divide3. It is not1, so its minimal polynomial is an irreducible monic cubic. Its constant term must be1. A cubic has no polynomial root at 1 exactly when , and absence of a polynomial root is equivalent to cubic irreducibility. Consequently the two possibilities are
Both occur: together with and they factor over , whose distinct polynomial roots are exactly the eight elements of the field. Each cubic contributes its three polynomial roots.
For fixed real , multiplication by does not change the absolute value. The product integrability proved in (ii) therefore justifies Fubini theorem in the following calculation. Set in the inner integral:
Thus
The positive exponential convention in the source is used throughout; no normalization factor is introduced under that convention.
Set and . Part (b)(i) gives a unique representative for each element of the quotient ring . By polynomial division, each element of the quotient ring likewise has a unique representative . Thus the proposed map is well-defined and a bijection.
It preserves addition and . To verify multiplication, all terms of polynomial degree at least lie in . Hence
In the other quotient ring, , giving exactly the same coefficient formula:
Therefore
is a ring isomorphism. Both sides are examples of a truncated polynomial ring; the generator on the left is the class of , whose square is nonzero and whose cube vanishes.
Write . The unit group is a finite abelian group of group order , since multiplication in a field satisfies commutativity. The structure theorem for finitely generated abelian groups, applied to this finite group, gives invariant factors of a finitely generated module
after omitting trivial factors. If there are no factors, the unit group is trivial and hence a cyclic group.
Otherwise put . Every element satisfies , because the order of a group element in each coordinate divides . Hence all distinct nonzero elements of are roots of a polynomial . The root bound for a polynomial over a field gives
For completeness, that bound follows by induction from the factor theorem: if a nonzero polynomial vanishes at , write ; every other root of a polynomial is a root of , because a field has no zero divisors. Each new distinct root therefore uses one unit of polynomial degree.
On the other hand, the group order in the decomposition is
Equality is forced, so . As every retained factor is greater than , there can be only one. Consequently
The same proof establishes the more general result finite multiplicative subgroup of a field is cyclic. The square-free integer result in part (c)(i) alone would not suffice, since need not be a square-free integer; the root bound for a polynomial rules out multiple invariant factors of a finitely generated module even then.
Recurse on the first argument for addition and multiplication, and on the exponent for exponentiation:
add :: Natural -> Natural -> Natural
add Zero     n = n
add (Succ m) n = Succ (add m n)

mul :: Natural -> Natural -> Natural
mul Zero     n = Zero
mul (Succ m) n = add n (mul m n)

power :: Natural -> Natural -> Natural
power m Zero     = Succ Zero
power m (Succ n) = mul m (power m n)
The defining arithmetic identities are
Each recursive call consumes one constructor. The base of exponentiation makes power Zero Zero equal to one, the empty-product convention. Applying convert and using structural induction verifies all three operations.
A natural-number fold iterates its first argument once per successor. For addition, iterate Succ starting at the other operand; for multiplication, iterate addition starting at zero; for exponentiation, iterate multiplication starting at one:
addF :: Natural -> Natural -> Natural
addF m n = foldNat Succ n m

mulF :: Natural -> Natural -> Natural
mulF m n = foldNat (addF n) Zero m

powerF :: Natural -> Natural -> Natural
powerF m n = foldNat (mulF m) (Succ Zero) n
The common identity is , with interpreted through convert. Substituting each step and seed reproduces the recursive arithmetic equations of part (b).
The scan permits an arbitrary signed integer but prints . That expression is undefined for . The printed bound is proved below for positive ; for the stated signed domain the corresponding bound uses . This is a source qualification, rather than an unreadable part of the question.[ref]
Choose a fixed positive integer with , and put . For positive , use coarse exponential bracketing: compare against until the first . Equality determines immediately. Otherwise, , except in the first interval where the lower bound is zero. Apply binary search to the remaining integer candidates.
There are at most bracketing comparisons and at most subsequent comparisons, because the interval width is at most . Minimality of gives . Hence
The additive constant may depend on the fixed , but is independent of . Taking larger jumps in the bracketing phase reduces its leading comparison cost; the overshoot costs only the fixed number of extra binary search levels.
For signed inputs, first compare with zero. If negative, set conceptually and perform the same search for : comparing with yields the reversed outcome of comparing with . Thus every test is still a permitted test of the sign of . Return zero immediately on equality in the initial test. The corrected all-input bound is
All thresholds are exact integers, generated by repeated multiplication by . Their arithmetic and storage costs are outside the requested comparison model; bounded machine arithmetic would not suffice for arbitrarily large .
Use Horner's method, accumulating the high-degree coefficients before the low-degree ones:
def eval(x: Double): Double = {
  var i = a.length
  var value = 0.0
  while (i > 0) {
    i -= 1
    value = a(i) + x * value
  }
  value
}
At each while loop head the loop invariant is
The initial sum is empty. Decreasing i and replacing the accumulator by a(i) + x * value extends that sum by one coefficient with the required powers shifted. The loop variant is i; on exit it is zero, so the accumulator equals . The code uses exactly multiplications and time, with constant auxiliary space, and also handles the empty coefficient array as the zero polynomial. Initializing from the last coefficient instead would save one multiplication for nonempty arrays.
The invariant is an exact-arithmetic specification. With Double, each arithmetic operation rounds; consequently the code evaluates the Horner expression in floating-point arithmetic, rather than guaranteeing the exact real value for arbitrary coefficients.
Instantiate the two type parameters and implement the function object interface:
val square: Fun[Int, Int] = new Fun[Int, Int] {
  override def apply(x: Int): Int = x * x
}
Parametric polymorphism occurs because the generic trait is specialized by choosing its argument and result types. Subtype polymorphism occurs because the anonymous implementing software class is used through a Fun[Int, Int] reference; calls to its apply operation use the object interface contract and dynamic dispatch. Multiplication itself is not the second polymorphism needed for this explanation.
For values whose mathematical squares fit in a signed 32-bit integer, the result is the ordinary square. Outside that range, the supplied integer return type cannot represent every mathematical square, and the multiplication follows Scala integer-overflow behavior. An implementation requiring exact mathematical results for all integer inputs would need a wider result type or an explicit overflow exception.
Evaluate the recurrence relation successively, retaining only the preceding two values. Each of the updates uses three multiplications and one subtraction. Hence arithmetic operations and auxiliary storage suffice, excluding the stored input. Naively branching into two recursive calls would repeat work; the sequential computation is essential. This is an arithmetic-operation bound, not a bit-complexity bound for arbitrarily large exact integers.
The integer congruence means : the difference is an integer multiple of the positive modulus . Write and for integers . Then
so addition preserves integer congruence. For multiplication,
The final coefficient is an integer, so multiplication also preserves integer congruence. These properties make addition and multiplication well defined on residue classes.
Polar form of a complex number Created 2026-10-06 Updated 2026-10-20
A nonzero complex number has polar form
where is its modulus and is an argument. The equality uses Euler's formula; sine and cosine recover the imaginary part and real part from polar coordinates. For , take and radians, so and .
If , then
Thus multiplication multiplies moduli and adds arguments modulo ; division divides moduli and subtracts arguments modulo . Since , multiplying by gives , of modulus and argument radians. One formula simultaneously describes its new size and direction.
Figure 1.
Complex multiplication rotates every direction and scales every length equally
. Details.
Repeated multiplication now becomes especially simple: for a positive integer . This explains the evenly spaced arguments of the roots of a complex number. For example, has modulus and principal argument radians. The Cartesian calculation and the polar form provide independent checks on both its location and its size. Choose polar form when the task concerns multiplication, division, or repeated turns; use real parts and imaginary parts for addition.
Polynomial Created 2026-09-24 Updated 2026-10-18
A polynomial is a finite sum of monomials with coefficients in a ring. In one variable over a commutative ring , write
The symbol is an indeterminate: it records powers formally before we choose an input value. Finite expressions are easy to add, multiply, evaluate, and differentiate, making polynomials a common language for exact algebra and approximate numerical analysis.
Consider the real polynomial
The expanded form displays the coefficients and the degree of a polynomial; the factored form displays its roots of a polynomial. At , either description gives . At and , the factored form makes the zero values immediate. Keeping several descriptions of one object is useful because each makes a different question easy.
Figure 1.
A simple polynomial root crosses the axis, while a double root touches it; perturbing the double factor can produce real or complex roots
. Details.
The graph shows another connection. The factor changes sign across , while stays nonnegative across . Thus the graph crosses the axis at the simple root of a polynomial and touches it at the double root. Multiplicity of a root turns an algebraic repetition into visible local behavior.
For calculations, Horner's method evaluates a polynomial through nested multiplication. For modeling, a Taylor polynomial describes local behavior near a point, while polynomial interpolation constructs a polynomial matching prescribed data. Their usefulness comes with assumptions: a local approximation and an exact identity are different claims, and changing the coefficient ring can change which polynomial roots exist.
Polynomial identity testing Created 2026-09-24 Updated 2026-10-18
Polynomial identity testing asks whether a polynomial represented implicitly, such as by an arithmetic circuit or a remainder computation, is the zero polynomial.
Here zero means that every coefficient vanishes after collecting equal monomials in the polynomial ring. Testing equality of two polynomials amounts to testing for zero. An arithmetic circuit can permit cheap polynomial evaluation even when expanding all monomials is expensive. The random evaluation test for a polynomial identity exploits this: one nonzero value disproves the polynomial identity, while a known total degree limits how often a nonzero polynomial can evade detection.[ref]
For example, for an integer , has distinct monomials, one for each subset of the variables. Its factored expression needs only additions and multiplications for one polynomial evaluation. Evaluating the compact expression avoids creating its expanded list of coefficients. The saving is especially attractive in many variables; it does not make a zero result into a proof of identity.
Prime field Created 2026-10-03 Updated 2026-10-14
The prime field of a field is its smallest subfield: the arithmetic forced upon us by the identity element . Every subfield must contain , its repeated sums, their additive inverses, and the multiplicative inverses of nonzero results. In characteristic zero these operations produce a copy of the rational numbers . In positive characteristic of a field , they produce a copy of , with addition and multiplication given by modular arithmetic.
For example, inside the field with four elements, repeated addition of gives . Thus its prime field is , and the other two elements cannot be reached by repeatedly adding . This is why a finite field need not consist entirely of ordinary integer residues: a larger finite field extends the arithmetic of its prime field with additional elements.
The positive characteristic of a field must be a prime number. If its least vanishing multiple of were with , then would exhibit zero divisors. The absence of zero divisors rules this out. The prime field supplies the scalars when viewing as a vector space; its basis then explains the possible sizes of a finite field.
Prime number Created 2026-09-24 Updated 2026-10-13
A prime number is a positive integer whose only positive divisors are and . The first ten prime numbers are . In contrast, is a composite number because it has a positive divisor strictly between one and itself. The integer one is neither a prime number nor a composite number: the lower bound is part of the definition. Equivalently, the divisor function satisfies for a prime number, whereas and for every composite number .
Prime numbers are the building blocks of positive integers under multiplication. The fundamental theorem of arithmetic says that every integer greater than one is a product of prime numbers, with a unique collection of factors when their order is ignored. For example, and . Their common factors reveal the greatest common divisor , and the combined maximum powers reveal the least common multiple . A complicated divisibility question becomes a comparison of prime exponents.
There is also a useful finite test. If a composite number equals with , then . Therefore some prime factor is at most , and trial division only needs to check prime numbers up to that square root. For , checking suffices; none divides , so it is a prime number. For , the same test finds , giving . To find many prime numbers together, the sieve of Eratosthenes reuses the work by marking multiples.
The division with remainder calculations for make the test explicit:
Since , these are all the prime numbers at most its square root, and every remainder is nonzero. Thus the calculation certifies a prime number, without testing the integers individually. In contrast, gives a prime factor and proves that is a composite number.
The definition has a long history. Book VII of Euclid's Elements distinguishes prime numbers from composite numbers through their possible measures; Book IX, Proposition 20 establishes that no finite list exhausts the prime numbers. The modern argument under Euclid's theorem needs only divisibility, so it proves an infinite conclusion without estimating how frequently prime numbers occur. [ref] [ref].