ConeDirectrixSpherePlane::usage="Find the cartesian equation of the straight circular cone whose directrix is the circumference:Γ:
2
x
+
2
y
+
2
z
- 2z - 8 = 0 and x + y + z - 4 = 0and whose vertex belongs to the plane π: 4x + 2y - 3z - 3 = O.References: Internet: Repositorio.pucp.pe, 1.2 Superficies Notables en
3

​, Cono Circular Recto,​Ejercicios propuestos, prob.- 6.; Personal. ";
Obtaining the cone axis:
2
x
+
2
y
+
2
(z-1)
=9;​​C={0,0,1};r=3;
ℒ={0,0,1}+t{1,1,1};
Obtaining the vertex:
In[]:=
Solve[4(t)+2(t)-3(1+t)-3==0,t]
Out[]=
{{t2}}
V={2,2,3}
Obtaining the cosine:
In[]:=
ca=
2
(2-1)
+
2
(2-1)
+
2
(3-2)
Out[]=
3
In[]:=
2
h
==
2

3

+
2
3
Out[]=
2
h
12
Cos[θ]=
3
2
3
=
1
2
;
Cone equation:
In[]:=
Expand
2
1
2
Norm[{x-2,y-2,z-3}]Norm[{1,1,1}]

Out[]=
3
4
2
Abs[-2+x]
+
3
4
2
Abs[-2+y]
+
3
4
2
Abs[-3+z]
In[]:=
Expand[
2
({x-2,y-2,z-3}.{1,1,1})
]
Out[]=
49-14x+
2
x
-14y+2xy+
2
y
-14z+2xz+2yz+
2
z
In[]:=
Expand
3
4
2
(-2+x)
+
3
4
2
(-2+y)
+
3
4
2
(-3+z)
-(49-14x+
2
x
-14y+2xy+
2
y
-14z+2xz+2yz+
2
z
)
-
145
4
+11x-
2
x
4
+11y-2xy-
2
y
4
+
19z
2
-2xz-2yz-
2
z
4
==0;​​
2
x
+
2
y
+
2
z
-44x-44y-38z+8xy+8xz+8yz+145==0;
Obtaining the parametric equations of the circumference to trace the graph:
In[]:=
x+y+z-4==0;​​x=-y-z+4;​​y=u;​​z=v;​​{-1,1,0}{1,1,1}
Out[]=
{1,1,-2}
In[]:=
Solve[{
2
x
+
2
y
+
2
z
-2z-8==0,x+y+z-4==0},{x,y}]
Out[]=
x
1
2
4-z-
3
4z-
2
z
,y
1
2
4-z+
3
-((-4+z)z)
,x
1
2
4-z+
3
4z-
2
z
,y
1
2
4-z-
3
-((-4+z)z)

