Solving closed-form solution of integral by Matlab!!!

7 views (last 30 days)
Let a, b, and c are constants. How to solve the closed-form solution of the following integral by Matlab from 0 to infinity
1/(1+y)*1/(a+y)*1/(b+y)*exp(-cy)
Thanks in advance for your kind cooperation
  3 Comments
Walter Roberson
Walter Roberson on 15 Dec 2016
Are there any constraints on the constants? Real-valued? Non-negative?
Walter Roberson
Walter Roberson on 15 Dec 2016
Under the assumption that none of the values are negative,
(exp(c*a)*(b-1)*Ei(1, c*a)-exp(c*b)*(a-1)*Ei(1, c*b)+exp(c)*Ei(1, c)*(a-b))/((b-1)*(a-1)*(a-b))
where Ei is the Exponential Integral

Sign in to comment.

Answers (1)

David Goodmanson
David Goodmanson on 15 Dec 2016
Hi kader, This depends on what you consider to be closed form. I assume the factor in front is 1/[(1+y)(a+y)(b+y)]. You can solve for constants F,A,B in partial fractions
1/((1+y)(a+y)(b+y)) = F/(1+y) +A/(a+y) +B/(b+y)
Then e.g,
A Int{0,inf} exp(-cy)/(a+y) dy
= A exp(ac) Int{ac,inf} exp(-z)/z dz
= A exp(ac) E1(ac)
where E1 is the exponential integral, which Matlab has.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!