I have this wavepacket, which is defined over an interval $[a,b], \ a,b\in \mathbb{R}$. Suppose the wavepacket is complex trigonometric and analytic, then how can I find, using any formula or transform, the envelope function which is shown in red on the image below?
That envelope function would be actually two functions, as you can see the red dotted line is defined by two continuous functions $x_1(t)$ and $x_2(t)$ which is a continuous extension of the disjoint countable sets of suprema of the range of the wavefunction.
How are these two functions found? Thanks




