Fourier Series and how to find them. For a function given at some interval of length l, then the function can be written at:
or
Recall that because sin and cos are even and odd parts, the functions above force an even and oddness to your expansions. They will be particularly helpful for Dirichlet Conditions and Neumann Conditions. But, in general, you can use a linear combination of the two by doubling the frequency over your interval l:
where \omega = \frac{2\pi}{L}. Statement Suppose we have a function that satisfies: Recall that each \cos(\dots) and \sin (…) are orthogonal, we can then use the Fourier formula to figure the coefficients a_{k}, b_{k}. Aside: why is a_0 also orthogonal?
General Fourier Decomposition Therefore, by the Fourier formula, we expect that:
When computing this, recall that:
where L the period of your L periodic function. Odd and Even Break If you have an even or odd f(x), we can refine the series even more into simply a sine or cosine only series. For even f(x), we can write:
where:
Whereas for odd f(x), we write:
over any function Suppose we have a function with two roots:
then, we can write it in terms of a Fourier Series by odd-extending the function to the negative direction (see “odd extensions below”). This makes us be able to write f over [0,l] as:
where:
this is just the l extension function above, but with small l as the function is odd to one side. Here’s the motivation: sin and cos are even and odd parts odd extensions Important note: this function seems to vanish at endpoints 0 and l, and not all functions do that. So, instead, let’s consider the odd extension of f:
and
There will therefore be a discontinuous jump at 0. Using the \sin function, which are odd, recall that Fourier Series Converges with L Periodic Function, so at 0 given Gibbs Phenomena, the jump will average the discontinouity down to 0 (given our extensions are odd). even extensions instead, if you want to use \cos, you can make an even extension:
and
which shouldn’t be discontinuous at 0 at all. Additional Informatino Fourier Series Converges with L Periodic Function Suppose f(x) is an L periodic function with at most jump discountinuty, and f’ continuous everywhere. Then, the associated Fourier Series converges everywhere and coincides with f except for jump discontinuances, where the values are the average of limits from either side. This is called the Gibbs Phenomena shifted sum of sinusoids see Fourier Series as exactly a shifted sum of sinusoids Background Fourier formula Consider some orthogonal basis v_1, … v_{n}, recall that if we have:
we can write:
(this is similar to Writing a vector as a linear combination of orthonormal basis, but recall the v_{j} are orthogonal and not orthonormal, so we have to divide by the square of the norm of v. learn more) inner product of L periodic functions For f,g : [0,L] \to \mathbb{R}, which are L-periodic, we write:
properties worth noting for continuous functions [0,L] g_1, g_2, h_1, h_2, g, h, the inner product rules hold, which gives \langle c_1 g_1 + c_2 g_2, h \rangle = c_1 \langle g_1, h \rangle + c_2 \langle g_2, h \rangle \langle g, c_1h_1 + c_2h_2 \rangle = c_1 \langle g, h_1 \rangle + c_2 \langle g, h_2 \rangle \langle h,g \rangle = \langle g,h \rangle, as the functions are over the reals \langle g,g \rangle is zero only when g is zero L periodic sinusoids are orthogonal Recall that we have two basic L-periodic sinusoids: \sin \left(\frac{2\pi k }{L}x\right) \cos \left(\frac{2\pi k }{L}x\right) Let’s write:
then, for any distinct integer k_1 \neq k_2, k_1, k_2 > 0, we see that:
and further for any k:
Meaning, every pair of \langle \{\sin, \cos\} (k_1 \omega x), \{\sin, \cos\} (k_1 \omega x) \rangle are orthogonal. Further, for the same k,
in partiular:
if k are equal.