# Sine and cosine transforms

In mathematics, the Fourier sine and cosine transforms are forms of the Fourier integral transform that do not use complex numbers. They are the forms originally used by Joseph Fourier and are still preferred in some applications, such as signal processing or statistics.[1]

## Definition

The Fourier sine transform of f (t), sometimes denoted by either ${\displaystyle {\hat {f}}^{s}}$ or ${\displaystyle {\mathcal {F}}_{s}(f)}$, is

${\displaystyle \int _{-\infty }^{\infty }f(t)\sin(2\pi \nu t)\,dt.}$

If t means time, then ν is frequency in cycles per unit time, but in the abstract, they can be any pair of variables which are dual to each other.

This transform is necessarily an odd function of frequency, i.e. for all ν:

${\displaystyle {\hat {f}}^{s}(-\nu )=-{\hat {f}}^{s}(\nu ).}$

The numerical factors in the Fourier transforms are defined uniquely only by their product. Here, in order that the Fourier inversion formula not have any numerical factor, the factor of 2 appears because the sine function has L2 norm of ${\displaystyle {\tfrac {1}{\sqrt {2}}}.}$

The Fourier cosine transform of f (t), sometimes denoted by either ${\displaystyle {\hat {f}}^{c}}$ or ${\displaystyle {\mathcal {F}}_{c}(f)}$, is

${\displaystyle \int _{-\infty }^{\infty }f(t)\cos(2\pi \nu t)\,dt.}$

It is necessarily an even function of frequency, i.e. for all ν:

${\displaystyle {\hat {f}}^{c}(\nu )={\hat {f}}^{c}(-\nu ).}$

Some authors[2] only define the cosine transform for even functions of t, in which case its sine transform is zero. Since cosine is also even, a simpler formula can be used,

${\displaystyle 2\int _{0}^{\infty }f(t)\cos(2\pi \nu t)\,dt.}$

Similarly, if f is an odd function, then the cosine transform is zero and the sine transform can be simplified to

${\displaystyle 2\int _{0}^{\infty }f(t)\sin(2\pi \nu t)\,dt.}$

Other authors also define the cosine transform as[3]

${\displaystyle {\sqrt {\frac {2}{\pi }}}\int _{0}^{\infty }f(t)\cos(2\pi \nu t)\,dt.}$

and sine as

${\displaystyle {\sqrt {\frac {2}{\pi }}}\int _{0}^{\infty }f(t)\sin(2\pi \nu t)\,dt.}$

## Fourier inversion

The original function f can be recovered from its transform under the usual hypotheses, that f and both of its transforms should be absolutely integrable. For more details on the different hypotheses, see Fourier inversion theorem.

The inversion formula is[4]

${\displaystyle f(t)=\int _{0}^{\infty }{\hat {f}}^{c}(\nu )\cos(2\pi \nu t)d\nu +\int _{0}^{\infty }{\hat {f}}^{s}(\nu )\sin(2\pi \nu t)d\nu ,}$

which has the advantage that all frequencies are positive and all quantities are real. If the numerical factor 2 is left out of the definitions of the transforms, then the inversion formula is usually written as an integral over both negative and positive frequencies.

Using the addition formula for cosine, this is sometimes rewritten as

${\displaystyle {\tfrac {\pi }{2}}\left(f(x+0)+f(x-0)\right)=\int _{0}^{\infty }\int _{-\infty }^{\infty }f(t)\cos(\omega (t-x))dtd\omega ,}$

where f (x + 0) denotes the one-sided limit of f as x approaches zero from above, and f (x − 0) denotes the one-sided limit of f as x approaches zero from below.

If the original function f is an even function, then the sine transform is zero; if f is an odd function, then the cosine transform is zero. In either case, the inversion formula simplifies.

## Relation with complex exponentials

The form of the Fourier transform used more often today is

{\displaystyle {\begin{aligned}{\hat {f}}(\nu )&=\int _{-\infty }^{\infty }f(t)e^{-2\pi i\nu t}\,dt\\&=\int _{-\infty }^{\infty }f(t)(\cos(2\pi \nu t)-i\,\sin(2\pi \nu t))\,dt&&{\text{Euler's Formula}}\\&=\left(\int _{-\infty }^{\infty }f(t)\cos(2\pi \nu t)\,dt\right)-i\left(\int _{-\infty }^{\infty }f(t)\sin(2\pi \nu t)\,dt\right)\\&={\hat {f}}^{c}(\nu )-i{\hat {f}}^{s}(\nu )\end{aligned}}}