GA2.mws

Práctica No. 2

Circunferencias y Esferas

Los objetivos de esta práctica son:

Circunferencias

Una circunferencia, se puede definir en términos de 3 puntos no colineales, del centro y del radio o por una ecuación. Una circunferencia en Maple tiene la forma:

Orden ..........: circle

Sintaxis ........: circle(C,[P, Q, R]);

circle(D,[M, r]);

circle(E,[ecuación]);

Propósito......: Define la circunferencia C , que pasa por los puntos P , Q  y R .

Define la circunferencia D , con centro en el punto M  y radio r .

Define la circunferencia E como su ecuación.

Ejemplo 1

Hallar la ecuación de la circunferencia que pasa por los puntos P = (2, 3) , Q = (1, 2)  y R = (0,-3).

Solución

>    restart:

>    with(geometry):

>    _EnvHorizontalName := x: _EnvVerticalName := y:

Definimos los puntos:

>    point(P,[2,3]),point(Q,[1,2]), point(R,[0,-3]);

P, Q, R

Definimos la circunferencia:

>    circle(C,[P,Q,R]),form(C);

C, circle2d

>    radius(C);coordinates(center(C));

1/2*65^(1/2)*2^(1/2)

[11/2, -3/2]

>    Equation(C);

x^2+y^2-11*x+3*y = 0

>    detail(C);

`name of the object:  C\nform of the object:  circle2d\nname of the center:  center_C\ncoordinates of the center:  [11/2, -3/2]\nradius of the circle:  1/2*65^(1/2)*2^(1/2)\nequation of the circle:  x^...
`name of the object:  C\nform of the object:  circle2d\nname of the center:  center_C\ncoordinates of the center:  [11/2, -3/2]\nradius of the circle:  1/2*65^(1/2)*2^(1/2)\nequation of the circle:  x^...
`name of the object:  C\nform of the object:  circle2d\nname of the center:  center_C\ncoordinates of the center:  [11/2, -3/2]\nradius of the circle:  1/2*65^(1/2)*2^(1/2)\nequation of the circle:  x^...
`name of the object:  C\nform of the object:  circle2d\nname of the center:  center_C\ncoordinates of the center:  [11/2, -3/2]\nradius of the circle:  1/2*65^(1/2)*2^(1/2)\nequation of the circle:  x^...
`name of the object:  C\nform of the object:  circle2d\nname of the center:  center_C\ncoordinates of the center:  [11/2, -3/2]\nradius of the circle:  1/2*65^(1/2)*2^(1/2)\nequation of the circle:  x^...
`name of the object:  C\nform of the object:  circle2d\nname of the center:  center_C\ncoordinates of the center:  [11/2, -3/2]\nradius of the circle:  1/2*65^(1/2)*2^(1/2)\nequation of the circle:  x^...

Ahora obtengamos la gráfica de la circunferencia:

>    with(plots):

>    implicitplot(Equation(C),x=-10..25,y=-10..10,scaling=constrained);

[Maple Plot]

Lo que también podriamos dibujar usando la orden draw

>    draw(C(color=cyan),filled=true);

[Maple Plot]

Ejemplo 2

Hallar la ecuación de la circunferencia con centro en el punto P = (2, 3)  y radio   r = 4 .

Solución

>    restart:

>    with(geometry):

>    _EnvHorizontalName := x: _EnvVerticalName := y:

Definimos el centro

>    point(P,[2,3]);

P

Definimos la cincunferencia C1  :

>    circle(C1,[P,4]),form(C1);

C1, circle2d

>    radius(C1);coordinates(center(C1));

4

[2, 3]

>    Equation(C1);

-3+x^2+y^2-4*x-6*y = 0

>    detail(C1);

