User:Tohline/Appendix/Mathematics/ToroidalFunctions
From VisTrailsWiki
Contents 
Relationships Between Toroidal Functions
 Tiled Menu  Tables of Content  Banner Video  Tohline Home Page  
Wong Toroidal Coordinates
Wong's Expression for the Potential
This chapter has been put together in an effort to lay the groundwork for an evaluation of Wong's (1973) derived expression for the gravitational potential both inside and outside of a uniformdensity, axisymmetric torus. After multiplying his expression by the negative of , then replacing his total charge, , with the total mass, , Wong's interior (i.e., ) solution is,






Wong (1973), Eq. (2.65) 
where,



Wong (1973), Eq. (2.62) 
Summary of Toroidal Coordinates and Toroidal Functions
Summary 


Suppose you want to evaluate the potential of a uniformdensity torus whose major radius is, , and minor crosssectional radius is, . Evaluation of the potential can be relatively easily expressed in terms of a toroidal coordinate system, , whose "origin" is at a distance, , from the symmetry axis, where,
The surface of the uniformdensity torus is defined by the toroidal "radial" coordinate, , such that,
 
The volume of a torus is,
When this is rewritten in terms of our toroidal coordinate system, we have,


Expressions for the relevant toroidal functions are as follows:
where, and are complete elliptic integrals of the first and second kind, respectively. In equation (23) of Cohl & Tohline (1999), this last expression has been written in the more compact form,
where, and, for example, .
We also will employ the socalled recurrence relation,
After setting, , and making the association, , for example, this gives,
which, for all provides a means by which an expression for the associated toroidal function, , can be generated from the foundation pair of expressions given above for and . 
Asymptotic Behavior












Asymptotic behavior:  



0 

1 

2 

Dimensionless Potential Expression
Given that the portion of the leading term in Wong's expression that sits inside the square brackets is equivalent to the density, , of the torus material — that is, given that,





— a reasonable dimensionless version of Wong's expression could be obtained by dividing through by the quantity, . We prefer, instead, to normalize Wong's expression to the quantity, , in which case the dimensionless version of the expression becomes,















Prior to the Integration
The Green's function written in toroidal coordinates is,



where,
and, is the zeroorder, half(odd)integer degree, Llegendre function of the second kind — also referred to as a toroidal function of zeroth order. Hence, a valid expression for the gravitational potential is,









where, is the Neumann factor, that is, and for .
Wong (1973) states that in toroidal coordinates the Green's function is,






Wong (1973), Eq. (2.53) 
where, are "Legendre functions of the first and second kind with order and degree (toroidal harmonics)," and is the Neumann factor, that is, and for all ,









and,






and has the same sign as .
Hence, the potential, , at a point due to an arbitrary mass distribution, , is,















This should be compared with,









The above expression for the potential of a uniformdensity torus has been obtained by Wong (1973) from the (double) integral expression,






Wong (1973), Eq. (2.55) 
which is valid for any azimuthal angle, . Notice that the step function, , no longer explicitly appears in this expression for the Coulomb (or gravitational) potential; it has been used to establish the specific limits on the "radial" coordinate integration. Next, he completes the integration over the angle, , to obtain,
CT99 Coordinates
Eureka! Via his dogged efforts and an extraordinarily indepth investigation of this problem, in 1999 Howard S. Cohl discovered that, in cylindrical coordinates, the relevant Green's function can be written in a much more compact and much more practical form. Specifically, he realized that,



where,
H. S. Cohl & J. E. Tohline (1999), p. 88, Eqs. (15) & (16)
See also: Selvaggi, Salon & Chari (2007) §II, eq. (5)
and the DLMF's definition of Toroidal Functions,
and, is the zeroorder, half(odd)integer degree, Llegendre function of the second kind — also referred to as a toroidal function of zeroth order; see additional details, below. Hence, anywhere along the boundary of our cylindricalcoordinate mesh, a valid expression for the gravitational potential is,









H. S. Cohl & J. E. Tohline (1999), p. 88, Eq. (18) 
where, is the Neumann factor, that is, and for . Following this discovery, most of my research group's 3D numerical modeling of selfgravitating fluids has been conducted using Toroidal functions instead of Spherical Harmonics to evaluate the boundary potential on our cylindricalcoordinate meshes.
In our accompanying statement of this problem, we have written,



where, is the complete elliptic integral of the first kind, and,



Observer Toroidal Coordinates
Our Mucking Around
Begins on p. 332 of M. Abramowitz & I. A. Stegun (1995)
Recurrence Relations
According to M. Abramowitz & I. A. Stegun (1995), both and satisfy the same recurrence relations.












