1

In my study of ODEs I have recently encountered this monster of an integral the sum of two integrals: $ \int_{0}^{2\pi} \frac{\sin(x)\sin\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}}dx + \int_{0}^{2\pi} \frac{\sin(x)\cos\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}}dx $

Even Wolfram is having trouble with this, I was hoping someone could please tell me if I can do it analytically or numerically any way at all? It really is scary looking. Of course $\omega$ and $A$ are parameters with $A$ between 0 and 1.

Edits:

The first one (with the cosine) is zero as the great answers point out but the one with the product of two sines is a mystery.

I feel I owe an explanation: the relation to ODE comes from a previous problem I stated here dealing with the Melnikov integral here the answer changes variables from t to x.

Croc2Alpha
  • 3,927
  • 1
    You might find a nice substitution to simplify the argument of the arctanh. Maybe $tanh(u) = $ everything inside the arctanh? That might make things worse though. – Paul Castle Jul 11 '16 at 07:07
  • 4
    Um... What exactly are you trying to do here with ODE's? Does this integral arise from solving a differential equation? If so, it might help to see the original problem. – Vegeta the Prince of Saiyans Jul 11 '16 at 07:38
  • @LordVader007 : This integral is not directly from an ODE rather the Melnikov integral relating to a perturbation of an ODE what matters is the improper integral – Croc2Alpha Jul 11 '16 at 08:34
  • 2
    It is really bad style to edit an answered question into a basically completely different one. You should have asked a new question for that – Tobias Kienzler Jul 11 '16 at 11:33

2 Answers2

4

It's simpler than it appears at first :

Let $\quad f(x)=\frac{\sin(x)\cos\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}}$

$$\int_0^{2\pi} f(x)dx = \int_0^{\pi} f(x)dx +\int_{\pi}^{2\pi} f(x)dx $$ Let $\quad x=2\pi-t \quad$ It is easy to prove that $\quad f(x)=-f(t)$

because $\sin(x)=\sin(-t)=-\sin(t)$ and $\sin^2\left(\frac{x}{2}\right)=\sin^2\left(\pi-\frac{t}{2}\right)=\sin^2\left(\frac{t}{2}\right)$

$\int_{\pi}^{2\pi} f(x)dx =\int_{\pi}^{0} \left(-f(t)\right)(-dt) =-\int_{0}^{\pi} f(t)dt $ $$\int_0^{2\pi} f(x)dx = \int_0^{\pi} f(x)dx -\int_{0}^{\pi} f(t)dt=0 $$

$$\int_0^{2\pi}\frac{\sin(x)\cos\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}}dx=0$$

With the same method and $g(x)=\frac{\sin(x)\sin\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}}dx$

$g(x)=g(t) \quad\to\quad \int_0^{2\pi}g(x)dx=\int_0^{\pi}g(x)dx+\int_0^{\pi}g(t)dt=2\int_0^{\pi}g(x)dx\neq 0$

$$\int_0^{2\pi}\frac{\sin(x)\sin\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}}dx \neq 0$$

In the equation above, the symbol $\neq 0$ means "generally not equal to $0$ ". It doesn't mean "always not equal to $0$ ".

JJacquelin
  • 66,221
  • 3
  • 37
  • 87
  • 2
    I cannot understand "what about the -". what"-" ? – JJacquelin Jul 11 '16 at 08:59
  • 1
    Thank you for a brilliant answer, I wanted to ask in the comment as I broke up $ \sin{(\omega(t+t_0))} $ via a trig identity how would I handle the integral same as above only with $ \sin{(\omega t(x))} $ ? I mean integrating on the same interval $ \quad f(x)=\frac{\sin(x)\sin\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}}$ – Croc2Alpha Jul 11 '16 at 09:04
  • is it the same method for what I mentioned as well? – Croc2Alpha Jul 11 '16 at 09:09
  • 1
    Can you write down clearly the whole integral you want to solve, with $dt$ or $dx$ in order to avoid confusion. – JJacquelin Jul 11 '16 at 09:24
  • sorry about the mess here is the second one I forgot about $\int_{0}^{2\pi} \frac{\sin(x)\sin\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}}dx$ – Croc2Alpha Jul 11 '16 at 09:30
  • together with the zero one that is what I need for Melinkov\s function – Croc2Alpha Jul 11 '16 at 09:34
  • But it is still ambiguous with $\sin (\omega t(x))$ or $ \sin (\omega (t+t_0))$ . Why not writing the integral in complete and definitive form ? – JJacquelin Jul 11 '16 at 09:39
  • $ \int_{0}^{2\pi} \frac{\sin(x)\sin\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}}dx + \int_{0}^{2\pi} \frac{\sin(x)\cos\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}}dx $ is the whole inetgral self contained no mention of anything other than x – Croc2Alpha Jul 11 '16 at 09:43
  • I wrote it complete now in the body of the question please forgive me – Croc2Alpha Jul 11 '16 at 09:44
  • Is it better now? – Croc2Alpha Jul 11 '16 at 10:22
  • Its better for me, but not for you : the integral with $\sin$ instead of $\cos$ is $\neq 0$. – JJacquelin Jul 11 '16 at 10:38
3

Oh, the answer is 0. Note that the function satisfies $$f(x) = - f(2\pi - x)$$ for any values of $A, \Omega$.

  • 1
    Thank you could you please expand on how you got this? – Croc2Alpha Jul 11 '16 at 08:54
  • 3
    I tried graphing the curve with some example values, and I noticed the nice symmetry around $\pi$. – Paul Castle Jul 11 '16 at 08:59
  • Thanks could you please help with the next part integrating the function $ \quad f(x)=\frac{\sin(x)\sin\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{‌​2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} $ on the same interval – Croc2Alpha Jul 11 '16 at 09:15
  • The $f(x)$ is different from the preceding one. This might cause another mess, so it should be better to use a different symbol : $g(x)=\int_0^{2\pi}\frac{\sin(x)\sin\left(-\frac{1+A}{\sqrt{A}}\omega \tanh^{-1}\left(\frac{\cos\left(\frac{x}{2}\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}} \right)\right)}{\sqrt{A\sin^2\left(\frac{x}{2}\right)+1}}dx$. $$\int_0^{2\pi}f(x)dx=0 \text{ and } \int_0^{2\pi}g(x)dx \neq 0$$ – JJacquelin Jul 11 '16 at 10:24
  • The function $\frac{\sin x}{\sqrt{A \sin^2 \left(\frac{x}{2} \right)}}$ has a relatively simple integral.

    It's possible that an integration by parts will let you make some kind of symmetry argument for $g(x)$ like the one we made for $f(x)$. I don't have time to try it out though.

    – Paul Castle Jul 12 '16 at 00:44