### Fourier cosine transform

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.

## Definition

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

$2 \int\limits_\left\{-\infty\right\}^\infty f\left(t\right)\sin\,\left\{2\pi \nu t\right\} \,dt.$

If $t$ means time, then $\nu$ 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.,

$\left\{\hat f\right\}^s\left(\nu\right) = - \left\{\hat f\right\}^s\left(-\nu\right)$ for all $\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 $L^2$ norm of $\frac 1 \left\{\sqrt2\right\}$.

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

$2 \int\limits_\left\{-\infty\right\}^\infty f\left(t\right)\cos\,\left\{2\pi \nu t\right\} \,dt.$

It is necessarily an even function of $\nu$, i.e., $\left\{\hat f\right\}^s\left(\nu\right) = \left\{\hat f\right\}^s\left(-\nu\right)$ for all $\nu$.

Some authors[1] 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, $4 \int\limits_0^\infty f\left(t\right)\cos\,\left\{2\pi \nu t\right\} \,dt.$ Similarly, if $f$ is an odd function, then the cosine transform is zero and the sine transform can be simplified to $4 \int\limits_0^\infty f\left(t\right)\sin\,\left\{2\pi \nu t\right\} \,dt.$

## Fourier inversion

The original function $f\left(t\right)$ can be recovered from its transforms 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[2]

$f\left(t\right) = \int _0^\infty \left\{\hat f\right\}^c \cos \left(2\pi \nu t\right) d\nu + \int _0^\infty \left\{\hat f\right\}^s \sin \left(2\pi \nu t\right) 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

$\frac\pi2 \left(f\left(x+0\right)+f\left(x-0\right)\right) = \int _0^\infty \int_\left\{-\infty\right\}^\infty \cos \omega \left(t-x\right) f\left(t\right) dt d\omega,$

where $f\left(x+0\right)$ denotes the one-sided limit of $f$ as $x$ approaches zero from above, and $f\left(x-0\right)$ 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


\hat f(\nu)
= \int\limits_{-\infty}^\infty f(t) e^{-2\pi i\nu t}\,dt.


Expanding the integrand by means of Euler's formula results in

$= \int\limits_\left\{-\infty\right\}^\infty f\left(t\right)\left(\cos\,\left\{2\pi\nu t\right\} - i\,\sin\left\{2\pi\nu t\right\}\right)\,dt,$

which may be written as the sum of two integrals

$= \int\limits_\left\{-\infty\right\}^\infty f\left(t\right)\cos\,\left\{2\pi \nu t\right\} \,dt - i \int\limits_\left\{-\infty\right\}^\infty f\left(t\right)\sin\,\left\{2\pi \nu t\right\}\,dt,$
$= \frac 12 \left\{\hat f\right\}^c \left(\nu\right) - \frac i2 \left\{\hat f\right\}^s \left(\nu\right).$