Sei sulla pagina 1di 18

Deber No1 Tercer Parcial

Santiago Tubón
18 de febrero de 2017

1. Ejercicios
1) Ejercicio 2.1. Dibujar las graficas siguientes eligiendo, en cada caso una tabla
de valores adecuada para que aparezcan los aspectos mas representativos de
la funcion:
f (x) = x(x2 + 4)2

function e j e r c i c i o 1 ( )
%S a n t i a g o Tubon
x = −5:0.05:5;
y=x . ∗ ( x . ˆ 2 + 4 ) . ˆ 2 ;
plot ( x , y ) ;
xlabel ( ’ Eje x ’ ) ;
ylabel ( ’ Eje y ’ ) ;

1
p
f (x) = x − (x)

function e j e r c i c i o 2 ( )
%S a n t i a g o Tubon
x = −5:0.05:5;
y=x−x . ˆ 0 . 5 ;
plot ( x , y ) ;
xlabel ( ’ Eje x ’ ) ;
ylabel ( ’ Eje y ’ ) ;
log(x)
f (x) = x

function e j e r c i c i o 3 ( )
%S a n t i a g o Tubon
x = −5:0.05:5;
y=log10 ( x ) . / x ;
plot ( x , y ) ;
xlabel ( ’ Eje x ’ ) ;
ylabel ( ’ Eje y ’ ) ;

2
x(x−2)
f (x) = (x+1)(x−2)

function e j e r c i c i o 4 ( )
%S a n t i a g o Tubon
x = −5:0.05:5;
y=((x . / ( ( x + 1 ) ) ) ) ;
plot ( x , y ) ;
xlabel ( ’ Eje x ’ ) ;
ylabel ( ’ Eje y ’ ) ;

f (x) = sin( x1 )

function e j e r c i c i o 5 ( )
%S a n t i a g o Tubon
x = −4:0.01:4;
y=sin ( 1 . / x ) ;
plot ( x , y ) ;
xlabel ( ’ Eje x ’ ) ;
ylabel ( ’ Eje y ’ ) ;

3
x
f (x) =
e|(x−1)|

function e j e r c i c i o 6 ( )
%S a n t i a g o Tubon
x = −6:0.01:6;
y=x . / ( exp ( abs ( x − 1 ) ) ) ;
plot ( x , y ) ;
xlabel ( ’ Eje x ’ ) ;
ylabel ( ’ Eje y ’ ) ;

x2

si x < 0
f (x) =
−1 si x ≥ 0

function e j e r c i c i o 7 ( )
%S a n t i a g o Tubon
x = −3:0.01:3;
y=(x . ˆ 2 ) . ∗ ( x <0)+( −1).∗(x>=0);
plot ( x , y ) ;
xlabel ( ’ Eje x ’ ) ;
ylabel ( ’ Eje y ’ ) ;

4

 −x si x < −1
f (x) = 1 si 0 < x < 2
−x2 si x > 2

function e j e r c i c i o 8 ( )
%S a n t i a g o Tubon
x = −6:0.01:6;
y=(−(x . ˆ 2 ) ) . ∗ ( x >2)+1.∗(( x>0)&(x<2))+(−x ) . ∗ ( x<−1);
plot ( x , y ) ;
xlabel ( ’ Eje x ’ ) ;
ylabel ( ’ Eje y ’ ) ;
 √
 1 − x si x < −1
f (x) = 1 − x2 si − 1 < x < 1
 √
x − 1 si x > 1

function ejercicio9()
%Santiago Tubon
x=-6:0.01:6;
y=(1-(x.^2)).*((x>-1)&(x<1))+(sqrt(1-x)).*(x<-1)+(sqrt(x-1)).*(x>1);
plot(x,y);
xlabel(’Eje x’);
ylabel(’Eje y’);

5
2) Ejercicio 2.2. Dibujar las curvas en paramétricas siguientes; ademas dibujar
los vectores velocidad utilizando el comando quiver:


r = (2cos3 , 2sin3 (t)) −π ≤t≤π

function e j e r c i c i o 1 0 ( )
%S a n t i a g o Tubon
t=linspace (−1∗pi , pi , 2 0 0 0 ) ;
plot ( 2 ∗ ( cos ( t ) ) . ˆ 3 , 2 ∗ ( sin ( t ) ) . ˆ 3 ) ;
xlabel ( ’ Eje x ’ ) ;
ylabel ( ’ Eje y ’ ) ;


