Images to applet: Generating two different uniformly distributed points on a sphere from another uniform distribution.

[size=85] This applet contains images and explanations of the results of [url=https://www.geogebra.org/material/show/id/dvrjqmkv]applet[/url]: Generating two different uniformly distributed points on a sphere from another uniform distribution.[/size][br] [size=85]Some initial uniform distribution is taken -icosahedron with 12 vertices. The function of the sum of distances f(φ, θ) is considered -the sum of all distances from any point on the sphere (R;φ;θ) to the points of the selected initial distribution (the spherical coordinate system is used). Using Lagrange multipliers, the critical points of the distance sum function subject to a constraining equation g(x,y,z)=x²+y²+z²-R² are found. There is a system of equations: ∇f(x,y,z)= λ∇g(x,y,z). A local optimum occurs when [b]∇f(x,y,z[/b]) and[b] ∇g(x,y,z)[/b] are parallel, and so [b]∇f[/b] is some multiple of [b]∇g[/b]. [br][color=#1e84cc] [i] The [u]vertices[/u] of the polyhedra are considered as 3 [u]subsets[/u] of the 3 types of critical points for the distance sum function f(φ, θ). It should be noted that the angular positions of the points of the original distribution and the obtained local minima coincide.[/i][/color][br] [url=https://www.geogebra.org/m/y8dnkeuu]Finding[/url] critical points is realized by using [i]three different schemes[/i] separately for each type of critical points. The visualization of the solutions, founded by iterative methods, is carried out using the corresponding graphs of partial derivatives and level lines by which one can judge the type of critical points. The accuracy of the solutions that were found is controlled by the calculated values ​​of the angles between the vectors [b]∇f[/b] and [b]∇g[/b] tends to [b]π[/b]. The data are summarized in the tables. [br] It should be noted that automatic calculation of critical points (click [i][u]buttons[/u][/i] [color=#ff0000]max[/color], [color=#0000ff]min[/color], [color=#6aa84f]saddle)[/color] does not always find all solutions. In manual mode (Manual settings for critical points), these inaccuracies can be corrected with the available tools: remove/add solutions: add (+) and remove ( - ) the elements. Levels are the values of f(φ, θ) for critical points. Above coordinate plane (φ, θ) you will find the number of critical points of each type, means of sum of all correction angles of geometric medians ([color=#ff7700]GM[/color]):Δφ[sub][color=#ff7700]GM[/color][/sub][sub][color=#ff00ff][/color][/sub] and geometric centers ([color=#ff00ff]GC[/color]):Δφ[sub][color=#ff00ff]CM[/color][/sub] -angular deviations from directions of the corresponding position vectors. For visibility, we denote polyhedra that have in the case of Δφ[sub][color=#ff7700]GM[/color][/sub]→0: as ● otherwise as ☐. [br][/size]
The uniform distribution of icosahedron points "induces" on the surface of the sphere critical points (found using Lagrange multipliers) of the Sum-of-distance function.
[size=85]To illustrate: vectors ∇f and ∇g -black arrows are attached at critical points(∇g(x,y,z) -position vectors of this points). At critical points, vectors ∇f(x,y,z) and ∇g(x,y,z) are parallel.[br] [u]Note[/u] that the vertices of the original icosahedron-[b][color=#0000ff][size=100][size=150]o[/size][/size][/color][/b] coincide [i]i[/i][i]n the plane of angular positions [/i]with the positions of the local minima-[b][color=#1e84cc]x[/color][/b]. [/size]
Applet image.
Isolines, Critical points, implicit functions of partial differential equations equal to zero over a rectangular region: - π ≤φ ≤ π; -π/2≤θ≤π/2. Test point -a colored moveable indicator of the critical point type.
A critical points scheme for Generating uniformly distributed points on a sphere.
Vertices of a polyhedra as subsets of critical points of the sum-of-distances function f(φ,θ).
[b]20 ●[color=#ff0000]Dodecahedron[/color]← 12 ●[color=#0000ff]Icosahedron[/color] →30 ●[color=#6aa84f]Icosidodecahedron.[/color][/b]

Information: Images to applet: Generating two different uniformly distributed points on a sphere from another uniform distribution.