Given a periodic function that's only partly specified, e.g.:

$$f(\theta)=\begin{cases}1 & \text{if } \cos(\theta)>a\\ -1 & \text{if } \cos(\theta)<-a\end{cases}$$

Obviously the ordinary Fourier transform won't do; I don't want a flat zero in the gaps. Can it be modified to give me the Fourier series I want, or must I resort to a series of least squares fits?

EDIT, April 28: Ideally what I want is a Fourier series such that each truncation to $n$ terms is, for those $n$ basis functions, the least-squares fit to the known segments. If that's not a reasonable thing to wish for, may I request suggestions of cy près substitutes?


closed as unclear what you're asking by Yves Daoust, Daniel W. Farlow, Leucippus, zz20s, Ramiro Apr 25 '16 at 3:32

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ As the result you want to get the frequency spectrum? $\endgroup$ – werediver Apr 24 '16 at 20:10
  • $\begingroup$ I'm not looking for a spectrum, really, just a pretty fit to the known segments. $\endgroup$ – Anton Sherwood Apr 24 '16 at 22:11
  • $\begingroup$ Perhaps you bring up the notion of a modified Fourier series simply because you want a periodic fit. That is unnecessary. A "least squares fit" seems also beside the point since the known data can be used exactly. The gaps could be filled most simply with linear interpolation. If something smoother is desired, then monotone cubic interpolation. However you have said nothing to indicate what makes one interpolation more serviceable than another. $\endgroup$ – hardmath Apr 29 '16 at 1:02
  • $\begingroup$ Sure, I could use the known data exactly and fit polynomials between. That's not interesting to me. I don't care about exact fits, I'm looking for graceful approximations with a high degree of continuity. $\endgroup$ – Anton Sherwood Apr 30 '16 at 6:37

Since the Fourier transform is an integral over the entire real number line, and since for any given frequency you don't know the function value for an infinite amount of intervals, the Fourier transform of this function can be anything at all.

It is true, that if you are willing to bound the function and it's derivatives in those regions you can probably derive some bounds, but without those, I don't see how you can proceed.


Not the answer you're looking for? Browse other questions tagged or ask your own question.