r = (3sin(t), 2sin(2t)) −π ≤t≤π

function e j e r c i c i o 1 1 ( )
%S a n t i a g o Tubon
t=linspace (−1∗pi , pi , 2 0 0 0 ) ;
u=linspace (−1∗pi , pi , 1 0 0 ) ;
subplot ( 2 , 1 , 1 )
plot ( 3 ∗ sin ( t ) , 2 ∗ sin ( 2 ∗ t ) ) ;
subplot ( 2 , 1 , 2 )
quiver ( 3 ∗ sin ( u ) , 2 ∗ sin ( 2 ∗ u ) ) ;

6

− t t t t
r = ( (12( )2 − 9), ((( )2 − 1)16( )2 + 2)) −π ≤t≤π
π π π π

function ejercicio13()
%Santiago Tubon
t=linspace(-3,3,2000);
u=linspace(-3,3,100);
subplot(2,1,1)
plot((t./pi).*(12.*((t./pi).^2)-9),((((t./pi).^2)-1).*(16*((t./pi).^2)+2)));
subplot(2,1,2)
quiver((u./pi).*(12.*((u./pi).^2)-9),((((u./pi).^2)-1).*(16*((u./pi).^2)+2)));


− 3
r = ( cos(t)(cos(t) + 1), 2sin(2t)) −π ≤t≤π
2

function e j e r c i c i o 1 4 ( )
%S a n t i a g o Tubon
t=linspace (−1∗pi , pi , 2 0 0 0 ) ;
u=linspace (−1∗pi , pi , 1 0 0 ) ;
subplot ( 2 , 1 , 1 )
plot ( 1 . 5 ∗ cos ( t ) . ∗ ( cos ( t )+1) ,2∗ sin ( 2 ∗ t ) ) ;
subplot ( 2 , 1 , 2 )
quiver ( 1 . 5 ∗ cos ( u ) . ∗ ( cos ( u )+1) ,2∗ sin ( 2 ∗ u ) ) ;

7


r = (sin(2t) + sin(t), −cos(2t) − cos(t)) −π ≤t≤π

function e j e r c i c i o 1 5 ( )
%S a n t i a g o Tubon
t=linspace (−1∗pi , pi , 2 0 0 0 ) ;
u=linspace (−1∗pi , pi , 1 0 0 ) ;
subplot ( 2 , 1 , 1 )
plot ( sin ( 2 ∗ t )+ sin ( t ) , − cos ( 2 ∗ t )−cos ( t ) ) ;
subplot ( 2 , 1 , 2 )
quiver ( sin ( 2 ∗ u)+ sin ( u) , − cos ( 2 ∗ u)−cos ( u ) ) ;

− t t
r = (e 4 sin(2t), e 4 cos(2t)) −π ≤t≤π

function e j e r c i c i o 1 6 ( )
%S a n t i a g o Tubon
t=linspace (−1∗pi , pi , 2 0 0 0 ) ;
u=linspace (−1∗pi , pi , 1 0 0 ) ;
subplot ( 2 , 1 , 1 )
plot ( exp ( t . / 4 ) . ∗ sin ( 2 ∗ t ) , exp ( t . / 4 ) . ∗ cos ( 2 ∗ t ) ) ;
subplot ( 2 , 1 , 2 )
quiver ( exp ( u . / 4 ) . ∗ sin ( 2 ∗ u ) , exp ( u . / 4 ) . ∗ cos ( 2 ∗ u ) ) ;

8

− 2 7t 2 7
r = ( tcos( ), tsin( )) −π ≤t≤π
3 2 3 t

function e j e r c i c i o 1 7 ( )
%S a n t i a g o Tubon
t=linspace (−1∗pi , pi , 2 0 0 0 ) ;
u=linspace (−1∗pi , pi , 5 0 0 ) ;
subplot ( 2 , 1 , 1 )
plot ( ( 2 / 3 ) ∗ t . ∗ cos ( ( 7 ∗ t ) / 2 ) , ( 2 / 3 ) ∗ t . ∗ sin ( 7 . / t ) ) ;
subplot ( 2 , 1 , 2 )
quiver ( ( 2 / 3 ) ∗ u . ∗ cos ( ( 7 ∗ u ) / 2 ) , ( 2 / 3 ) ∗ u . ∗ sin ( 7 . / u ) ) ;


