Skip to main content

equation solving - Why does the integral not converge?


I am trying to solve for $\Omega$ this nonlinear integral equation:


$$1+\dfrac{z}{k^2}-\dfrac{z^2}{K_2(z)} \dfrac{\Omega}{k^3} \displaystyle\int_{1}^{\infty} \gamma^2\, \text{ArcTanh} \left(\sqrt{\frac{\gamma ^2-1}{\gamma ^2}} \dfrac{k}{\Omega}\right)\, e^{-\text{z$\gamma $}} \, d\gamma=0$$


where $K_2(z)$ is the modified Bessel function of the second kind, $\Omega$ and $k$ are reals, $z> 0$.



The Mathematica input is:


f[Ω_?NumericQ, k_?NumericQ, z_?NumericQ] := 1 + (z/k^2) - (z^2/BesselK[2, z]) (Ω/k^3) 
NIntegrate[γ^2 (ArcTanh[Sqrt[(γ^2 - 1)/γ^2] (k/Ω)]) Exp[-z γ], {γ, 1, Infinity},
MaxRecursion -> 500]

The solutions $\Omega (k, z)$ are given by :


 W[k_,z_] := Re[Ω /. FindRoot[f[Ω, k, z], {Ω, .895}]]

I need to calculate all solutions $\Omega(k, z)$ for $k = 3$ when $0.1

My problem is that I get accurate solutions for $1

For example:


Block[{k=3},Table[{z, W[k,z]},{z,{100,10,5,1,0.5,0.1}}]]

{{100, 1.139642672363642}, {10, 1.96313715768855}, {5, 2.393983432376982}, {1, 2.905633499901334}, {0.5, 202.5621368946721}, {0.1, 104.1929384069426}}


The true values for $z=0.5$ and $0.1$ are:


W[3,0.5]= 2.98 ; W[3,0.1]= 2.99


Please, why do the computations do not converge? Is there an easy way to resolve this problem ?