In[]:=
ξ[z_]:=
1
2
4-z-
3
4z-
2
z
,
1
2
4-z+
3
-((-4+z)z)
,z;​​Reduce[4z-
2
z
>=0,z]
Out[]=
0≤z≤4
In[]:=
Solve[t+t+1+t-4==0,t]​​
Out[]=
{{t1}}
In[]:=
C1={1,1,2};​​r1=N[Norm[C1-ξ[0]]]
Out[]=
2.44949
ζ[t_]:={1,1,2}+Cos[t]
2.449489742783178`
Norm[{-1,1,0}]
{-1,1,0}+Sin[t]
2.449489742783178`
Norm[{1,1,-2}]
{1,1,-2};
Animation:
In[]:=
Manipulateζ[t_]:={1,1,2}+Cos[t]
2.449489742783178`
Norm[{-1,1,0}]
{-1,1,0}+Sin[t]
2.449489742783178`
Norm[{1,1,-2}]
{1,1,-2};​​Show[{ParametricPlot3D[{0,0,1}+t{1,1,1},{t,-6,6},ColorFunction->"DeepSeaColors"]/.Line[pts_,rest___]:>Tube[pts,0.09,rest],ParametricPlot3D[{3Cos[u]Sin[v],3Sin[u]Sin[v],3Cos[v]+1},{u,0,2π},{v,0,2π},MeshFalse,PlotStyle->Directive[Blue,Opacity[0.3],Specularity[White,30]],PerformanceGoal->"Quality"],ContourPlot3D[
2
x
+
2
y
+
2
z
-44x-44y-38z+8xy+8xz+8yz+145==0,{x,-10,10},{y,-10,10},{z,-10,10},ContourStyle->Directive[Yellow,Opacity[0.4],Specularity[White,30]],MeshFalse,PerformanceGoal->"Quality",PlotPoints40],ContourPlot3D[x+y+z-4==0,{x,-5,5},{y,-5,5},{z,-5,5},ContourStyle->Directive[Green,Opacity[0.4],Specularity[White,30]],MeshFalse,PerformanceGoal->"Quality"],ContourPlot3D[4x+2y-3z-3==0,{x,-10,10},{y,-10,10},{z,-10,10},ContourStyle->Directive[Purple,Opacity[0.2],Specularity[White,30]],MeshFalse,PerformanceGoal->"Quality"],Graphics3D[{Black,Ball[{0,0,1},0.2]}],Graphics3D[{Black,Ball[{2,2,3},0.2]}],Graphics3D[{Black,Ball[{1,1,2},0.2]}],ParametricPlot3D[ζ[t],{t,0,t1},PlotStyle->Yellow]/.Line[pts_,rest___]:>Tube[pts,0.09,rest]},​​AxesLabel->(Style[#,15,Blue]&/@{"X","Y","Z"}),AxesOrigin{0,0,0},AxesTrue,BoxedFalse,BoxRatiosAutomatic,PlotRangeAll,ImageSize900,ViewPoint{-3,7,-1}],Style["Cone with vertex in the plane:",Bold,Large],{{t1,0.00002,"Value (t1)"},0.00001,2π,0.00001},ControlPlacementTop
Out[]=
​
Cone with vertex in the plane:
Value (t1)
View from different angles (below):
In[]:=
gr=Show[{ParametricPlot3D[{0,0,1}+t{1,1,1},{t,-6,6},ColorFunction->"DeepSeaColors"]/.Line[pts_,rest___]:>Tube[pts,0.09,rest],ParametricPlot3D[{3Cos[u]Sin[v],3Sin[u]Sin[v],3Cos[v]+1},{u,0,2π},{v,0,2π},MeshFalse,PlotStyle->Directive[Blue,Opacity[0.3],Specularity[White,30]],PerformanceGoal->"Quality"],ContourPlot3D[
2
x
+
2
y
+
2
z
-44x-44y-38z+8xy+8xz+8yz+145==0,{x,-10,10},{y,-10,10},{z,-10,10},ContourStyle->Directive[Yellow,Opacity[0.4],Specularity[White,30]],MeshFalse,PerformanceGoal->"Quality",PlotPoints40],ContourPlot3D[x+y+z-4==0,{x,-5,5},{y,-5,5},{z,-5,5},ContourStyle->Directive[Green,Opacity[0.4],Specularity[White,30]],MeshFalse,PerformanceGoal->"Quality"],ContourPlot3D[4x+2y-3z-3==0,{x,-10,10},{y,-10,10},{z,-10,10},ContourStyle->Directive[Purple,Opacity[0.2],Specularity[White,30]],MeshFalse,PerformanceGoal->"Quality"],Graphics3D[{Black,Ball[{0,0,1},0.2]}],Graphics3D[{Black,Ball[{2,2,3},0.2]}],Graphics3D[{Black,Ball[{1,1,2},0.2]}],ParametricPlot3D[ζ[t],{t,0,2π},PlotStyle->Yellow]/.Line[pts_,rest___]:>Tube[pts,0.09,rest]},​​AxesLabel->(Style[#,15,Blue]&/@{"X","Y","Z"}),AxesOrigin{0,0,0},AxesTrue,BoxedFalse,BoxRatiosAutomatic,PlotRangeAll,ImageSize900,ViewPoint{-3,7,-1}]