The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Calculation of a not so simple integral
Replies: 4   Last Post: Jun 21, 2013 5:45 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Roland Franzius

Posts: 586
Registered: 12/7/04
Re: Calculation of a not so simple integral
Posted: Jun 21, 2013 5:45 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Am 15.06.2013 10:15, schrieb Roland Franzius:
> (*Partial Fractions decomposition, Fourier Integrals
> The problem diagnostics:
> Calculate
> Integrate[ Sin[x/2]^2 / x^2 / (x^2-4*Pi^2 )^2 / (x^2 + a^2)^2 ,
> {x,-oo,oo}, Assumptions-> a>0]
> The integrand is nonnegative, has no poles on the real line and decays
> rapidly ~ x^-10 as x->+-oo
> Mathematica version 6+8 are failing to give a result in a reasonable
> time of calculation.
> Time constraint does not seem to work
> The indefinite integral is calculated readily with an obscure complex
> result, the primitive function giving completely useless limits for
> x->0,+-oo
> The FourierTransform with Limit k->0 seems to give a correct result
> compared to numerical integration for values of
> a -> 1/20
> *)

Remains to be noted that suddenly today in the morning my Mathematica 8
(local install with license server) seems to have been updated over the
internet with respect to this integral.

While yesterday the result was MeiersG, when I came back after 2 hours,
suddenly we have amuch faster and slightly better result

In[14]:= ires=Timing[ Integrate[Evaluate[Sin[x/2]^2

Out[14]= {64.865, (
3 a^7 + 28 a^5 \[Pi]^2 + 16 a^2 (-7 + 6 a) \[Pi]^4 +
64 (-3 + 2 a) \[Pi]^6)/(64 a^5 \[Pi]^3 (a^2 + 4 \[Pi]^2)^3)}

still wrong, the exponential terms are missing.

But at least for a>1 we get the algebraically correct result.

In[31]:= iresg=Timing[ Integrate[Evaluate[Sin[x/2]^2

Out[31]= {63.477, (
E^-a (16 a^2 (7 + a) \[Pi]^4 + 64 (3 + a) \[Pi]^6 +
E^a (3 a^7 + 28 a^5 \[Pi]^2 + 16 a^2 (-7 + 6 a) \[Pi]^4 +
64 (-3 + 2 a) \[Pi]^6)))/(64 a^5 (a^2 \[Pi] + 4 \[Pi]^3)^3)}

With Assumptions -> a>0, Integrate produces both results as a
conditional expression. It Contains the difference of two imaginary Log's.

So I conclude there seem to exists problems with the partial fractions
decomposition engine and in the simplification of complex Log's and Atan's.

Of course this is a nontrivial matter because it involves complex
contour integrals which cannot be desribed by the endpoints only.


Roland Franzius

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.