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 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!