Solving the following integral in MatLab

4 次查看(过去 30 天)
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 个评论
Ced
Ced 2016-4-7
编辑:Ced 2016-4-7
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.

请先登录,再进行评论。

采纳的回答

Roger Stafford
Roger Stafford 2016-4-7
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by