What is the tangent plane equation on the 3 spheres? 
3 spheres are on $z=0$ plane and touch each other as shown in the picture. Coordinates of their centers are  $O_1=(0,0,5),O_2=(0,y_2,3),O_3=(x_3,y_3,2)$. What is the tangent plane equation on 3 spheres? ($ax+by+cz=d$)
Thanks for answers.  
 A: First solve some quadratic equations to find $y_2$, $x_3$, and $y_3$.
Then, since each of the spheres is tangent to $z=0$ as well as to the mystery plane, its center must lie on the plane that bisects the angle made between these two planes. We can compute an equation for bisecting plane, because that is defined by the centers.
Now reflect the plane $z=0$ about the bisecting plane.
A: There are three methods to get direct solutions without iteration.

*

*Use an extended version of Gaussian elimination the results in having to get the fourth root of an equation.  This technique is a general solution for geometry problems, with only the equations changed for this problem.
You can use the symmetry of the plane-sphere tangent equations to make all but one row linear.  The other rows break down to just two variables and a constant.  You can then replace one of these with the other and a constant in the nonlinear.  You end up with one variable in the for AX^4 +BX^3+CX^2+DX+E=0


*Another general solution that works.  Expand the three spheres until two touch.  Consider an inversion sphere where the spheres meet.  (I like radius 1.0 since it allows the largest range of inversion.)  The two spheres become two parallel planes.  This gives you the the radius of the inverted solution and the midplane the center is on.  Since you want a plane, the solution sphere must also go through the mirror point.  Invert that sphere to get a plane and using the expansion coefficient to move the plane to the unexpanded tangency.


*Determine vectors from two centers to the center of the largest sphere.  Scale (using the sphere radii) the vectors to determine two planes that slice that sphere.  The intersection of that sphere and the two planes intersect where the plane is tangent.  This gives you a vector from that center to that point that (when normalized) is the normal of the plane.  Plugging the tangent point into the plane equation will generate the delta to complete the plane definition.
**I can give you the more details (and my solution) for any one of these if you post a request here.  I do want to give a good answer, but each one takes time. **

*

*is dull but simple, except for the need for a quartic equation

*is a bit more interesting.

*is a bit more complex, but really interesting.  It is a general solution for Appolonius' 10th problem in any number of (n) dimensions, as long as one of the tangent entities is a hypersphere.  You need another, but simpler, method for a problem with all hyperplanes. You get the tangent plane by using the center of the inversion sphere as the (n+1)th tangency, which assures a plane.

A: There is an exact solution using all closed form equations shown on the three attached pages. After the plane of symmetry through the three sphere's centers is defined, the lower tangent plane z=0 is mirrored across the plane of symmetry. To make the final solution clear, it's a plane fact that making d=1 in the plane's equation is the most useful convention (i.e. divide all ax+by+cz=d equation coefficients by 'd').
•Solution for equation of upper tangent plane is
    (0.08792312)x + (0.05167692)y + (0.07399755)z = 1.0  ....or any multiple thereof.
•Sphere centers and tangent points (x,y,z) are
O1: (0.000, 0.000, 5.000); tangent point: (3.48894479, 2.05063178, 7.93635379);
O2: (0.000, 7.740, 3.000); tangent point: (2.09336687, 8.97077777, 4.76181227);
O3: (3.965, 4.865, 2.000); tangent point: (5.36027469, 5.68531592, 3.17454152)
•Here's how (actual calculations shown on the 3 images linked at the end):
1. First, the sphere centers' coordinates are easy to find using trigonometry. The Law of Cosines is used in this effort.
2. Those three center points' coordinates are used to define a plane that is a plane of symmetry of the 3-sphere group.
3. The normal vector perpendicular to this plane is defined as a unit normal vector.
4. The equation for the plane of symmetry is determined using the unit normal vector and the point at any of the spheres center's coordinates.
5. The tangent points of the tangent plane z=0 at the bottom of the spheres are defined.
6. The distance to the plane of symmetry of the tangent points at z=0 are found using vector analysis.
7. The bottom tangent points at z=0 are mirrored across the plane of symmetry using twice their distance from the plane of symmetry in the plane's normal vector direction.
8. The three new upper tangent points from step 7 are used to define the equation for the upper tangent plane.
Calculations page 1 of 3 Calculations page 2 of 3 Calculations page 3 of 3
