AQuadricGeometricLocus::usage="Find the equation of the geometric locus of the points of space such that the ratio of their distances to the plane x + y + z = 9 and to the point {1, 1, 1} is
3
. Check that it is a quadric, classify it and find its reduced equation. References: htpps://fernandorevilla.es; Personal.";Development:
In[]:=
x+y+z-9
3
2
(x-1)
2
(y-1)
2
(z-1)
3
;Expand[2
(x+y+z-9)
2
(x-1)
2
(y-1)
2
(z-1)
81-18x+-18y+2xy+-18z+2xz+2yz+27-18x+9-18y+9-18z+9;8+8+8-2xy-2xz-2yz-54==0;4+4+4-xy-xz-yz-27==0;
2
x
2
y
2
z
2
x
2
y
2
z
2
x
2
y
2
z
2
x
2
y
2
z
In[]:=
Det[{{8,-1,-1,0},{-1,8,-1,0},{-1,-1,8,0},{0,0,0,-54}}]
Out[]=
-26244
In[]:=
Det[{{8,-1,-1},{-1,8,-1},{-1,-1,8}}]
Out[]=
486
In[]:=
A
A
44
-26244
486
A
A
44
In[]:=
Eigenvalues[{{8,-1,-1},{-1,8,-1},{-1,-1,8}}]
Out[]=
{9,9,6}
6+9+9==54;++==1;
2
x'
2
y'
2
z'
2
x'
9
2
y'
6
2
z'
6
It’s an ellipsoid.
The domain of the ellipsoid is obtained:
In[]:=
Reduce[-16(4+4-xy-27)>=0,{x,y}]
2
(-x-y)
2
x
2
y
Out[]=
x-||--+
7
&&y-1
7
7
<x<7
&&x
7
4
7
3
7-
≤y≤2
x
x
7
4
7
3
7-
||x2
x
7
&&y1
7
Orthogonal projection of the ellipsoid point on the plane:
In[]:=
f1[x_,y_]:=;Solve====,x+y+z-9==0,{x,y,z}
x+y+-16(4+4-xy-27)
2
(-x-y)
2
x
2
y
8
x-x1
1
y-y1
1
z-f1[x1,y1]
1
x24+5x1-3y1-24-3x1+5y1-12-x1-y1+
1
8
48-7+2x1y1-7
,y2
x1
2
y1
1
8
48-7+2x1y1-7
,z2
x1
2
y1
1
4
48-7+2x1y1-7
;2
x1
2
y1
In[]:=
SwatchLegend[{Red,Black,Green},{"Point on the ellipsoid","Point on the plane","The point {1, 1, 1} is not on the ellipsoid"}]Manipulatef[x_,y_,z_]:=4+4+4-xy-xz-yz-27;g[x_,y_,z_]:=x+y+z-9;f1[x_,y_]:=;g1[x_,y_]:=9-x-y;dp[x_,y_]:=Abs;dp1[x_,y_]:=++;r[x_,y_]:=;y1=;w=Grid[{{PointCoordinates,PlaneDistance,PointDistance,Rate},{{x1,y1,f1[x1,y1]},dp[x1,y1],dp1[x1,y1],r[x1,y1]}},FrameAll,ItemSize->15,ItemStyle->15];ShowContourPlot3D[f[x,y,z]==0,{x,-5,5},{y,-5,5},{z,-5,5},PerformanceGoal"Quality",MeshStyleDirective[AbsoluteThickness[0.5],Opacity[0.2]],ContourStyleOpacity[0.1],PlotPoints->60],ContourPlot3D[g[x,y,z]==0,{x,-10,10},{y,-10,10},{z,-10,10},Mesh->None,ContourStyleDirective[Gray,Opacity[0.1],Specularity[White,30]],PerformanceGoal"Quality"],Graphics3DBlack,Ball24+5x1-3y1-24-3x1+5y1-12-x1-y1+24+5x1-3y1-24-3x1+5y1-12-x1-y1+
2
x
2
y
2
z
x+y+-16(4+4-xy-27)
2
(-x-y)
2
x
2
y
8
x+y+f1[x,y]-9
3
2
(x-1)
2
(y-1)
2
(f1[x,y]-1)
dp[x,y]
dp1[x,y]
x1
7
1
8
48-7+2x1y1-7
,2
x1
2
y1
1
8
48-7+2x1y1-7
,2
x1
2
y1
1
4
48-7+2x1y1-7
,0.17,Graphics3D[{Green,Ball[{1,1,1},0.17]}],Graphics3D[{Red,Ball[{x1,y1,f1[x1,y1]},0.17]}],Graphics3D[{Black,Dashed,Thick,Line[{{x1,y1,f1[x1,y1]},{1,1,1}}]}],Graphics3DBlack,Dashed,Thick,Line{x1,y1,f1[x1,y1]},2
x1
2
y1
1
8
48-7+2x1y1-7
,2
x1
2
y1
1
8
48-7+2x1y1-7
,2
x1
2
y1
1
4
48-7+2x1y1-7
,AxesLabel->(Style[#,15,Blue]&/@{"X","Y","Z"}),AxesOrigin{0,0,0},AxesTrue,BoxedFalse,BoxRatiosAutomatic,PlotRangeAll,ImageSize700,ViewPoint{4,-6,1},Style["Ellipsoid:",Bold,Large],x1,-2
x1
2
y1
7
+0.02,"Value (x)",-7
+0.01,7
-0.01,0.00001,Delimiter,{{w,2,"Coordinates of the point P on the ellipsoid and ratio to its distances to the plane and point {1, 1, 1}"}},SaveDefinitions->True,ControlPlacementTopOut[]=
Out[]=

