Rearrange the polynomial equation as a fixed point equation:
First establish existence and uniqueness of the target root of a polynomial. Since is a continuous function, and , the intermediate value theorem gives a root of a polynomial . Moreover for all real , so is strictly increasing and this is its only real root of a polynomial.
For ,
so maps the closed interval into itself. Also
The mean value theorem therefore gives on the closed interval: is a contraction mapping. For any starting value , all iterates remain in that closed interval, and since ,
Thus the fixed-point iteration converges to the unique real root of a polynomial from every . This explicit error estimate proves the needed convergence directly.
For the homogeneous linear recurrence relation, try . Its characteristic equation of a linear recurrence is
The distinct roots of a polynomial give the complementary terms . A constant cannot absorb the forcing because is already a root of a polynomial of the characteristic equation; try a particular solution . Substitution gives , hence . The general solution is .
The initial conditions give and . Hence , , and
The quadratic formula gives . For , write this as
Each root of a polynomial has modulus , since . As increases from to , the upper root traverses the upper unit semicircle from to , and the lower root traverses the lower semicircle in the opposite angular direction. At the roots coincide at ; at they coincide at . For intermediate they are complex conjugates.
Figure 1.
The conjugate roots travel along the two unit semicircles
. Arrows show increasing , with endpoints and and the midpoint pair . The figure is an original plot of the solution formula. Details.
Fix , write , , and let on this interval. The Hermite interpolation conditions give both
Two applications of integration by parts therefore give
On this single cubic piece, the same calculation also gives
Here inside the interval, and all four endpoint values of are zero. Since , we obtain the exact identity
This is an integral inequality, with no assertion that the integrand on the left has one sign pointwise. The stronger nodal derivative conditions make the boundary terms vanish on each interval separately; part (i) only needed their cancellation after summing.
The stated Hermite interpolating polynomial exists uniquely in . Indeed, a polynomial in the kernel of a linear map of the value-and-derivative data map has a double root of a polynomial at each of distinct interpolation nodes. A nonzero such polynomial would have polynomial degree at least , which is impossible. The map is therefore an injective function and a linear map between vector spaces of the same finite dimension of a vector space, , and hence is a linear isomorphism. No higher smoothness of the original function is required to construct it.
An explicit illustration uses interpolation nodes , values , and zero derivatives at every interpolation node. The clamped cubic spline is on and its reflection on . Its Hermite interpolating polynomial is the quartic polynomial . On , , and the corresponding reflected formula holds on . Direct integration gives , , and , exactly as the energy identity predicts.
For a constant-coefficient linear multistep method, zero-stability means uniform boundedness of the propagation of starting perturbations as . Equivalently, every solution of the homogeneous linear recurrence
satisfies for all , with independent of and the starting values. The equivalent root condition for a multistep method is that every root of a polynomial of the degree- polynomial satisfies , and every root on is simple. Indeed, a root of multiplicity produces recurrence modes , : repeated roots strictly inside the disk are harmless, whereas roots outside it or repeated roots on its boundary produce unbounded modes.
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.
Try a linear function . The functional equation becomes for all , so must be a root of a polynomial . Its two roots of a polynomial give
For either choice, proves the required equality directly. The positive coefficient is the golden ratio.
The characteristic polynomial of the homogeneous linear recurrence is , so its repeated-root solutions are . A constant particular solution is one. Thus . The initial conditions give and , hence
The factor is required by the repeated root of a polynomial; omitting it would lose one independent solution.
The coefficient assumptions imply a nonconstant polynomial with and a positive leading coefficient. Thus as : dividing by its leading power of leaves the positive leading coefficient plus terms tending to zero. There is some with . A polynomial is continuous, so the intermediate value theorem supplies at least one positive root of a polynomial in .
This gives neither uniqueness nor monotonicity. Multiple crossings are possible. If the degree of a polynomial is an even integer, the same leading-term argument gives as , so there is also a negative root of a polynomial. For an odd integer degree of a polynomial no negative root of a polynomial is forced; a linear polynomial with negative constant coefficient and positive slope is a counterexample.
Maintain opposite signs at the endpoints, rather than assuming that the polynomial is monotone:
def floorRoot(X: Int): Int = {
  require(X > 0 && eval(0.0) <= 0.0 && eval(X.toDouble) > 0.0)
  var lo = 0
  var hi = X
  while (hi - lo > 1) {
    val mid = lo + (hi - lo) / 2
    if (eval(mid.toDouble) <= 0.0) lo = mid
    else hi = mid
  }
  lo
}
The loop invariant is and . Both branches preserve those signs, even when there are other roots of a polynomial or sign reversals elsewhere. When the interval width exceeds one, the midpoint is strictly between its endpoints, so the positive integer loop variant hi - lo strictly decreases. On exit hi == lo + 1, giving the required postcondition . Continuity establishes a root of a polynomial between those adjacent integers, possibly at the left endpoint.
The width is at most halved with rounding upwards, so there are at most midpoint evaluations, plus two endpoint evaluations in the precondition check. The midpoint expression avoids adding two large endpoints. The explicit positive upper-bound precondition supplies the interval order assumed in the question. For the literal computed-eval contract, the same proof holds provided evaluated midpoints are not NaN; identifying its bracket with the real polynomial additionally requires trustworthy evaluation signs.
First find a sign bracket by exponential search, then bisect that bracket without evaluating its endpoints again:
def floorRoot(): Int = {
  require(eval(0.0) < 0.0)
  var lo = 0
  var hi = 1
  while (eval(hi.toDouble) <= 0.0) {
    lo = hi
    require(hi <= Int.MaxValue / 2, "doubling bound exceeds Int range")
    hi *= 2
  }
  while (hi - lo > 1) {
    val mid = lo + (hi - lo) / 2
    if (eval(mid.toDouble) <= 0.0) lo = mid
    else hi = mid
  }
  lo
}
For the first while loop the loop invariant is , with hi a positive power of two, and either or . Every previously tested power of two has nonpositive value. Let be the least nonnegative integer for which . It exists by the positive leading coefficient. If the current upper endpoint is , a mathematical loop variant is while the guard holds; the next doubling decreases it by one. The first while loop's postcondition is . The second while loop has exactly the invariant, variant and adjacent-integer postcondition established in part c.
There are evaluations at powers of two. If , the final bracket has width and takes exactly midpoint evaluations. Including the initial sign check, the total is evaluations for , and two for . Thus evaluation cost is for the first positive dyadic bound ; it is not a claim about the first positive root of a polynomial when the polynomial is nonmonotone.
The mathematical argument uses unbounded integer endpoints and reliable signs. The guarded Int implementation requires the successful dyadic bound to fit in Int; otherwise it explicitly fails rather than wrapping to a negative bound. The coefficient assumptions alone cannot guarantee that a requested integer result fits a fixed-width type. Floating-point overflow or unreliable signs likewise need a wider or certified evaluator for a fully general implementation.
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 division Created 2026-09-24 Updated 2026-10-18
Polynomial division separates a polynomial into a multiple of a chosen divisor and a smaller polynomial remainder. Given over a field , with , there are unique polynomials satisfying
Here is the polynomial quotient. The bound concerns polynomial degree, rather than the sizes of the coefficients.[ref]
For an original example over the rational numbers, take
Polynomial long division first cancels by subtracting :
Subtracting one more copy of cancels :
Thus
The final polynomial remainder has polynomial degree one, below the divisor's polynomial degree two. Multiplying out the last identity checks every coefficient, including the constant term .
Figure 1.
Polynomial long division cancels the cubic and quadratic terms in two steps, recording and
. Details.
The polynomial degree bound makes this decomposition useful: it replaces a potentially long polynomial with a short polynomial remainder whenever multiples of can be discarded. At any root of a polynomial of , those multiples vanish under polynomial evaluation. Repeated polynomial division also drives the Euclidean algorithm for finding a greatest common divisor of polynomials.
The coefficient setting matters. Over a commutative ring, the same existence and uniqueness hold when the divisor's leading coefficient is a unit in a ring. A monic polynomial therefore works over the integers, even though they do not form a field; monic polynomial division over a ring explains why zero divisors cause no difficulty in that case.[ref]
A nonzero divisor alone is insufficient over the integers. Dividing by with an integer polynomial quotient and a constant polynomial remainder would require for an integer , which is impossible. Over the rational numbers the division instead gives
The obstruction is the nonunit leading coefficient . This example separates existence from uniqueness: over an integral domain, the polynomial degree argument still makes any admissible pair unique, if it exists.
Dividing a polynomial by leaves the constant polynomial remainder . Polynomial division makes the polynomial remainder constant because its polynomial degree must be below one; polynomial evaluation at identifies that constant. In particular, it is zero exactly when is a root of a polynomial of , which is the factor theorem.[ref]
In the worked example, division by leaves and division by leaves . Division by their product leaves , a polynomial remainder that stores both values at once. The argument also holds over a commutative ring for in that ring, because is a monic polynomial.
Quadratic formula 2026-10-06
For a quadratic equation with , completing the square gives
Over the complex numbers both roots exist, with a repeated root of a polynomial when the discriminant is zero. Over the real numbers the discriminant determines whether there are two distinct roots, one repeated root, or no real root.
Before isolation, the closed SIR model has first integral . If quarantine occurs at the first crossing , the corresponding susceptible count is the root on the outbreak branch of . Immediate prevention of further transmission makes the number infected among the initial susceptible class equal to .
For , , a positive root gives a circular periodic orbit of period . The radial exponent is , so gives orbital asymptotic stability and gives instability. The phase direction is neutral; a periodic orbit is not an asymptotically stable individual point of the flow.
Remainder of polynomial division Created 2026-10-14 Updated 2026-10-18
The polynomial remainder is the polynomial in polynomial division . Division by has a constant polynomial remainder , as expressed by the factor theorem.
For any identity , polynomial evaluation at a root of a polynomial of gives
This substitution requires no division by . In the worked example, polynomial factorization gives , so its two roots of a polynomial are and . The cubic polynomial and its linear polynomial remainder agree there:
A cubic expression has been compressed into a straight line carrying exactly these two values.
Figure 1.
The original polynomial and its polynomial remainder agree at both polynomial roots of because vanishes there
. Details.
Conversely, those two values determine the linear polynomial remainder by polynomial interpolation. Write ; then and , giving and . The polynomial degree bound is essential: adding any multiple of preserves the two values, but generally raises the polynomial degree. The plot also shows agreement at , where rather than . Agreement of and at a point therefore does not imply that the point is a root of a polynomial of the divisor.
For the polynomial , the root list is , not . Its elementary symmetric polynomials are
The zero coefficient of is accounted for by the cancellation in . Omitting one occurrence of the double root of a polynomial loses both the polynomial degree and the correct coefficients. Multiplicity of a root is part of the root data.
Resultant Created 2026-09-24 Updated 2026-10-18
The resultant turns a shared-root of a polynomial question into a calculation using only coefficients. For nonconstant univariate polynomials over a field , with their actual polynomial degrees , define
where is the Sylvester matrix. Then
Here is an algebraic closure. The common root need not lie in : two real polynomials may share a nonreal complex root. The subscript identifies which variable is eliminated.[ref]
The useful surprise is that a determinant detects a shared root of a polynomial without first finding either list of roots of a polynomial. If the coefficients depend on a parameter, the resultant itself is a polynomial in that parameter. Its zeros pick out possible exceptional parameter values. Elimination theory uses this to reduce a pair of polynomial equations in two variables to a single necessary equation in one variable; eliminating a variable with a resultant gives an exact example below.
A nonzero resultant also supplies a certificate that and are coprime polynomials. The Sylvester matrix then solves for polynomials satisfying , a Bézout's identity for polynomials. Evaluating such an identity at a hypothetical common root would give .