Preserving every sinusoid's magnitude does not require preserving the shape of a waveform made from several sinusoids. A stable all-pass filter can assign different phase shifts to different frequencies. Its response to a step can even begin with the opposite sign from its final value. An original continuous-time model makes those statements compatible, then checks the energy of a finite pulse without discarding the output that arrives after the input ends.
Choose the transfer function and initial condition
Let H(s)=(a-s)/(a+s), with a positive real constant measured in inverse seconds. Use zero initial state and a causal input-output relation. The model has one pole at -a and one zero at +a. The pole is in the left half-plane, so its decaying state is stable; the positive zero does not move that pole. This is a mathematical signal model, not a specified analog circuit or a tested robot acquisition channel.
Julius O. Smith's filter text describes the reflected pole/zero structure of analog all-pass filters. Its phase and group-delay section defines group delay from the negative phase slope. The chosen sign, parameter values, transient calculation, and finite-pulse ledger below are independent examples. No digital coefficient mapping or hardware implementation is assumed.
Calculate magnitude and phase separately
Substitute s=iω. The numerator a-iω and denominator a+iω have equal magnitudes sqrt(a²+ω²). Thus |H(iω)|=1 for every real angular frequency. With phase chosen continuously from zero at ω=0, the phase is φ(ω)=-2atan(ω/a). The DC gain is +1, while the high-frequency response approaches -1. Those gains have the same magnitude but opposite sign.
Choose a=4 per second. At ω=0,4,8 radians per second, the phases are respectively 0,-π/2, and approximately -2.214297 radians. The corresponding magnitudes all remain 1. A magnitude-only frequency table would display identical gains at those three entries and omit their substantially different phase effects.
Read two different delay quantities
Group delay is τ_g(ω)=-dφ/dω=2a/(a²+ω²). At the same three frequencies, its values are 0.5,0.25,0.1 seconds. These are derivatives with respect to angular frequency in radians per second, so the resulting units are seconds. Differentiating with respect to cycles per second without the conversion factor would produce a different numerical derivative.
For a nonzero single frequency, phase delay under this unwrapped phase convention is τ_p=-φ/ω. At ω=4 it is π/8, approximately 0.392699 seconds, rather than the group delay of 0.25 seconds. A narrowband envelope and its carrier phase therefore need not share one reported delay. Neither quantity licenses treating every arbitrary waveform as a rigidly translated copy.
Derive the initially reversed step
Rewrite H(s)=-1+2a/(s+a). An equivalent state realization is x_dot=a(u-x), y=2x-u, initially x=0. For a unit step input, x(t)=1-exp(-at), giving y(t)=1-2exp(-at) for t≥0. Immediately after the ideal input jump, y=-1. As time increases, the state rises and the output approaches +1.
For a=4, the zero crossing occurs at t=ln(2)/4, approximately 0.173287 seconds. At t=0.25 seconds, y=1-2/e, approximately 0.264241. A unity DC gain describes the final constant response, not the entire step history. The direct term -u explains the immediate reversal; the decaying state contribution later restores the final sign.
The ideal step contains arbitrarily high frequencies. The initial response is therefore consistent with the high-frequency limit -1. A physically bandwidth-limited channel would require a different model near an abrupt edge. The example asserts the behavior of this transfer function, not an infinitely fast voltage transition in a real instrument.
Follow a finite pulse after its falling edge
Let u=1 from t=0 to T=0.5 seconds and zero afterward, retaining a=4. Just before the falling edge, x=1-exp(-2), approximately 0.864665, and y=1-2exp(-2), approximately 0.729329. When the input becomes zero, x remains continuous but y jumps to 2(1-exp(-2)), approximately 1.729329. It then decays as that value times exp[-4(t-T)].
An instantaneous output magnitude above the pulse's height does not contradict unit sinusoidal gain. The output combines a stored state and the direct input term. Nor does comparing only the pulse interval capture its complete energy. The post-pulse tail is an essential part of the input-output record.
Verify energy without squaring a delta function
From y=2x-u, obtain u²-y²=4xu-4x². The state equation gives d(x²)/dt=2a x(u-x), so u²-y²=(2/a)d(x²)/dt. Integrating from the initial rest state through the eventual return to rest makes the boundary term vanish. Consequently the complete output squared integral equals the complete input squared integral, which is T=0.5 in these normalized units.
Over the input-on interval alone, the output squared integral is approximately 0.126177. The tail contributes approximately 0.373823. Their sum is 0.5. The identity uses the entire response, not a claim that input and output squared amplitudes match at every instant. The transient state accounts for their intermediate difference.
Retain the causal boundary
Formally inverting H gives (a+s)/(a-s), whose causal realization has a pole at +a. Thus unit magnitude of the original stable filter does not supply a stable causal inverse of this form. Phase structure and zero locations remain consequential even when a gain plot is flat.
The useful model record includes the pole, zero, sign convention, initial state, phase curve, delay definition, and observation window. Together they explain how unchanged sinusoidal magnitudes coexist with a changed waveform, a reversed initial step, and energy that continues arriving after a finite input has ended.
Doubling a while retaining the same dimensionless frequency ω/a preserves the phase and magnitude but halves every delay expressed in seconds. At a=8 and ω=8, for example, the phase remains -π/2 while group delay is 1/a=0.125 seconds. This is a time-scale change, rather than an improvement in magnitude transmission. Reporting the parameter and frequency units together prevents two equal-looking phase plots from being mistaken for equal timing behavior.
Sources checked October 24, 2026:
https://www.dsprelated.com/freebooks/filters/Analog_Allpass_Filters.html
https://www.dsprelated.com/freebooks/filters/Phase_Group_Delay.html
Concept illustration: A wired fixture on a metal worktable beside a waveform display provides robotics context for this analytical model. The image does not depict the article's numerical example, a verified experiment, a product specification, or deployment evidence.