WOLFRAM

FourierCosTransform[expr,t,ω]

gives the symbolic Fourier cosine transform of expr.

FourierCosTransform[expr,{t1,t2,},{ω1,ω2,}]

gives the multidimensional Fourier cosine transform of expr.

Details and Options

  • The Fourier cosine transform is a particular way of viewing the Fourier transform without the need for complex numbers or negative frequencies.
  • Joseph Fourier designed his famous transform using this and the Fourier sine transform, and they are still used in applications like signal processing, statistics and image and video compression.
  • The Fourier cosine transform of the time domain function is the frequency domain function for :
  • The Fourier cosine transform of a function is by default defined to be .
  • The multidimensional Fourier cosine transform of a function is by default defined to be or when using vector notation, (2/pi)^(n/2)int_(t in TemplateBox[{}, PositiveReals]^n) f(t) cos(omega t)dt.
  • Different choices of definitions can be specified using the option FourierParameters.
  • The integral is computed using numerical methods if the third argument, , is given a numerical value.
  • The asymptotic Fourier cosine transform can be computed using Asymptotic.
  • There are several related Fourier transformations:
  • FourierTransforminfinite continuous-time functions (FT)
    FourierSequenceTransforminfinite discrete-time functions (DTFT)
    FourierCoefficientfinite continuous-time functions (FS)
    Fourierfinite discrete-time functions (DFT)
  • The Fourier cosine transform is an automorphism in the Schwartz vector space of functions whose derivatives are rapidly decreasing and thus induces an automorphism in its dual: the space of tempered distributions. These include absolutely integrable functions, well-behaved functions of polynomial growth and compactly supported distributions.
  • Hence, FourierCosTransform not only works with absolutely integrable functions on , but it can also handle a variety of tempered distributions such as DiracDelta to enlarge the pool of functions or generalized functions it can effectively transform.
  • The lower limit of the integral is effectively taken to be TemplateBox[{0, -}, Superscript], so that the Fourier cosine transform of the Dirac delta function is equal to . »
  • The following options can be given:
  • AccuracyGoal Automaticdigits of absolute accuracy sought
    Assumptions $Assumptionsassumptions to make about parameters
    FourierParameters {0,1}parameters to define the Fourier cosine transform
    GenerateConditions Falsewhether to generate answers that involve conditions on parameters
    PerformanceGoal$PerformanceGoalaspects of performance to optimize
    PrecisionGoal Automaticdigits of precision sought
    WorkingPrecision Automaticthe precision used in internal computations
  • Common settings for FourierParameters include:
  • {0,1}
    {1,1}
    {-1,1}
    {0,2Pi}
    {a,b}

Examples

open allclose all

Basic Examples  (6)Summary of the most common use cases

Compute the Fourier cosine transform of a function:

Out[1]=1

Plot the function and its Fourier cosine transform:

Out[2]=2

Fourier cosine transform of reciprocal square root:

Out[1]=1

For a different convention, change the parameters:

Out[1]=1

Fourier cosine transform of a Gaussian is another Gaussian:

Out[1]=1

Plot both Gaussians:

Out[2]=2

Compute the Fourier cosine transform of a multivariate function:

Out[1]=1

Plot the result:

Out[2]=2

Compute the transform at a single point:

Out[1]=1

Scope  (39)Survey of the scope of standard use cases

Basic Uses  (3)

Fourier cosine transform of a function for a symbolic parameter :

Out[1]=1

Fourier cosine transforms involving trigonometric functions:

Out[1]=1

Plot the transform:

Out[2]=2
Out[3]=3

Plot the transform for :

Out[4]=4

Evaluate the Fourier cosine transform for a numerical value of the parameter :

Out[1]=1

Algebraic Functions  (4)

Fourier cosine transform of power functions:

Out[1]=1

Cosine transform for rational functions:

Out[1]=1

Plot the transform:

Out[2]=2
Out[3]=3

Plot the transform:

Out[4]=4

Fourier cosine transform of a quotient of two nonlinear polynomials:

Out[1]=1

Plot the transform:

Out[2]=2

Fourier cosine transform of a quotient of quadratic and quartic polynomials:

Out[1]=1

Plot the transform:

Out[2]=2

Exponential and Logarithmic Functions  (3)

Fourier cosine transform of an exponential function:

Out[1]=1

Transform for :

Out[2]=2

Plot the transform:

Out[3]=3

Fourier cosine transforms of products of exponential and trigonometric functions:

Out[1]=1

Plot the transform for and :

Out[2]=2
Out[3]=3

Plot the transform:

Out[4]=4

Cosine transforms of logarithmic functions:

Out[1]=1

Plot the transform:

