Quadratic Lagrange triangle Created 2026-10-25 Updated 2026-10-31
The quadratic Lagrange triangle uses degree-at-most-two polynomials on a nondegenerate triangle, with point evaluation at its three polygon vertices and three edge midpoints as the six finite element degrees of freedom. If are the affine functions of its barycentric coordinate system, the cardinal shape functions areAt a polygon vertex, one coordinate in the barycentric coordinate system is one and the others vanish; at an edge midpoint, two are and the third is zero. These values prove the cardinal property. Since , this is an unisolvent finite element. Matching the two endpoint values and midpoint value on a shared edge of a polygon matches the whole quadratic restriction, producing a continuous global conforming finite element space.
Quadrature rule Created 2026-09-24 Updated 2026-10-14
A quadrature rule approximates an integral by a finite weighted sum of sampled function values:The quadrature nodes specify where to sample, and the quadrature weights specify how much each sample contributes. The density specifies the target integral, whereas the discrete quadrature weights belong to the approximation. Ordinary numerical integration has . Gaussian quadrature and the midpoint quadrature rule choose interior quadrature nodes; the trapezoidal rule includes endpoints.[ref]
For ordinary numerical integration, exactness on the constant function requires ; exactness on additionally requires . These two checks make the quadrature rule exact for every affine function. For example, both the midpoint quadrature rule and trapezoidal rule give for . Testing progressively higher polynomial degrees defines the degree of precision of a quadrature rule. Exactness describes a class of integrands, rather than promising exact results for every function.
Composite midpoint quadrature rules and composite trapezoidal rules apply a simple quadrature rule on every panel of a partition of an interval. This buys accuracy by shrinking the panels while keeping the elementary formula fixed. For continuous functions sampled exactly, their quadrature errors tend to zero as the largest panel width tends to zero. The familiar second-order bounds require stronger assumptions about derivatives. The signed approximation error used here is ; some sources define quadrature error with the opposite sign, so the convention must accompany any formula.
Roughness-matrix formula for a natural cubic smoothing spline Created 2026-10-14 Updated 2026-11-05
For distinct ordered observations , let be their natural cubic spline interpolant with values . Its roughness is a quadratic form, , where is positive semidefinite and its nullspace consists of vectors sampled from affine functions. Minimizing penalized least squares gives . Thus the smoothing matrix is and its effective degrees of freedom are . As the fit approaches interpolation and the trace approaches ; as it approaches the least-squares affine line and the trace approaches .
Roughness penalty 2026-10-05
A roughness penalty penalizes variation of derivatives, such as . The second-derivative penalty vanishes precisely on affine functions and is represented in a chosen basis by a roughness penalty matrix.
Second derivative roughness penalty 2026-10-05
The nonnegative functional . Its null space on consists of affine functions. The natural cubic spline interpolant uniquely minimizes this penalty among functions matching at least two prescribed knot values. It is a squared second derivative penalty, not the exact geometric curvature energy of a graph.
Second-difference analyzing function 2026-10-14
The Haar wavelet provides an explicit one-vanishing moment comparison:It cancels a constant polynomial, but not a nonconstant affine function. To obtain two vanishing moments by an equally transparent construction, take three adjacent unit intervals with heights proportional to :The L2 norm normalization follows from . Direct integration givesThus has exactly two vanishing moments. In fact its coefficient is a finite difference of adjacent local integrals:The weights are those of the second-order central difference. The first moment balances the centres of the three intervals; it is not enough merely to balance their signed areas.
Signed overlaps of the Haar and second-difference analyzing functions with constant, linear, and quadratic test polynomials
. Details. This is a normalized analyzing function, with no orthonormal basis assertion. Indeed, its unit translate has nonzero L2 inner product:Hence these translates already fail orthogonality. The Daubechies wavelet construction imposes additional refinement and orthogonality requirements; two vanishing moments and unit L2 norm by themselves do not supply those requirements.
Semidefinite programming 2026-10-05
A semidefinite program optimizes a linear function subject to equalities between affine functions and positive semidefinite matrix inequalities. It generalizes linear programming: a diagonal matrix is a positive semidefinite matrix exactly when its diagonal entries are nonnegative. Matrix trace expresses the objective as for real symmetric matrices.
Smooth maximum Created 2026-09-28 Updated 2026-10-25
Composing the log-sum-exp function with finitely many affine functions gives a differentiable approximation to their pointwise maximum. Increasing the inverse-temperature parameter reduces the uniform approximation error while increasing the Lipschitz gradient constant.
Strict Jensen equality criterion 2026-10-25
Let be an integrable random variable taking values in an open interval . Suppose is a differentiable strictly convex function. Then its expected value has equality in Jensen's inequality exactly when is constant almost surely.
First lies in : at each finite endpoint, taking the expected value of the strictly positive distance to that endpoint gives a strictly positive distance for . A tangent affine function supports at , soStrict convexity forces for . Indeed, equality at another point would force the graph to coincide with its supporting line on the connecting line segment, contradicting strict convexity. Thereforeand the right side is zero exactly when almost surely.
The tangent affine function of is an integrable random variable, so has an integrable negative part. Thus is well defined, possibly , even if absolute integrability was not assumed. Equality to automatically excludes that infinite case.
Strongly universal hash family 2026-10-13
A strongly universal hash family makes every ordered pair of outputs equally likely: for distinct inputs and arbitrary specified outputs ,Thus the two outputs are independent random variables, each with the uniform distribution on a finite set. Adding the equal ordered pairs gives collision probability , so the family is also a universal hash family.
Here is a completely enumerable example. In the finite field , take the affine functions , using modular arithmetic modulo . Choose and as independent random variables, each with the uniform distribution on a finite set of all five finite field elements , including . There are equally likely hash functions. For , the ordered pair is . For instance gives ; gives . Every prescribed occurs exactly once, at .
Enumerating all affine hash functions over the finite field with five elements
. Each cell shows the unique coefficient pair (a,b) producing the displayed outputs at 0 and 1. Removing a = 0 deletes the diagonal and leaves dependent outputs despite uniform individual values. Details.Each row contains five choices, so each individual output has probability . Each cell has probability , and the five diagonal cells give collision probability . For any distinct , the same conclusion follows from and : a nonzero finite field element has a unique inverse. This is the beauty of the construction: two small random coefficients provide exact pair balance without choosing five unrelated values.
The example uses equal-sized input and output sets to make every choice visible; it illustrates the family definitions rather than compression. In a larger input set, a hash function cannot avoid all collisions into five buckets. What a universal hash family controls is the fraction of its members that collide on each fixed pair, rather than the existence of any collision anywhere.
Restricting to leaves permutations with zero collision probability for distinct inputs. Individual outputs remain uniform, but given , the four values other than each have conditional probability and has zero. Hence these outputs are not independent random variables: this is a universal hash family but not a strongly universal hash family. Finally, the full -member example contains five constant functions, with immediately visible collisions. Its pair guarantee concerns a random choice of hash function, and makes no claim of cryptographic collision resistance.
On a partition of an interval symmetric about zero, the composite trapezoidal rule gives opposite quadrature nodes equal quadrature weights. Samples of an odd function cancel pairwise, and a zero quadrature node contributes zero. For a continuous odd function, its exact integral over is also zero. Adding any affine function preserves exactness by linearity of the integral and of the quadrature rule. For example, is nonpolynomial but both the exact integral and every uniform-grid composite trapezoidal rule value on are two.
Thermal conduction Created 2026-09-24 Updated 2026-10-14
Thermal conduction transfers heat through microscopic interactions without bulk transport of matter. To predict the heating load through a bar, combine Fourier's law with conservation of energy and the imposed end temperatures. In the isotropic model with positive thermal conductivity , the conductive heat flux points from high to low temperature, opposite to the temperature gradient. A spoon warming along its handle and heat escaping through a wall are familiar examples.
Consider a bar of length , constant cross-sectional area and constant thermal conductivity . Maintain its ends at and , with increasing toward the colder end. Assume a steady state, one-dimensional thermal conduction, no internal sources and no heat transfer through the sides. The temperature falls by over , givingThe difference between the two readings in degree Celsius units is the same -kelvin difference. The positive heat flux carries heat toward increasing .
The general solution under these assumptions isA proof outline is enough to explain the straight line: conservation of energy in any small slice, with no accumulation, sources or side losses, gives . Constant cross-sectional area gives ; constant thermal conductivity and Fourier's law then give . Two integrations and the end boundary conditions determine the displayed affine function. This is why a visually simple temperature profile can encode a continuous flow of energy. [ref]
https://web.mit.edu/16.unified/www/FALL/thermodynamics/notes/node117.html. E. M. Greitzer, Z. S. Spakovszky and I. A. Waitz, MIT Thermodynamics and Propulsion, section 16.3: steady one-dimensional conduction
Doubling the length halves the rate, while doubling the cross-sectional area doubles it, at fixed end temperatures and thermal conductivity. This explains why a long narrow support can limit unwanted heat transfer, while a short broad path can help remove heat. Joining materials leads to thermal resistance in series. During initial warming, internal energy can accumulate and the temperature profile need not be a straight line; the time dependence is described by the heat equation and thermal diffusivity.
Now join two layers, each of length , with constant cross-sectional area and stipulated constant thermal conductivities and . Keep the outer ends at and . Assume a steady state, one-dimensional thermal conduction, no internal sources or side losses, and perfect contact: the temperature is continuous at the interface, with no extra contact drop. For each layer, use the area-specific thermal resistance and . The series calculation gives
The heat flux is continuous: otherwise energy would accumulate at the interface. Yet Fourier's law gives different temperature gradients, and . Lower thermal conductivity requires a steeper temperature gradient to carry the same heat flux; equal lengths therefore give drops in the ratio . A kink in the temperature profile records the change of material while perfect contact keeps the temperature itself continuous.
Thévenin's theorem Created 2026-10-13 Updated 2026-10-14
Thévenin's theorem replaces the terminal behavior of a linear resistive circuit by an ideal voltage source in series with a Thévenin resistance, whenever its terminal electric potential difference is a well-defined affine function of the delivered electric current. Fix terminals , write , and take positive out of the network at into the electrical load, returning through . ThenThe open-circuit voltage is the intercept at ; is the slope. Thus two parameters predict what happens when many different electrical loads are connected. The Wheatstone bridge detector loading calculation uses precisely this replacement to find the detector reading even when the bridge's two voltage dividers interact through its detector.
For example, a ideal voltage source with above and below a voltage divider junction supplies and at that junction relative to the lower terminal. Attaching a electrical load reduces its voltage to and draws . The equivalent explains why an unloaded divider ratio alone cannot predict a loaded output.
The equivalence concerns the chosen terminals, including the power delivered there. It does not identify internal branch electric currents or internal Joule heating. At open circuit the original divider still draws from its supply, while the equivalent's series branch carries no electric current. [ref]
Thevenin and Norton Equivalents, University of Houston teaching notes. Thevenin and Norton Equivalents, pp. 1–2, “The Idea” and “Important Notes”: equivalence at the specified terminals
Thévenin terminal response 2026-10-14
With the passive sign convention applied to the network, its entering electric current is , and the same relation becomes . The electrical load uses the passive sign convention with entering electric current , so it absorbs power . A positive delivered electric current therefore produces a voltage drop for positive ; changing the reference direction without changing the equation would give the wrong sign.
The reason is linearity of Ohm's law, Kirchhoff's current law, Kirchhoff's voltage law, and the constitutive relations of any linear dependent electrical sources. Solve once at with the independent electrical sources present. Subtract this solution from a solution with prescribed delivered electric current : the fixed independent electrical sources cancel, leaving a homogeneous linear network whose terminal voltage change is proportional to . This is a short superposition principle argument for an affine function; the fixed offset need not vanish.
The qualification about a well-defined response matters. An ideal voltage source alone has . An ideal nonzero current source alone constrains and does not have a finite open-circuit voltage or a representation with finite coefficients. Linear dependent electrical sources can give negative resistance, and singular ideal networks may fail to have a unique finite response. Neither a finite nor a strictly positive passive follows merely from calling an electrical circuit linear. [ref]
Thevenin and Norton Equivalents, University of Houston teaching notes. Thevenin and Norton Equivalents, p. 11, “On a Negative Thevenin Equivalent Resistance”: dependent-source models can have negative equivalent resistance
Trapezoidal rule Created 2026-09-24 Updated 2026-10-14
As a quadrature rule, the trapezoidal rule replaces an integrand by the linear interpolation joining its two endpoint values:For nonnegative endpoint values, this is the area of a trapezoid; in general it is a signed area. The quadrature nodes are , each with quadrature weight . Unlike the midpoint quadrature rule, it uses endpoint samples, which can be reused between adjacent panels.
Every affine function agrees with its linear interpolation, so the trapezoidal rule integrates it exactly. On , gives . On , the polynomial instead gives , exceeding by . Its degree of precision of a quadrature rule is exactly one.
If , its signed approximation error satisfiesA convex function lies below its endpoint chord, so the trapezoidal rule overestimates its integral; a concave function gives the reverse inequality. The error formula assumes that the second derivative exists and is a continuous function throughout the closed interval.[ref]
3.5 Quadrature, subsection (i) Trapezoidal Rules. §3.5(i), equation 3.5.1 and its C² hypothesis; the source writes integral minus rule
A short derivation is the identityobtained by two integrations by parts. The nonnegative Peano kernel has integral , and the weighted mean value theorem for integrals gives the formula.The trapezoidal rule for an ordinary differential equation averages vector fields at the old and new states and is A-stable.
This time-stepping use applies the same trapezoidal rule to the integral of the derivative in an ordinary differential equation. That connection explains its place under implicit Runge-Kutta methods; its quadrature behavior and the nonlinear issue in trapezoidal rule fails B-stability concern different uses of the same endpoint averaging.
VC dimension of Euclidean balls 2026-10-31
The positive-radius closed Euclidean balls in have VC dimension for . Vertices of a regular simplex are shattered: interpolate any desired signs by an affine function , then perturb a sphere through the vertices to the score . For the upper bound, take an affine dependence among points and orient it so that . Labelling the positive coefficients inside and the negative coefficients outside would force , while the affine dependence makes this sum equal . The weaker upper bound from unrestricted lifted affine linear classifiers loses their fixed quadratic coefficient.
Volume of a solid with affine thickness 2026-10-18
Let a bounded planar region have positive area and centroid . If a solid has nonnegative thickness above , its volume integral givesThus the average of an affine function over a region is its value at the centroid. The proof is the linearity of integration. For a disk the centroid is its centre, making the formula particularly useful for a cylindrical bore cut through a solid whose width varies linearly with height.
Von Neumann-Morgenstern utility theorem 2026-10-25
For a finite outcome space, complete lottery preferences, a transitive relation, continuity of lottery preferences and the independence axiom for lottery preferences are equivalent to an expected utility representation of the displayed form. The representing outcome utility function is unique up to a positive affine function. The theorem is associated with John von Neumann and Oskar Morgenstern.
A useful proof construction selects a best outcome and a worst outcome . If all outcomes are indifferent, a constant utility function suffices. Otherwise assign , . Continuity of lottery preferences makes each outcome indifferent to a mixture , and mixture monotonicity makes the coefficient unique. Substitution of indifferent lotteries and reduction of compound lotteries turn any lottery into a best–worst mixture with best-outcome probability . Mixture monotonicity then ranks all such mixtures. The reverse direction follows by taking expected values; positive affine functions preserve every comparison.[ref]
XOR separation by a product feature 2026-10-14
Give the four corners of the square the exclusive or labels: when the input signs differ and when they agree. In the following order,No affine function has the required strictly positive scores at and strictly negative scores at : both pairs have midpoint zero, so would have to be both positive and negative. This also rules out perfect classification by a single threshold with a consistent tie rule.
Under the polynomial kernel's quadratic feature map, the two classes become two distinct vectors:The hyperplane separates them. With and , the score and classifier areAll four signed scores equal one. In the input plane the boundary is , the union of the coordinate axes; in the derived coordinates it is a single hyperplane. The feature map identifies opposite corners, which is harmless for these labels because opposite corners belong to the same class. A fixed feature map would not separate labels that disagree at identical mapped vectors.
XOR labels in the input square and the quadratic feature slice
. The dashed diagonals join equal-label input pairs and share their midpoint, obstructing affine separation. In the feature panel all mapped points have third coordinate one; the two coincident pairs are separated by the horizontal hyperplane at second coordinate zero. Details.




