
156 5 Integral Transforms
To illustrate the use of the convolution theorem with adjustable phase shifts, consider
an underdamped harmonic oscillator with Green function Gt and driving force Ft, such
that the net displacement is given by
xt
Gt ΤFΤ Τ ˜x
˜
f ˜g (5.180)
We have already derived the Green function using the continuous Fourier transform and
found
Γ < Ω
0
Gt ΤΩ
1
R
ExpΓt ΤSinΩ
R
t Τ<t Τ,
Ω
R
Ω
2
0
Γ
2
(5.181)
Even if we know the continuous functions f t and gt, the convolution integral is usually
too difficult to perform symbolically and we need to use numerical methods. Often we do
not know the underlying functions and have only measurements made at discrete times. In
either case, let f
j
sample the force and g
j
sample the Green function. For computational
reasons we shift g
j
within the working array using zero padding on the left side, as shown
in Fig. 5.9. Suppose that the driving force is a pulse with both positive and negative lobes
centered upon t 0. This time scale is also inconvenient for numerical computation, so
we shift the sampled function into the working array. However, suppose that we were not
too clever in our choice of shift and happened to place f somewhat too far to the right, as
shown in Fig. 5.9. We then evaluate the displacement using the bare convolution theorem
without compensatory phase shifts. The bulk of the resulting function is then rather far to
the right of center and there appears to be a significant response for very early times before
the driving force even becomes active. Does the model violate causality? No, this behavior
is simply an artifact of the periodicity of the discrete Fourier transform and our injudicious
sampling choices. After all, the Green function really vanishes for negative times. By
placing it in the middle of the working array, the result of convolution is artificially shifted
to the right. With a force that is also shifted to the right, the response goes past the end
of the array and reappears, by periodicity, at the beginning. We might try placing g closer
to the left edge of the array, but that could cause other unwanted wrap-around effects for
functions that do not feature a sharp left edge.
The solution to these numerical problems is to multiply
˜
f
k
˜g
k
by a phase Exp2Πk
1S
g
/T before computing the inverse Fourier transform of ˜x. This phase compensates for
the offset of g
j
and aligns the response with the driving force, as shown in Fig. 5.10. With
a larger shift, we could also compensate for the poor placement of f , but we must not
use a shift so large that it wraps around the left side and back onto the right. Because the
indexing of sampled functions is merely a computational issue, we are free to adjust it in
any manner that ensures numerical accuracy and convenience.
5.5.3 Temporal Correlation
Suppose that two functions, f t and gt, are qualitatively similar to each other, except that
there is a time shift between them. If we had graphs of those functions we could estimate