Out[2]=2
Out[3]=3

Plot the transform:

Out[4]=4
Out[5]=5

Plot the transform:

Out[6]=6
Out[7]=7

Plot the transform:

Out[8]=8

Trigonometric Functions  (5)

Expressions involving trigonometric functions:

Out[1]=1

Plot the transform:

Out[2]=2

Composition of elementary functions:

Out[1]=1

Plot the transform for :

Out[2]=2

Ratio of sine and product of exponential and linear functions:

Out[1]=1

Plot the transform:

Out[2]=2

Fourier cosine transform of arctangent functions:

Out[1]=1

Plot the transform:

Out[2]=2
Out[3]=3

Plot the transform:

Out[4]=4

Fourier cosine transform of Sech is another Sech:

Out[1]=1

Plot the transform:

Out[2]=2

Special Functions  (7)

Sinc function:

Out[1]=1

Plot the transform:

Out[2]=2

Fourier cosine transforms of expressions involving ExpIntegralEi:

Out[1]=1

Plot the transform:

Out[2]=2

Expression involving Erfc:

Out[1]=1

Plot the transform for :

Out[2]=2

Expression involving SinIntegral:

Out[1]=1

Plot the transform:

Out[2]=2

CosIntegral:

Out[1]=1

Plot the transform:

Out[2]=2

Cosine transforms for BesselJ functions:

Out[1]=1

Plot the transform for :

Out[2]=2
Out[3]=3

Plot the transform for and :

Out[4]=4
Out[5]=5

Plot the transform for and :

Out[6]=6
Out[7]=7

Plot the transform:

Out[8]=8

Cosine transforms for BesselY functions:

Out[1]=1

Plot the transform for :

Out[2]=2
Out[3]=3

Plot the transform for and :

Out[4]=4

Piecewise Functions and Distributions  (4)

Fourier cosine transform of a piecewise function:

Out[2]=2
Out[3]=3

Restriction of a sine function to a half-period:

Out[1]=1
Out[2]=2

Triangular function:

Out[1]=1
Out[2]=2

Transforms in terms of FresnelC:

Out[1]=1

Plot the transform:

Out[2]=2
Out[3]=3

Plot the transform:

Out[4]=4

Periodic Functions  (2)

Fourier cosine transform of cosine:

Out[1]=1

Fourier cosine transform of SquareWave:

Out[1]=1
Out[2]=2

Generalized Functions  (4)

Fourier cosine transforms of expressions involving HeavisideTheta:

Out[1]=1
Out[2]=2
Out[3]=3
Out[4]=4

Fourier cosine transforms involving DiracDelta:

Out[1]=1

Plot the transform:

Out[2]=2
Out[3]=3

Plot the transform:

Out[4]=4
Out[5]=5

Plot the transform:

Out[6]=6

Fourier cosine transform involving HeavisideLambda:

Out[1]=1
Out[2]=2

Fourier cosine transform involving HeavisidePi:

Out[1]=1
Out[2]=2

Multivariate Functions  (2)

Fourier cosine transforms of exponentials in two variables:

Out[1]=1

Plot of both:

Out[2]=2
Out[3]=3

Plot of both:

Out[4]=4

Fourier cosine transform of product of exponential and SquareWave:

Out[1]=1
Out[2]=2

Formal Properties  (3)

Fourier cosine transform of a first-order derivative:

Out[1]=1

Fourier cosine transform of a second-order derivative:

Out[1]=1

Fourier cosine transform threads itself over equations:

Out[1]=1

Numerical Evaluation  (2)

Calculate the Fourier cosine transform at a single point:

Out[1]=1

Alternatively, calculate the Fourier cosine transform symbolically:

Out[1]=1

Then evaluate it for specific value of :

Out[2]=2

Options  (8)Common values & functionality for each option

AccuracyGoal  (1)

The option AccuracyGoal sets the number of digits of accuracy:

Out[1]=1
Out[2]=2

With default settings:

Out[3]=3

Assumptions  (1)

Fourier cosine transform of BesselJ is a piecewise function:

Out[1]=1
Out[2]=2

FourierParameters  (3)

Fourier cosine transform for the unit box function with different parameters:

Use a nondefault setting for a different definition of transform:

Out[1]=1

To get the inverse, use the same FourierParameters setting:

Out[2]=2

Set up your particular global choice of parameters once per session:

Out[1]=1

Restore defaults:

Out[3]=3

GenerateConditions  (1)

Use GenerateConditionsTrue to get parameter conditions for when a result is valid:

Out[1]=1

PrecisionGoal  (1)

The option PrecisionGoal sets the relative tolerance in the integration:

