Fourier Series and Fourier Transform: A Brief Introduction
A casual walkthrough of how Fourier's trick uses the orthogonality of sines and cosines to pin down the coefficients for representing well-behaved periodic functions.
Some original drawings have corrections. Read the notes on those drawings alongside the worked steps.
Fourier (well, actually his students)
believed that functions could be expressed as a linear combination of sines and cosines of various frequencies. We’ll work with the usual well-behaved examples, such as piecewise smooth periodic functions; at a jump, the series gives the average of the two one-sided limits.
So then

(An implicit assumption baked in: f(x) is a function with period 2π ^^)
Then how are those coefficients a_n, b_n determined??!!?!?
Those coefficients must clearly be related to the function f(x) we’re trying to represent??!?!
To find them, multiply both sides of the above equation by sin nx or cos nx

and use this relation.
In a word, we’ll be using Fourier’s trick.
Where have I used this before — Separation of Variables (Electromagnetism I Studied #8)
I’ve used it in electromagnetism^^hehehehe Well, is separation of variables only used in electromagnetism?
It’s used all over physics in general hehehe

I’ll multiply both sides by cosnx.

Then if we take the one-period average on both sides

hahahaha
Why this is a trick —

except for the blue one, everything flies away.
In the end

Each coefficient can be determined like this hehehe hehe
In just the same way, get b_n and you get this~

Then does the function always have to be one whose interval is from minus pi to pi???!?!!
Huh???? We can also just shift the interval and represent the function over that
The coefficients in that case are


we can just write it like this, I guess
But, both sine and cosine are exponentials by Euler’s formula???!!

That is,

this equation, equivalently,

can also be written like this.
Now, to determine c_n, multiply both sides by
![]()
.

We get this,
and if we take the -π ~ π average of both sides


Therefore in the above both-sides average, only the c_n term’s gotta survive….
<To leave only c_n, we multiplied both sides by
![]()
, and to leave only c_-n, we’d multiply both sides by
![]()
.>

Also, as with sine and cosine, the period doesn’t have to be -π ~ π, it can also be 0 ~ 2π, so

Like this, with period 2pi,
we’ve confirmed that f(x) on an interval like -π ~ π or 0 ~ 2π can be expressed as a linear combination of other wave functions,
but then, does the period have to be 2π?!?!?!?!?!
That’s no no.
Setting the period to 2l,
the logic that any~~ arbitrary f(x) can also be expressed!!!! means
we can use any finite interval and its periodic extension, under the same convergence conditions.

I’ll transform this formula-but-not-quite-formula thing.

Now we’re invincible.
Nope~. We need to send l to infinity to be truly invincible.
Then we can include functions with ’no’ period. For this ordinary integral pair, take sufficiently regular, decaying functions, such as smooth rapidly decaying examples; more general cases use generalized transforms.
So I’ll transform that formula again.
So to jump to the conclusion

Now how does this come out —
let’s take a slow~~~~ look.

First, in this equation, let’s set nπ/l as α_n.

And in that alpha, since n changes by 1 each time,
α_n changes by π/l.



From here it’s less math and more of a hack

First, let’s call Δα as dα, we can do that right
Then the n in α_n doesn’t mean anything anymore. Let’s just write it as α.
And I’ll send l (ell) to infinity.
Then the n in the sigma out front, let’s just write it as an integral!!!!

So we can write it like this, let me play around a bit.

I’ll stick the red part into those parentheses.

Con to the clusion

Gonna use this~~~~~~~~~~~~~~~~~~~~~~
It’s called the Fourier transformation,
and the meaning is
whether you see the domain of some wave as a linear combination of waves with various frequencies
that is, whether you view the domain in terms of frequency or in terms of time
it’s an equation with that kind of meaning.lollollol
Heads-up. The figures here are the original notes, slips and all. A few things to watch for:
- In the last picture, the inverse transform is $g(\alpha) = \frac{1}{2\pi}\int_{-\infty}^{\infty} f(x)\,e^{-i\alpha x}\,dx$: the exponent has $x$, not $u$.
- In the cosine-coefficient picture over 0 to 2π, a_n = (1/π)∫f(x) cos(nx) dx; its sine should be cosine.
- The complex-exponential integral is zero only for nonzero integer frequency; for frequency zero its value is 2π.
- In the first Fourier-transform preview, f(x)=∫g(α)e^{iαx}dα; the extra π in that first exponent should be absent. The later derived pair uses this convention.
Questions or corrections?
Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.
Feedback goes to me privately by email; it is not posted as a public comment.