Closed-form solution for a triple integral

Click For Summary

Discussion Overview

The thread discusses the evaluation of a complex triple integral in closed form, focusing on methods to simplify the integration process. Participants explore various approaches to break down the integral into manageable parts, considering both numerical and analytical techniques, while addressing the challenges posed by non-linear functions within the integrand.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents a specific triple integral and seeks methods to divide the limits for easier evaluation.
  • Some participants suggest that the integrals may not have closed forms due to the non-linear nature of the functions involved.
  • There are proposals for linear approximations of the minimum function within the integrand, with varying degrees of justification and acceptance among participants.
  • Concerns are raised about the validity of approximating terms like ##y_1 + y_2## as ##y_1##, particularly when both variables can approach infinity.
  • Participants discuss the exponential integral function and its applicability in MATLAB, noting its lack of a closed form but potential for approximation.
  • One participant shares a specific integral result from Mathematica and seeks clarification on the steps taken to arrive at that result.
  • There is mention of integration by parts as a method to evaluate certain integrals, with references to specific conditions for convergence.

Areas of Agreement / Disagreement

Participants express differing opinions on the feasibility of finding closed-form solutions for the integrals, with some advocating for approximations while others remain skeptical about the validity of those approximations. The discussion remains unresolved regarding the best approach to take.

Contextual Notes

Participants note the complexity of the integrals and the potential for divergent results, particularly when evaluating limits. There is an acknowledgment of the need for careful handling of approximations and the conditions under which they may be valid.

EngWiPy
Messages
1,361
Reaction score
61
Hello all,

I need to evaluate the following 3-dimensional integral in closed-form (if possible)

\int_{y_1=0}^{\infty}\int_{y_2=0}^{\infty}\int_{x_2=0}^{zy_2}\exp\left(-\min(x_2,\,y_1(z-\frac{x_2}{y_2}))\right)e^{-(K-1)x_2}e^{-y_1}e^{-y_2}\,dx_2dy_2dy_1

where ##z## is real positive number, and ##K \geq 1## is an integer.

I need to find a way to divide the limits of the integrals such that the resulting integrals can be evaluated in closed-form, or at least in compact form in terms of functions that are implemented in major scientific software like MATLAB.

What I did was that I divided the inner most integral into two interval as following

<br /> \int_{y_1=0}^{\infty}\int_{y_2=0}^{\infty}\int_{x_2=0}^{\frac{z\,y_1y_2}{y_1+y_2}}e^{-Kx_2}e^{-y_1}e^{-y_2}\,dx_2dy_2dy_1 + \int_{y_1=0}^{\infty}\int_{y_2=0}^{\infty}\int_{x_2=\frac{z\,y_1y_2}{y_1+y_2}}^{zy_2}\exp\left(-y_1(z-\frac{x_2}{y_2})\right)e^{-(K-1)x_2}e^{-y_1}e^{-y_2}\,dx_2dy_2dy_1<br />

