# When to use Gen. Fourier, F.Sine, F.Cos, and Laplace Transforms

1. Oct 18, 2012

### orangesun

Hi I was just wondering when do we use the different variations of the General Fourier, Fourier Sine Transform, Fourier Cosine Transform, and Laplace Transforms.

I missed my lecture and I overheard that apparently there needs to be specific boundary conditions or initial conditions which determines which transform you use

Many thanks!

2. Oct 21, 2012

### bossman27

So we have the general Fourier Series:

$f(x) = \frac{a_{0}}{2} + \sum a_{n}cos(\frac{n \pi x}{L}) + b_{n}sin(\frac{n \pi x}{L})$

Basically, we use the Fourier sine/cosine series when we have an even or odd function (over interval $[-L, L]$) which allows us to take advantage of the even/oddness of cosine/sine.
If we have an odd function f(x):
$f_{o}(x) = -f(-x)$ on $[-L, 0]$ and $f(x)$ on $[0, L]$

we find we can simplify the fourier coefficients to:
$a_{n} = 0$
$b_{n} = \frac{2}{L}\int f(x)sin(\frac{n \pi x}{L})dx$ (integral from 0 to L)

Likewise, if we have an even function:
$f_{o}(x) = f(-x)$ on $[-L, 0]$ and $f(x)$ on $[0, L]$

we find that we can simplify to:
$a_{o} = \frac{2}{L}\int f(x) dx$ (integral from 0 to L)
$a_{n} = \frac{2}{L}\int f(x)cos(\frac{n \pi x}{L})dx$ (integral from 0 to L)
$b_{n} = 0$

When the function is not even or odd over [-L, L], the general form must be used, although if we just have a simple function over [0, L], when can actually choose to "extend it" as an even or an odd function.

Laplace Transforms:
The nice thing about Laplace transforms is that they turn differential equations into algebraic ones by breaking down higher order functions. Generally they are most useful when dealing with an equation involving unusual functions, such as Dirac delta functions or unit step functions. When you're dealing with those, Laplace is the most simple way to solve the equation (in fact it's the only way I know how to.)

3. Oct 21, 2012

### Mute

To clarify for the OP, the fourier series is a series representation of a periodic function. If you compute the fourier series of a non-periodic function g(x) on the domain [-L,L] (for example), the fourier series will match g(x) for x in [-L,L], but the pattern repeats for x outside of that range with period 2L.

Fourier series sometimes appear in solutions of Partial differential equations.

They do share similar features with the fourier transform, which I believe is what the OP is asking about. The fourier transform is

$$F(\omega) = \int_{-\infty}^\infty dt f(t) e^{-i\omega t}$$
(up to a choice of the sign of i in the exponent and a factor of $1/\sqrt{2\pi}$ in the front). As you can see from this definition, any true function which has a fourier transform must be non-singular on the entire real line and it must tend to zero at the infinities. I have written the above equation in terms of time and frequency, but I could just as well have written it in terms of position x and spatial frequency k. When solving differential equations, you would use the fourier transform when your coordinate can take any real number value (e.g., solving for something as a function of the position, where the position can be from -infinity to infinity), and typically when your solution will decay to zero at the boundaries.

The cosine transform is basically just the fourier transform applied to an even function. Because $e^{i\omega t} = \cos(\omega t) + i\sin(\omega t)$, if your fourier transform over an even function, the imaginary term is zero (because it is odd) and the real part of the integral is just double the integral over the positive part of the real line.

$$2\int_0^\infty dt~f(t)\cos(\omega t) = \int_{-\infty}^\infty dt f(t) e^{-i\omega t},~\mbox{if}~f(x)=f(-x).$$

Similarly, the sine transform is basically just the fourier transform applied to an odd function.

$$2i\int_0^\infty dt~f(t)\sin(\omega t) = \int_{-\infty}^\infty dt f(t) e^{-i\omega t},~\mbox{if}~f(x)=-f(-x).$$

Lastly, though I noted that for the fourier transform to be well defined it must be applied to a function which has no singularities and decays to zero at the infinities, one can actually extend the domain of functions which can be fourier transformed by allowing results in terms of "generalized" functions like the Dirac delta function or the Heaviside step function. By allowing these functions to be results of a fourier transform, you can take the fourier transform of a constant, sin(x) or cos(x), 1/x, of powers of x, etc. See wikipedia for a list of such transforms.

If it's an ODE with a Dirac delta function or Heaviside step function on the RHS you can always solve the equation piece-wise and match the solutions at the boundary.

4. Oct 21, 2012

### bossman27

Haha woops! I apologize for that mistake, I glanced at the OP and subconsciously read it as "series" rather than "transform."