`name of the object:  C1\nform of the object:  circle2d\nname of the center:  P\ncoordinates of the center:  [2, 3]\nradius of the circle:  4\nequation of the circle:  -3+x^2+y^2-4*x-6*y = 0`
`name of the object:  C1\nform of the object:  circle2d\nname of the center:  P\ncoordinates of the center:  [2, 3]\nradius of the circle:  4\nequation of the circle:  -3+x^2+y^2-4*x-6*y = 0`
`name of the object:  C1\nform of the object:  circle2d\nname of the center:  P\ncoordinates of the center:  [2, 3]\nradius of the circle:  4\nequation of the circle:  -3+x^2+y^2-4*x-6*y = 0`
`name of the object:  C1\nform of the object:  circle2d\nname of the center:  P\ncoordinates of the center:  [2, 3]\nradius of the circle:  4\nequation of the circle:  -3+x^2+y^2-4*x-6*y = 0`
`name of the object:  C1\nform of the object:  circle2d\nname of the center:  P\ncoordinates of the center:  [2, 3]\nradius of the circle:  4\nequation of the circle:  -3+x^2+y^2-4*x-6*y = 0`
`name of the object:  C1\nform of the object:  circle2d\nname of the center:  P\ncoordinates of the center:  [2, 3]\nradius of the circle:  4\nequation of the circle:  -3+x^2+y^2-4*x-6*y = 0`

Ahora obtengamos la gráfica de la circunferencia:

>    with(plots):

>    implicitplot(Equation(C1),x=-10..20,y=-5..10,scaling=constrained,filled=true);

[Maple Plot]

Lo que también podriamos dibujar usando la orden draw

>    draw(C1(color=blue),filled=true);

[Maple Plot]

>   

Ejemplo 3

Definir y graficar  la circunferencia que tiene por ecuación x^2+y^2 = 4 .

Solución

>    restart:

>    with(geometry):

>    _EnvHorizontalName := x: _EnvVerticalName := y:

Definimos la cincunferencia C2  :

>    circle(C2,x^2+y^2=4);form(C2);

C2

circle2d

>    radius(C2);coordinates(center(C2));

4^(1/2)

[0, 0]

>    Equation(C2);

-4+x^2+y^2 = 0

>    detail(C2);

`name of the object:  C2\nform of the object:  circle2d\nname of the center:  center_C2\ncoordinates of the center:  [0, 0]\nradius of the circle:  4^(1/2)\nequation of the circle:  -4+x^2+y^2 = 0`
`name of the object:  C2\nform of the object:  circle2d\nname of the center:  center_C2\ncoordinates of the center:  [0, 0]\nradius of the circle:  4^(1/2)\nequation of the circle:  -4+x^2+y^2 = 0`
`name of the object:  C2\nform of the object:  circle2d\nname of the center:  center_C2\ncoordinates of the center:  [0, 0]\nradius of the circle:  4^(1/2)\nequation of the circle:  -4+x^2+y^2 = 0`
`name of the object:  C2\nform of the object:  circle2d\nname of the center:  center_C2\ncoordinates of the center:  [0, 0]\nradius of the circle:  4^(1/2)\nequation of the circle:  -4+x^2+y^2 = 0`
`name of the object:  C2\nform of the object:  circle2d\nname of the center:  center_C2\ncoordinates of the center:  [0, 0]\nradius of the circle:  4^(1/2)\nequation of the circle:  -4+x^2+y^2 = 0`
`name of the object:  C2\nform of the object:  circle2d\nname of the center:  center_C2\ncoordinates of the center:  [0, 0]\nradius of the circle:  4^(1/2)\nequation of the circle:  -4+x^2+y^2 = 0`

Ahora obtengamos la gráfica de la circunferencia C2 :

>    with(plots):

>    implicitplot(Equation(C2),x=-3..3,y=-3..3,scaling=constrained);

[Maple Plot]

Lo que también podriamos dibujar usando la orden draw

>    draw(C2(color=pink),filled=true);

[Maple Plot]

>   

Ejemplo 4

Hállese la ecuación de la recta tangente a la circunferencia   x^2+y^2-2*x+y = 5   en (3, 1).

