MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

A wrong definite integral in 5.0?


I get this result in version 5.0,

>Integrate[Log[1 - 4 x(1 - x)], {x, 0, 1}]
>-2 + I  Pi

and the same thing if I "declare" the singularity with {x,0,1/2,1}.

Another way to look at the problem is computing,

>Integrate[Log[1 - 4 x(1 - x)], {x, 0, 1/2}]
>-1

and

>Integrate[Log[1 - 4 x(1 - x)], {x, 1/2, 1}]
>-1 + I Pi

Since the integrand is symmetric about x=1/2, the result should have
been the same one (-1) in both cases, and the integral over [0,1]
should yield -2.

A numerical approach,

>NIntegrate[Log[1 - 4 x(1 - x)], {x, 0, 1/2, 1},
  MaxRecursion -> 100, SingularityDepth -> 20]
>-1.9999997086422834`

gives the correct result, within the numerical accuracy required.



  • Prev by Date: early version notebook in Mathematica 6 Linux
  • Next by Date: Re: Slow work of some List functions in Mathematica 6
  • Previous by thread: early version notebook in Mathematica 6 Linux
  • Next by thread: Re: A wrong definite integral in 5.0?