Hundreds of vectors joined head-to-tail, each rotating at a constant rate, unknowingly drawing the symbol of chaos in a surprisingly orderly fashion. Explanation: The Fourier Series.
The Fourier Series
In the beginning, Fourier was trying to solve the Heat equation, which is a PDE describing how heat, with an initial distribution, propagates through a medium over time.
The above equation says that:
The [rate of change over time of heat at a particular point x in the medium] is proportional to the [rate of change over time of heat gradient at a particular point x] |
If you can find any T(x, t) that satisfies the above equation, and satisfy the initial and boundary conditions, then this T(x, t) can describe the way the heat distribution changes over time.
To start off, Fourier noticed that if we have an absurd initial heat distribution that looks exactly like a cosine wave with amplitude h, we can show that it satisfies the Heat equation.
Let:
Then:
The above equation says that:
The [rate of change over time of heat at a particular point x in the medium] is proportional to the [heat at a particular point x in the medium] |
This means that whatever cosine of arbitrary amplitude we start with, we’ll just get the same cosine with shorter amplitude in the next timestep. This is recursively true for all t >= 0.
Therefore:
Note that the above simply describes exponential decay over time. The solution for the above is simply:
But to really solve a PDE, we also need another ingredient in the recipe: The boundary conditions T(0, t), T(L, t).
To find T(0, t) and T(L, t) for the Heat equation of a medium of length L, observe that if we split the heat distribution along the length of the medium into infinitely many points, the temperature difference between the last two points on both edges always approaches zero.
Therefore:
We need to verify that our function T(x, t) also satisfies the above.
Evidently, our function T(x, t) only satisfies the boundary condition for very specific medium lengths L where L is a multiple of π.
To get around this, we can scale our cosine function to have a period that matches any medium of length L:
Notice that if we scale the cosine in this way, the second partial derivative with respect to x will end up with an extra constant term. To ensure that the partial derivative with respect to t matches, we will also have to add that scaling into the exponential term.
In fact, we can have infinitely many solutions that can satisfy the boundary conditions for a medium of length L. More generally, we can have:
With this, we actually have the solution to describe ALL cosine shaped heat distributions that start with the amplitude h and period L, over a medium of length L and thermal diffusivity a.
We can currently only solve heat distributions in the shape of cosines with very specific periods. How can we solve the Heat equation for anything?
Fourier noticed that if we have two initial heat distributions T_1 and T_2:
We can make a third initial heat distribution T_3…:
… and we immediately have the solution for it:
Due to linearity, any initial heat distributions described by the sum of any of these cosine waves with specific periods can be solved by the sum of all their solutions.
BUT… that’s not very useful yet.
At this point, Fourier asked a really absurd question: “If we can describe any heat distribution solely by summing arbitrarily many of these cosine waves of specific periods and arbitrary amplitudes, how can we write that down Mathematically?”
The general solution of the Heat equation:
Of course, whether this could work was still unknown to him at that time. Besides, even if we knew the individual periods of the cosines that make up the solution, we will do not know the individual amplitudes a_n.
What we really want to find out first is how we can represent an initial condition with cosines, so we can simply ignore the t terms for now.
Now, let’s think about what these a_n terms actually mean. In particular, we look at the first term a_0.
Clearly, the entire first term is a constant as a_0 is a constant and the terms on the right evaluates to 1. But what does it really mean?
If we think about what happens when t is very large, we can see that every subsequent term falls to 0, leaving only the a_0 term remaining (i.e. the heat along all points on the rod is constant).
Therefore, a_0 is actually the average heat of the medium. Another way of expressing an average is through an integration:
The Fourier observed that every other term in the summation goes to zero when summed over the length of the medium as all the chosen cosine functions are odd:
Applying Euler’s formula to convert our cosine into an exponential pair, we would expect our previous averaging formula to still hold:
Note also, that each pair of exponentials are just odd mirrors of each other, so we can further simplify:
Here comes the genius observation that Fourier made to allow us to find any arbitrary a_n. Fourier noticed that we can use a simple trick to kill off all coefficients except a_1 – by multiplying in an additional exponential term.
Thus, we now have the general formula to find the coefficients for the Heat equation:
Therefore, the complete solution for solving the Heat equation is:
To generalize out of the Heat equation PDE for any periodic function f(t) of period T, we first introduce the sine components into the equation, each with its own coefficients b_n:
Once again applying Euler’s formula, we can rewrite this as:
The above is known as the exponential form of Fourier Series. To find c_n, the complex coefficient of each term, the same method used in finding a_n in the general Heat equation applies.
A layman / practical interpretation of the above is…
You can break down a periodic complex function f(t) with period T into a sum of exponentials. To find the coefficient c_n of each exponential term, simply integrate your original function multiplied by its respective exponential along the whole period. |
To think that Fourier achieved this in 1822 is simply mind-blowing.
Euler’s Formula
Right. Just installed MathML block for WordPress because I want to talk about Fourier Series.
I’m just going to write a quick sidetrack required for the next post (and also for testing the MathML block).
Here’s the Euler’s formula discovered in 1748.
This can be visualized as a unit complex number that rotates clockwise around the origin on the complex plane for every 2π increase in x.
We can reverse the direction of the rotation simply by doing:
With this, we can easily represent any cosine as:
Likewise, sines can be represented as such too:
Feel the 64GB RAM…
…3600MHz 16CL.
All this to satisfy the minimum requirements of Premiere Pro 2021 memory leak edition.

Coastline paradox – do coastlines have an infinite perimeter?
The infinite perimeter arises from the assumption that coastlines can fract infinitely (as in fractals).
While mathematical fractals have infinite perimeter, coastlines eventually will just be bounded by the perimeter of all atoms on the coast combined.
So… No, they don’t.
But you might ask how do we know which atoms do we consider part of the coastline?
That, of course, is a question best left for a debate on ontology.
Pbee Tone Generator
JavaScript frequency generator.
https://github.com/Syraxius/PbeeToneGenerator
This cute little tone generator is used for replicating a science experiment featured in a Steve Mould video.
Essentially, we generate pure tones near or close to the resonant frequency of a body of air enclosed by a membrane, causing the membrane to vibrate. Then, we visualize the vibrations through a laser beam.
Time travel / teleportation machines cannot be constructed, or this universe is not infinite
If the universe is infinite, then all possible states should exist.
If time travel / teleportation machines can be constructed, then it can be represented by at least one state.
If the universe is infinite and time travel / teleportation machines can be constructed, then there would be an infinite number of time travel / teleportation machines.
If there’s an infinite number of time travel / teleportation machines, then every point in time and space would be the target of an infinite number of time travel / teleportation machines, and there would be constant chaos.
Therefore, time travel / teleportation machines cannot be constructed, or this universe is not infinite.
New bot for Final Fantasy XIV
New experimental bot for FFXIV.
https://github.com/Syraxius/FFXIVSyraxiusBot
Fully automated waypointing, navigation, combat and dungeon runs.
Storage and media upgrade
Just lost a few terabytes of data from hard disk corruption. Took a really long time recovering what’s left.
About time for a long overdue storage upgrade.
Added a new 2-bay NAS in RAID 1 for data redundancy, and as a bonus also a Plex server for media streaming needs ;D
Dropshipping automation libraries
Will be starting some work on dropshipping automation.
First part will be to fully integrate with AliExpress, using it to create the standard model and actions.
https://github.com/Syraxius/AliExpressPlatformIntegrationLibrary
Once this is done, we can work on the higher-level process and platform for dropshipping.