geom3d
sphere
define a sphere
Calling Sequence
Parameters
Description
Examples
sphere(s, [A, B, C, D], n, 'centername'=m)
sphere(s, [A, B], n, 'centername'=m)
sphere(s, [A, rad], n, 'centername'=m)
sphere(s, [A, p], n, 'centername'=m)
sphere(s, eqn, n, 'centername'=m)
s
-
the name of the sphere
A, B, C, D
points
p
plane
rad
number which is the radius of the sphere
eqn
the algebraic representation of the sphere (i.e., a polynomial or an equation)
n
(optional) list of three names representing the names of the axes
'centername'=m
(optional) m is a name of the center of the sphere to be created
A sphere is the set of all points in space that have the same distance from the center.
A sphere s can be defined as follows:
from four points A, B, C, and D.
from the two points which make a diameter of the sphere s.
from the center of s and its radius. The input is a list of two elements where the first element is a point, the second element is a number.
from a point A and a plane p. The sphere defined is the one with center A and is tangent to the plane p.
from its algebraic representation eqn. The input is an equation or a polynomial. In case the optional argument n is not given, if the environment variables _EnvXName, _EnvYName and _EnvZName are assigned to three names, these three names will be used as the names of the axes. If not, Maple will prompt for input of the names of the axes.
To access the information relating to a sphere s, use the following function calls:
form(s)
returns the form of the geometric object (i.e., sphere3d if s is a sphere).
center(s)
returns the name of the center of s.
radius(s)
returns the radius of s.
area(s)
returns the surface area of s.
volume(s)
returns the volume of s.
Equation(s)
returns the equation that represents the sphere.
xname(s), yname(s), or zname(s)
returns the name of the axis; or FAIL if the axis is not assigned to any name.
detail(s)
returns a detailed description of the given sphere s.
The command with(geom3d,sphere) allows the use of the abbreviated form of this command.
with⁡geom3d:
_EnvXName≔x:_EnvYName≔y:_EnvZName≔z:
Find the equation of the sphere through the origin o and three points A,B,C whose coordinates are a,0,0,0,b,0,0,0,c.
Make sure that A,B,C are not the same as the origin
assume⁡a,real,a≠0,b,real,b≠0,c,real,c≠0:
point⁡o,0,0,0,point⁡A,a,0,0,point⁡B,0,b,0,point⁡C,0,0,c:
sphere⁡s,o,A,B,C
Equation⁡s
−x⁢a~−y⁢b~−z⁢c~+x2+y2+z2=0
a≔a:b≔b:c≔c:
C is a fixed point on OZ and U,V are variable points on OX,OY respectively. Find the locus of a point P when the lines PU,PV,PC are mutually at right angles.
Make necessary assumptions:
assume⁡t1,real,t2,real,t3,real,t1≠0,t2≠0,t3≠0,x≠0,y≠0,z≠0:
Define points C,U,V
point⁡C,0,0,t1,point⁡U,t2,0,0,point⁡V,0,t3,0:
Let P=x,y,z
point⁡P,x,y,z:
Define lines PU,PV, and PC
line⁡PU,P,U,line⁡PV,P,V,line⁡PC,P,C:
It is obvious that there is not enough information to determine if PU,PV, and PC are mutually at right angles. Check for the conditions that make them mutually at right angles:
ArePerpendicular⁡PU,PV,cond1;ArePerpendicular⁡PU,PC,cond2
FAIL
ArePerpendicular⁡PV,PC,cond3
Take a look at the conditions:
cond1,cond2,cond3
−x~⁢−x~+t2~−t3~−y~⁢y~+z~2=0,−x~⁢−x~+t2~+y~2−t1~−z~⁢z~=0,x~2−t3~−y~⁢y~−t1~−z~⁢z~=0
expand⁡cond2−expand⁡cond1
−z~⁢t1~+y~⁢t3~=0
the above shows that y⁢t3=z⁢t1. Substitute this identity into cond3
subs⁡y⁢t3=z⁢t1,lhs⁡expand⁡cond3
−2⁢z~⁢t1~+x~2+y~2+z~2
define a sphere s from the above condition:
sphere⁡s,,x,y,z
check:
coordinates⁡center⁡s=coordinates⁡C
0,0,t1~=0,0,t1~
radius⁡s=distance⁡center⁡s,point⁡o,0,0,0
t1~2=t1~2
See Also
geom3d[ArePerpendicular]
geom3d[center]
geom3d[intersection]
geom3d[inversion]
geom3d[polar]
geom3d[pole]
geom3d[radius]
Download Help Document