Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2649 > unrolled thread

Simple integral

Started byMariano Pierantozzi <mariano.pierantozzi@gmail.com>
First post2011-05-23 10:29 +0000
Last post2011-05-24 09:59 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Simple integral Mariano Pierantozzi <mariano.pierantozzi@gmail.com> - 2011-05-23 10:29 +0000
    Re: Simple integral "p.ramsden" <p.ramsden@imperial.ac.uk> - 2011-05-23 12:41 +0000
    Re: Simple integral Stefan Salanski <wutchamacallit27@gmail.com> - 2011-05-24 09:59 +0000

#2649 — Simple integral

FromMariano Pierantozzi <mariano.pierantozzi@gmail.com>
Date2011-05-23 10:29 +0000
SubjectSimple integral
Message-ID<irdctv$3tq$1@smc.vnet.net>
Hi,
I've got some problem studing this simple integral:
Integrate[1/(x^2 + b x + c), x].
The Mathematica solution is:
(2 ArcTan[(b + 2 x)/Sqrt[-b^2 + 4 c]])/Sqrt[-b^2 + 4 c]

The problem is that my secon order polinomial have two real solutions, so my
delta (-b^2 + 4 c) is greater than zero. In this case the denominator of the
solution does not exist or exist in complex field, but my x is a volume...
I try in this way
Integrate[1/(x^2 + b x + c), x, Assumptions -> {-b^2 + 4 c < 0}], but
nothing!
I can't trasform my arcotangent in two log.
In summary I would like to have such a solution:
Integrate[1/(x^2 + 5 x + 6), x]
Log[2 + x] - Log[3 + x]
but in general form.
Sorry for my english!
Mariano Pierantozzi
PhD Student
Energy Engineering

[toc] | [next] | [standalone]


#2663

From"p.ramsden" <p.ramsden@imperial.ac.uk>
Date2011-05-23 12:41 +0000
Message-ID<irdklo$14a$1@smc.vnet.net>
In reply to#2649
Mariano, you could try

int = Integrate[1/(x^2 + b x + (b^2 - omega^2))/4, x]

and then

int /. omega -> Sqrt[b^2 - 4 c]

Phil

[toc] | [prev] | [next] | [standalone]


#2677

FromStefan Salanski <wutchamacallit27@gmail.com>
Date2011-05-24 09:59 +0000
Message-ID<irfvi6$buo$1@smc.vnet.net>
In reply to#2649
On May 23, 6:29 am, Mariano Pierantozzi
<mariano.pieranto...@gmail.com> wrote:
> Hi,
> I've got some problem studing this simple integral:
> Integrate[1/(x^2 + b x + c), x].
> The Mathematica solution is:
> (2 ArcTan[(b + 2 x)/Sqrt[-b^2 + 4 c]])/Sqrt[-b^2 + 4 c]
>
> The problem is that my secon order polinomial have two real solutions, so my
> delta (-b^2 + 4 c) is greater than zero. In this case the denominator of the
> solution does not exist or exist in complex field, but my x is a volume.. .
> I try in this way
> Integrate[1/(x^2 + b x + c), x, Assumptions -> {-b^2 + 4 c < 0}], but
> nothing!
> I can't trasform my arcotangent in two log.
> In summary I would like to have such a solution:
> Integrate[1/(x^2 + 5 x + 6), x]
> Log[2 + x] - Log[3 + x]
> but in general form.
> Sorry for my english!
> Mariano Pierantozzi
> PhD Student
> Energy Engineering

Mariano,
It turns out that since the imaginary quantity Sqrt[-b^2+4c] appears
in both the denominator, AND in ArcTan in your numerator, they cancel
out and you are left with a real answer whenever you actually evaluate
it, so plugging in numbers b and c you will get real answers all the
time (unless your bounds of integration include either of the two
poles of this equation, then you get errors because it blows up).
The relation is between arctan and arctanh, the hyperbolic tangent
inverse.
ArcTan[ x * I ] = I * ArcTanh[x]
what we can do to simplify your result is to use this relation to
cancel the I's manually, i get
-(ArcTanh[(b + 2 x)/Sqrt[b^2 - 4 c]]/(2 Sqrt[b^2 - 4 c]))
then TrigToExp gives
Log[1 - (b + 2 x)/Sqrt[b^2 - 4 c]]/(4 Sqrt[b^2 - 4 c]) -  Log[1 + (b +
2 x)/Sqrt[b^2 - 4 c]]/(4 Sqrt[b^2 - 4 c])
which I believe is the general case.
-Stefan S

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web