Solving the following integral in MatLab

3 views (last 30 days)
Can anyone please help me to solve the following integration in MatLab.
int(log2(1+x)*exp(-c*x/(a-b*x)),x,0,inf)
I tried in Matlab and Mathematica. But the following results is found int((log(x + 1)*exp(-(c*x)/(a - b*x)))/log(2), x, 0, Inf)
and Mathematica shows the following message, Integrate::idiv: Integral of E^((c x)/(-a+b x)) Log[1+x] does not converge on {0,\[Infinity]}. >>
Is there anyway to solve this?
Thanks in advance.
  2 Comments
Ced
Ced on 7 Apr 2016
Edited: Ced on 7 Apr 2016
What are your values for a,b,c?
Maybe I'm missing something, but there is a problem at x = a/b already, no? Your denominator will go through zero, and the function value will either jump from 0 to infinity or vice-versa, depending on your sign of a and b.

Sign in to comment.

Accepted Answer

Roger Stafford
Roger Stafford on 7 Apr 2016
If b and c are both nonzero, then as x approaches infinity the factor exp(-c*x/(a-b*x)) approaches exp(c/b) which would be nonzero and log2(1+x) approaches infinity. It is therefore obvious that the integral does not converge at the upper limit as x approaches infinity, since the integrand approaches infinity. You should not be asking how to solve this integral. You should be looking into whatever reasoning led to the integral and reconsider that reasoning if you expected a finite answer.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!