CITE THIS NOTEBOOK: Wolfram R&D LIVE: Ask Integration Questions to Oleg Marichev by Oleg Marichev. Wolfram Community JAN 31 2023.
Sometimes users ask how to evaluate “simple looking” integrals, for example from x^x. I am ready to talk about do-ability different integrals from mathematical functions.
Remarks about the do-ability of integrals
Remarks about the do-ability of integrals
Operations with {αz,za,zz}
Operations with
{,,}
α
z
z
a
z
z
In[]:=
D[{,,},z]
α
z
z
a
z
z
Out[]=
{α,Log[a],(1+Log[z])}
-1+α
z
z
a
z
z
In[]:=
Integrate[{,,},z]
α
z
z
a
z
z
Out[]=
,,z
1+α
z
1+α
z
a
Log[a]
z
z
∫f[z]zIntegrate[f[z],z]
In[]:=
z,z,z
-
2
z
z
z
α-1
z
-z
Out[]=
1
2
π
Erf[z],ExpIntegralEi[z],-Gamma[α,z]In[]:=
Daz,,,z
z
a
a
z
Out[]=
a,,-
1
a
a
2
z
In[]:=
Integrateaz,,,z
z
a
a
z
Out[]=
,,aLog[z]
a
2
z
2
2
z
2a
Integrals from the literature
Integrals from the literature
Example usage for “Neutrino forces” with 1∫0StruveH0,1-2zzz
Example usage for “Neutrino forces” with StruveH0,
1
∫
0
1-
zz2
z
Recently we found article https://arxiv.org/abs/2209.07082v1 about “Neutrino forces in neutrino backgrounds”, which on the page 14 mentioned that Mathematica can not evaluate one integral with the Struve H function. In reality this integral after rather complicated procedures can be converted to value of StruveTransform from case of MeijerG function. It allows one to apply algorithm developed in my book of 1978 (translated in 1983, see https://en.wikipedia.org/wiki/Oleg_Marichev). As result we got formula
"We note that Mathematica contains some unidentified bugs leading to incorrect results of integrals involvingthe Struve H function,e.g. StruveH0,
1
∫
0
1-
zz should be nonzero while Integrate in Mathematica onlyproduces a vanishing result."2
z
1
∫
0
1-
zz2
z
2
3π
5
4
3
2
7
4
1
16
In[]:=
NIntegrateStruveH0,HypergeometricPFQ{1,1},,,,-//N
1-
z,{z,0,1},2
z
2
3π
5
4
3
2
7
4
1
16
Out[]=
{0.208197,0.208197}
In[]:=
Solve
1-
z==t,z2
z
Out[]=
z-,z,z-,z
1-
1-4
2
t
2
1-
1-4
2
t
2
1+
1-4
2
t
2
1+
1-4
2
t
2
In[]:=
D,tStruveH0,//Simplify
1-
1-4
2
t
2
1-
z/.z2
z
1-
1-4
2
t
2
Out[]=
tStruveH0,
2
t
1
2
2
t
1-
1-4
2
t
Kepler potential integral
Kepler potential integral
For the Kepler potential, this integral is
In[]:=
Integrate,{z,a,b}
(z-a)(b-z)
z
Out[]=
In[]:=
%//InputForm
Out[]//InputForm=
ConditionalExpression[-(((a - b)*(((a + b)*Pi)/2 - I*Sqrt[a]*Sqrt[b]*(Log[((-I)*Sqrt[a])/Sqrt[b]] - Log[(I*Sqrt[a])/Sqrt[b]])))/Sqrt[(a - b)^2]),
(a/(a - b) != 0 && Re[a/(-a + b)] >= 0) || Re[a/(a - b)] > 1 || NotElement[a/(a - b), Reals]]
(a/(a - b) != 0 && Re[a/(-a + b)] >= 0) || Re[a/(a - b)] > 1 || NotElement[a/(a - b), Reals]]
In[]:=
With{a=Random[],b=Random[]+1},NIntegrate,{z,a,b},Inactive[ConditionalExpression][-(((a-b)*(((a+b)*Pi)/2-I*Sqrt[a]*Sqrt[b]*(Log[((-I)*Sqrt[a])/Sqrt[b]]-Log[(I*Sqrt[a])/Sqrt[b]])))/Sqrt[(a-b)^2]),(a/(a-b)!=0&&Re[a/(-a+b)]>=0)||Re[a/(a-b)]>1||NotElement[a/(a-b),Reals]],π-
(z-a)(b-z)
z
a+b
2
ab
In[]:=
NIntegrate,{z,a,b},Inactive[ConditionalExpression][-(((a-b)*(((a+b)*Pi)/2-I*Sqrt[a]*Sqrt[b]*(Log[((-I)*Sqrt[a])/Sqrt[b]]-Log[(I*Sqrt[a])/Sqrt[b]])))/Sqrt[(a-b)^2]),(a/(a-b)!=0&&Re[a/(-a+b)]>=0)||Re[a/(a-b)]>1||NotElement[a/(a-b),Reals]][[1]]-π-
(z-a)(b-z)
z
a+b
2
ab
//FullSimplifyIn[]:=
%/.1->1(b-a)//PowerExpand//Simplify
2
(a-b)
Out[]=
NIntegrate,{z,a,b},0
(z-a)(b-z)
z
Other potential integral
Other potential integral
In[]:=
Integrate-++1-,{t,0,∞}
2ab
a+b
2
t
2b
2
t
2(b-a)
2
(+1)
2
t
In[]:=
%//InputForm
In[]:=
With{a=Random[],b=Random[]+1},NIntegrate-++1-,{t,0,∞},ConditionalExpressionπ,Re>0,-ππ(b-a)
2ab
a+b
2
t
2b
2
t
2(b-a)
2
(+1)
2
t
2
(a-b)
2
2
a
+b
b
a
ab
+πb-1
2
Out[]=
{0.36206,ConditionalExpression[0.36206,True],0.36206}
In[]:=
NIntegrate-++1-,{t,0,∞},Inactive[ConditionalExpression][((a-b)^2*Pi)/(2*(Sqrt[a]+Sqrt[b])^2),Re[Sqrt[b]/Sqrt[a]]>0][[1]]--π//FullSimplify
2ab
a+b
2
t
2b
2
t
2(b-a)
2
(+1)
2
t
ab
+πb-πb-a
2
2(-a+b)
2
(1+)
2
t
2b
1+
2
t
2ab
b+a
2
t
Out[]=
NIntegrate-++1-,{t,0,∞},-
2ab
a+b
2
t
2b
2
t
2(b-a)
2
(+1)
2
t
a
b
+ab
πMore potential integral
More potential integral
For the Kepler potential, this integral is
In[]:=
2Integrate,{t,0,∞}
2
(b-a)
2
t
(b+a)
2
t
2
(1+)
2
t
Out[]=
Out[]//InputForm=
ConditionalExpression[((-a + b)^2*Pi)/(2*(Sqrt[a] + Sqrt[b])^2), Re[Sqrt[a]/Sqrt[b]] > 0]
A difficult triple trigonometric integral
https://mathoverflow.net/questions/308834/difficult-trigonometric-integral
A difficult triple trigonometric integral
https://mathoverflow.net/questions/308834/difficult-trigonometric-integral
https://mathoverflow.net/questions/308834/difficult-trigonometric-integral
Mellin integrals
Mellin integrals
Euler integrals (Gamma & Beta functions)
Euler integrals (Gamma & Beta functions)
MellinTransform (direct & inverse)
MellinTransform (direct & inverse)
Questions
Questions
