2.8 KB · commit a9602da
We consider, in this section, the problem of computing integrals which involve oscillatory functions, i.e., integrals of the form
Ic=∫abf(x)cosωxdx(6.89)
and
Is=∫abf(x)sinωxdx(6.90)
Such integrals, called the Fourier integrals, occur in practical applications, e.g. spectral analysis. Einarsson [1972] described three methods for the numerical integration of these integrals, namely, the trapezoidal method, Filon's formula [1928] and cubic spline method. Since the derivations of Filon's formula and the cubic spline solution are quite involved, we omit them here but refer the reader to Einarsson's paper. In this section, we consider the evaluation of
I=∫0∞e−xcosωxdx=1+ω21(6.91)
by the trapezoidal rule. Using this rule, we obtain
I=2h[1+2(e−hcosωh+e−2hcos2ωh+e−3hcos3ωh+…)]=2h+hn=1∑∞e−nhcosωnh=2h+hn=1∑∞e−nhRe(eiωnh)=h[21+Ren=1∑∞e(iω−1)nh] =h[21+Re{1−e(−1+iω)he(−1+iω)h}]=h[21+Re{eh−eiωheiωh}]=2h⋅1+e2h−2ehcosωhe2h−1,on simplification(6.92)The right side of Eq. (6.92) can be further simplified by using hyperbolic functions.
With h=0.1 and ω=1, formula (6.92) gives
I=∫0∞e−xcosxdx=20.1⋅1+e0.2−2e0.1cos(0.1)e0.2−1[1+ω21=101=0.1,ω=3]=20.1⋅2.221402758−2.1992993340.221402758=0.500833622,so that the absolute error in the above result is 0.000833622. Table 6.2 gives the values of the integral given in Eq. (6.91) for different values of ω and h=0.1. For comparison, exact values of the integral are also tabulated.
Table 6.2 Values of the Integral (6.91)
| ω | Exact value | Value obtained by using (6.92) |
|---|---|---|
| 1.0 | 0.500 000 000 | 0.500 833 622 |
| 3.0 | 0.100 000 000 | 0.100 836 955 |
| 6.0 | 0.027 027 027 | 0.027 875 426 |
| 9.0 | 0.012 195 121 | 0.013 063 154 |
| 12.0 | 0.006 896 552 | 0.007 793 302 |
| 20.0 | 0.002 493 766 | 0.003 524 142 |