Smooth maximum 2026-09-28
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.
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.
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.
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.
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.



