Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9571 > unrolled thread
| Started by | peter lindsay <pl0@me.com> |
|---|---|
| First post | 2012-04-12 08:42 +0000 |
| Last post | 2012-04-13 09:01 +0000 |
| Articles | 6 — 6 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
troublesome integral peter lindsay <pl0@me.com> - 2012-04-12 08:42 +0000
Re: troublesome integral "Dr. Wolfgang Hintze" <weh@snafu.de> - 2012-04-13 08:45 +0000
Re: troublesome integral "Stephen Luttrell" <steve@_removemefirst_stephenluttrell.com> - 2012-04-13 08:46 +0000
Re: troublesome integral Yi Wang <tririverwangyi@gmail.com> - 2012-04-13 08:56 +0000
Re: troublesome integral danl@wolfram.com - 2012-04-13 08:57 +0000
Re: troublesome integral David Bailey <dave@removedbailey.co.uk> - 2012-04-13 09:01 +0000
| From | peter lindsay <pl0@me.com> |
|---|---|
| Date | 2012-04-12 08:42 +0000 |
| Subject | troublesome integral |
| Message-ID | <jm64ib$6la$1@smc.vnet.net> |
A couple of colleagues wondered about this. I've sent it on to support @ wolfram who are escalating it to the developers. Possibly someone here has an answer though ?
Integrate[Cos[\[Beta]] Exp[I z Cos[\[Beta]-\[Alpha]]],{\[Beta],0,2 \[Pi]},Assumptions->z\[Element]Reals]
doesn't seem to run.
Answer should be
2 I \[Pi] BesselJ[1,z] Cos[\[Alpha]] [ I think ]
thanks
Peter Lindsay
[toc] | [next] | [standalone]
| From | "Dr. Wolfgang Hintze" <weh@snafu.de> |
|---|---|
| Date | 2012-04-13 08:45 +0000 |
| Message-ID | <jm8p3g$imt$1@smc.vnet.net> |
| In reply to | #9571 |
On 12 Apr., 10:42, peter lindsay <p...@me.com> wrote:
> A couple of colleagues wondered about this. I've sent it on to support @
wolfram who are escalating it to the developers. Possibly someone here has
an answer though ?
>
> Integrate[Cos[\[Beta]] Exp[I z Cos[\[Beta]-\[Alpha]]],{\[Beta],0,2 \[Pi]}=
,Assumptions->z\[Element]Reals]
>
> doesn't seem to run.
>
> Answer should be
>
> 2 I \[Pi] BesselJ[1,z] Cos[\[Alpha]] =C2 [ I think ]
>
> thanks
>
> Peter Lindsay
>
>
Your result is correct.
As it happens frequently, Mathematica likes to accept some help:
1) let b-a=g and consider
In[44]:=
FullSimplify[Integrate[Cos[g - a]*Exp[I*z*Cos[g]],
{g, 0, 2*Pi}], z =E2=88=88 Reals]
Out[44]=
2*I*Pi*BesselJ[1, z]*Cos[a]
Here an error has crept in: the limits of integration are not correct,
they should read {g,-a,2 Pi-a}
2) The result is nevertheless correct as can be seen with the original
integral by expanding the exponential function, integrating term by
term, summing up
In[48]:=
Distribute[
Plus @@ Table[Integrate[Cos[b]*(I*z*Cos[b - a])^k,
{b, 0, 2*Pi}, Assumptions -> {z =E2=88=88 Reals,
k =E2=88=88 Integers}]/k!, {k, 0, 10}]/
(I*Pi*Cos[a])]
Out[48]=
z - z^3/8 + z^5/192 - z^7/9216 + z^9/737280
and comparing this to the suspected result
In[45]:=
Normal[2*Series[BesselJ[1, z], {z, 0, 10}]]
Out[45]=
z - z^3/8 + z^5/192 - z^7/9216 + z^9/737280
No stict proof as 10 != inf but very plausible.
Regards,
Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | "Stephen Luttrell" <steve@_removemefirst_stephenluttrell.com> |
|---|---|
| Date | 2012-04-13 08:46 +0000 |
| Message-ID | <jm8p4e$ine$1@smc.vnet.net> |
| In reply to | #9571 |
You can rewrite the integral as
Integrate[
Cos[\[Alpha] + \[Beta]] Exp[I z Cos[\[Beta]]], {\[Beta], 0, 2 \[Pi]},
Assumptions -> z \[Element] Reals]
which can be rearranged as (the Sin[\[Alpha]] Sin[\[Beta]] part integrates
to zero)
Integrate[
Cos[\[Alpha]] Cos[\[Beta]] Exp[I z Cos[\[Beta]]], {\[Beta], 0,
2 \[Pi]}, Assumptions -> z \[Element] Reals]
which evaluates to
2 I \[Pi] BesselJ[1, z] Cos[\[Alpha]]
Over the years I too have encountered this problem with evaluating integral
representations of Bessel functions, and the only solution I have found is
to give mathematica a helping hand, as above.
--
Stephen Luttrell
West Malvern, UK
"peter lindsay" <pl0@me.com> wrote in message
news:jm64ib$6la$1@smc.vnet.net...
>
> A couple of colleagues wondered about this. I've sent it on to support @
> wolfram who are escalating it to the developers. Possibly someone here has
> an answer though ?
>
> Integrate[Cos[\[Beta]] Exp[I z Cos[\[Beta]-\[Alpha]]],{\[Beta],0,2
> \[Pi]},Assumptions->z\[Element]Reals]
>
> doesn't seem to run.
>
> Answer should be
>
> 2 I \[Pi] BesselJ[1,z] Cos[\[Alpha]] [ I think ]
>
> thanks
>
>
> Peter Lindsay
>
>
[toc] | [prev] | [next] | [standalone]
| From | Yi Wang <tririverwangyi@gmail.com> |
|---|---|
| Date | 2012-04-13 08:56 +0000 |
| Message-ID | <jm8poh$j15$1@smc.vnet.net> |
| In reply to | #9571 |
Yes, this shouldn't be a hard integral. On my computer Mathematica cannot do it either. But there is a workaround: first let beta -> beta+alpha. Then the integral becomes =E2=88=AB cos[=CE=B2+=CE=B1] exp[ iz cos=CE=B2 ] d=CE=B2. Then expand cos[=CE=B2+=CE=B1] to cos[=CE=B2]cos[=CE=B1]-sin[=CE=B2]sin[=CE=B1]. Then Mathematica knows how to calculate.
In[17]:= Integrate[
Cos[\[Alpha]] Cos[\[Beta]] Exp[I z Cos[\[Beta]]], {\[Beta], 0,
2 \[Pi]}, Assumptions -> z \[Element] Reals]
Out[17]= 2 I \[Pi] BesselJ[1, z] Cos[\[Alpha]]
In[18]:= Integrate[-Sin[\[Alpha]] Sin[\[Beta]] Exp[
I z Cos[\[Beta]]], {\[Beta], 0, 2 \[Pi]},
Assumptions -> z \[Element] Reals]
Out[18]= 0
Thus the final result is the same as yours.
Best,
Yi
On Thursday, April 12, 2012 4:42:51 AM UTC-4, peter lindsay wrote:
> A couple of colleagues wondered about this. I've sent it on to support @ wolfram who are escalating it to the developers. Possibly someone here has an answer though ?
>
> Integrate[Cos[\[Beta]] Exp[I z Cos[\[Beta]-\[Alpha]]],{\[Beta],0,2 \[Pi]},Assumptions->z\[Element]Reals]
>
> doesn't seem to run.
>
> Answer should be
>
> 2 I \[Pi] BesselJ[1,z] Cos[\[Alpha]] [ I think ]
>
> thanks
>
>
> Peter Lindsay
[toc] | [prev] | [next] | [standalone]
| From | danl@wolfram.com |
|---|---|
| Date | 2012-04-13 08:57 +0000 |
| Message-ID | <jm8ppg$j1t$1@smc.vnet.net> |
| In reply to | #9571 |
On Thursday, April 12, 2012 3:42:51 AM UTC-5, peter lindsay wrote:
> A couple of colleagues wondered about this. I've sent it on to support @ wolfram who are escalating it to the developers. Possibly someone here has an answer though ?
>
> Integrate[Cos[\[Beta]] Exp[I z Cos[\[Beta]-\[Alpha]]],{\[Beta],0,2 \[Pi]},Assumptions->z\[Element]Reals]
>
> doesn't seem to run.
>
> Answer should be
>
> 2 I \[Pi] BesselJ[1,z] Cos[\[Alpha]] [ I think ]
>
> thanks
>
>
> Peter Lindsay
You can do this by translating so that the cosine in the exponential has a simple argument of 'b', recognizing that by periodicity you need not change the range of integration.
In[190]:= Integrate[Cos[b + a] Exp[I*z*Cos[b]], {b, 0, 2*Pi},
Assumptions -> {Element[{a, z}, Reals]}]
Out[190]= 2*I*Pi*BesselJ[1, z]*Cos[a]
Daniel Lichtblau
Wolfram Research
[toc] | [prev] | [next] | [standalone]
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Date | 2012-04-13 09:01 +0000 |
| Message-ID | <jm8q23$j5e$1@smc.vnet.net> |
| In reply to | #9571 |
On 12/04/2012 09:42, peter lindsay wrote:
> A couple of colleagues wondered about this. I've sent it on to support @ wolfram who are escalating it to the developers. Possibly someone here has an answer though ?
>
> Integrate[Cos[\[Beta]] Exp[I z Cos[\[Beta]-\[Alpha]]],{\[Beta],0,2 \[Pi]},Assumptions->z\[Element]Reals]
>
> doesn't seem to run.
>
> Answer should be
>
> 2 I \[Pi] BesselJ[1,z] Cos[\[Alpha]] [ I think ]
>
> thanks
>
>
> Peter Lindsay
>
>
I can confirm the integral seems to loop.
I found that this integral will evaluate:
aa=Integrate[Exp[I \[Beta]] Exp[I z Cos[\[Beta]-\[Alpha]]],{\[Beta],0,2
\[Pi]},Assumptions->z\[Element]Reals]
and (of course)
bb=Integrate[Exp[-I \[Beta]] Exp[I z Cos[\[Beta]-\[Alpha]]],{\[Beta],0,2
\[Pi]},Assumptions->z\[Element]Reals]
Evaluating (aa+bb)/2 and simplifying, I get
2 I \[Pi] BesselJ[1,z]
This is not the answer you expect, and does not depend on \[Alpha] but I
am not sure if splitting the integral in that way is sound - there might
be convergence issues.
David Bailey
http://www.dbaileyconsultancy.co.uk
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web