GeometricLocusSpheres::usage="Find the general equation of the spheres tangent to the OX and OY axes, and to the plane. Find the geometric locus of its centers.References:UsunárizBalanzategui,Ubaldo.UsunárizSala,Ignacio.ProblemasdeGeometríaAnalíticayDiferencial.p.254;Personal.";
Devolopment:
Center and radius of the sphere:
{α,β,γ};r;
For being tangent to OX:
In[]:=
2
r
2
β
2
γ
For being tangent to OY:
In[]:=
2
r
2
α
2
γ
In[]:=
2
α
2
γ
2
β
In[]:=
α==±β;
Case 1:
In[]:=
α==β
The center is:
In[]:=
{β,β,γ};
The normal to the plane traced from the center of the sphere:
In[]:=
x-β
1
y-β
1
The intersection point with the plane is:
In[]:=
Solve==,z==γ,x+y==3,{x,y,z}
x-β
1
y-β
1
Out[]=
x,y,zγ
3
2
3
2
In[]:=
,,γ;
3
2
3
2
Distance from the center to the point is r:
In[]:=
2
β-
3
2
2
β-
3
2
2
β
2
γ
2
β-
3
2
2
β
2
γ
The geometric locus of its center is:
In[]:=
x=y;2==+;
2
y-
3
2
2
y
2
z
In[]:=
Expand2==+
2
y-
3
2
2
y
2
z
Out[]=
9
2
2
y
2
y
2
z
In[]:=
x=y;2-2-12y+9==0;
2
y
2
z
General equation of tangent spheres:
In[]:=
Expand[++==+]
2
(x-β)
2
(y-β)
2
(z-γ)
2
β
2
γ
Out[]=
2+-4yβ+2-2zγ++
2
y
2
z
2
β
2
γ
2
β
2
γ
In[]:=
2
x
2
y
2
z
2
β
2
x
2
y
2
z
2-
z+2
β-
3
2
2
β
2
β
2
x
2
y
2
z
2
β
9
2
2
β
Case 2:
In[]:=
α==-β
The center is:
In[]:=
{-β,β,γ};
The normal to the plane traced from the center of the sphere:
In[]:=
x+β
1
y-β
1
The intersection point with the plane is:
In[]:=
Solve==,z==γ,x+y==3,{x,y,z}
x+β
1
y-β
1
Out[]=
x-β,y(3+2β),zγ
3
2
1
2
In[]:=
-β,+β,γ;
3
2
3
2
Distance from the center to the point is r:
In[]:=
2
-β-+β
3
2
2
β--β
3
2
2
β
2
γ
9
2
2
β
2
γ
The geometric locus of its center is:
In[]:=
x=-y;+==;
2
y
2
z
9
2
General equation of tangent spheres:
In[]:=
Expand[++==+]
2
(x+β)
2
(y-β)
2
(z-γ)
2
β
2
γ
Out[]=
2+-4yβ+2-2zγ++
2
y
2
z
2
β
2
γ
2
β
2
γ
In[]:=
2
x
2
y
2
z
2
β
2
x
2
y
2
z
9
2
2
β
2
β
Domain of β case 1 for the animation:
In[]:=
Reduce-6β+>=0,β
2
β
9
2
β≤6-36+3
1
2
2
||β≥1
2
2
;Domain of β case 2 for the animation:
In[]:=
Reduce->=0,β
9
2
2
β
-≤β≤;
3
2
3
2
Animation of the case 1:
In[]:=
Manipulateζ[t_]:=t{1,0,0};[t_]:=t{0,1,0};[β_,u_,v_]:=Cos[u]Sin[v]+β,Sin[u]Sin[v]+β,Cos[v]+-6β+;[β_,u_,v_]:=Cos[u]Sin[v]+β,Sin[u]Sin[v]+β,Cos[v]--6β+;[β_]:=β,β,-6β+;[β_]:=β,β,--6β+;i[x_,y_,z_]:=x+y-3;ShowParametricPlot3D[ζ[t],{t,-30,30},PlotStyleGray]/.Line[pts_,rest___]:>Tube[pts,0.2,rest],ParametricPlot3D[[t],{t,-30,30},PlotStyleGray]/.Line[pts_,rest___]:>Tube[pts,0.2,rest],Graphics3D[{Yellow,Ball[[β1],0.35]}],Graphics3D[{Yellow,Ball[[β1],0.35]}],ParametricPlot3D[[β1,u,v],{u,0,2π},{v,0,π},PlotStyle->Opacity[0.3],MeshFalse,PerformanceGoal"Quality",ColorFunction"LightTemperatureMap"],ParametricPlot3D[[β1,u,v],{u,0,2π},{v,0,π},PlotStyle->Opacity[0.3],MeshFalse,PerformanceGoal"Quality",ColorFunction"LightTemperatureMap"],ContourPlot3D[i[x,y,z]==0,{x,-10,10},{y,-10,10},{z,-30,30},MeshFalse,PerformanceGoal"Quality",ContourStyle->Directive[Purple,Opacity[0.2],Specularity[White,30]],MeshNone],ParametricPlot3D[β],β,6+3[β],β,6+36+36+3
ζ
1
σ
1
2
β-3
2
2
β-3
2
2
β-3
2
2
β
9
2
σ
2
2
β-3
2
2
β-3
2
2
β-3
2
2
β
9
2
ξ
1
2
β
9
2
ξ
2
2
β
9
2
ζ
1
ξ
1
ξ
2
σ
1
σ
2
ξ
1
1
2
2
,β1,PlotStyleYellow/.Line[pts_,rest___]:>Tube[pts,0.1,rest],ParametricPlot3Dξ
2
1
2
2
,β1,PlotStyleYellow/.Line[pts_,rest___]:>Tube[pts,0.1,rest],AxesLabel->(Style[#,15,Blue]&/@{"X","Y","Z"}),AxesOrigin{0,0,0},AxesTrue,BoxedFalse,BoxRatiosAutomatic,PlotRangeAll,ImageSize900,ViewPoint{-3,12,1},Style["Geometric locus of the centers of the spheres:",Bold,Large],β1,1
2
2
+0.00002,"Value (β)",1
2
2
+0.00001,12,0.00001,ControlPlacementTopView from all angles of case 1 (below):
Animation of the case 2:
View from all angles of case 2 (below):