According to equation (14) of A. B. Basset (1893, American Journal of Mathematics, vol. 15, No. 4, pp. 287  302),
After replacing, , with ,
The coefficients of this last expression precisely match the coefficients in the above expression provided by M. Abramowitz & I. A. Stegun (1995), but the subscript notation is off by . This inconsistency most likely should be blamed on the notation adopted by Basset (1893). At the top of his p. 289 — which is a couple of pages before his equation (14) — Basset says: A toroidal function is an associated function of degree and order ; and the notation which ought in strictness to be adopted for the two kinds of toroidal functions is and ; but as these functions rarely if ever occur in an investigation which also involves associated functions of integral degree , it will be generally sufficient to employ the suffix instead of . Thus, we probably should have shifted the subscript notation in his equation (14) by "½" before incorporating our additional replacement everywhere of by .
Independently, from equation (56) of Basset's (1888, Cambridge: Beighton, Bell and Co.) A Treatise on Hydrodynamics, we have,
This matches the Abramowitz & Stegun expression if, as before, we employ the mapping, , in the subscripts only; also, note that, due to what must have been a typesetting error, the coefficient, , in Basset's expression must be replaced by the independent variable, . From equations (57)  (60) of Basset's (1888) Hydrodynamics, we also obtain,
where,

Toroidal Functions
Relationship between one another, as per equation (8) in A. Gil, J. Segura, & N. M. Temme (2000, JCP, 161, 204  217):




Gil, Segura, & Temme (2000): eq. (8) 
where: 

Note that the relationship between and is the same as the relationship between and , that is,



or 





Relation to Elliptic Integrals
PminusHalf01



for example … 




Abramowitz & Stegun (1995), p. 337, eq. (8.13.1) 
Abramowitz & Stegun (1995), p. 337, eq. (8.13.2) 
Proof that these are the same expressions: 

From standard relationships between hyperbolic functions, we know that,
So, if we let and make the association,
Also,
Q.E.D. 
QminusHalf01



for example … 




Abramowitz & Stegun (1995), p. 337, eq. (8.13.3) 
Abramowitz & Stegun (1995), p. 337, eq. (8.13.4) 
Proof that these are the same expressions: 

Copying the Whipple's formula from §14.19 of DLMF,
then setting , we have,
Step #1: Associate … . Then,
Step #2: Now making the association … , we can write,
Step #3: Again, making the association … , means,
which, apart from the leading factor of , exactly matches the above expression. Note: From Howard Cohl's online overview — see, also, below — we find that the Whipple formula is slightly different from the one (quoted above) drawn from DLMF. According to Cohl the Whipple formula should be,
The DLMF expression needs to be multiplied by in order to match the expression provided by Cohl; for the case being considered here of , this factor is precisely — see, for example, Wikipedia's discussion of the gamma function — which cancels this confusing factor of . 
PplusHalf01



for example … 




Abramowitz & Stegun (1995), p. 337, eq. (8.13.5) 
Abramowitz & Stegun (1995), p. 337, eq. (8.13.6) 
Proof that these are the same expressions: 

If we associate,
It also means that,
Q.E.D. 
QplusHalf01




Abramowitz & Stegun (1995), p. 337, eq. (8.13.7) 
Other
When the argument, , lies in the range, :















Piece Together
When , and , the recurrence relation should be …









for all .
Overview by Howard Cohl
This subsection is drawn verbatim from Howard Cohl's online overview of toroidal functions.
… These last two expressions allow us to express toroidal functions of a certain kind (first or second, respectively) with argument hyperbolic cosine, as a direct proportionality in terms of the toroidal function of the other kind (second or first, respectively) with argument hyperbolic cotangent. The Whipple formulae may also be expressed as follows:



… and …  



These interesting formulae have the property that they can relate Legendre functions of the first and second kinds directly in terms of each other. The only hitch is that you need a different argument to relate them. The way it works is as such. The Legendre functions of the first kind generally are wellbehaved near the origin and blow up at positive infinity. Consequently the Legendre functions of the second kind blow up at unity and exponentially converges towards zero for large values of the argument. The relevant domain for toroidal functions is from 1 to infinity. The standard hyperbolic argument for these functions are naturally chosen to be the hyperbolic cosine since it ranges from 1 to infinity. The Whipple formulae relate the Legendre functions with argument 1 to infinity, cosh, to a reversed range given by the hyperbolic cotangent function. the hyperbolic cotangent function ranges from infinity at unity to unity at infinity. At what point alpha does cosh alpha equal coth alpha? The point alpha is given by



Therefore, and are given, respectively, by



and 



The value that and obtain at is given by



The value that and obtain at is given by



Finally, and it's inverse are given respectively by unity,



