MATLAB: How to solve the complex integration

complex integrationnumerical integration

How to solve integration of w.r.t. "r"?
1/{r((sum(x+b)/b)^a)+r} upper limit=s lower limit=0

Best Answer

(sum(x+b)/b)^a is a constant with respect to r, so you can logically replace this with
syms C r s
result = int(1 / (r*C + r), r, s, 0)
subs(result, C, sum(x+b)/b)
However, look more closely at that denominator. It is r*(C+1) . Now look at the upper bound: it is r = 0. So you are integrating something that has an upper bound of 1/(0*(C+1)) which is 1/0 . The result is going to be -infinity times sign(C+1) .
No need to do the actual integration.