How to decompose a fourier series

In summary: Well, I guess it is not an easy sum to find.There are probably special techniques of doing it, but to be honest, I wouldn't know off the bat how to do it either.
  • #1
ognik
643
2
Hi, in a section on FS, if I were given $\sum_{n=1}^{\infty} \frac{Sin nx}{n} $ I can recognize that as the Sin component of a Fourier Series, with $b_n = \frac{1}{n} = \frac{1}{\pi} \int_{0}^{2 \pi}f(x) Sin nx \,dx$

Can I find the original f(x) from this? Differentiating both sides doesn't seem to lead anywhere?
 
Physics news on Phys.org
  • #2
ognik said:
Hi, in a section on FS, if I were given $\sum_{n=1}^{\infty} \frac{Sin nx}{n} $ I can recognize that as the Sin component of a Fourier Series, with $b_n = \frac{1}{n} = \frac{1}{\pi} \int_{0}^{2 \pi}f(x) Sin nx \,dx$

Can I find the original f(x) from this? Differentiating both sides doesn't seem to lead anywhere?

Hi ognik,

Typically we look it up in a list of known Fourier Series.
 
  • #3
The exercise that prompted my question said to 'apply the summation technique of this section' (FS) 'to show that

$\sum_{n=1}^{\infty} \frac{Sin nx}{n} = \frac{1}{2}(\pi-x), 0 \lt x \le \pi; =-\frac{1}{2}(\pi+x), -\pi \le x \lt 0$

I tried differentiating the formula for $b_n$ to find the original f(x), but I don't thank that's going to work?
 
  • #4
ognik said:
The exercise that prompted my question said to 'apply the summation technique of this section' (FS) 'to show that

$\sum_{n=1}^{\infty} \frac{Sin nx}{n} = \frac{1}{2}(\pi-x), 0 \lt x \le \pi; =-\frac{1}{2}(\pi+x), -\pi \le x \lt 0$

I tried differentiating the formula for $b_n$ to find the original f(x), but I don't thank that's going to work?

There you go. The original f(x) is already given. $f(x)=\frac 12 (\pi-x)$.
That leaves the verification that $a_n=0$ and $b_n=\frac 1n$.
 
  • #5
I like Serena said:
The original f(x) is already given. $f(x)=\frac 12 (\pi-x)$.
I know you're right, but I can't see why! If I were told $f(x)=\frac 12 (\pi-x)$ then no problem, but I don't see the relationship in what is written...why is $ f(x)= \sum_{n=1}^{\infty}\frac{sin nx}{n} $?
 
  • #6
ognik said:
I know you're right, but I can't see why! If I were told $f(x)=\frac 12 (\pi-x)$ then no problem, but I don't see the relationship in what is written...why is $ f(x)= \sum_{n=1}^{\infty}\frac{sin nx}{n} $?

Fourier series analysis gives us a transformation that works uniquely both ways.
From any function $f(x)$ we can calculate the coefficients $a_n$ and $b_n$, such that
$$f(x) = \frac {a_0}{2} + \sum a_n \cos nx + \sum b_n \sin nx$$
The other way around, those $a_n$ and $b_n$ uniquely determine $f(x)$.
That is:
$$f(x) \leftrightarrow (a_n,b_n)$$

Since it is already given that $ f(x)= \sum_{n=1}^{\infty}\frac 1 n{\sin nx} $, we can conclude that:
$$a_n = \frac 1\pi \int f(x) \cos nx \,dx = 0$$
$$b_n = \frac 1\pi \int f(x) \sin nx \,dx = \frac 1 n$$
The other way around, if those $a_n$ and $b_n$ are given, we know that the series sums up to $f(x)$.
 
  • #7
Thats where I got to, wrote down the formulae for $a_n$ and $b_n$ with f(x) within them. However, unless I recognized what f(x) must be from previous experience, or looking it up in a table, I couldn't find f(x) from $b_n) analytically?

Are you saying that if I sketched the Fourier series, it would be easy to recognize the original function?
 
  • #8
ognik said:
Thats where I got to, wrote down the formulae for $a_n$ and $b_n$ with f(x) within them. However, unless I recognized what f(x) must be from previous experience, or looking it up in a table, I couldn't find f(x) from $b_n) analytically?

Are you saying that if I sketched the Fourier series, it would be easy to recognize the original function?

We can do it analytically by calculating the summation.
And yes, by graphing the sum of the first couple of terms, we can also recognize the function.
 
  • #9
I like Serena said:
We can do it analytically by calculating the summation.
Thanks ILS, but I don't understand how to calculate $ \sum_{n=1}^{\infty} \frac{Sin nx}{n} $? I can write out the first few terms but they don't point back to $\frac{1}{2}(\pi - x) $ etc. ?
 
  • #10
ognik said:
Thanks ILS, but I don't understand how to calculate $ \sum_{n=1}^{\infty} \frac{Sin nx}{n} $? I can write out the first few terms but they don't point back to $\frac{1}{2}(\pi - x) $ etc. ?

Well, I guess it is not an easy sum to find.
There are probably special techniques of doing it, but to be honest, I wouldn't know off the bat how to do it either.
... except with the trick we just used by considering it as a Fourier series, which is a valid way to find the result analytically and it's easy enough to expand $\frac{1}{2}(\pi - x) $ as a Fourier series.
 

FAQ: How to decompose a fourier series

How do I find the coefficients for a Fourier series?

The coefficients for a Fourier series can be found by using the Fourier series formula, which states that the coefficient for the nth term is equal to the integral of the function multiplied by the cosine or sine term, depending on the type of Fourier series being used. This integral can be solved using various methods, such as integration by parts, substitution, or trigonometric identities.

How many terms do I need in a Fourier series for accurate representation of a function?

The number of terms needed in a Fourier series for accurate representation of a function depends on the complexity of the function and the desired level of accuracy. In general, the more complex the function, the more terms will be needed. However, it is not always necessary to use a large number of terms, as sometimes a small number of terms can provide a good enough approximation of the function.

What is the difference between a Fourier series and a Fourier transform?

The main difference between a Fourier series and a Fourier transform is that a Fourier series is used for periodic functions, while a Fourier transform is used for non-periodic functions. Additionally, a Fourier series decomposes a function into a sum of trigonometric functions, while a Fourier transform decomposes a function into a sum of complex exponential functions.

Can a Fourier series be used to approximate any function?

No, a Fourier series can only be used to approximate periodic functions. If a function is not periodic, then a Fourier series will not provide an accurate representation of the function. In this case, a Fourier transform or other techniques may be more suitable for approximating the function.

Are there any real-world applications of Fourier series?

Yes, Fourier series have many real-world applications, such as in signal processing, image compression, and heat transfer. They are also used in fields such as engineering, physics, and mathematics to analyze and model periodic phenomena. Some examples of real-world applications include audio and video compression algorithms, weather forecasting, and analysis of electrical signals in electronics.

Similar threads

Replies
11
Views
1K
Replies
2
Views
1K
Replies
8
Views
4K
Replies
3
Views
1K
Replies
4
Views
1K
Replies
2
Views
2K
Replies
3
Views
8K
Back
Top