0
votes

Hi all I hope I can find help here. My question is regarding integral in MATLAB. Please don't be scared by the complicated notation. They are almost all constants. I have the following function to integrate

syms v
syms gamma2
syms s
lambdav= (14679452516410005*exp(-(3*5^(1/2)*v^(1/4))/25))/(9223372036854775808*v^(1/2))    + (7339726258205003*exp(-(2*v^(1/4))/5))/(4611686018427387904*v^(1/2));
fun2=lambdav* (1./(1+s.*v^(-1)));
B=int(fun2,v,gamma2,+inf);

I would like the answer to be only in terms of gamma2 and s. The problem is MATLAB doesnt perform the integration and I get the following

int(((14679452516410005*exp(-(3*5^(1/2)*v^(1/4))/25))/(9223372036854775808*v^(1/2)) + (7339726258205003*exp(-(2*v^(1/4))/5))/(4611686018427387904*v^(1/2)))/(s/v + 1), v, gamma2, Inf)

which is basically the function I wrote.

Can anyone help me perform the integration?

2
Why not ask this in Math.SE and solve it by using mathematics? - Unapiedra
The integration can't be solved in closed form that is why I tried MATLAB. - George
If you know that it can't be solved in closed form, then you probably shouldn't be using symbolic math. Why not solve this numerically? Also, your integration appears to be over the real domain. Are you using "complex" to mean complicated (though, I don't see anything complicated)? - horchler
I didnt mean by complex compicated. It just a warning for those who are afraid of ugly expressions. - George
How can I solve it numerically if the limit over which I am integrating is a symbol and not a constant i.e it is in this case gamma2 - George

2 Answers

1
votes

If int cannot compute a closed form of an integral, it returns an unresolved integral http://www.mathworks.nl/help/symbolic/int.html

0
votes

Do you really need to integrate analytically? Otherwise, use numerical integration:

q = integral(fun,xmin,xmax)

where fun is a handle to your function and xmin and xmax are the border values of your definite integral.