Affine combination Created 2026-10-14 Updated 2026-10-14
An affine combination is a weighted point with . The coefficients can be negative. The sum is meaningful in an affine space without selecting a preferred origin: relative to any point , it means . Affine maps preserve these weighted points. [ref]
For an original example in the Euclidean plane, take , and . Then lies inside their triangle. Its coefficients are nonnegative, making it a convex combination. In contrast, is beyond : it is an affine combination but not a convex combination of these three points. Negative weights allow extrapolation, rather than only interpolation inside the convex hull.
For the affine map , the same weights produce from , and produce from . Thus one can compute a weighted point before transforming the vertices or afterwards, obtaining exactly the same point.
Figure 1.
Positive and signed affine weights before and after a transformation
. The green point has weights and stays inside the transformed triangle. The orange point has weights and lies beyond the corresponding edge endpoint. These are original coordinate examples; the same weights are used in both panels. Details.
This is useful whenever an object is built from weighted control points: its construction commutes with an affine map, so transforming the control points transforms the constructed object as well. The sum of the weights is the essential condition; no assumption about lengths or angles is needed.
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]
Control point Created 2026-10-14 Updated 2026-10-14
A control point is an editable geometric handle used to specify a curve or surface through a basis or refinement rule. The handle is part of the representation; it need not be a point on the resulting curve. In a Bézier curve, the control points are the geometric coefficients of the Bernstein basis. Joining them in order gives a control polygon, which makes the handles easy to manipulate without drawing the curve as a chain of line segments.[ref]
For example, use the cubic Bézier curve with control points
Its Bernstein basis representation gives
The greatest height is , so neither interior control point, both at height , lies on this curve. The endpoint control points do lie on it: and . This separates interpolation, which requires passage through prescribed data, from an approximating representation, which uses handles to shape a curve without requiring passage through every handle. If measured points must be interpolated, choose control points to satisfy those constraints; simply using the measured points as the handles of a Bézier curve does not enforce interpolation.
Figure 1.
Original cubic and the curve after moving only the interior control point P1 upward by one unit, with fixed endpoints and a smaller displacement at the same parameter
. Details.
Now move only by the vector , giving . With the Bernstein basis and parameter unchanged, the new curve is
At this gives , a displacement despite moving the handle by a full unit. Both endpoints stay fixed because the coefficient vanishes there. Thus dragging a control point shapes a whole range of the curve; it does not generally drag an arbitrary selected point on the curve by the same vector. The control-point influence on a curve tells us exactly how much each parameter value moves.
For a parametric curve represented by fixed scalar functions and control points in Euclidean space, write
The influence function of this handle is : the resulting displacement vector is , and its norm is . These are exact finite changes, not only a first-order estimate. Where is negative the displacement points opposite to . Where , the curve is unchanged at that parameter.
Figure 1.
The influence coefficient 3t(1-t)^2 equals the vertical displacement for a unit upward move of P1, reaches 4/9 at t=1/3, and vanishes at both endpoints
. Details.
For the cubic Bézier curve above, the Bernstein basis influence function is . Its derivative is
It increases up to and decreases thereafter on . Consequently the largest displacement at corresponding parameters is
For it is . This is a comparison at the same parameter. A geometric closest-distance comparison, as in a closest-point search on a subdivision curve, instead minimizes over another parameter:
The closest parameter can differ from , so is not automatically a maximum closest-distance separation of the two curves. Neither parameter is assumed to be arc length.
The support of a function is the closure of the parameter values where . It bounds where a nonzero handle move can act, but may include boundary points where the actual displacement is zero. Here the support of a function is all of relative to the parameter domain, while the endpoints are unaffected. In contrast, a B-spline of order has support within in its spline knot sequence, so its handle affects only that parameter range; the support and Gram bandwidth of B-splines describes the same locality in another application. Changing the spline knots or the basis along with the handle requires a different comparison.
When the basis functions form a partition of unity, , each evaluation is an affine combination of the control points. Applying an affine map to all handles gives
This is affine equivariance of a geometric basis, also called affine covariance: affine maps preserve affine combinations. In particular, translating every handle by translates the whole curve by , whereas moving just one handle produces . The Bernstein basis has this partition of unity property.[ref] Nonnegative weights further make evaluations convex combinations, giving the convex hull bound illustrated by the control polygon; nonnegativity is not needed for affine covariance.
For a proof outline of the influence formula, subtract the two basis representations: every unchanged coefficient cancels, leaving . The same subtraction with several moved handles gives . No claim about interpolation, closest-point search on a subdivision curve or endpoint motion follows until the actual basis values are examined.
An exposure-averaged light curve models what a finite exposure measures. For a constant response during an exposure of duration , centred at , the expected mean brightness is
The integral has units of brightness times time; division restores the units of . Observed points fluctuate around this mean. A response that changes during the exposure must instead be included inside the integral, as in the first figure's known drift. Exposure duration and the interval between samples are distinct: there may be dead time or missing exposures.
A short dip can be blurred even with perfectly noiseless measurements. For a toy rectangular dip of fractional depth and duration , an exposure containing the whole dip has fractional depth : averaging hides part of its depth. A dip lasting ten minutes therefore appears only deep in a thirty-minute exposure. No interpolation recovers its shape from that single number without additional assumptions. Forward modelling should average the predicted light curve over each exposure before comparing it with the measurements. Kipping's analysis of exoplanet transit photometry demonstrates how ignoring this averaging biases inferred system parameters. [ref].
Image registration Created 2026-10-20 Updated 2026-10-24
Estimating a coordinate transformation that aligns corresponding content in images. The transformation family, similarity objective, interpolation and regularization are separate modeling choices. Intensity agreement alone does not guarantee physically correct correspondence.
Lipschitz continuity Created 2026-09-24 Updated 2026-10-14
A function between metric spaces is Lipschitz continuous if one finite number controls every change of output by the corresponding change of input:
For real inputs and outputs this is . The same bound must work for every pair in the specified domain of a function. It gives a quantitative version of continuity: an input error of at most produces an output error of at most . The least possible bound is the Lipschitz constant. Lebl presents the real and metric-space definitions and their connection with uniform continuity. [ref]
Three functions show why this condition differs from differentiability. The absolute value has a corner at zero, but the reverse triangle inequality gives , so it has Lipschitz constant one on the real line. The sine is smooth and also has Lipschitz constant one: the mean value theorem and bound every secant slope. The square root is continuous on , but
No finite Lipschitz bound works on that interval. At , the ratios are . Smaller input changes near zero therefore require larger amplification factors.
Figure 1.
Bounded secant slopes permit a corner, while the square root needs unbounded amplification near zero
. Details.
For a real function, Lipschitz continuity means that the absolute slopes of all secant lines are bounded. If the derivative exists at a point, taking a limit of those slopes gives . In the other direction, a function that is continuous on a real interval, differentiable in its interior, and satisfies there is Lipschitz continuous by the mean value theorem. The interval hypothesis matters: the theorem uses the segment connecting the two inputs.
A Lipschitz function is uniformly continuous: for , choosing input tolerance works at every point. If , the function is constant. The converse fails; the square root on is uniformly continuous, and satisfies the weaker Hölder continuity bound , without a finite Lipschitz constant. These distinctions are developed in Lebl's worked examples. [ref]
The usefulness is controlled sensitivity. Successive Lipschitz maps with bounds and have a function composition with bound , because each stage amplifies the previous distance by at most its own bound. For an ordinary differential equation, Lipschitz continuity in the unknown state is the condition that makes nearby trial solutions controllably close in the Picard-Lindelöf theorem. For incomplete data, the McShane extension theorem fills in unobserved values while preserving the same bound. This one inequality connects error estimates, uniqueness, and interpolation.
For the centered Cardinal cubic B-spline with knot values , write on . interpolation gives for . Since and , the natural endpoint conditions give the displayed extra two rows. These supply the two equations missing from interpolation alone.
For linear interpolation at zero and , an error in the second sampled value, with the first exact, changes the linear interpolant by . On , its uniform norm is exactly , whereas the derivative change is the constant . With independent absolute bounds on both samples, the value change remains at most and the derivative change is at most , attained for opposite endpoint errors.
Thus bounded absolute sample noise can remain bounded under value interpolation while becoming unbounded under numerical differentiation as . Fixed nonzero sample noise also prevents exact convergence of the value approximation; stability against perturbations and convergence to exact data are different assertions. For a second-sample error with fixed , value convergence requires , while derivative convergence requires in little o notation, in addition to vanishing truncation error.
Use the usual approximation-space convention . The source's phrase “degree ” must include lower degrees for its later space and interpolation statements; the consequence of a literal exact-degree reading is addressed in part (d).
Order the alternating points as . If had strictly smaller error than , the values
would have the alternating signs of : the second term has magnitude strictly less than . The intermediate value theorem would then give at least distinct zeros of , one in each gap. A nonzero polynomial of degree at most cannot have that many zeros. Thus no such exists, proving
The remainder of the equioscillation theorem says that a best uniform approximating polynomial exists, is unique, and is characterized by this -point alternating extreme-error condition. For positive error, alternation is necessary as well as sufficient. If itself lies in , the unique best polynomial is with zero error.
Let . For not one of the nodes, put and define
This function has zeros at the interpolation nodes and at the additional point . Repeated Rolle's theorem gives a point between the outermost of these points such that . Since and ,
Substitution yields
At an interpolation node both sides are zero, so any gives the identity there. The assumed regularity permits all applications of Rolle's theorem.
Choose the nodes as the roots of the Chebyshev polynomial . Its leading coefficient is , so the monic nodal product is . Since on , part (b) bounds this particular interpolant by
The best error cannot exceed the error of a particular member of . Therefore
The choice of Chebyshev roots controls the maximum of the nodal product, not the size of any individual interpolation coefficient.
Use the Taylor expansion . Expanding the rational form gives
Matching through degree two yields , , and . The last equation becomes , so
This is the Padé approximant about zero. Its pole is at four, outside the interpolation interval; its order of matching is local and does not assert uniform minimax optimality.
Let be the centered nondimensional cubic B-spline, even and supported on . The outer cubic must be to make the function and its first two derivatives vanish at the support edge. Write its inner part as . Matching the value and first two derivatives at gives , , . Its nonzero knot values are then , so requiring their sum to be one fixes . Thus
In particular , .
With , represent the spline on as . There are unknown coefficients. interpolation at , , gives
The natural endpoint conditions, using and , give
These equations are the required matrix system: the interpolation rows have coefficients at consecutive positions and right sides ; the two endpoint rows have and zero right sides. No solution of that system is required. The scaling uses , without an extra , because normalization is by knot values rather than by integral.
The weak equation implies in distributions, hence . Its nodal interpolant satisfies
These follow interval by interval: the interpolation error vanishes at both endpoints, and its derivative has mean zero, so two Poincaré inequalities apply. If and are the continuity and coercivity constants, Céa's lemma gives
All constants are independent of the mesh size.
Put and . Galerkin orthogonality gives , so the dual identity becomes
On , is constant and is zero at both endpoints. Consequently . Defining the element residual by
gives
No derivative-jump terms survive, because this interpolation error vanishes at every mesh node. This is the mechanism of the explicit one-dimensional dual residual bound in L2.
A piecewise cubic supported on has the truncated-power representation with indices . Vanishing for imposes
after expanding its cubic exterior polynomial; powers of cancel. For , the Vandermonde matrix columns are independent, forcing every coefficient to be zero. For , coefficients proportional to satisfy these conditions because a fourth finite difference annihilates cubics.
Normalize to get the Cardinal cubic B-spline
At its five support knots its values are , so their sum is one. Thus four intervals are necessary and sufficient.
For , the five translates active in the interior of are indexed . Write . Nodal interpolation gives
At the left endpoint the first derivatives of the three active functions are , and their second derivatives are . The two remaining equations are
Together these five equations form the requested system; insert if numerical coefficients are desired. The first, fourth and fifth determine the first three coefficients, and the other two then determine , so the system is nonsingular.
The source only assumes , which need not have either endpoint derivative. The Hermite conditions require those derivatives to exist, or to be supplied as separate interpolation data. The nodal conditions alone remain meaningful for every continuous .
Put and . The primal solution and its finite element approximation lie in the same affine space with value one at the right endpoint, so . Use
Define the dual solution by
Equivalently satisfies for every . Positivity of gives a unique solution, and one-dimensional regularity gives .
Then . The nodal interpolant belongs to the homogeneous finite element test space, so Galerkin orthogonality gives . Set . Using the primal weak equation,
Integrate the derivative term separately on each element. Since vanishes at every mesh node, all endpoint flux and flux-jump terms vanish. Therefore
The absence of jump terms here follows specifically from one-dimensional nodal interpolation; it is not an assumption that the finite element flux itself is continuous.
Let , , , and . Testing the dual equation with gives
Consequently and . From ,
On an element of length , the interpolation error vanishes at both endpoints and its derivative has zero mean. Two Poincaré inequalities give
Apply Cauchy-Schwarz to the residual identity, with factors and :
If the error is nonzero, cancel its norm after the regularity estimate; if it is zero the conclusion is immediate. One explicit reliable constant is
This proves the requested dual residual bound entirely in terms of the coefficient functions.
Write and for the quantities computed from the perturbed second sample. The endpoint linear interpolation and its derivative are
Compare them on their interpolation interval , with fixed . Put , . The Taylor series of the sine gives, uniformly in ,
Here the second equality compares with . More generally, the exact derivative is and
The input perturbation itself changes the value interpolant by exactly , and changes its derivative by exactly . Thus
For fixed nonzero , the value approximation has a bounded noise floor: its maximum error approaches , and at that error is exactly . It does not converge uniformly to the exact values as . However, it does not amplify the absolute sample perturbation on . The derivative error instead grows without bound like .
With exact samples, , both approximations do converge on the shrinking interval: the value error is for this particular sine, and the derivative error is . With step-dependent noise, value convergence requires , whereas derivative convergence requires the stronger , where denotes little o notation.
This is noise amplification by differentiation of a linear interpolant. Value interpolation has an absolute perturbation bound independent of on the sampled interval. Numerical differentiation has a perturbation factor , expressing the ill-posedness of numerical differentiation from values with fixed absolute uncertainty. The amplification follows from the mathematical data map even in exact arithmetic; it is distinct from additional roundoff error in a particular implementation. For fixed outside , the operation becomes extrapolation, and the value perturbation can also diverge.
Figure 1.
Fixed sample noise gives a bounded value-error floor while differentiation amplifies it as
. Details.