1

As the title states, I must say if the function exists or not.

I'm not sure where to begin... Is there a general method or approach to finding this type of functions?

All I can think is that $ (-1)^n = \cos(\pi n) $ but I don't know how the $ \sqrt n $ could appear.

SGali
  • 23

3 Answers3

3

It tells you what the Fourier series of $f$ should be. So by the definition of the polylogarithm $\operatorname{Li}_s(z)$ and its integral representation, $$ f(x) = \sum\limits_{n = 1}^\infty {\frac{{( - 1)^n }}{{\sqrt n }}\sin (nx)} = \Im \sum\limits_{n = 1}^\infty {\frac{{( - 1)^n \mathrm{e}^{\mathrm{i}xn} }}{{\sqrt n }}} = \Im \operatorname{Li}_{1/2} ( - \mathrm{e}^{\mathrm{i}x} ) \\ = -\frac{1}{{\sqrt \pi }}\Im \int_0^{ + \infty } {\frac{1}{{\sqrt t }}\frac{1}{{\mathrm{e}^{t - \mathrm{i}x} + 1}}\mathrm{d}t} = -\frac{\sin x}{2{\sqrt \pi }}\int_0^{ + \infty } {\frac{1}{{\sqrt t }}\frac{{\mathrm{d}t}}{{\cosh t + \cos x}}} . $$ This is a possible representation of a function that satisfies the requirements.

Gary
  • 31,845
  • Thanks, I see now that this is the coefficient $ b_n $. Could you elaborate on what you just wrote?. I'm not sure what the J looking symbol means, nor the term $ Li $, nor am I sure how the series turned into an integral.. – SGali Feb 25 '20 at 14:29
  • Second equality: follows from the fact that $sin(y) = \Im e^{i y}$ for real $y$. Third equality: follows from the definition of the polylogarithm (http://dlmf.nist.gov/25.12.E10). Fourth equality: use the known integral-representation of the polylogarithm (http://dlmf.nist.gov/25.12.E11). Fifth equality: take the imaginary part of the integrand. – Gary Feb 25 '20 at 14:33
  • 1
    I am voting for this answer. It's more-or-less how I "would have" done it! – mjw Feb 25 '20 at 15:19
2

The function $$\frac{i}{2} \left\{\textrm{Li}_{1/2}[-e^{-ix}] - \textrm{Li}_{1/2}[-e^{ix}] \right\}= \sum_{k=1}^\infty (-1)^k \left[ \frac{e^{-ikx}}{k^{1/2}}- \frac{e^{ikx}}{k^{1/2}}\right]=\sum_{k=1}^\infty (-1)^{k} \frac{\sin kx }{k^{1/2}} $$ satisfies the requirements.

Here $\textrm{Li}_{\alpha}(x)$ is the polylogarithm function.

mjw
  • 8,647
  • 1
  • 8
  • 23
0

It has been some time since I studied Fourier analysis, but here is my take. Let $f$ be some odd function. In particular this means that

$$ \int_{-\pi}^{\pi} f(x) \cos nx \,\mathrm{d}x = 0 $$

You can prove this yourself by splitting the integral in two and using that for any odd function we have $f(–x) = –f(x)$. Now all we have to do is find some odd function such that the integral converges. $$ \int_{-\pi}^{\pi} f(x) \sin nx \,\mathrm{d}x = 0 $$ You can nearly choose whatever you want here. Let for instance $f$ be a bounded and continuous function for $x \in [-\pi, \pi]$. This ensures that the integral converges.

$$K = \int_{-\pi}^{\pi} f(x) \sin nx \,\mathrm{d}x \leq \int_{-\pi}^{\pi} |f(x)| \cdot |\sin nx| \,\mathrm{d}x \leq \int_{-\pi}^{\pi} |f(x)| \,\mathrm{d}x$$

Note, we do not have to pick $f$ to be continuous all we need to do is pick $f$ such that the integral above converges. However, it is merely convenient to just let $f$ be bounded and continuous as it makes life easy... As the integral converges, we know that the result is some value $K$. We can now achieve our goal by selecting our final function

$$\overset{\sim}{f}(x) = \frac{1}{K} \frac{(-1)^n}{\sqrt{n}}f(x)$$

where $\overset{\sim}{f}$ is an bounded, odd and continuous function for $x \in [-\pi, \pi]$. This function satisfies the two restrictions

$$ \displaystyle \int_{-\pi}^{\pi} \overset{\sim}{f}(x) \sin nx \,\mathrm{d}x = \frac{(-1)^n}{\sqrt{n}} \qquad \text{and} \qquad \int_{-\pi}^{\pi} \overset{\sim}{f}(x) \sin nx \,\mathrm{d}x = 0 $$


Example: Take $g$ to be defined as $x$. Then

$$ K = \int_{-\pi}^{\pi} g(x) \sin nx \,\mathrm{d}x = \int_{-\pi}^{\pi} x \sin nx = \frac{2 \sin(\pi n) - 2\pi n \cos(\pi n)}{n^2} $$

So let

$$f(x) = \frac{n^2}{2 \sin(\pi n) - 2\pi n \cos(\pi n)} \frac{(-1)^n}{\sqrt{n}} x$$

Then

$$ \displaystyle \int_{-\pi}^{\pi} \overset{\sim}{f}(x) \sin nx \,\mathrm{d}x = \frac{(-1)^n}{\sqrt{n}} \qquad \text{and} \qquad \int_{-\pi}^{\pi} \overset{\sim}{f}(x) \sin nx \,\mathrm{d}x = 0 $$

  • Thanks, I think this is what was intended since the other answers are a bit too complex. – SGali Feb 25 '20 at 15:12
  • "too complex"? Get real! – mjw Feb 25 '20 at 15:15
  • 1
    Looks like here $f(x)$ is a function of $n,$ ! The point of the question, I think, is that for each $n$, integrating against $\sin nx$ gives the required result. – mjw Feb 25 '20 at 15:15
  • I am pretty sure that the requirement must hold for all positive integer $n$ with a suitable $f$ (that should not depend on $n$). – Gary Feb 25 '20 at 15:57
  • @mjw Right, this makes sense. However, no such requirement was stated by OP. Should I remove my answer? – N3buchadnezzar Feb 25 '20 at 16:26
  • That's really up to you. Your answer is an original approach, based on a particular understanding of the question. Seems rather arbitrary, though. Any odd function could be integrated against $\sin nx$ for a given $n$, and then scaled by a function of $n$. – mjw Feb 25 '20 at 16:57
  • I agree that the fact that $ f(x) $ depends on $ n $ is weird. I will ask this personally. – SGali Feb 25 '20 at 19:39