Out[1]=1
Out[4]=4

With default settings:

Out[3]=3

WorkingPrecision  (1)

If a WorkingPrecision is specified, the computation is done at that working precision:

Out[1]=1
Out[2]=2

With default settings:

Out[3]=3

Applications  (4)Sample problems that can be solved with this function

Ordinary Differential Equations  (1)

Consider the following ODE with initial condition :

Out[1]=1

Apply the Fourier cosine transform to the ODE:

Out[2]=2

Solve for the Fourier cosine transform of :

Out[3]=3

Find the inverse Fourier cosine transform with and :

Out[4]=4

Compare with DSolveValue:

Out[5]=5

Partial Differential Equations  (1)

Solve the heat equation for , : with initial condition for and Neumann boundary condition for .

Apply the Fourier cosine transform to the ODE on :

Out[2]=2

With and , solve this ODE:

Out[3]=3

Compute the inverse cosine transform of the exponential functions:

The convolution property gives the inverse cosine transform of the first summand to get the solution:

Out[6]=6

Consider the special case with , and :

Out[7]=7

Compare with DSolveValue:

Out[8]=8

Plot the initial conditions and solutions for different values of .

Out[9]=9

Evaluation of Integrals  (2)

Calculate the following definite integral:

Out[1]=1

Fourier cosine transform preserves integration of products over :

Out[2]=2

Solve the definite integral:

Out[3]=3

Compare with Integrate:

Out[4]=4

Calculate the following definite integral for :

Out[1]=1

Compute Fourier cosine transform of an exponential function:

Out[2]=2

Apply Parseval's identity:

Out[3]=3

Or equivalently:

Out[4]=4

Solve for the definite integral:

Out[5]=5

Compare with Integrate:

Out[6]=6

Properties & Relations  (4)Properties of the function, and connections to other functions

By default, the Fourier cosine transform of is:

For , the definite integral becomes:

Out[2]=2

Compare with FourierCosTransform:

Out[3]=3

Use Asymptotic to compute an asymptotic approximation:

Out[1]=1

FourierCosTransform and InverseFourierCosTransform are mutual inverses:

Out[1]=1
Out[2]=2
Out[3]=3
Out[4]=4

Results from FourierCosTransform and FourierTransform agree for even functions:

Out[1]=1
Out[2]=2

The results agree for :

Out[3]=3

Possible Issues  (1)Common pitfalls and unexpected behavior

The result from an inverse Fourier cosine transform may not have the same form as the original:

Out[1]=1
Out[2]=2

Fourier cosine transform may be given in terms of generalized functions such as DiracDelta:

Out[3]=3

Neat Examples  (2)Surprising or curious use cases

Fourier cosine transform as a Meijer function:

Out[1]=1

Create a table of basic Fourier cosine transforms:

Wolfram Research (1999), FourierCosTransform, Wolfram Language function, https://reference.wolfram.com/language/ref/FourierCosTransform.html (updated 2025).
Wolfram Research (1999), FourierCosTransform, Wolfram Language function, https://reference.wolfram.com/language/ref/FourierCosTransform.html (updated 2025).

Text

Wolfram Research (1999), FourierCosTransform, Wolfram Language function, https://reference.wolfram.com/language/ref/FourierCosTransform.html (updated 2025).

Wolfram Research (1999), FourierCosTransform, Wolfram Language function, https://reference.wolfram.com/language/ref/FourierCosTransform.html (updated 2025).

CMS

Wolfram Language. 1999. "FourierCosTransform." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/FourierCosTransform.html.

Wolfram Language. 1999. "FourierCosTransform." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/FourierCosTransform.html.

APA

Wolfram Language. (1999). FourierCosTransform. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FourierCosTransform.html

Wolfram Language. (1999). FourierCosTransform. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FourierCosTransform.html

BibTeX

@misc{reference.wolfram_2025_fouriercostransform, author="Wolfram Research", title="{FourierCosTransform}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/FourierCosTransform.html}", note=[Accessed: 20-April-2025 ]}

@misc{reference.wolfram_2025_fouriercostransform, author="Wolfram Research", title="{FourierCosTransform}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/FourierCosTransform.html}", note=[Accessed: 20-April-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_fouriercostransform, organization={Wolfram Research}, title={FourierCosTransform}, year={2025}, url={https://reference.wolfram.com/language/ref/FourierCosTransform.html}, note=[Accessed: 20-April-2025 ]}

@online{reference.wolfram_2025_fouriercostransform, organization={Wolfram Research}, title={FourierCosTransform}, year={2025}, url={https://reference.wolfram.com/language/ref/FourierCosTransform.html}, note=[Accessed: 20-April-2025 ]}