Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

bug in integration with version 5.0 ?

  • To: mathgroup at
  • Subject: [mg46453] bug in integration with version 5.0 ?
  • From: "Florian Jaccard" <florian.jaccard at>
  • Date: Thu, 19 Feb 2004 03:02:03 -0500 (EST)
  • Reply-to: <florian.jaccard at>
  • Sender: owner-wri-mathgroup at

Hello Users !

I have the following problem :

If I integrate

1/(2x^2 + 8x + 20)

with version  4.1 , I obtain the same answer as by hand:

ArcTan[(2 + x)/Sqrt[6]]/(2*Sqrt[6])

Today, I was teaching with the version 5.0, and I obtained :

expr = Integrate[1/(2*x^2 + 8*x + 20), x]

(I*(Log[-2*I + Sqrt[6] - I*x] -
    Log[2*I + Sqrt[6] + I*x]))/(4*Sqrt[6])

It is not as nice as with the version 4.1, but it is right too !

Let us check  :


ArcTan[(2 + x)/Sqrt[6]]/(2*Sqrt[6])

One of my students suggested to load the RealOnly package. He hoped that the
answer would not have a complex form. I just wanted to show him that it
would not be better, and tried his suggestion :

<< "Miscellaneous`RealOnly`"

Integrate[1/(2*x^2 + 8*x + 20), x]

x/(2*(x^2 + 4*x + 10))

This is completely wrong, for sure !

Curiosly, with version 4.1, with RealOnly loaded, Mathematica gives the
right answer... Is it a ugly bug of version 5 ?
Should I tell my students not to use RealOnly ?

Thanks in advance for your suggestions !

Meilleures salutations

Florian Jaccard

  • Prev by Date: Re: No Output, No Error
  • Next by Date: RE: Re: No Output, No Error
  • Previous by thread: Re: permutations?
  • Next by thread: Re: bug in integration with version 5.0 ?