Estimate an oscillatory integral before choosing a grid
Consider \(I(\omega)=\int_a^b f(x)e^{i\omega x}dx\) with smooth envelope \(f\) and known constant phase slope. The complex result contains cosine and sine transforms as real and imaginary parts. Direct quadrature can work if the grid resolves both envelope and oscillation. But a uniform grid with spacing \(h=2\pi/\omega\) samples the same complex phase at every point and can report a large entirely spurious response. A calculation accurate for the slow envelope alone need not be accurate for its product with the carrier. The explicit oscillating factor contains information we can integrate analytically rather than sampling it repeatedly.
Integration by parts gives
For bounded derivatives the integral is typically \(O(1/\omega)\) at high frequency, and endpoint cancellations or endpoint vanishing can improve the decay. A result as large as \(\int |f|dx\) at a very high frequency is therefore suspicious unless the phase has a stationary point, rapid structure exists in the envelope or a special physical resonance changes the setup. Absolute error is a better validation measure near an exact transform zero than relative error, which divides by a possibly vanishing number.
Derive a two-node Filon panel about its midpoint
On a panel \(x=c+s,\ -h\le s\le h\), approximate the envelope by \(A+Bs\) through its endpoints, with \(A=[f(c+h)+f(c-h)]/2\) and \(B=[f(c+h)-f(c-h)]/(2h)\). Retain the carrier exactly. Define \(z=\omega h\). Its zeroth moment is
Differentiating with respect to \(\omega\) gives \(\partial_\omega M_0=i M_1\), so
\(M_0\) is real and even in frequency and \(M_1\) imaginary and odd, as symmetry requires. The rule is exact for every linear envelope at every frequency, regardless of the number of oscillations in the panel. At \(\omega=0\) it returns the trapezoidal integral of the linear interpolant. Directly subtracting \(\sin z-z\cos z\) for tiny \(z\) loses precision. Instead use its series \(z^3/3-z^5/30+\cdots\), and evaluate \(\sin z/z\) by a stable sinc routine or a short series near zero.
For \(f(x)=1+x,\ x\in[0,1]\) and \(\omega=20\pi\), the constant contribution vanishes over ten cycles. Integration by parts on \(x\) gives
One linear Filon panel gives the exact \(-0.0159155i\). A composite trapezoid with ten subintervals samples \(e^{i\omega x}=1\) at every node, returning 1.5 real. Both methods evaluated the same envelope but represented the carrier quite differently. Refining blindly by factors that preserve a frequency coincidence can produce misleading error estimates on the first few grids.
Separate envelope approximation from phase modelling
Since the carrier has magnitude one for real phase, \(|I-Q|\le\int|f-p|dx\). A piecewise-linear interpolation error bound on a panel of width \(H\) is \(\max|f''|H^2/8\), giving a global absolute bound \((b-a)\max|f''|H^2/8\) independent of \(\omega\). Oscillatory cancellation can make the actual error much smaller, but this bound already identifies a sensible grid criterion based on envelope curvature. Higher-order Filon methods integrate more polynomial moments or use derivatives at endpoints. Stable moment recurrences and consistent treatment near \(\omega=0\) matter as much as theoretical order.
For a nonlinear phase \(e^{i\omega g(x)}\), changing variable to \(u=g(x)\) can reduce to a linear phase on a monotone interval, with transformed envelope \(f(x(u))/g'(x(u))\). At a stationary point \(g'=0\) this substitution becomes singular. In that case oscillations slow locally and the contribution can decay as \(\omega^{-1/2}\) for a simple quadratic stationary point, often larger than endpoint terms. Splitting the domain and using a local quadratic-phase or stationary-phase treatment is more informative than declaring the original linear-phase rule universally efficient. Identify the physical phase law before attributing a numerical discrepancy to envelope smoothness.
Make a fast carrier invisible to the sampling grid
The envelope is exp(x) on the unit interval. Keep six integration panels and select six carrier cycles. Every direct trapezoidal sample sees a cosine of one. Over each full cycle both a constant and a linear envelope have zero cosine integral here. Why does the curved exponential still give 0.0012082? Change to seven panels at the same frequency and compare absolute errors. Finally set the frequency to zero: both methods integrate the same piecewise-linear envelope, so their common value can still differ from the exact integral.
Tutorial · check the carrier convention and asymptotic scale
Integrate a symmetric odd envelope
For \(f(x)=x\) on \([-1,1]\) and \(\omega=\pi\), compute \(I\) from the first moment. Which part vanishes?
Work through the solution
Use \(h=1,c=0,A=0,B=1\). Since \(\sin\pi=0,\cos\pi=-1\), \(I=2i/\pi\). The cosine part vanishes by parity and \(x\sin(\pi x)\) is nonnegative on both sides, confirming the positive imaginary sign. Using a Fourier convention \(e^{-i\omega x}\) instead would conjugate the result. A test on this odd envelope detects a sign error that any even real envelope would miss.
Give a sufficient interpolation-based error budget
On a unit interval a calibrated envelope obeys \(|f''|\le6\). How many equal panels suffice for absolute error \(10^{-4}\) using the elementary bound? Does doubling frequency change the stated count?
Work through the solution
The bound is \(6/(8N^2)\). Requiring it at most \(10^{-4}\) gives \(N\ge\sqrt{7500}\), so 87 panels suffice. The bound makes no frequency assumption beyond a known real linear phase and does not require more panels merely because frequency doubles. Floating-point phase reduction for extremely large arguments and uncertainty in the physical frequency are separate sources of error not included in the envelope bound.
Estimate sensitivity to a miscalibrated frequency
Show that a frequency error \(\delta\omega\) can perturb the integral by at most \(|\delta\omega|\int|x f(x)|dx\). Evaluate for the previous \(f=1+x\) on \([0,1]\) and \(|\delta\omega|=0.01\).
Work through the solution
Differentiate under the integral to obtain \(I'(\omega)=i\int x f(x)e^{i\omega x}dx\), then bound its norm and integrate over the frequency error. Here \(\int_0^1x(1+x)dx=5/6\), giving an absolute perturbation at most 0.00833. Relative to the small exact response at \(20\pi\), this can be substantial. An exactly integrated carrier on the wrong frequency is therefore not a high-accuracy physical prediction merely because the quadrature test is exact.