but this gives a very complicated integrals to be evaluated at some point later. Is there any other way I can divide the integrals (over ##y_1## and/or ##y_2## and/or ##x_2##) in a way that would make the integrals easier to evaluate?

Thanks in advance
 
Physics news on Phys.org
Hmm, I guess you stumble upon integrals of the form ##\int e^{-f(y)}dy## where ##f(y)## is not a linear function of y, and hence those integrals probably don't have closed form.

Either numerical integration or to try to approximate the ##f(y)## functions with some proper linear approximation functions ##g(y)##. In both cases you ll find approximations for the integral.
 
Delta² said:
Hmm, I guess you stumble upon integrals of the form ##\int e^{-f(y)}dy## where ##f(y)## is not a linear function of y, and hence those integrals probably don't have closed form.

Either numerical integration or to try to approximate the ##f(y)## functions with some proper linear approximation functions ##g(y)##. In both cases you ll find approximations for the integral.

An approximation would be fine. I am trying to avoid the numerical integration because it is computationally expensive. How can I approximate ##
\min(x_2,\,y_1(z-\frac{x_2}{y_2}))## as a linear function of ##x_2##, and how close the approximation would be?
 
My original thought was to do the "break" as you did in the OP, then do the integrations with respect to ##x_2##, (if i am not wrong the exponentials will be linear with respect to ##x_2## )and then starting doing the linear approximations with respect to ##y_1## and ##y_2##.

But ok if you want a linear approximation of the minimum function take it to be the arithmetic mean of the two values, ##\frac{x_2+y_1(z-x_2/y_2)}{2}## it will be linear with respect to ##x_2##, however after you integrate with respect to ##x_2##, or at the very end you ll get exponents that are not linear with respect to ##y_1## (or ##y_2##) so you ll have to do another linear approximation there.
 
Last edited:
The problem is not integrating with respect to ##x_2## but rather with respect to ##y_1## and ##y_2##. I get integrals that have no closed/compact form solution. for example, some integrals over ##y_1## and ##y_2## looks like this

\int_0^{\infty}\int_0^{\infty}\exp\left(-y_2\left[\frac{Kzy_1}{y_1+y_2}\right]\right)e^{-y_1}\,dy_2dy_1
 
Well ok, if you do the linear approximation of the minimum function as I suggested, probably you won't get such integrals with respect to ##y_1,y_2##.

Still you can do linear approximations even in such integral for example you could approximate ##y_1+y_2## as ##y_1## and then all you ll left with will be ##e^{-Kzy_2}e^{-y_1}## .
 
Last edited:
What is the justification for approximating y1+y2 as y1?
 
EngWiPy said:
What is the justification for approximating y1+y2 as y1?
Not much justification, we are just "despaired" to do linear approximations …

Maybe one justification would be as y1 goes to infinity, y1 is the term that survives in y1+y2, so if you going to first integrate that with respect to y1, then you can do this approximation..
 
Delta² said:
Not much justification, we are just "despaired" to do linear approximations …

Maybe one justification would be as y1 goes to infinity, y1 is the term that survives in y1+y2, so if you going to first integrate that with respect to y1, then you can do this approximation..

It is true that when ##y_1## goes to infinity, ##y_1+y_2## can be approximated as ##y_1##, but only if ##y_2## doesn't go to infinity at the same time.
 
  • #10
Apparently you don't like my blunt linear approximations... :P

Best I can think now is to have a look at this http://www.wolframalpha.com/input/?i=integral+e^(-axy/(y+x))dy

I used x and y instead of y1 and y2. That integral result is "almost closed form", the only thing is that the function ##Ei(z)## (exponential integral) doesn't have a closed form but a good approximation for it is ##Ei(z)=\gamma+lnz+z##. where ##\gamma## the Euler-Mascheroni constant. You can as well take ##Ei(z)=\gamma## but I know you ll tell me such approximation is not justified :D
 
Last edited:
  • #11
Exponential integral function is fine, because it is implemented in MATLAB. The remaining question is: how Mathematica obtained this result? I need some references and steps on how the results are obtained.

The inner most integral will evaluate to (which the definite integral to the indefinite integral evaluated using Mathematica)

Ky_1^2Ei(-Ky_1)-1-y_1

In the table of integrals there is a solution to the integral

\int_0^{\infty}x^{v-1}Ei(-\beta\,x)e^{-\mu\,x}\,dx

for the next level integral. Do you have any idea how to evaluate the integral, and obtain the same results as Mathematica?
 
  • #12
EngWiPy said:
Exponential integral function is fine, because it is implemented in MATLAB. The remaining question is: how Mathematica obtained this result? I need some references and steps on how the results are obtained.

I think wolfram does integration by parts on the function ##f(y)=(x+y)e^{-a\frac{xy}{x+y}}##

Beware the input I gave to wolfram was to essentially calculate ##\int e^{-y_2\frac{Kzy_1}{y_1+y_2}}dy_2##
In the table of integrals there is a solution to the integral

\int_0^{\infty}x^{v-1}Ei(-\beta\,x)e^{-\mu\,x}\,dx

for the next level integral. Do you have any idea how to evaluate the integral, and obtain the same results as Mathematica?
Don't see any other way than to use some of the approximations I suggested for the ##Ei(z)## function. Even if we use the simplest approximation ##Ei(z)=\gamma## this integral needs repeated integration by parts...

The more detailed approximation for ##Ei(z)## for positive real z, is

##Ei(z)=\gamma+lnz+\sum_{n=1}^{\infty}\frac{z^n}{nn!}##

EDIT : Surprising but wolfram seems to find a "closed" form for this integral for ##v=3##
http://www.wolframalpha.com/input/?i=integral+x^2ei(-bx)e^(-\mu+x)dx

Apparently a useful property of the Ei(z) function (which you can use to do integration by parts for this integral) is that
##\frac{dEi(z)}{dz}=\frac{e^z}{z}##, that is it has a closed form derivative.
 
Last edited:
  • #13
The integration

<br /> \int_0^{\infty}x^{v-1}Ei(-\beta\,x)e^{-\mu\,x}\,dx = e^{\beta\mu}\left[Ei(-\mu u-\beta\mu) - Ei(-\beta\mu)\right]<br />

has a compact-form solution in the table of integrals. The condition that needs to be met is that ##\Re\{\mu+\beta\} > 0##. I think there is no problem here. I just need to evaluate the first integral, namely

<br /> \int_0^{\infty}\exp\left(-y_2\left[\frac{Kzy_1}{y_1+y_2}\right]\right)\,dy_2<br />
 
  • #14
Well, I tried to evaluate that integral and for some reason I get ##+\infty##

Here is what I did
Taking the expression from wolfram for the indefinite integral
##F(y_2)=\int \exp\left(-y_2\left[\frac{Kzy_1}{y_1+y_2}\right]\right)\,dy_2##

we have (where ##a=Kz>0##)

##F(y_2)=(y_1+y_2)e^{-\frac{ay_1y_2}{y_1+y_2}} -ay_1^2e^{-ay_1}Ei(a\frac{y_1^2}{y_1+y_2})##

We need to find ##\lim_{y_2\to \infty}F(y_2)-\lim_{y_2\to 0}F(y_2)##

I find ##\lim_{y_2\to \infty}F(y_2)=(+\infty)e^{-a}-ay_1^2e^{-ay_1}Ei(0))=(+\infty)-(-\infty)=(+\infty)##
while ##\lim_{y_2\to 0}F(y_2)=y_1-ay_1^2e^{-ay_1}Ei(ay_1)##

It might be the case that the integral with respect to y2 does not converge but the double integral of y1 and y2 converges.
 
Last edited:
  • Like
Likes   Reactions: EngWiPy
  • #15
So, there is no closed-form solution for it, and I have to resort to numerical integration?
 
  • #16
EngWiPy said:
So, there is no closed-form solution for it, and I have to resort to numerical integration?

Well seems so to me, see if there is too much difference in the result you get by numerical integration, and in the result you get if you "linearly" approximate it as ##\int_0^\infty\int_0^\infty e^{(-Kzy_2)}e^{-y_1}dy_2dy_1##. The last integral value is ##\frac{1}{Kz}## if I am not wrong.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K