incurable definite integration behavior [Re: Bug in Mathematica 6 - Integrate - 1]
- From: Daniel Lichtblau <danl@xxxxxxxxxxx>
- Date: Fri, 15 Jun 2007 13:34:35 -0700
On Jun 15, 1:16 pm, Vladimir Bondarenko <v...@xxxxxxxxxxxxxxx> wrote:
N[Integrate[1/(Sin[z]^2+Cos[z]^3), {z,0,2}]]
0.276627 + 0.165246 I
NIntegrate[1/(Sin[z]^2+Cos[z]^3), {z,0,2}]
2.17316
Best wishes,
Vladimir Bondarenko
[...]
I'll call this one incurable in the hopes that (not too distant)
future developments prove me wrong. The gist is that the
antiderivative jumps a branch cut on the integration path and the
singularity detection code in Mathematica fails to notice this.
Moreover I am not aware of any general method at this time to find all
such branch cut jumps.
As for specifics, the jump in antiderivative is around 1.2982.
In[4]:= InputForm[ee = Integrate[1/(Sin[z]^2+Cos[z]^3), z]]
Out[4]//InputForm=
2*RootSum[1 - 2*#1 + 3*#1^2 + 4*#1^3 + 3*#1^4 - 2*#1^5 + #1^6 & ,
(2*ArcTan[Sin[z]/(Cos[z] - #1)]*#1^2 - I*Log[-1 + 2*Cos[z]*#1 -
#1^2]*#1^2)/
(-1 + 3*#1 + 6*#1^2 + 6*#1^3 - 5*#1^4 + 3*#1^5) & ]
In[5]:= ee /. z->1.2981
Out[5]= 1.42648 - 0.680196 I
In[6]:= ee /. z->1.2982
Out[6]= -0.469947 - 0.51495 I
Offhand I've no idea whether this path singularity has a "nice" closed
form (might be a challenge problem?).
The inability to find path singularities is a known limitation to
exact definite integration. What is not known, at present, is any
general way to fix this. A possible direction in cases where no
parameters are present might be to support some form of symbolic
"singular point". But still one would need a way to find them and to
compute jump values numerically to some reasonable precision.
For those with an interest, this and other issues for definite
integration are discussed in the Wolfram Research 2005 Tech
Conference, with a notebook available at
http://library.wolfram.com/infocenter/Conferences/5832/
The abstract:
This talk will cover various aspects of symbolic definite integration.
We will briefly outline methods used by Mathematica. We then proceed
to illustrate some of the difficulties one might encounter and show
how the Mathematica implementation currently attempts to handle them.
Time permitting, we will say a bit about future directions of this
work.
This issue in particular is noted in the section "Difficulties
Involving Parameters and Detection of Singularities"
subsection "Transcendentals and Singularity Detection"
There will eventually be an article in The Mathematica Journal that
covers this in a bit more detail.
Daniel Lichtblau
Wolfram Research
.
- Prev by Date: Re: limits at infinity Re: Maple bug the long liver, 1992--2007--? (limit)
- Next by Date: Re: limits at infinity Re: Maple bug the long liver, 1992--2007--? (limit)
- Previous by thread: limits to Limit [Re: Severe bug in Mathematica 6 - Limit - 1 - No more memory available. Mathematica kernel has shut down.]
- Next by thread: Meaning of {} result from Solve in Mathematica [Re: Stopping mathematical contagion worldwide]
- Index(es):
Relevant Pages
|