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


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

How to define a specific definite integral result in Mathematica

Started byAntonio Alvaro Ranha Neves <aneves@gmail.com>
First post2012-03-13 08:03 +0000
Last post2012-03-19 09:57 +0000
Articles 3 — 2 participants

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


Contents

  How to define a specific definite integral result in Mathematica Antonio Alvaro Ranha Neves <aneves@gmail.com> - 2012-03-13 08:03 +0000
    Re: How to define a specific definite integral result in Mathematica nanobio9 <kuokan.liang@gmail.com> - 2012-03-15 05:25 +0000
      Re: How to define a specific definite integral result in Mathematica Antonio Alvaro Ranha Neves <aneves@gmail.com> - 2012-03-19 09:57 +0000

#8982 — How to define a specific definite integral result in Mathematica

FromAntonio Alvaro Ranha Neves <aneves@gmail.com>
Date2012-03-13 08:03 +0000
SubjectHow to define a specific definite integral result in Mathematica
Message-ID<jjmv02$cf1$1@smc.vnet.net>
Dear Mathematica users,

I'd like to use the following integral for symbolic computation,

Integrate[
 Sin[a] Exp[I r Cos[b] Cos[a]] LegendreP[n, m, Cos[a]] BesselJ[m, 
   r Sin[b] Sin[a]], {a, 0, \[Pi]}]

whose result is

2 I^(n - m) LegendreP[n, m, Cos[b]] SphericalBesselJ[n, r]

is there a way to make Mathematica "learn" this result, so that I can work with symbolic computation of the integrand?

Thanks,
Antonio

[toc] | [next] | [standalone]


#9075

Fromnanobio9 <kuokan.liang@gmail.com>
Date2012-03-15 05:25 +0000
Message-ID<jjrugh$93q$1@smc.vnet.net>
In reply to#8982
On 3=E6=9C=8813=E6=97=A5, =E4=B8=8B=E5=8D=884=E6=99=8203=E5=88=86, Antonio =
Alvaro Ranha Neves <ane...@gmail.com>
wrote:
> Dear Mathematica users,
>
> I'd like to use the following integral for symbolic computation,
>
> Integrate[
>  Sin[a] Exp[I r Cos[b] Cos[a]] LegendreP[n, m, Cos[a]] BesselJ[m,
>  r Sin[b] Sin[a]], {a, 0, \[Pi]}]
>
> whose result is
>
> 2 I^(n - m) LegendreP[n, m, Cos[b]] SphericalBesselJ[n, r]
>
> is there a way to make Mathematica "learn" this result, so that I can work with symbolic computation of the integrand?
>
> Thanks,
> Antonio

I hope that I got your question correctly. If you want to manipulate
any of {I, n, m, b, r} later, you can just say
myIntegral[ I_, n_, m_, b_, r_]:= Integrate[what you did]
Later you can put any expression into I or n or m and so on.

Best

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


#9133

FromAntonio Alvaro Ranha Neves <aneves@gmail.com>
Date2012-03-19 09:57 +0000
Message-ID<jk6vug$sq$1@smc.vnet.net>
In reply to#9075
Dear nanobio9,

I don't think it is a simple problem of function definition. I'll try to explain it better, using this manipulation below:

Lets call Integrand the integrand of he integral in the previous post,

Integrand = 
  Sin[a] Exp[I r Cos[b] Cos[a]] LegendreP[n, m, Cos[a]] BesselJ[m, 
    r Sin[b] Sin[a]];

Now we want to derivate it with respect to r,

D[Integrand, r] // FullSimplify

In such a way that the integral,

Integrate[FullSimplify[D[Integrand, r]], {a, 0, \[Pi]}]

is equal to the derivative with respect to r,

D[2 I^(n - m) LegendreP[n, m, Cos[b]] SphericalBesselJ[n, r], 
  r] // FullSimplify

But to do this, Mathematica has first to "learn" or "memoraize" the following integral result,

Integrate[ 
 Sin[a] Exp[I r Cos[b] Cos[a]] LegendreP[n, m, Cos[a]] BesselJ[m, 
   r Sin[b] Sin[a]], {a, 0, \[Pi]}]

is equal to

2 I^(n - m) LegendreP[n, m, Cos[b]] SphericalBesselJ[n, r] 

Thanks,
Antonio

On Thursday, March 15, 2012 6:25:37 AM UTC+1, nanobio9 wrote:
> On 3=E6=9C=8813=E6=97=A5, =E4=B8=8B=E5=8D=884=E6=99=8203=E5=88=86, Antonio =
> Alvaro Ranha Neves <ane...@gmail.com>
> wrote:
> > Dear Mathematica users,
> >
> > I'd like to use the following integral for symbolic computation,
> >
> > Integrate[
> >  Sin[a] Exp[I r Cos[b] Cos[a]] LegendreP[n, m, Cos[a]] BesselJ[m,
> >  r Sin[b] Sin[a]], {a, 0, \[Pi]}]
> >
> > whose result is
> >
> > 2 I^(n - m) LegendreP[n, m, Cos[b]] SphericalBesselJ[n, r]
> >
> > is there a way to make Mathematica "learn" this result, so that I can work with symbolic computation of the integrand?
> >
> > Thanks,
> > Antonio
> 
> I hope that I got your question correctly. If you want to manipulate
> any of {I, n, m, b, r} later, you can just say
> myIntegral[ I_, n_, m_, b_, r_]:= Integrate[what you did]
> Later you can put any expression into I or n or m and so on.
> 
> Best

[toc] | [prev] | [standalone]


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


csiph-web