In mathematics, the Fourier sine and cosine transforms are integral equations that decompose arbitrary functions into a sum of sine waves representing the odd component of the function plus cosine waves representing the even component of the function. The modern Fourier transform concisely contains both the sine and cosine transforms. Since the sine and cosine transforms use sine and cosine waves instead of complex exponentials and don't require complex numbers or negative frequency, they more closely correspond to Joseph Fourier's original transform equations and are still preferred in some signal processing and statistics applications and may be better suited as an introduction to Fourier analysis.
Definition
editThe Fourier sine transform of is:[note 1]
If means time, then is frequency in cycles per unit time,[note 2] but in the abstract, they can be any dual pair of variables (e.g. position and spatial frequency).
The sine transform is necessarily an odd function of frequency, i.e. for all :
The Fourier cosine transform of is:[note 3]
The cosine transform is necessarily an even function of frequency, i.e. for all :
Odd and even simplification
editThe multiplication rules for even and odd functions shown in the overbraces in the following equations dramatically simplify the integrands when transforming even and odd functions. Some authors[1] even only define the cosine transform for even functions . Since cosine is an even function and because the integral of an even function from to is twice its integral from to , the cosine transform of any even function can be simplified to avoid negative :
And because the integral from to of any odd function from is zero, the cosine transform of any odd function is simply zero:
Similarly, because sin is odd, the sine transform of any odd function also simplifies to avoid negative :
and the sine transform of any even function is simply zero:
The sine transform represents the odd part of a function, while the cosine transform represents the even part of a function.
Other conventions
editJust like the Fourier transform takes the form of different equations with different constant factors (see Fourier transform § Unitarity and definition for square integrable functions for discussion), other authors also define the cosine transform as[2] and the sine transform as Another convention defines the cosine transform as[3] and the sine transform as using as the transformation variable. And while is typically used to represent the time domain, is often instead used to represent a spatial domain when transforming to spatial frequencies.
Fourier inversion
editThe original function can be recovered from its sine and cosine transforms under the usual hypotheses[note 4] using the inversion formula:[4]
Simplifications
editNote that since both integrands are even functions of , the concept of negative frequency can be avoided by doubling the result of integrating over non-negative frequencies:
Also, if is an odd function, then the cosine transform is zero, so its inversion simplifies to:
Likewise, if the original function is an even function, then the sine transform is zero, so its inversion also simplifies to:
Remarkably, these last two simplified inversion formulas look identical to the original sine and cosine transforms, respectively, though with swapped with (and with swapped with or ). A consequence of this symmetry is that their inversion and transform processes still work when the two functions are swapped. Two such functions are called transform pairs.[note 5]
Overview of inversion proof
editUsing the addition formula for cosine, the full inversion formula can also be rewritten as Fourier's integral formula:[5][6] This theorem is often stated under different hypotheses, that is integrable, and is of bounded variation on an open interval containing the point , in which case
This latter form is a useful intermediate step in proving the inverse formulae for the since and cosine transforms. One method of deriving it, due to Cauchy is to insert a into the integral, where is fixed. Then Now when , the integrand tends to zero except at , so that formally the above is
Relation with complex exponentials
editThe complex exponential form of the Fourier transform used more often today is[7] where is the square root of negative one. By applying Euler's formula it can be shown (for real-valued functions) that the Fourier transform's real component is the cosine transform (representing the even component of the original function) and the Fourier transform's imaginary component is the negative of the sine transform (representing the odd component of the original function):[8] Because of this relationship, the cosine transform of functions whose Fourier transform is known (e.g. in Fourier transform § Tables of important Fourier transforms) can be simply found by taking the real part of the Fourier transform: while the sine transform is simply the negative of the imaginary part of the Fourier transform:
Pros and cons
editAn advantage of the modern Fourier transform is that while the sine and cosine transforms together are required to extract the phase information of a frequency, the modern Fourier transform instead compactly packs both phase and amplitude information inside its complex valued result. But a disadvantage is its requirement on understanding complex numbers, complex exponentials, and negative frequency.
The sine and cosine transforms meanwhile have the advantage that all quantities are real. Since positive frequencies can fully express them, the non-trivial concept of negative frequency needed in the regular Fourier transform can be avoided. They may also be convenient when the original function is already even or odd or can be made even or odd, in which case only the cosine or the sine transform respectively is needed. For instance, even though an input may not be even or odd, a discrete cosine transform may start by assuming an even extension of its input while a discrete sine transform may start by assuming an odd extension of its input, to avoid having to compute the entire discrete Fourier transform.
Numerical evaluation
editUsing standard methods of numerical evaluation for Fourier integrals, such as Gaussian or tanh-sinh quadrature, is likely to lead to completely incorrect results, as the quadrature sum is (for most integrands of interest) highly ill-conditioned. Special numerical methods which exploit the structure of the oscillation are required, an example of which is Ooura's method for Fourier integrals[9] This method attempts to evaluate the integrand at locations which asymptotically approach the zeros of the oscillation (either the sine or cosine), quickly reducing the magnitude of positive and negative terms which are summed.
See also
editNotes
edit- ^ The sine transform is sometimes denoted with instead of .
- ^ While this article uses ordinary frequency for in cycles per unit time, which typically uses the Hertz and the second as units, these transforms are sometimes expressed using angular frequency in angular units (e.g. radians) per unit time, where radians per second equals .
- ^ The cosine transform is sometimes denoted with instead of .
- ^ The usual hypotheses are that and both of its transforms should be absolutely integrable. For more details on the different hypotheses, see Fourier inversion theorem.
- ^ The more general modern Fourier transform has this symmetry even when the original functions aren't even or odd. A notation to denote Fourier transform pairs is
References
edit- Whittaker, Edmund, and James Watson, A Course in Modern Analysis, Fourth Edition, Cambridge Univ. Press, 1927, pp. 189, 211
- ^ Mary L. Boas, Mathematical Methods in the Physical Sciences, 2nd Ed, John Wiley & Sons Inc, 1983. ISBN 0-471-04409-1
- ^ Nyack, Cuthbert (1996). "Fourier Transform, Cosine and Sine Transforms". cnyack.homestead.com. Archived from the original on 2023-06-07. Retrieved 2018-10-08.
- ^ Coleman, Matthew P. (2013). An Introduction to Partial Differential Equations with MATLAB (Second ed.). Boca Raton. p. 221. ISBN 978-1-4398-9846-8. OCLC 822959644.
{{cite book}}
: CS1 maint: location missing publisher (link) - ^ Poincaré, Henri (1895). Theorie analytique de la propagation de la chaleur. Paris: G. Carré. pp. 108ff.
- ^ Edwin Titchmarsh (1948), Introduction to the theory of the Fourier integral, Oxford at the Clarendon Press, p. 1
- ^ Whittaker, Edmund Taylor; Watson, George Neville (1927-01-02). A Course Of Modern Analysis: An Introduction to the General Theory of Infinite Processes and of Analytic Functions; with an Account of the Principal Transcendental Functions (4th ed.). Cambridge, UK: Cambridge University Press. p. 189. ISBN 0-521-06794-4. ISBN 978-0-521-06794-2.
- ^ Valentinuzzi, Max E. (2016-01-25). "Highlights in the History of the Fourier Transform". IEEE Pulse. Archived from the original on 2024-05-15. Retrieved 2024-09-09.
- ^ Williams, Lance R. (2011-09-06). "Even and odd functions" (PDF). www.cs.unm.edu/~williams/. Archived (PDF) from the original on 2024-05-02. Retrieved 2024-09-11.
- ^ Takuya Ooura, Masatake Mori, A robust double exponential formula for Fourier-type integrals, Journal of computational and applied mathematics 112.1-2 (1999): 229-241.