− 11 22
r = (t − sin(3t), − cos(3t)) − 3π ≤ t ≤ 3π
10 10

function e j e r c i c i o 1 8 ( )
%S a n t i a g o Tubon
t=linspace (−3∗pi , 3 ∗ pi , 2 0 0 0 ) ;
u=linspace (−3∗pi , 3 ∗ pi , 2 0 0 ) ;
subplot ( 2 , 1 , 1 )
plot ( t −(11/10)∗ sin ( 3 ∗ t ) , −(22/10)∗ cos ( 3 ∗ t ) ) ;
subplot ( 2 , 1 , 2 )
quiver ( u −(11/10)∗ sin ( 3 ∗ u ) , −(22/10)∗ cos ( 3 ∗ u ) ) ;

9
3) Dibujar las gráficas de las siguientes funciones, dadas en coordenadas polares.

r = 7 − 7sin(θ) −π ≤θ ≤π

function e j e r c i c i o 1 9 ( )
%S a n t i a g o Tubon
t h e t a=linspace (−pi , pi , 1 0 0 0 ) ;
r=7−7∗sin ( t h e t a ) ;
polar ( t h e t a , r ) ;

r = 3 − 6sin(θ) −π ≤θ ≤π

function e j e r c i c i o 2 0 ( )
%S a n t i a g o Tubon
t h e t a=linspace (−pi , pi , 1 0 0 0 ) ;
r=3−6∗sin ( t h e t a ) ;
polar ( t h e t a , r ) ;

10
r = sin(6θ) −π ≤θ ≤π

function e j e r c i c i o 2 1 ( )
%S a n t i a g o Tubon
t h e t a=linspace (−pi , pi , 1 0 0 0 ) ;
r=sin ( 6 ∗ t h e t a ) ;
polar ( t h e t a , r ) ;

r = cos(8θ) −π ≤θ ≤π

function e j e r c i c i o 2 2 ( )
%S a n t i a g o Tubon
t h e t a=linspace (−pi , pi , 1 0 0 0 ) ;
r=cos ( 8 ∗ t h e t a ) ;
polar ( t h e t a , r ) ;

11
p
r= 5cos(2θ) −π ≤θ ≤π

function e j e r c i c i o 2 3 ( )
%S a n t i a g o Tubon
t h e t a=linspace (−pi , pi , 1 0 0 0 ) ;
r=sqrt ( 5 ∗ cos ( 2 ∗ t h e t a ) ) ;
polar ( t h e t a , r ) ;

4) Ejercicio3.1. Representar las curvas siguientes y representar en grafica aparte


algunos vectores velocidad de la curva en los intervalos dados


r = (2cos3 (t), 2sin3 (t), t) −4≤t≤3

function ejercicio24()
%Santiago Tubon
t=linspace(-4,3,1000);
u=linspace(-4,3,50);
subplot(2,1,1);
plot3(2*(cos(t)).^3,2*(sin(t)).^3,t);
subplot(2,1,2);
quiver3(2*(cos(u)).^3,2*(sin(u)).^3,u,-6*((cos(u)).^2).*sin(u),
6*((sin(u)).^2).*(cos(u)),1);

12

