开发者

Performing an integral from -infinity to infinity in Maple

I'm trying to perform the following integral in Maple:

simplify开发者_如何转开发(int(a*x^2*e^(-a*x^2), x = -infinity .. infinity))

But instead of returning an answer, Maple just returns back the integral statement itself:

int(a*x^2*e^(-a*x^2), x = -infinity .. infinity)

In the prettier form though (with the actual integral sign, etc). I've tried removing the "simplify()" but it doesn't make any difference.

Any idea why that is? It should return a value.


You may have just a syntax problem. The exponential function applied to x is exp(x) not e^x.

> int(a*x^2*exp(-a*x^2), x = -infinity .. infinity);
                /               (1/2)           \
                |             Pi                |
       piecewise|csgn(a) = 1, --------, infinity|
                |                (1/2)          |
                \             2 a               /


You have to tell maple that a has positive real part. Otherwise, the integral does not exist. Consult the manual for how to do this.

IIRC, there is a assume function, and a symbolic option you can pass to various functions (including simplify and int).


For what it's worth Wolfram Alpha seems to be able to do this:

Performing an integral from -infinity to infinity in Maple

It gives an answer of sqrt(pi) / (2 * sqrt (a)) (assuming Re(a) > 0).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