- #1
ognik
- 643
- 2
Hi - an example in my book shows that FS coefficiants can be arrived at by minimizing the integrated square of the deviation,
i.e. $ \Delta_p = \int_0^{2\pi}\left[ f(x) - \frac{a_0}{2}-\sum_{n=1}^{p}\left( a_nCosnx + b_nSinnx \right) \right]^2dx $
So we're looking for $ \pd{\Delta_p}{a_n} =0 $ and $ \pd{\Delta_p}{b_n} =0 $
they then jump to $ 0 = -2\int_0^{2\pi} f(x) Cosnx dx +2\pi a_n $ and I can't follow it all, would appreciate some help.
Using the chain rule for the partial deriv for $a_n$, should it be $ 0 = \int_0^{2\pi}\left[ f(x) - \frac{a_0}{2}-\sum_{n=1}^{p}\left( a_nCosnx + b_nSinnx \right) \right] \left( -\sum_{n=1}^{p}Cosnx \right) dx $ - or without the 2nd summation? They must NOT include that last summation but I don't know why?
Then clearly the $a_0$ term vanishes but I can't see why?
And please confirm - integral of a sum $\equiv$ sum of an integral?
i.e. $ \Delta_p = \int_0^{2\pi}\left[ f(x) - \frac{a_0}{2}-\sum_{n=1}^{p}\left( a_nCosnx + b_nSinnx \right) \right]^2dx $
So we're looking for $ \pd{\Delta_p}{a_n} =0 $ and $ \pd{\Delta_p}{b_n} =0 $
they then jump to $ 0 = -2\int_0^{2\pi} f(x) Cosnx dx +2\pi a_n $ and I can't follow it all, would appreciate some help.
Using the chain rule for the partial deriv for $a_n$, should it be $ 0 = \int_0^{2\pi}\left[ f(x) - \frac{a_0}{2}-\sum_{n=1}^{p}\left( a_nCosnx + b_nSinnx \right) \right] \left( -\sum_{n=1}^{p}Cosnx \right) dx $ - or without the 2nd summation? They must NOT include that last summation but I don't know why?
Then clearly the $a_0$ term vanishes but I can't see why?
And please confirm - integral of a sum $\equiv$ sum of an integral?