how to calculate the integral int (sin(a*x))^2*exp(-b*x^2)/(x^2)
Show older comments
f=(sin(a*x))^2*exp(-b*x^2)/(x^2);
s=int(f,x,0,inf)
a>0,b>0
syms x;
syms a b positive;
f1=(sin(a*x))^2*exp(-b*x^2)/(x^2);
s1=int(f1,x,0,inf);
s2=simple(s1)
I have tried to caltulate with the function "int" but failed. The results were "Warning: Explicit integral could not be found. s2=inf"
Thanks!
8 Comments
Walter Roberson
on 9 Oct 2012
Edited: Walter Roberson
on 9 Oct 2012
Note that "int" is symbolic integral, not numeric.
The symbolic integral does exist; Maple says it is
(1/2)*Pi^(1/2)*(-b+exp(-a^2/b)*b+a*Pi^(1/2)*erf(a/b^(1/2))*b^(1/2))/b^(1/2)
Henry Liu
on 9 Oct 2012
Walter Roberson
on 9 Oct 2012
I am not sure what you mean by "derivation" in this context?
Henry Liu
on 9 Oct 2012
Walter Roberson
on 9 Oct 2012
Edited: Walter Roberson
on 9 Oct 2012
I am not sure I understand. I suspect you might be asking how to arrive at that particular solution to the integral ? Or perhaps you are asking how to get MATLAB to get the same result that Maple gets? Or are you asking for the derivative of the integral? The derivative of the integral would just be the original formula.
Henry Liu
on 9 Oct 2012
Walter Roberson
on 9 Oct 2012
In Maple, it is
simplify( int((sin(a*x))^2*exp(-b*x^2)/(x^2), x=0..infinity), size) assuming positive
I do not have the MATLAB Symbolic toolkit so I do not know if MATLAB can handle this particular integral.
Accepted Answer
More Answers (0)
Categories
Find more on Assumptions 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!