(I should mention that I'm using Mathematica 10.2.0.0.)



Answer



Difficulties encountered in solving the dispersion relation in the Question are due not so much to convergence of the integral as to the branch point in complex γ- space, which occurs where the argument of ArcTanh[] is equal to 1. Based on the related article cited in a comment above, the integration contour {γ, 1, Infinity} must pass below all non-analytic points in complex γ- space. Moreover, on both physical and mathematical grounds Im[Ω] < 0, which implies that the corresponding value of γ also has a negative imaginary part. I had hoped to take the branch point into account in the same way that I did in answering Question 113240, but this proved to be impractical, because the corresponding branch cut is not a straight line in complex γ- space.



Alternatively, the branch point, which is logarithmic, can be eliminated from the integrand


γ^2 (ArcTanh[Sqrt[(γ^2 - 1)/γ^2] (k/Ω)]) Exp[-z γ]

by means of integration by parts:


arg1 = Integrate[γ^2 Exp[-z γ], γ, Assumptions -> z > 0];
arg2 = Simplify[D[ArcTanh[Sqrt[(γ^2 - 1)/γ^2] (k/Ω)], γ], γ > 1];
arg = -arg1 arg2
(* (k*(2 + 2*z*γ + z^2*γ^2)*Ω)/(E^(z*γ)*z^3*Sqrt[γ^2 - 1]*(-(k^2*(-1 + γ^2)) + γ^2*Ω^2)) *)

Based on the discussion in the first paragraph, the dispersion relation becomes not just the first equation in the question with the new integrand, but also the Residue of the pole.



pole = Solve[Denominator[arg] == 0, γ] // Last
(* {γ -> k/Sqrt[k^2 - Ω^2]} *)
res = FullSimplify[Residue[arg, {γ, γ /. pole}]]
(* (-(k^2*(2 + z^2)*Ω) + 2*Ω^3 - 2*k*z*Ω*Sqrt[(k - Ω)*(k + Ω)])/
(2*E^((k*z)/Sqrt[k^2 - Ω^2])*z^3*((k - Ω)*(k + Ω))^(3/2)*Sqrt[Ω^2/(k^2 - Ω^2)]) *)

Inserting this term, along with the new integrand given above, into the definition of f from the Question yields the new dispersion function,


h[Ω_?NumericQ, k_?NumericQ, z_?NumericQ] := 
1 + (z/k^2) - (z^2/BesselK[2, z]) (Ω/k^3) (NIntegrate[(E^(-z γ)
k (2 + 2 z γ + z^2 γ^2) Ω)/(z^3 Sqrt[-1 + γ^2] (-k^2 (-1 + γ^2) + γ^2 Ω^2)),

{γ, 1, Infinity}] + 2 Pi I (E^(-((k z)/Sqrt[k^2 - Ω^2])) Ω (-2 k^3 z + 2 k z Ω^2 -
k^2 (2 + z^2) Sqrt[k^2 - Ω^2] + 2 Ω^2 Sqrt[k^2 - Ω^2]))/(2 z^3 Sqrt[Ω^2/(k^2 - Ω^2)]
(k^2 - Ω^2)^2))

A comment above by Betatron estimates that h[Ω, 3, 100] is satisfied by Ω such that Im[Ω]/Re[Ω] is of order -0.0075. The new dispersion relation yields,


Ω /. Last@FindRoot[h[Ω, 3, 100], {Ω, 1.1 - .1 I}]
(* 1.13917 - 0.0075706 I *)
Im[%]/Re[%]
(* -0.0066457 *)


In contrast, the original dispersion relation yielded 1.1397 + 4.04927*10^-11 I, along with error messages. A few minutes of computation are sufficient to generate the following plots.


enter image description here


enter image description here


As requested in the Question, the new dispersion relation gives credible solutions for small z, and credible values for Im[Ω] throughout.


Addendum


As requested by Betatron in a Chat Room conversation, the code used to create the two plots above is


t1 = Table[{i, Ω /. FindRoot[h[Ω, 3, i], {Ω, 3 - I/1000}]}, {i, 1/10, 1, 1/10}];
t2 = Table[{i, Ω /. FindRoot[h[Ω, 3, i], {Ω, 2.5 - .3 I}]}, {i, 1, 3, 1/10}];
t3 = Table[{i, Ω /. FindRoot[h[Ω, 3, i], {Ω, 2. - .3 I}]}, {i, 4, 20}];
ListLogLinearPlot[Union[Re[t1], Re[t2], Re[t3]], AxesLabel -> {z, "Re[Ω]"}]

ListLogLinearPlot[{First@#, Im[Last@#]/Re[Last@#]} & /@
Union[t1, t2, t3], PlotRange -> All, AxesLabel -> {z, "Im[Ω]/Re[Ω]"}]

Comments

Popular posts from this blog

plotting - Filling between two spheres in SphericalPlot3D

Manipulate[ SphericalPlot3D[{1, 2 - n}, {θ, 0, Pi}, {ϕ, 0, 1.5 Pi}, Mesh -> None, PlotPoints -> 15, PlotRange -> {-2.2, 2.2}], {n, 0, 1}] I cant' seem to be able to make a filling between two spheres. I've already tried the obvious Filling -> {1 -> {2}} but Mathematica doesn't seem to like that option. Is there any easy way around this or ... Answer There is no built-in filling in SphericalPlot3D . One option is to use ParametricPlot3D to draw the surfaces between the two shells: Manipulate[ Show[SphericalPlot3D[{1, 2 - n}, {θ, 0, Pi}, {ϕ, 0, 1.5 Pi}, PlotPoints -> 15, PlotRange -> {-2.2, 2.2}], ParametricPlot3D[{ r {Sin[t] Cos[1.5 Pi], Sin[t] Sin[1.5 Pi], Cos[t]}, r {Sin[t] Cos[0 Pi], Sin[t] Sin[0 Pi], Cos[t]}}, {r, 1, 2 - n}, {t, 0, Pi}, PlotStyle -> Yellow, Mesh -> {2, 15}]], {n, 0, 1}]

plotting - Plot 4D data with color as 4th dimension

I have a list of 4D data (x position, y position, amplitude, wavelength). I want to plot x, y, and amplitude on a 3D plot and have the color of the points correspond to the wavelength. I have seen many examples using functions to define color but my wavelength cannot be expressed by an analytic function. Is there a simple way to do this? Answer Here a another possible way to visualize 4D data: data = Flatten[Table[{x, y, x^2 + y^2, Sin[x - y]}, {x, -Pi, Pi,Pi/10}, {y,-Pi,Pi, Pi/10}], 1]; You can use the function Point along with VertexColors . Now the points are places using the first three elements and the color is determined by the fourth. In this case I used Hue, but you can use whatever you prefer. Graphics3D[ Point[data[[All, 1 ;; 3]], VertexColors -> Hue /@ data[[All, 4]]], Axes -> True, BoxRatios -> {1, 1, 1/GoldenRatio}]

plotting - Mathematica: 3D plot based on combined 2D graphs

I have several sigmoidal fits to 3 different datasets, with mean fit predictions plus the 95% confidence limits (not symmetrical around the mean) and the actual data. I would now like to show these different 2D plots projected in 3D as in but then using proper perspective. In the link here they give some solutions to combine the plots using isometric perspective, but I would like to use proper 3 point perspective. Any thoughts? Also any way to show the mean points per time point for each series plus or minus the standard error on the mean would be cool too, either using points+vertical bars, or using spheres plus tubes. Below are some test data and the fit function I am using. Note that I am working on a logit(proportion) scale and that the final vertical scale is Log10(percentage). (* some test data *) data = Table[Null, {i, 4}]; data[[1]] = {{1, -5.8}, {2, -5.4}, {3, -0.8}, {4, -0.2}, {5, 4.6}, {1, -6.4}, {2, -5.6}, {3, -0.7}, {4, 0.04}, {5, 1.0}, {1, -6.8}, {2, -4.7}, {3, -1.