Average value of a function Created 2026-10-14 Updated 2026-10-18
For an integrable function on an interval of positive finite length, its average value is the integral divided by that length:
If is constant on equal-length subintervals, this is their values' arithmetic mean; unequal lengths require a weighted mean. For example, values and on two equal halves give average value , whereas value on the first quarter and on the remaining three quarters give . The integral measures total contribution; the average value of a function divides out the interval length.
For the function on , the average value of a function is . Replacing it by the constant preserves its integral on this interval. This is why the Haar projection uses cell averages to obtain a coarser description while retaining each cell's total contribution.
Half-wave rectifier 2026-10-18
A half-wave rectifier with one diode and a resistor load passes one half of each input cycle.[ref]
For an original ideal example, let an ideal voltage source supply the sinusoid , with and angular frequency . Connect its positive reference terminal to the diode anode, the diode cathode to the upper terminal of a load resistor with electrical resistance , and the lower terminal to the source return. Let be the upper-minus-lower load electric potential difference, and the downward load electric current. Assume the ideal diode model, zero source electrical resistance, and no filter capacitor, inductor or switching delay.
Figure 1.
An ideal half-wave rectifier selects the positive half-cycle
. Original schematic and calculated load electric potential difference for and . The diode cathode is the bar at ; positive load electric current flows downward through the resistor. Dashed orange: source sinusoid. Blue: load output, zero during the negative half-cycle. Green: its cycle-average electric potential difference . No smoothing capacitor is present; these are ideal model predictions. Details.
The Kirchhoff cycle law gives , and Ohm's law gives . If , the blocking assumption would give , contradicting the ideal diode model, so the diode conducts with . If , conduction would give , also forbidden, so the diode blocks. At the crossings both values vanish. Thus
The peak load electric current is . The output is unidirectional but still varies in time, reaching zero throughout every negative half-cycle. Over a period of a function , write the wave phase as . Its average value of a function and root mean square follow from two integrals:
Consequently the average load power is , not . The ideal diode has zero loss; the resistor converts supplied energy into Joule heating. The same switching argument predicts when the diode is reversed. Directional selection changes the waveform and its average value of a function; it does not by itself produce a constant output.
Consider this original constructed input electric potential difference, with in seconds and :
The unwanted component has three times the reference frequency and more than twice the wanted peak amplitude. Nevertheless, the lock-in quadratures over are exactly
so and . This is a peak amplitude calculation, not an SR830 display prediction.
To see why the larger component vanishes, multiply by each reference:
Each sinusoid has zero average value of a function over a whole reference cycle. More generally, a component with integer gives products at and , whose integrals vanish over any integer number of reference cycles. This is the orthogonality behind selecting a Fourier coefficient with sinusoidal references. A nonsinusoidal reference can contain additional frequencies and need not have the same rejection property.
Figure 1.
Lock-in harmonic rejection: multiplication reveals a constant component
. Original calculated waveforms for the declared wanted component and interference; no measured data. Top: input and wanted signal. Middle: products with the two dimensionless references. Bottom: running lock-in quadratures; markers at complete reference cycles equal , . Partial-cycle estimates need not equal those values. Details.
An unwanted component at the reference frequency survives. If is added to the input, its coordinate vector adds to the wanted one:
For example, adding with to the wanted component gives , , , and phase difference . Longer averaging cannot separate these two synchronized contributions.
A point-sampling model assigns to a pixel on a grid, where is a continuous function representing an image signal. An area-sampling model instead assigns the average value of a function over a specified footprint. These are different models: a narrow feature between point samples can be missed, whereas its contribution to an area sample depends on its width and shade. Neither model says that the recorded value uniquely determines everything inside a grid cell.
Figure 1.
A toy raster grid, two reconstructions, and distinct signals with identical samples
. Details.
The upper panels start with exactly the same array. Nearest-neighbor interpolation repeats its values into a display; successive linear interpolations in the two coordinate directions produce a smoother display. Original sample positions are marked. Both displays use 384 output pixels, but only the same 24 recorded values. The extra values follow the chosen interpolation rule. Between-grid appearance is inferred, not independently recorded.
Spatial resolution needs a stated meaning. A grid over a rectangle of width and height has nominal cell pitches and . Over the same rectangle, doubling both dimensions halves these pitches and quadruples the pixel count. That is a finer grid, not a guarantee of more recoverable detail. Blurring before sampling, quantization and aliasing can make different originals share the same recorded array. Enlarging the rectangle without adding samples instead increases the displayed pitch.
A reproducible computational demonstration makes the ambiguity exact. Take the one-dimensional profiles and , repeated identically along every row. Sample at for . Since , the fact that the sine is a periodic function gives . Both yield , although at they give approximately and . The lower panel draws both originals and their common samples: no operation on those samples alone can identify the original profile. This is aliasing in an ideal point-sampling model, without image noise or rounding.
The Nyquist–Shannon sampling theorem describes reconstruction under a bandwidth restriction and ideal sampling assumptions; it does not grant uniqueness for arbitrary image signals from a finite raster image.[ref] The beautiful lesson is constructive: choose what detail the grid should preserve before sampling, and choose a reconstruction rule suited to the information actually retained.
Virial theorem Created 2026-09-24 Updated 2026-10-13
The virial theorem relates the average value of a function along a trajectory to the forces that bind it. For an isolated system of particles interacting through Newtonian gravitational potential energy, it gives : the average kinetic energy is half the magnitude of the average negative potential energy. An eccentric Kepler orbit makes the distinction vivid: kinetic energy and potential energy vary throughout the orbit, although their sum is constant. The relation concerns their time averages, rather than their values at every instant. It underlies the virial mass estimate and the negative heat capacity of a virialized gravitational system.
Use constant positive particle masses , positions , mechanical momenta , and total kinetic energy . The auxiliary quantity is a sum of dot products, not the gravitational constant, which we denote here by :
This finite- identity is exact wherever Newton's second law holds along a regular trajectory; must include every force. The endpoint term is what a finite observation window leaves behind. For the infinite-time theorem, suppose the averages on the left exist and . A sufficient condition is uniformly bounded positions and velocities for finitely many particles. More generally suffices, even without those individual bounds. Bounded positions alone do not supply a bound on momenta, especially near a singular potential energy; nor does a small endpoint term prove thermodynamic equilibrium. Periodic motion with gives the identity without an endpoint term at that finite . For an isolated system, use an inertial centre of mass frame so translational drift does not contribute bulk kinetic energy.[ref]
For a differentiable potential energy that is a homogeneous function of degree , choose its additive constant so that the scaling law really holds. With conservative forces, the Euler theorem for homogeneous functions gives
Thus a harmonic oscillator has and . An isolated system with Newtonian gravitational potential energy has
Each interacting pair occurs once, and at infinite separation. Here the total energy is conserved. An external field or a mixture of different scaling powers requires its own force term; one cannot assign the whole potential energy a single degree . The virial theorem for a homogeneous pair potential states the corresponding general energy relation.