− 1
r = (cos(t), 2cos2 (t), sin(t) −π ≤t≤π
4

function ejercicio25()
%Santiago Tubon
t=linspace(-pi,pi,5000);
u=linspace(-pi,pi,10);
subplot(2,1,1);
plot3(cos(t),2*(cos(t)).^2,(1/4)*sin(t));
subplot(2,1,2);
quiver3(cos(t),2*(cos(t)).^2,(1/4)*sin(t),-sin(t),
-4*cos(t).*sin(t),(-1/4)*cos(t));


− t t t
r = ( cos(t), sin(t), ) − 12 ≤ t ≤ 19
6 6 36

function ejercicio26()
%Santiago Tubon
t=linspace(-12,19,50000);

13
u=linspace(-12,19,50);
subplot(2,1,1);
plot3((t./6).*cos(t),(t./6).*sin(t),(t./36));
subplot(2,1,2);
quiver3((t./6).*cos(t),(t./6).*sin(t),(t./36),((1/6)*cos(t)-(t./6).*sin(t)),
((1/6)*sin(t)+(t./6).*cos(t)),(1/36))

t t


r = (e 4 sin(2t), e 4 cos(2t), 4t ) − 10 ≤ t ≤ 4,8

function ejercicio27()
%Santiago Tubon
t=linspace(-10,4.8,50000);
u=linspace(-10,4.8,50);

subplot(2,1,1);
plot3(exp(t./4).*sin(2*t),exp(t./4).*cos(2*t),(t./4));
subplot(2,1,2);
quiver3(exp(t./4).*sin(2*t),exp(t./4).*cos(2*t),(t./4),
(1/4)*exp(t./4).*sin(2*t)+2*exp(t./4).*cos(2*t),
(1/4)*exp(t./4).*cos(2*t)-2*exp(t./4).*sin(2*t),(1/4));

14


r = (sin(2t) + sin(t), −cos(2t) − cos(t), 6t ) − 9 ≤ t ≤ 10

function ejercicio28()
%Santiago Tubon
t=linspace(-9,10,50000);
u=linspace(-9,10,50);
subplot(2,1,1);
plot3(sin(2*t)+sin(t),-1*cos(2*t)-1*cos(t),t./6);
subplot(2,1,2);
quiver3(sin(2*t)+sin(t),-1*cos(2*t)-1*cos(t),t./6,
2*cos(2*t)+cos(t),2*sin(2*t)+sin(t),1/6);


r = (cos(3t), 2cos2 (t), sin(2t)) −π ≤t≤π

function ejercicio29()
%Santiago Tubon
t=linspace(-pi,pi,50000);
u=linspace(-pi,pi,50);
subplot(2,1,1);
plot3(cos(3*t),2*(cos(t)).^2,sin(2*t));
subplot(2,1,2);
quiver3(cos(3*t),2*(cos(t)).^2,sin(2*t),
-3*sin(3*t),-4*(cos(t).*sin(t)),2*cos(2*t));

15
5) Ejercicio3.2. Representar las graficas de las siguientes funciones de 2 va-
riables, utilizando alguno de los comandos descritos anteriormente. Dibujar
también algunas curvas de nivel.
1
z=
9 + x2 + y 2

function e j e r c i c i o 3 0 ( )
%S a n t i a g o Tubon
[ x , y]=meshgrid ( − 3 : 0 . 1 : 3 ) ;
z =(1./(9+ x .ˆ2+ y . ˆ 2 ) ) ;

subplot ( 2 , 1 , 1 )
surf ( x , y , z ) ;
subplot ( 2 , 1 , 2 )
contour ( z , 1 0 ) ;

p
z= |xy|

16
function e j e r c i c i o 3 1 ( )
%S a n t i a g o Tubon
[ x , y]=meshgrid ( − 3 : 0 . 1 : 3 ) ;
z=−(sqrt ( abs ( x . ∗ y ) ) ) ;
subplot ( 2 , 1 , 1 )
surf ( x , y , z ) ;
subplot ( 2 , 1 , 2 )
contour ( z , 1 0 ) ;

x2 + y 2
cos( )
z= 4
3 + x2 + y 2

function e j e r c i c i o 3 1 ( )
%S a n t i a g o Tubon
[ x , y]=meshgrid ( − 3 : 0 . 1 : 3 ) ;
z=−(sqrt ( abs ( x . ∗ y ) ) ) ;
subplot ( 2 , 1 , 1 )
surf ( x , y , z ) ;
subplot ( 2 , 1 , 2 )
contour ( z , 1 0 ) ;

17
y2
z= − 3 |x|
5

function e j e r c i c i o 3 3 ( )
%S a n t i a g o Tubon
[ x , y]=meshgrid ( − 3 : 0 . 1 : 3 ) ;
z =((( y . ˆ 2 ) . / 5 ) − 3 ∗ abs ( x ) ) ;
subplot ( 2 , 1 , 1 )
surf ( x , y , z ) ;
subplot ( 2 , 1 , 2 )
contour ( z , 1 0 ) ;
2
+y 2 )
z = e−(x

function e j e r c i c i o 3 4 ( )
%S a n t i a g o Tubon
[ x , y]=meshgrid ( − 3 : 0 . 1 : 3 ) ;
z=(exp( −1∗( x .ˆ2+ y . ˆ 2 ) ) ) ;
subplot ( 2 , 1 , 1 )
surf ( x , y , z ) ;
subplot ( 2 , 1 , 2 )
comet3 ( z , 1 0 ) ;

18

Potrebbero piacerti anche