PencilsCirclesSpheres::usage="A circle is drawn that passes through the origin and its center is on the X axis, its radius is r = a . From there, the circumferences of the Pencil are drawn, which have their center on the base circumference and pass through the origin. The envelope of this Pencil is a cardioid, then the problem is transferred to 3D. References: Public domain; Personal adaptation.";
Development in 2D:
Center and radius of each circle on the Pencil:
C1[θ_]:={a+aCos[θ],aSin[θ]};R[θ_]:=Norm[C1[θ]-{0,0}];
Family of circles (Pencil):
2
(x-(a+aCos[θ]))
2
(y-aSin[θ])
2
R[θ]
Envelope:
Norm[{a+aCos[θ],aSin[θ]}-{0,0}]
2
Abs[a+aCos[θ]]
2
Abs[aSin[θ]]
θ
2
In[]:=
Solve+==4,+-4==0,{x,y}//FullSimplify
2
(x-(a+aCos[θ]))
2
(y-aSin[θ])
2
a
2
Cos
θ
2
∂
θ
2
(x-(a+aCos[θ]))
2
(y-aSin[θ])
2
a
2
Cos
θ
2
{{x0,y0},{x2aCos[θ](1+Cos[θ]),y2a(1+Cos[θ])Sin[θ]}};ξ[θ_]:={2aCos[θ](1+Cos[θ]),2a(1+Cos[θ])Sin[θ]};
In[]:=
SwatchLegend[{Black,DarkGreen,LightGray},{"Envelope (cardioid)","Base circle and centers of Pencil's circles","Pencil of circles"}]Manipulatea=4;ζ[θ_]:=2aCosCos[θ]+a+aCos[θ1],2aCosSin[θ]+aSin[θ1];ξ[θ_]:={2aCos[θ](1+Cos[θ]),2a(1+Cos[θ])Sin[θ]};ShowTableParametricPlot[ζ[θ],{θ,0,2π},PlotStyle->{LightGray,Thick}],θ1,0,t1,,ParametricPlot[ξ[θ],{θ,0,2π},PlotStyle->{Black,Thick}],Graphics[{DarkGreen,PointSize[0.01],Point[{a+aCos[t1],aSin[t1]}]}],Graphics[{DarkGreen,Thick,Circle[{a,0},a]}],AxesTrue,ImageSize700,PlotRangeAll,AxesOrigin{0,0},AspectRatio->Automatic,t1,0.00001,2π,,SaveDefinitions->True,ControlPlacement->Top
θ1
2
θ1
2
π
12
π
12
Out[]=
Development in 3D:
Center and radius of each sphere on the Pencil:
C2[u_,v_]:={aCos[u]Sin[v]+a,aSin[u]Sin[v],aCos[v]};R2[u_,v_]:=Norm[C2[u,v]-{0,0,0}];
Family od spheres (Pencil):
2
(x-(aCos[u]Sin[v]+a))
2
(y-aSin[u]Sin[v])
2
(z-aCos[v])
2
R2[u,v]
Envelope:
In[]:=
Norm[{aCos[u]Sin[v]+a,aSin[u]Sin[v],aCos[v]}-{0,0,0}]
16+16+
;2
Abs[Cos[v]]
2
Abs[Sin[u]Sin[v]]
2
Abs[4+4Cos[u]Sin[v]]
16+16+
;2
Cos[v]
2
(Sin[u]Sin[v])
2
(4+4Cos[u]Sin[v])
In[]:=
Solve[++==16+16+,(++-(16+16+))==0,(++-(16+16+))==0,{x,y,z}]//FullSimplify
2
(x-(aCos[u]Sin[v]+a))
2
(y-aSin[u]Sin[v])
2
(z-aCos[v])
2
Cos[v]
2
(Sin[u]Sin[v])
2
(4+4Cos[u]Sin[v])
∂
u
2
(x-(aCos[u]Sin[v]+a))
2
(y-aSin[u]Sin[v])
2
(z-aCos[v])
2
Cos[v]
2
(Sin[u]Sin[v])
2
(4+4Cos[u]Sin[v])
∂
v
2
(x-(aCos[u]Sin[v]+a))
2
(y-aSin[u]Sin[v])
2
(z-aCos[v])
2
Cos[v]
2
(Sin[u]Sin[v])
2
(4+4Cos[u]Sin[v])
{{x0,y0,z0},{x8Cos[u]Sin[v](1+Cos[u]Sin[v]),y8Sin[u]Sin[v](1+Cos[u]Sin[v]),z8Cos[v](1+Cos[u]Sin[v])}};
ξ2[u_,v_]:={8Cos[u]Sin[v](1+Cos[u]Sin[v]),8Sin[u]Sin[v](1+Cos[u]Sin[v]),8Cos[v](1+Cos[u]Sin[v])};
In[]:=
SwatchLegend[{Yellow,Green,Black,Orange},{"Envelope","Base sphere","Centers of the Pencil's spheres","Pencil of spheres"}]Manipulatea=4;ζ2[u_,v_]:=,v1,0,,,ParametricPlot3D[ξ2[u,v],{u,0,2π},{v,0,π},PlotStyle->{Yellow,Opacity[0.1],Specularity[White,10]},MeshFalse,PerformanceGoal->"Quality"],Graphics3DBlack,BallaCos[t1]Sin+a,aSin[t1]Sin,aCos,0.2,Graphics3D[{Green,Opacity[0.6],Specularity[White,10],Sphere[{a,0,0},a]}],AxesTrue,ImageSize700,ViewPoint{20,-100,50.},BoxedFalse,PlotRangeAll,AxesOrigin{0,0,0},BoxRatios->Automatic,t1,0.00001,2π,,SaveDefinitions->True,ControlPlacement->Top
16+16+
Cos[u]Sin[v]+aCos[u1]Sin[v1]+a,2
Cos[v1]
2
(Sin[u1]Sin[v1])
2
(4+4Cos[u1]Sin[v1])
16+16+
Sin[u]Sin[v]+aSin[u1]Sin[v1],2
Cos[v1]
2
(Sin[u1]Sin[v1])
2
(4+4Cos[u1]Sin[v1])
16+16+
Cos[v]+aCos[v1];ξ2[u_,v_]:={8Cos[u]Sin[v](1+Cos[u]Sin[v]),8Sin[u]Sin[v](1+Cos[u]Sin[v]),8Cos[v](1+Cos[u]Sin[v])};ShowTableParametricPlot3D[ζ2[u,v],{u,0,2π},{v,0,π},PlotStyle->{Orange,Specularity[White,10],Opacity[0.2]},MeshFalse,PerformanceGoal->"Quality"],u1,0,t1,2
Cos[v1]
2
(Sin[u1]Sin[v1])
2
(4+4Cos[u1]Sin[v1])
π
3
t1
2
π
3
t1
2
t1
2
t1
2
π
3
Out[]=
Out[]=

