matt grime said:
i wonder if at the end of this thread eljose will have some Earth shattering discovery that we snobbish mathematicians can reject?
If he does, then it will be closed or deleted. No point egging him on!
eljose: As matt said, \pi(x) cannot be represented that way because it is not a periodic function. But I'm going to ignore that for a moment...
eljose said:
so we only would need to know the function pi through the series with an error of 0.1 or 0.01 (so we shouln,t not take infinite terms)
But we can only know that if we know that the sum of all of the terms we are not using add up to less than 0.1 or 0.01!
In other words, approximating \pi(x) via:
<br />
\pi(x) \approx \sum_{n = -N}^N c_n e^{i n \pi x / L}<br />
only works if
<br />
0 \approx \sum_{n = -\infty}^{-N-1} c_n e^{i n \pi x / L}<br />
+ \sum_{n = N+1}^{+\infty} c_n e^{i n \pi x / L}<br />
. Do you agree?
So the real question is how do you know that this latter approximation is good, for a given
N?
In other words, to use this series to approximate \pi(x), we absolutely, positively, must know a good way to know if the latter approximation is good. (That is, the sum of the tails is sufficiently small)
Do you agree?
If this was a power series, we have useful theorems about how they converge. However, I don't know any similarly useful criterion for a Fourier series. So, one might appeal to a common, generic technique that would prove
<br />
0 \approx \sum_{n = -\infty}^{-N-1} c_n e^{i n \pi x / L}<br />
+ \sum_{n = N+1}^{+\infty} c_n e^{i n \pi x / L}<br />
by proving
<br />
0 \approx \sum_{n = -\infty}^{-N-1} |c_n e^{i n \pi x / L}|<br />
+ \sum_{n = N+1}^{+\infty} |c_n e^{i n \pi x / L}|<br />
, as you might recall from your calculus classes. In our case, this reduces to
<br />
0 \approx \sum_{n = -\infty}^{-N-1} |c_n|<br />
+ \sum_{n = N+1}^{+\infty} |c_n|<br />
but we know that this
cannot be true, because these are
divergent sums! You could either see this directly from the original sum because the exponential term is bounded, and \pi(x) is unbounded, or from your observation that:
\int_{0}^{L}dx[ \pi(x)]^2=\sum_{n}|c_{n}|^2
(assuming it was right).
Do you agree?
Basically, there is no obvious method to working out how many terms you need to add together in order to get an approximation of \pi(x).
There's a general principle here, as I understand it: oscillating sums, such as this one, tend to converge
very slowly. Thus, I would not expect this to be a good approach.
Incidentally, a keyword that you might remember is
absolutely convergent. "Nice" sums are absolutely convergent. Your sum is not.