We now see that the value at which the argument of the Legendre functions inversely maps the entire domain is given by cosh alpha = coth alpha ~ 1.4142356. By using the Whipple formulae for ring functions, we can inversely map the entire domain from 1 to infinity about this point cosh alpha, the square root of 2, and take full advantage of this new symmetry for Legendre functions. There being previously more definite and indefinite integrals tabulated for the Legendre function of the first kind than for the Legendre function of the second kind. In fact, this new transformation, when applied to toroidal functions yields distinct expressions which relate correspondingly the complete elliptic integrals of the first and second kind, which don't seem to be related to the linear and quadratic transformations of hypergeometric functions.
Note that, as shown above, Gil, et al. (2000) state:




Gil, Segura, & Temme (2000): eq. (8) 
where: 

Hence, if we swap the indexes, , and make the assignments, and , this last relation becomes,






Alternatively, if we swap the indexes, , and make the assignments, and , the Gil, et al. (2000) relation becomes,






However, in our situation the socalled "Euler reflection formula for gamma functions" gives the relation,



for example, if


Valid for: 
… 
that is,



So,



We see, then, that we are able to generate both of Cohl's relations from the Gil et al. relation. Yeah!
Drawn From Discussion of Solving the Poisson Equation
The following has been copied (May 2018) from an accompanying chapter that presents the integral representation of the Poisson equation in terms of toroidal functions.
Table 5: Green's Function in Terms of Zero Order, Half(Odd)Integer Degree, Associated Legendre Functions of the Second Kind, (also referred to as Toroidal Functions) 


where: H. S. Cohl & J. E. Tohline (1999), p. 88, Eqs. (15) & (16) 

Note that, according to, for example, equation (8.731.5) of Gradshteyn & Ryzhik (1994),
Hence, the Green's function can straightforwardly be rewritten in terms of a simpler summation over just nonnegative values of the index, . 

Referencing equations (8.13.3) and (8.13.7), respectively, of Abramowitz & Stegun (1965), we see that for the smallest two values of the nonnegative index, , the function, , can be rewritten in terms of, the more familiar, complete elliptic integrals of the first and second kind. Specifically,
Excerpt from p. 337 of M. Abramowitz & I. A. Stegun (1995) 

Finally, equation (8.5.3) from Abramowitz & Stegun (1965) or equation (8.832.4) of Gradshteyn & Ryzhik (1994) — also see equation (2) of Gil, Segura & Temme (2000) — provide the recurrence relation for all other values of the index, . Specifically, for all ,
Excerpt from p. 490 of W. Guatschi (1965, Communications of the ACM, 8, 488  492) 
Just Compare Green Functions
First Dabbling
According to CT99, the Green's function written in toroidal coordinates is,






where,
and, is the zeroorder, half(odd)integer degree, Llegendre function of the second kind — also referred to as a toroidal function of zeroth order.
From the DysonWong Toroid chapter,






Hence, we can rewrite the Green's function as,






Wong (1973) states that in toroidal coordinates the Green's function is,






Wong (1973), Eq. (2.53) 
where, are "Legendre functions of the first and second kind with order and degree (toroidal harmonics)," and is the Neumann factor, that is, and for all ,









and,






and has the same sign as .
Note that:





















Second Dabbling
If , as defined by Wong, then we can show that,



This expression matches the expression for , as defined in the CT99; see, for example, our accompanying discussion,



It is the context of the CT99 derivation that we state,
where the argument of the elliptic integral is related to via the relation,






In a separate discussion, we have derived expressions for the quantities, and , in terms of Wong's toroidal coordinates. 
We note that, while the argument of the CT99 toroidal function is , the argument of Wong's toroidal function is . It should be useful to keep in mind, therefore, that you can move back and forth between and via the mapping (in either direction),



Hence, for example, we have,





















So, according to Wong, for , the axisymmetric potential is,






Wong (1973), Eq. (2.55) 




Drawing from equations (2.7), (2.17) and (2.18) of Wong (1973), we see that the volume,</span> , of a torus that is bounded by surface is,



This means that, in toroidal coordinates, just the integration over the azimuthal angle,



To be compared with the same expression in cylindrical coordinates,



This means that the coordinate mapping is,



This means that the CT99 axisymmetric potential is,






Given that,



we therefore have,



Third Dabbling
From our "First Dabbling" expression for the Green's Function, we have,



And from our examination of the summation expression, we have found that,






How does this jive with our separate recognition that,



Is it completely legitimate to make the association, ? If so, then the Green's function becomes,









See Also
 R. S. Maier (2017) — Associated Legendre Functions and Spherical Harmonics of Fractional Degree and Order
 R. S. Maier (2016, Proceedings of the Royal Society A, Vol. 472, Issue 2188, id. 20160097) — Legendre Functions of Fractional Degree: Transformations and Evaluations
© 2014  2019 by Joel E. Tohline 