Binary quadratic form Created 2026-09-24 Updated 2026-11-05
A binary quadratic form is a quadratic form in two variables, written or . In number theory an integral binary quadratic form has integer polynomial coefficients . It represents an integer when for some integers .
The homogeneous polynomial identity distinguishes a form from a general quadratic polynomial with constant or linear terms. The discriminant of a binary quadratic form is . For example, has and represents , while has and represents at .
Changing integer coordinates can conceal the same arithmetic. Substituting into gives . The transformation has determinant one and an integer inverse, so both forms represent exactly the same integers. Proper equivalence of binary quadratic forms records this reversible change, and the reduction algorithm for a positive definite binary quadratic form chooses a small representative for each such equivalence class.
Cardano triplet Created 2026-10-20 Updated 2026-11-05
A Cardano triplet is a triple of positive integers satisfying
with real cube roots. Put and . Cubing gives , and cubing that product yields the necessary integer identity
It is also sufficient. From this identity, the real cube root of gives . Therefore satisfies
Since , the quadratic polynomial has negative discriminant and no real roots. Hence . This checks that cubing introduced no extraneous real solutions.
Reducing the integer identity modulo three forces . Writing for a positive integer then reduces it to . For example, gives .
Chaikin subdivision 2026-10-14
Chaikin subdivision generates a rounded subdivision curve by repeatedly cutting the corners off a control polygon. Each edge contributes two new control points, one a quarter of the way along the edge and the other three quarters of the way along it. Connecting these new control points in edge order replaces the old corners by shorter line segments. This makes Chaikin subdivision a useful way to draw a smooth outline from a small, editable set of control points, without evaluating B-spline basis functions at each drawing step. Joy presents both the corner-cutting rule and its closed version.[ref]
For a closed control polygon with control points , set and interpret indices cyclically. One refinement gives
and the new control polygon is the ordered sequence
Close it by joining back to . Use the old control points for every average in the same refinement; updating them in place would define a different algorithm. One refinement produces stored control points, and refinements produce , counting entries even if some coordinates coincide. Open control polygons need an explicit endpoint convention: applying only the interior edge rule discards the original endpoints, whereas retaining endpoints changes the boundary rule. The closed analysis below uses cyclic indices throughout.
For a worked example, start with the rectangular control polygon
The first edge gives and . Applying Chaikin subdivision to all four edges, including the closing edge, gives exactly eight control points in this order:
Thus the rectangle becomes an octagonal control polygon. Two refinements have control points, and five have . The illustration shows finite control polygons at stages ; the last is already visually rounded but still consists of line segments.
Figure 1.
Chaikin corner cutting on a rectangle at iterations zero, one, two and five
. The dashed rectangle is the original control polygon and its convex hull. Blue line segments and dots show the current control polygon and control points; no panel claims to be the exact limiting curve. Details.
The convex hull property follows directly from the weights. Each new control point is a convex combination of the endpoints of one old edge, because the weights are nonnegative and sum to one. Consequently, if is the convex hull of the stage- control points, then . Every later line segment, and every limit point, stays in the original convex hull. This gives a useful geometric enclosure. It also explains why Chaikin subdivision is approximating rather than an interpolation rule: the rectangle's four original corners are outside the first octagon's convex hull, so the limiting curve cannot pass through them. A refinement control polygon generally lies off the limiting curve as well.
For the cyclic uniform rule, the closed limit is the periodic quadratic uniform B-spline curve determined by the original control points. Uniform refers to equal spacing in the spline knot sequence, not equal physical lengths of edges of the control polygon. An infinite uniform control sequence has the corresponding local description; arbitrary open endpoint conventions need separate treatment. Joy derives the quarter-point refinement by splitting quadratic uniform B-spline spans.[ref]
Here is an explicit description of that closed limit, with cyclic indices and a unit parameter span for each original control point:
Each coordinate is a quadratic polynomial, and the three coefficients form a nonnegative partition of unity. The span runs from to . Differentiating gives and , so adjacent spans have matching values and matching first derivatives. Their second derivatives generally differ. Thus the parameterized curve is , generally not ; degenerate control points can still make its tangent vector vanish. For the rectangle, the span around is
which rounds the original corner between edge midpoints and . For equally spaced abscissae, the centered Chaikin basis function gives the scalar graph version of this quadratic B-spline representation and has support of width three original grid intervals.
Another useful property is affine equivariance of a geometric basis: refining and applying an affine map commute. For ,
and the same calculation holds for . The sum-to-one weights account for the translation. Therefore at every refinement, and also for the limit. A designer can apply a shear mapping, translation, or other affine map to the original control polygon and obtain exactly the transformed outline.
For example, compose the shear mapping with the translation to obtain . The rectangle's control points become . On its right edge, cutting first gives and then . Transforming first and cutting instead gives , the same control point.
Figure 2.
Shearing and translating a control polygon commutes with one Chaikin refinement
. Left: the rectangle and its first refinement. Right: the transformed control polygon, with blue dots from cutting after the affine map and orange rings from applying the affine map after cutting. All eight pairs coincide. Details.
Historically, George M. Chaikin published “An algorithm for high-speed curve generation” in Computer Graphics and Image Processing 3(4), December 1974, pages 346–349. Its emphasis was practical curve generation through a recursive algorithm using simple arithmetic, with applications including machine control and three-dimensional curves. The lasting appeal of Chaikin subdivision is how an elementary local average creates an entire smooth B-spline curve.[ref]
For and , the positive homogeneous equilibrium is , where . Set and . The linear stability matrix at squared wavenumber is . Its trace is negative and its determinant is . Minimizing this quadratic polynomial over proves the displayed continuous-wavenumber growth criterion. It requires . On a bounded domain an actual permitted nonzero Fourier mode must lie strictly inside the negative-determinant interval. This is a criterion for growth of infinitesimal perturbations, not a general exclusion of finite-amplitude patterns.
Completing the square Created 2026-09-28 Updated 2026-10-18
Completing the square rewrites a quadratic polynomial so that its minimum or maximum and its roots of a polynomial become easy to read. The linear term is absorbed into a shift of the variable; the resulting polynomial identity changes the description, rather than the values of the polynomial.
For coefficients in the real numbers, with ,
First factor out the leading coefficient from , then add and subtract inside the bracket. The cross term in is , exactly the term needed. Multiplication by restores . Thus the half-coefficient is , rather than unless the quadratic polynomial is a monic polynomial. Expanding the right-hand side verifies the polynomial identity directly.[ref]
For an original example,
For every in the real numbers, , with equality only at . The minimum is therefore , reached at ; no calculus is needed, and there are no roots of a polynomial in the real numbers. The expanded coefficients conceal these conclusions more effectively than the completed square does.
For the quadratic polynomial , the discriminant is , so its roots of a polynomial are the complex conjugates
Their sum is , and their product is , matching the constant coefficient divided by the leading coefficient. More revealingly, : the product is the square of a complex modulus. Coefficients in the real numbers therefore need not imply polynomial roots in the real numbers.
Figure 1.
Complex conjugate roots of satisfy the same coefficient identities
. The two stipulated roots of a polynomial are reflections across the real axis of the complex plane. Their sum cancels the imaginary parts, and their product is the squared complex modulus . The pale arc marks that common complex modulus. Both positions belong in the root list even though there are no roots of a polynomial in the real numbers. Details.
For any polynomial with coefficients in the real numbers, . Thus a nonreal root of a polynomial brings its complex conjugate along with the same multiplicity of a root. This follows by applying complex conjugation to the polynomial expression and its factors. It explains why sums of complex conjugate terms can produce coefficients in the real numbers.
Complex dynamics Created 2026-09-28 Updated 2026-11-05
Complex dynamics studies iterations of a map when is a holomorphic map. A central case is a rational map of the Riemann sphere of degree of a rational map of the Riemann sphere at least two. One asks which orbits approach an attracting periodic point, which escape, and where nearby starting points have unstable long-term behavior.
The polynomial function is a complete first example:
For these iterations of a map tend to zero; for they tend to infinity on the Riemann sphere. On the unit circle, writing turns the iteration of a map into angle doubling . The two open regions make up the Fatou set, where the iterations of a map form a normal family; their shared unit circle is the Julia set.
The quadratic polynomial family illustrates two different questions. For a fixed , its Julia set lives in the dynamical -plane. The Mandelbrot set lives in the parameter -plane and records when the critical orbit starting at zero stays bounded. Varying a parameter and varying an initial point are separate operations.
Along an affinely parametrized geodesic, differentiating the contraction of a vector field with its tangent gives . If this is zero along every timelike geodesic, arbitrary timelike initial tangents at each point make the symmetric quadratic form vanish on the whole timelike cone. That cone is open, so its quadratic polynomial must vanish identically. Thus is a Killing vector. The converse follows directly from the same identity. One selected orbit cannot establish the converse; the quantifier over all initial timelike directions is essential.
Cubic exactness of Simpson's rule Created 2026-10-18 Updated 2026-10-20
Polynomial interpolation makes Simpson's rule exact for every polynomial of polynomial degree at most two. To understand the extra polynomial degree, centre the coordinate at the midpoint: , with endpoints . For any cubic polynomial , let be its interpolating quadratic polynomial. The polynomial vanishes at all three quadrature nodes, so
where is the coefficient of in . As a function of , this is an odd function, whose integral over the symmetric interval is zero. Hence integrating also integrates exactly. This is the symmetry mechanism in the nodal-polynomial criterion for quadrature exactness.
In the worked example, the polynomial difference factors as
Its definite integrals on and are respectively and . Their cancellation concerns signed integrals, rather than pointwise accuracy of polynomial interpolation.
The degree of precision of a quadrature rule stops at three: on the same interval, the monomial gives , whereas . Their difference, exact integral minus approximation, is .
Consider the original small Poisson equation example
Its exact solution is the quadratic polynomial . Use a uniform mesh with and three interior unknowns . The finite difference method replaces the negative second derivative by
Multiplying by and moving the prescribed Dirichlet boundary conditions to the right gives
The endpoint values contribute and to the first and last equations; they are not additional unknowns. The Thomas algorithm gives
and back substitution yields
All three values equal exactly: the centered finite difference for the second derivative is exact on a quadratic polynomial. This special nodal exactness does not assert exactness for arbitrary forcing or for the piecewise-linear curve joining the nodes.
Figure 1.
Exact quadratic Dirichlet Poisson solution and the three interior values recovered by tridiagonal elimination
. Details.
For any interior points with , the scaled tridiagonal matrix has and . Its pivot elements are : start at and use . All are positive. Interior rows have equality in diagonal dominance, so strict diagonal dominance is not the reason this example works. Instead it is a symmetric positive-definite matrix, since for a real vector with ,
Zero would force every neighbouring value equal and hence all values zero. This connects the boundary constraints directly to the safe pivots for tridiagonal elimination.
Discriminant Created 2026-10-03 Updated 2026-11-05
For a degree- polynomial over a field, with and roots in an algebraic closure, its discriminant is
It is a polynomial with integer coefficients in the coefficients of , and lies in the original coefficient field. Its vanishing is equivalent to a repeated root of a polynomial in an algebraic closure, even when the coefficient field itself contains no roots. This detects separability without solving the polynomial equation.[ref]
For a quadratic polynomial, the expression is the quadratic discriminant . For the cubic polynomial , it is . Thus has discriminant over , but after reduction to characteristic three its discriminant is zero and the resulting polynomial has a repeated root in its splitting field. Discriminants also indicate exceptional parameter values where distinct polynomial roots collide.
Exact Newton error identity for a quadratic Created 2026-10-18 Updated 2026-10-25
For the quadratic polynomial with , consider the Newton root-finding iteration towards the polynomial root . If , its signed error satisfies
Indeed the iteration for is , and subtracting yields . This exact identity explains quadratic convergence near the simple polynomial root. If an initial error is asymptotic to and as , one step changes its leading power to and its coefficient to .
Fixed point of a Möbius transformation Created 2026-09-24 Updated 2026-11-05
A fixed point of a Möbius transformation is a point of the Riemann sphere satisfying . For , a finite fixed point satisfies
The homogeneous equation in homogeneous coordinates also handles infinity. In particular infinity is fixed exactly when .
If is the identity map, all three coefficients vanish and every point is fixed. Otherwise the homogeneous quadratic polynomial has two polynomial roots counted with multiplicity, so there are either two distinct fixed points or one repeated fixed point. The translation has only infinity, counted twice; fixes zero and infinity; fixes . These alternatives underlie the Möbius conjugacy normal forms.
Hoeffding inequality Created 2026-09-24 Updated 2026-10-14
The Hoeffding inequality turns finite interval bounds and independence into exponentially small tail probabilities for a sum. It requires neither a normal distribution nor identical probability distributions. Let be independent essentially bounded real random variables, with deterministic finite bounds almost surely. Define the centered sum and its squared-width budget by
For and ,
The union bound therefore gives . If , every is constant almost surely, so and both positive-threshold tail probabilities vanish. The equal-width version is stated in the authored Stanford notes.[ref]
The quantity is a sum of squared interval widths, not the variance of . Centering changes the endpoints to and , leaving each width unchanged. For example, independent random variables in and have , whatever their expected values or probability distributions. A deviation at least three above their total expected value has probability at most . If all widths equal , the sample mean satisfies
Independence is essential to this general guarantee. Take one Bernoulli random variable with success probability and set every . Each lies in , but for every the sample mean is either zero or one. Thus , whereas incorrectly inserting these dependent observations into the formula would give , less than one for . Some special dependent models have their own valid concentration inequalities; arbitrary statistical dependence cannot be ignored.
For the short proof, apply Markov's inequality to with , factor the expectation using independence, and apply the Hoeffding lemma to each factor:
Minimizing this quadratic polynomial at gives the upper tail probability; applying it to gives the lower one. This is the Chernoff bound method. The original 1963 article is Probability Inequalities for Sums of Bounded Random Variables by Wassily Hoeffding; its publisher record identifies the article, but its full text was unavailable during this source check. The argument above is a direct derivation rather than a claim to have inspected that article's proof.
Hyperbolic component Created 2026-09-28 Updated 2026-11-05
In the quadratic polynomial family , a hyperbolic component is a connected component of the set of parameters for which has an attracting periodic point. The finite critical orbit is then attracted to that cycle. Its exact period is constant throughout the component. The component is open because an attracting periodic point and its strict multiplier inequality persist under small parameter changes.
The main cardioid has an attracting periodic point of period one; the period-two bulb has an attracting exact two-cycle. Their periodic-orbit multipliers give the explicit coordinates and , respectively, with . More generally the attracting-cycle multiplier gives a conformal coordinate on each quadratic polynomial hyperbolic component.
This is a definition within the specified parameter family. For general rational maps, the existence of one attracting cycle alone does not require every critical orbit to approach an attracting cycle, so it does not by itself establish global hyperbolicity.[ref]
Multigrid method Created 2026-10-06 Updated 2026-10-31
A multigrid method solves a linear system by combining local relaxation with coarse-grid correction on a hierarchy of meshes. The key is to divide the work by scale: a suitable relaxation removes rapidly oscillating approximation error, while coarse-grid correction addresses slowly varying approximation error that relaxation barely changes. A broad error hump occupies many fine-grid points but fewer coarse-grid points; it becomes easier to resolve by relaxation after enough coarsening. This complementary action is why multigrid methods are useful for large finite difference method and finite element method systems.
For a concrete model, take the one-dimensional Poisson equation with homogeneous Dirichlet boundary conditions:
Use interior points , , and the centered finite difference system
Thus is a symmetric matrix and a positive-definite matrix. The minus sign in fixes this positive convention; changing both and to their negatives leaves the relaxation update unchanged. For , the linear system has the exact discrete solution , since the centered finite difference is exact on this quadratic polynomial. In general, the exact discrete solution need not equal the sampled continuous solution: solving the linear system removes algebraic approximation error, not the global discretization error.
Let solve , let be the current approximation, and define the signed approximation error . The linear-system residual is , so . In particular, a linear-system residual is available without knowing ; it supplies the right-hand side for a correction equation. With , a weighted Jacobi method sweep is
The sine eigenvectors shared by and the iteration matrix are , . Their eigenvalues are
For , one weighted Jacobi method sweep with multiplies the lowest Fourier frequency mode by about , but the highest Fourier frequency mode by about . Four sweeps retain about of the first amplitude and of the second. The sign reversal of the second amplitude is harmless when its magnitude shrinks. However, the plain Jacobi method, , has factor : at it is about . A nearly alternating mode near the grid's Nyquist limit therefore persists almost as strongly as the smoothest mode. Plain Jacobi method convergence on a fixed Dirichlet boundary condition grid does not imply effective smoothing.[ref] The high-frequency smoothing factor of weighted Jacobi is uniformly at most for and ; the exact finite-grid high-frequency Jacobi smoothing optimum distinguishes this convenient uniform choice from the finite-grid optimum.[ref]
Figure 1.
Analytic Poisson error modes: weighted Jacobi damps short wavelengths while plain Jacobi struggles near the Nyquist limit
. Details.
One two-grid cycle applies a few weighted Jacobi method sweeps, computes the linear-system residual, performs coarse-grid correction, and applies a few more sweeps. The first relaxation makes the remaining approximation error easier to represent on a coarse mesh; the last relaxation damps oscillatory components left after the transferred correction. In a geometric multigrid V-cycle, replace the expensive exact coarse solve by one recursive cycle on the coarse correction equation, starting its correction from zero. Repeat until a tiny coarsest linear system can be solved directly, then return through the levels by adding each interpolated correction and post-smoothing. The descent and return give the cycle its V shape.[ref]
For this one-dimensional model, fixed sweep counts and bounded local finite difference and transfer work give a geometric multigrid V-cycle cost proportional to , hence in Big O notation. A fixed error reduction also needs a contraction factor bounded below one independently of ; per-cycle work alone does not establish that. Starting from arbitrary approximation error and demanding a relative reduction generally adds a factor proportional to in the cycle count. Full multigrid uses coarse solutions as initial guesses on successively finer meshes to target the global discretization error efficiently. The two-grid Poisson factor with weighted Jacobi illustrates favorable convergence for this model. Other partial differential equations, strong anisotropy, or poorly chosen coarse spaces and relaxation can defeat these choices; a linear-work guarantee for arbitrary linear systems does not follow.
A historical example of the multilevel viewpoint is Achi Brandt's April 1977 paper, which analyzes adaptive meshes and reports numerical experiments on linear and nonlinear boundary value problems. This is a documented development of the approach, not a claim that the paper was its first invention.[ref] The figure above is generated from the displayed eigenvalues, with lines joining discrete nodes; it contains no experimental measurements.
Orthogonal projection onto a finite-dimensional subspace Created 2026-09-24 Updated 2026-10-14
A finite-dimensional linear subspace of an inner product space has a unique closest vector to any given vector . This is its orthogonal projection . If is an orthogonal basis of , compute it one direction at a time:
The inner product convention here is linear in its first argument, including over the complex numbers. For an orthonormal basis, each denominator is one. When consists only of the zero vector, the empty sum gives . The finite-dimensional formula is described in Francis Narcowich, Inner Products and Norms: minimization problems.
Take and , using the dot product. With ,
The orthogonal projection residual has . To verify the best approximation directly, every candidate in the line is , and
The smallest squared Euclidean norm error is therefore , attained only at . The diagram connects the perpendicular residual to this one-variable quadratic polynomial.
Figure 1.
The perpendicular residual identifies the closest point on a line and the unique minimum of the squared error
. Details.
The general mechanism is the Pythagorean theorem in an inner-product space. For any , the vectors and are orthogonal, so
Moving away from inside adds a nonnegative squared norm, which is zero only when . This proves both optimality and uniqueness.
The useful feature is separation of preparation from evaluation. Construct an orthonormal basis once with the Gram-Schmidt process, then obtain each new best approximation using inner products instead of a fresh optimization problem. When is the column space of a matrix, this gives linear least squares; when is spanned by orthogonal polynomials, it gives a least-squares polynomial in an orthogonal-polynomial basis. The ambient inner product space need not be a Hilbert space for this finite-dimensional construction. In an infinite-dimensional target linear subspace, existence requires additional hypotheses, supplied by orthogonal decomposition by a closed subspace.
Regard the real skew-symmetric matrix as acting on . Its Hermitian adjoint is . Parts (i) and (iii) show that its eigenvalues are purely imaginary and its complex minimal polynomial has no repeated roots.
Since has real entries, nonreal eigenvalues occur in conjugate pairs. A nonzero pair has the form , with , and contributes the real quadratic polynomial
Zero, if present, contributes one factor . Hence the real minimal polynomial is
The product annihilates after complexification of a real vector space, so it also annihilates the original real linear map; no factor can be removed because each displayed complex root is an eigenvalue. This proves both the asserted form and its minimality. The case has and an empty product.
A cubic polynomial over a field is reducible if and only if it has a root in that field: a nontrivial factorization of degree three has a linear polynomial factor, and conversely a root supplies one by the factor theorem.
The rational root theorem, or part (b), shows that a rational root of this monic polynomial must be an integer. Such an integer must divide the constant coefficient , so the only candidates are . Direct evaluation gives
None vanishes. Hence there is no rational root, proving
The same no-root argument alone would not decide a quartic polynomial, which could factor as two quadratic polynomials; its sufficiency here uses degree three.