PencilOfQuadrics2::usage="All the steps will be followed to create a pencil of quadrics.Reference: Personal.";
Development:
1) Base quadrics:
Q
1
2
x
2
y
2
z
Q
2
2
x
2
y
2
z
Q
1
x | y | z | 1 |
1 | 0 | 0 | -9 |
0 | 1 | 0 | 0 |
0 | 0 | 1 | 0 |
-9 | 0 | 0 | 0 |
x |
y |
z |
1 |
Q
2
x | y | z | 1 |
9 | 0 | 0 | 0 |
0 | 9 | 0 | 0 |
0 | 0 | -29 | 0 |
0 | 0 | 0 | 0 |
x |
y |
z |
1 |
2) Linear combination:
In[]:=
λ
+μ
1 | 0 | 0 | -9 |
0 | 1 | 0 | 0 |
0 | 0 | 1 | 0 |
-9 | 0 | 0 | 0 |
9 | 0 | 0 | 0 |
0 | 9 | 0 | 0 |
0 | 0 | -29 | 0 |
0 | 0 | 0 | 0 |
{{λ+9μ,0,0,-9λ},{0,λ+9μ,0,0},{0,0,λ-29μ,0},{-9λ,0,0,0}};
Quadric’s equation in the pencil is:
(
)
=0
x | y | z | 1 |
λ+9μ | 0 | 0 | -9λ |
0 | λ+9μ | 0 | 0 |
0 | 0 | λ-29μ | 0 |
-9λ | 0 | 0 | 0 |
x |
y |
z |
1 |
3) Base curve (Intersection, all the quadrics within the pencil pass through this curve, in this case Viviani’s curve):
In[]:=
Solve[{++-18x==0,9+9-29==0},{x,y}]
2
x
2
y
2
z
2
x
2
y
2
z
In[]:=
x,y-,y[z_]:=,-[z_]:=,>=0,z]
19
2
z
81
1
81
21141-361
,x2
z
4
z
19
2
z
81
1
81
21141-361
;2
z
4
z
ζ
1
19
2
z
81
1
81
21141-361
,z;2
z
4
z
ζ
2
19
2
z
81
1
81
21141-361
,z;Reduce[21141-3612
z
4
z
2
z
Out[]=
-≤z≤
27
29
19
27
29
19
-≤z≤;
27
29
19
27
29
19
4) Identify singular quadrics (the values of λ and μ for which result cones or cylinders ):
In[]:=
Det[{{λ+9μ,0,0,-9λ},{0,λ+9μ,0,0},{0,0,λ-29μ,0},{-9λ,0,0,0}}]==0
In[]:=
Solve[-81+1620μ+211410,λ]
4
λ
3
λ
2
λ
2
μ
{{λ0},{λ0},{λ-9μ},{λ29μ}};
Animation:
In[]:=
SwatchLegend[{Yellow,Green,Orange},{"Base curve","Original quadrics","Quadrics of pencil"}]Manipulate[z_]:=,-[z_]:=,++-18x)+μ(9+9-29)==0,{x,-20,20},{y,-20,20},{z,-10,10},ContourStyle{Orange,Opacity[0.2],Specularity[White,40]},MeshFalse,MaxRecursion->3],{μ,-5,t1,0.1}],Table[ContourPlot3D[29μ(++-18x)+μ(9+9-29)==0,{x,-20,20},{y,-20,20},{z,-10,10},ContourStyle{Orange,Opacity[0.2],Specularity[White,40]},MeshFalse,MaxRecursion->3],{μ,-5,t1,0.1}],ParametricPlot3D[t],t,-,,PlotStyle->Yellow/.Line[pts_,rest___]:>Tube[pts,0.2,rest],ParametricPlot3D[t],t,-,,PlotStyle->Yellow/.Line[pts_,rest___]:>Tube[pts,0.2,rest],ParametricPlot3D[{9Cos[u]Sin[v]+9,9Sin[u]Sin[v],9Cos[v]},{u,0,2π},{v,0,π},PlotStyle->Directive[Opacity[0.7],Specularity[White,30]],MeshFalse,ColorFunction->"BlueGreenYellow",PerformanceGoal->"Quality",PlotPoints->40],ParametricPlot3DvCos[u],vSin[u],v,{u,0,2π},{v,-9,9},PlotStyle->Directive[Opacity[0.7],Specularity[White,30]],MeshFalse,ColorFunction->"BlueGreenYellow",PerformanceGoal->"Quality",PlotPoints->40,AxesLabel->(Style[#,15,Blue]&/@{"X","Y","Z"}),AxesOrigin{0,0,0},AxesTrue,BoxedFalse,BoxRatiosAutomatic,PlotRangeAll,ViewPoint{1.3,-2.4,2.},ImageSize700,Style["Pencil of quadrics 2:",Bold,Large],{{t1,-5+0.00002,"Value (t1)"},-5+0.00001,5,0.1},SaveDefinitionsTrue,ControlPlacementTop
ζ
1
19
2
z
81
1
81
21141-361
,z;2
z
4
z
ζ
2
19
2
z
81
1
81
21141-361
,z;ShowTable[ContourPlot3D[-9μ(2
z
4
z
2
x
2
y
2
z
2
x
2
y
2
z
2
x
2
y
2
z
2
x
2
y
2
z
ζ
1
27
29
19
27
29
19
ζ
2
27
29
19
27
29
19
29
3
29
3
Out[]=
Out[]=
The pencil consists of cylinders and parabolic cylinders and they all coincide in the same positions.