Solución

>    restart;

>    with(student);

[D, Diff, Doubleint, Int, Limit, Lineint, Product, Sum, Tripleint, changevar, completesquare, distance, equate, integrand, intercept, intparts, leftbox, leftsum, makeproc, middlebox, middlesum, midpoin...
[D, Diff, Doubleint, Int, Limit, Lineint, Product, Sum, Tripleint, changevar, completesquare, distance, equate, integrand, intercept, intparts, leftbox, leftsum, makeproc, middlebox, middlesum, midpoin...

Escribimos la ecuación en su forma ordinaria :

>    completesquare(x^2+y^2-2*x+y =5,y);

(y+1/2)^2-1/4+x^2-2*x = 5

>    completesquare(%, x);      

(x-1)^2-5/4+(y+1/2)^2 = 5

>    lhs(%)+5/4=rhs(%)+5/4;

(x-1)^2+(y+1/2)^2 = 25/4

El centro es el punto (1, -1/2), y el radio es 5/2 .

El radio que va a (3, 1) tiene pendiente

>    m[1]:=slope([1,-1/2],[3,1]);

m[1] := 3/4

Por tanto, la tangente en (3, 1) tiene pendiente

>    m[2]:=-1/m[1];

m[2] := -4/3

y su ecuación es

>    y-1=(-4/3)*(x-3);

y-1 = -4/3*x+4

>    3*lhs(%)=3*rhs(%);

3*y-3 = -4*x+12

>    lhs(%)+4*x+3=rhs(%)+4*x+3;

3*y+4*x = 15

>    sort(%,[x,y]);

4*x+3*y = 15

>   

Gráficas de la circunferencia y la tangente :

>    with(plots):

>    implicitplot([x^2+y^2-2*x+y=5,4*x+3*y=15],x=-2..6, y=-3..5);

[Maple Plot]

>   

Ejemplo 5

Hállese la ecuación de la circunferencia que pasa por los dos puntos de intersección de

x^2+y^2+2*x-4*y = 1    y    x^2+y^2+3*x+5*y = 7    y el punto (2, 1).

Solución

Definimos las circunferencias :

>   

Esferas

Una esfera es una figura geométrica del espacio y está definida como el conjunto de todos los puntos en el espacio que equidistan de otro punto fijo llamado centro.

Podemos definir una esfera de las formas siguientes:
Orden ........: sphere
Sintáxis ......:
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 )

Propósito ...:
Define la esfera s , teniendo un conjunto de cuatro puntos y el centro.
Define la esfera
 s  , teniendo dos puntos que son los extremos de un diámetro y el centro.
Define la esfera
s  , teniendo un punto y el radio.
Define la esfera
s , teniendo un punto y el plano tangente a la esfera.
Define la esfera
s , teniendo la ecuación.

Ejemplo 1

Hallar la ecuación de la esfera que pasa por los puntos A = (1, 0, 0) , B = (-1, 0, 0), C= (0,-3), y D = (0, 0,1 ).

Solución

>    restart:

>    with(geom3d):

>    _EnvXName := x: _EnvYName := y: _EnvZName := z:

Definimos los puntos :

>    point(A,1,0,0),point(B,-1,0,0),point(C,0,1,0),point(D,0,0,1),form(A);

Warning, a geometry object has been assigned to the protected name D.  Use of protected names for geometry objects is not recommended and may break Maple functionality.

A, B, C, D, point3d

Definimos la esfera s :

>    sphere(s,[A,B,C,D]),form(s);

s, sphere3d

Ecuación de la esfera :

>    Equation(s);

-1+x^2+y^2+z^2 = 0

>    sort(%,[x,y,z]);

x^2+y^2+z^2-1 = 0

>   

Gráfica de la esfera :

>    draw(s,orientation=[103,94]);

[Maple Plot]

Ejemplo 2

Hallar la ecuación de la esfera con centro en el punto P = (1,1,1) , y radio r = 3 .

Solución

>    restart:

>    with(geom3d):

>    _EnvXName := x: _EnvYName := y: _EnvZName := z:

>    centro:=point(CE,1,1,1); # Definimos el centro

centro := CE

>    sphere(s1,[centro,3]),form(s1); # Definimos la esfera

s1, sphere3d

>    Equation(s1); # Ecuación de la esfera

-6+x^2+y^2+z^2-2*x-2*y-2*z = 0

>    sort(%,[x,y,z]);

x^2+y^2+z^2-2*x-2*y-2*z-6 = 0

>    draw(s1,orientation=[103,94]); # Gráfica de la esfera s1

[Maple Plot]

>   

Ejemplo 3

Hallar la ecuación de la esfera tal que los puntos P = (1,1,1)  y Q = (0, 0, 0) forman los extremos de un diámetro.

Solución

>    restart:

>    with(geom3d):

>    _EnvXName := x: _EnvYName := y: _EnvZName := z:

>    point(A1,1,1,1),form(A1),point(A2,0,0,0),form(A2); # Definimos los puntos extremos del diámetro.

A1, point3d, A2, point3d

>    sphere(s3,[A1,A2]),form(s3); # Definimos la esfera

s3, sphere3d

>    Equation(s3); # Ecuación de la esfera

x^2+y^2+z^2-x-y-z = 0

>    sort(%,[x,y,z]);

x^2+y^2+z^2-x-y-z = 0

>    draw(s3,orientation=[103,94]); # Gráfica de la esfera s3

[Maple Plot]

Ejemplo 4

Hallar la ecuación de la esfera que tiene como centro el punto P = (5,5,4)  y tangente al plano     x - y + 4z = 1 .

Solución

>    restart:

>    with(geom3d):

>    _EnvXName := x: _EnvYName := y: _EnvZName := z:

>    plane(p,x-y+4*z=1,[x,y,z]),form(p); # Definimos el plano.

p, plane3d

>    point(F,[5,5,4]),form(F);# Definimos el punto central.

F, point3d

>    sphere(s4,[F,p]),form(s4); # Definimos la esfera

s4, sphere3d

>    Equation(s4); # Ecuación de la esfera

107/2+x^2+y^2+z^2-10*x-10*y-8*z = 0

>    sort(%,[x,y,z]);

x^2+y^2+z^2-10*x-10*y-8*z+107/2 = 0

>    draw(s4,orientation=[103,94]); # Gráfica de la esfera s4

[Maple Plot]

Ejemplo 5

Vamos a generar una esfera que crece alrededor del punto ( 2, 3, 4).

>    restart:

>    with(geom3d):

>    _EnvXName := x: _EnvYName := y: _EnvZName := z:

>    point(h,2,3,4),form(h);

h, point3d

>    seq((sphere(s||i,[h,i]),i=1..5)),form(s4);# Definimos una suseción de esferas

s1, s2, s3, s4, s5, sphere3d

>    Equation(s3); # Ecuación de la esfera s3

20+x^2+y^2+z^2-4*x-6*y-8*z = 0

>    Esferas:=seq(draw(s||i),i=1..5):

>    with(plots):

>    display(Esferas,insequence=true);

[Maple Plot]

Ejemplo 6

Veamos una esfera rodando por un plano.

>    restart:

>    with(geom3d):

>    _EnvXName := x: _EnvYName := y: _EnvZName := z:

>    _EnvXName := x: _EnvYName := y: _EnvZName := z:

>    plane(p,x-y+4*z=1,[x,y,z]),form(p);

p, plane3d

>    seq(sphere(o||i,[point(F||i,[i,4,4]),p]),i=1..5);

o1, o2, o3, o4, o5

>    form(o4);

sphere3d

>    Equation(o4);

71/2+x^2+y^2+z^2-8*x-8*y-8*z = 0

>    Esferas2:=seq(draw(o||i),i=1..5):

>    display(Esferas2,insequence=true):