how to calculate the integral int (sin(a*x))^2*exp(-b*x^2)/(x^2)
이전 댓글 표시
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
Walter Roberson
2012년 10월 9일
편집: Walter Roberson
2012년 10월 9일
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
2012년 10월 9일
Walter Roberson
2012년 10월 9일
I am not sure what you mean by "derivation" in this context?
Henry Liu
2012년 10월 9일
Walter Roberson
2012년 10월 9일
편집: Walter Roberson
2012년 10월 9일
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
2012년 10월 9일
Walter Roberson
2012년 10월 9일
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!