How to solve an integral II

  • #1
Ad VanderVen
161
11
TL;DR Summary
How to solve the following integral (in Maple notation): Int(y**k*exp(-u[0]*exp(-y)/a[0]-u[1]*exp(y)/a[1]),y=-infinity..infinity)?
How to solve the following integral (in Maple notation):
Code:
Int(y**k*exp(-u[0]*exp(-y)/a[0]-u[1]*exp(y)/a[1]),y=-infinity..infinity)

with 0<a[0], 0<u[0], 0<a[1], 0<u[1]?
 
Last edited by a moderator:

Answers and Replies

  • #2
mathman
Science Advisor
8,100
559
Use LaTex!
 
  • #3
Ad VanderVen
161
11
I am looking for a solution of the following integral

$$\int_{-\infty }^{\infty }\!{y}^{k}{{\rm e}^{-{\frac {u_{{0}} \, {{\rm e}^{-y}}}{a_{{0}}}}-{\frac {u_{{1}} \, {{\rm e}^{y}}}{a_{{1}}}}}}\,{\rm d}y$$
with ## 0<a_{0}##, ## 0<a_{1}##, ## 0<c_{0}##, ## 0<c_{1}## and ##k = 1, 2, 3, ..., ##.
 
  • #4
BvU
Science Advisor
Homework Helper
15,360
4,337
Now that we are offf the unanswered threads list anyway:

I find it hard to believe an analytical answer exists.

Doodled with ##\ u_0=a_0 \ \ \& \ \ u_1 = a_1\ ## so the integral becomes
$$ \int y^k\; e^{ -\cosh y} $$ and all the odd ##k## yield zero. What remains is interesting enough:

Wolframalpha does the work: for ##k=2## the bounds -4, 4 are already wide enough for 6 digits (0.615622) and of course 0, 5 gives the same result (but more digits !?):

1593771991051.png
1593772055358.png


with ##k=4##:
1593772227000.png

(don't trust all digits, though:
1593772494070.png

and so on
1593772700419.png


But: with larger ##k## things become slippery:
1593772619412.png

1593772547978.png
?:)

So the natural questions are:
  • Where does this come from and where is it going ?
  • Can you make do with a numerical answer ?
  • What precision do you need ?
 
  • Like
Likes Charles Link and PeroK
  • #5
Charles Link
Homework Helper
Insights Author
Gold Member
5,440
2,759
Just so it doesn't become a stumbling point later, one minor correction: ## \cosh{y}=\frac{e^y+e^{-y}}{2} ##, with a 2 in the denominator.
 
  • Like
Likes BvU and Delta2
  • #6
pasmith
Homework Helper
2022 Award
2,584
1,183
Now that we are offf the unanswered threads list anyway:

I find it hard to believe an analytical answer exists.

Doodled with ##\ u_0=a_0 \ \ \& \ \ u_1 = a_1\ ## so the integral becomes
$$ \int y^k\; e^{ -\cosh y} $$ and all the odd ##k## yield zero. What remains is interesting enough:

The general case is [tex]\int_{-\infty}^\infty (y-C)^k \mathrm{e}^{-\cosh y}\,dy[/tex] where [tex]
\tanh C = \frac{a_0u_1 - a_1u_0}{a_0u_1 + a_1u_0}[/tex] It probably has to be done numerically.
 
  • #7
BvU
Science Advisor
Homework Helper
15,360
4,337
Just so it doesn't become a stumbling point later, one minor correction: ## \cosh{y}=\frac{e^y+e^{-y}}{2} ##, with a 2 in the denominator.
So actually I doodled with ##
\ 2u_0=a_0 \ \ \& \ \ 2u_1 = a_1\
##
The general case is
Can you show how you do that ?
 
  • #8
pasmith
Homework Helper
2022 Award
2,584
1,183
So actually I doodled with ##
\ 2u_0=a_0 \ \ \& \ \ 2u_1 = a_1\
##
Can you show how you do that ?

That should be [tex]
\int_{-\infty}^\infty (y-C)^k \mathrm{e}^{-D\cosh y}\,dy[/tex]
with [itex]C[/itex] as before and [tex]D = 2 \sqrt{\frac{u_0u_1}{a_0a_1}}[/tex]
 
  • #9
BvU
Science Advisor
Homework Helper
15,360
4,337
Still don't see it ...
 
  • #10
pasmith
Homework Helper
2022 Award
2,584
1,183
Still don't see it ...

Use [itex]e^{\pm y} = \cosh y \pm \sinh y[/itex] and [tex]
D \cosh (y + C) = D \cosh C \cosh y + D \sinh C \sinh y[/tex] to obtain [tex]
Ae^y + Be^{-y} = (A + B) \cosh y + (A - B) \sinh y = D \cosh(y + C)[/tex]
where [tex]D \cosh C = A + B),\qquad D\sinh C = A - B.[/tex] Then substitute [itex]y + C = t[/itex].

But one could go further and use [itex]\int_{-\infty}^\infty f(y)\,dy = \int_0^\infty f(y) + f(-y)\,dy[/itex] to obtain [tex]\int_0^\infty ((y - C)^k + (-1)^k (y + C)^k)\mathrm{e}^{-D\cosh y}\,dy[/tex] and expand the polynomials to obtain [tex]
(y - C)^k + (-1)^k (y + C)^k = (-1)^k \sum_{r=0}^k \frac{k!}{(k-r)!r!}C^{k-r} (1 + (-1)^r)y^r[/tex] from which we see that the terms in odd [itex]r[/itex] vanish and we are left with a linear combination of [itex]\int_0^\infty y^r \mathrm{e}^{-D\cosh y}\,dy[/itex].

Now for large [itex]D[/itex] we can approximate this as [tex]\mathrm{e}^{-D} \int_0^\infty y^r \mathrm{e}^{-\frac12 Dy^2}\,dy[/tex] and the substitution [itex]t = \frac12 D y^2[/itex] will turn this into a Gamma function:
[tex]\int_0^\infty y^r \mathrm{e}^{-\frac12 D y^2}\,dy = \frac{1}{\sqrt{2D}} \left( \frac 2D\right)^{r/2}
\int_0^\infty t^{\frac{r-1}2}\mathrm{e}^{-t}\,dt =
\frac{1}{\sqrt{2D}} \left( \frac 2D\right)^{r/2}\Gamma\left( \frac{r+1}{2}\right).[/tex] Thus for large [itex]D[/itex] [tex]
\int_{-\infty}^\infty (y - C)^k \mathrm{e}^{-D\cosh y}\,dy \approx
\frac{(-1)^k \mathrm{e}^{-D}}{\sqrt{2D}} \sum_{r=0}^k \frac{k!}{(k-r)!r!} C^{k-r}(1 + (-1)^r) \left(\frac 2D\right)^{r/2} \Gamma\left( \frac{r+1}{2}\right).[/tex] To leading order only the [itex]r=0[/itex] term is relevant, yielding an estimate of [itex](-1)^kC^k \mathrm{e}^{-D}\sqrt{2\pi/D}[/itex].
 

Suggested for: How to solve an integral II

  • Last Post
Replies
7
Views
765
Replies
3
Views
110
Replies
9
Views
308
  • Last Post
Replies
4
Views
417
Replies
1
Views
638
  • Last Post
Replies
3
Views
90
  • Last Post
Replies
2
Views
597
Replies
8
Views
631
Replies
16
Views
679
Top