Академический Документы
Профессиональный Документы
Культура Документы
INTRODUCCIN
OBJETIVO
La siguiente prctica de laboratorio fue desarrollada en MATLAB , dnde se
hicieron ejemplos de operaciones de derivadas y graficas de las ecuaciones.
MARCO TERICO
Se debe tener en cuenta en MATLAB , para realizar las grficas a ecuaciones
debe ser bien escrita mediante tal forma que se trate de mostrar el rango
determinado que se quiere ver la grfica y donde se le puede poner nombre a la
grfica para una mayor facilitacin a la hora de organizar los elemento a la hora de
presentar. Con respecto a las derivadas de funciones debe ser considerado que se
pueden averiguar la derivada ordinaria, de orden superior, parcial ordinaria y
parcial de orden superior.
Los siguientes smbolos son los utilizados para hacer operaciones bsicas entre
los valores que se ingresan en Comand Window.
poder graficarlas.
Polyval (pol, n): para evaluar el polinomio.
EJEMPLOS Y OBSERVACIONES
% a.
pol=[1,0,-8,6,-10];
roots(pol)
ans = -3.2800 + 0.0000i
2.6748 + 0.0000i
0.3026 + 1.0238i
0.3026 - 1.0238i
% b.
pol=[1,0,-8,6,-10];
a=polyval(pol,1)
b=polyval(pol,-3.280)
a = -11
b = -0.0040
% c.
syms x
ezplot('x^4-8*x^2+6*x-10')
axis([-4 4 -100 200])
% d.
syms x
y=6*x^5-4*x^3-28*x^2+5
y1=diff(y)
y1 =
30*x^4 - 12*x^2 - 56*x
% e.
syms x a b
y=cos(a*x)+sin(b*x)-sec((3*pi*x)/4)
y1=diff(y)
pretty(y1)
y1 =
/ 3 pi x \
3 pi sin| ------ |
\
4
/
b cos(b x) - a sin(a x) - -----------------/ 3 pi x \2
4 cos| ------ |
\
4
/
% f.
syms x
y=((3*cos(x)*sin(1/x))/(3+log(tan(x))))
y1=diff(y)
y1 =
- (3*sin(1/x)*sin(x))/(log(tan(x)) + 3) - (3*cos(1/x)*cos(x))/
(x^2*(log(tan(x)) + 3)) - (3*sin(1/x)*cos(x)*(tan(x)^2 + 1))/
(tan(x)*(log(tan(x)) + 3)^2)
% g.
syms x
y=exp(x)*cos(x)
y1=diff(y,4)
y1 =
-4*exp(x)*cos(x)
CLCULOS Y RESULTADOS
%a
syms x;
y=(x^5-x^3+2*x-4).^7;
y1=diff(y)
ezplot('(x^5-x^3+2*x-4).^7')
axis([-4 4 -100 200])
%a/2
pol=[1,0,-1,2,-4];
roots (pol)
ans =
-1.8189
1.3277
0.2456
0.2456
+
+
+
-
0.0000i
0.0000i
1.2633i
1.2633i
%a/3
pol=[1,0,-1,2,-4];
a=polyval(pol,-1.2633)
b=polyval(pol,-1.8189)
a = -5.5755
b = -7.0511e-04
% b.
syms x
y=[3*(x-7)^5]/5
y1=diff(y)
pretty(y1)
y1 = 3*(x - 7)^4
% c.
syms x
y=5/[(x+4)^5]
y1=diff(y)
pretty(y1)
y1 = 5/(x + 4)^5
% c. grafica
syms x
ezplot('5/[(x+4)^5]')
axis([-10 5 -100 200])
%d
syms x;
h=(1-x).^3;
i=expand(h)
pol=[-1,3,-3,1]
roots(pol)
a=polyval(pol,0)
b=polyval(pol,1)
y=(i/2);
y1=diff(y)
ezplot('(((1-x).^3)/2)')
axis([-10 10 -100 200])
i = - x^3 + 3*x^2 - 3*x + 1
ans = 1.0000 + 0.0000i
1.0000 - 0.0000i
1.0000 + 0.0000i
a = 1
b = 0
y1 = 3*x - (3*x^2)/2 - 3/2
% e.
syms x
y=4*sqrt((log(4*x))/(log(4)))
y1=diff(y)
pretty(y1)
y1 =
9007199254740992
--------------------------------------------------/ 4503599627370496 log(4 x) \1/2
6243314768165359 x | ------------------------- |
\
6243314768165359
/
% e. grafica
syms x
ezplot('4*sqrt((log(4*x))/(log(4)))')
axis([0 8 -10 20])
% f.
syms x
y=log(x+2)
y1=diff(y)
pretty(y1)
y1 = 1/(x + 2)
% f. grafica
syms x
ezplot('log(x+2)')
axis([-5 10 -10 10])
%g
syms x;
h=(x^3-x).^2*(2*x^2-2);
i=expand(h)
pol=[2,0,-6,0,6,0,-2,0,0]
roots(pol)
a=polyval(pol,0)
b=polyval(pol,0)
y=(i);
y1=diff(y)
ezplot('(x^3-x).^2*(2*x^2-2)')
axis([-4 4 -10 500])
grid on
i = 2*x^8 - 6*x^6 + 6*x^4 - 2*x^2
ans = 0.0000 + 0.0000i
0.0000 + 0.0000i
-1.0000 + 0.0000i
-1.0000
-1.0000
1.0000
1.0000
1.0000
+
+
+
-
0.0000i
0.0000i
0.0000i
0.0000i
0.0000i
a = 0
b = 0
y1 = 16*x^7 - 36*x^5 + 24*x^3 - 4*x
%h
syms x;
h=(x-1)*(x+1);
i=expand(h)
pol=[1 0 -1]
roots(pol)
a=polyval(pol,1)
b=polyval(pol,-1)
y=(i);
y1=diff(y)
ezplot('(x^2-1)')
axis([-4 4 -100 200])
grid on
i = x^2 - 1
ans = -1
1
a = 0
b = 0
y1 = 2*x
% i.
syms x
y=log((1-x)/(1+x))
y1=diff(y)
pretty(y1)
y1 =
/
1
x - 1
\
| ----- - -------- | (x + 1)
| x + 1
2 |
\
(x + 1) /
---------------------------x - 1
% i. grafica
syms x
ezplot('((1-x)/(1+x))')
axis([-4 4 -100 200])
% j.
syms x
y=(exp(x))/(log(x))
y1=diff(y)
pretty(y1)
y1 = exp(x)/log(x) - exp(x)/(x*log(x)^2)
% j. grafica
syms x
ezplot('(exp(x))/(log(x))')
axis([-4 4 -100 200])
% k.
syms x
y=sqrt(x-1)/(x+1);
y1=diff(y)
pretty(y1)
y1 =
1/2
1
(x - 1)
-------------------- - ---------1/2
2
2 (x - 1)
(x + 1)
(x + 1)
% k. grafica
syms x
ezplot('sqrt(x-1)/(x+1)')
axis([0 8 -2 2])
% l.
syms x
y=(log(x+1))/x+1
y1=diff(y)
pretty(y1)
y1 = 1/(x*(x + 1)) - log(x + 1)/x^2
% l. grafica
syms x
ezplot('(log(x+1))/x+1')
axis([-4 4 -100 200])
% m.
syms x
y=3.7.^(x-log(x))
y1=diff(y)
pretty(y1)
y1 =
x - log(x)
- (37/10)
% m. grafica
syms x
/ 1
\
log(37/10) | - - 1 |
\ x
/
ezplot('3.7.^(x-log(x))')
axis([-5 10 -100 200])
% n.
syms x
y=4.^(sin(x))
y1=diff(y)
pretty(y1)
y1 = 4^sin(x)*log(4)*cos(x)
% n. grafica
syms x
ezplot('4.^(sin(x))')
axis([-4 4 -100 200])
% o.
syms x
y=(exp(1-x))*(1-x).^(exp(1))
y1=diff(y)
pretty(y1)
y1 =
1934613350591413/1125899906842624
3060513257434037 exp(1 - x) (1 - x)
- -------------------------------------------------------------------- 1125899906842624
3060513257434037/1125899906842624
exp(1 - x) (1 - x)
% o. grafica
syms x
ezplot('(exp(1-x))*(1-x).^(exp(1))')
axis([-4 4 -100 200])
% p.
syms x
y=sin(tan(x))
y1=diff(y)
pretty(y1)
y1 = cos(tan(x))*(tan(x)^2 + 1)
% q.
syms x
y=sin(sqrt(x+1)/(x-1))
y1=diff(y)
pretty(y1)
y1 =
/
1/2
| (x + 1)
cos| ---------\
x - 1
\
|
|
/
/
1/2
|
1
(x + 1)
| -------------------- - ---------|
1/2
2
\ 2 (x - 1) (x + 1)
(x - 1)
\
|
|
|
/
% r.
syms x
y=log(sqrt(1+sin(x))/(1-sin(x)))
y1=diff(y)
pretty(y1)
y1 =
/
1/2 \
|
cos(x)
cos(x) (sin(x) + 1)
|
(sin(x) - 1) | ------------------------------ - ---------------------- |
|
1/2
2
|
\ 2 (sin(x) - 1) (sin(x) + 1)
(sin(x) - 1)
/
-----------------------------------------------------------------------1/2
(sin(x) + 1)
% s.
syms x
y=log((1)/(x^2-1))
y1=diff(y)
pretty(y1)
y1 = -(2*x)/(x^2 - 1)
% t.
syms x
y=log((asin(x).^2)/(x.^2-1))
y1=diff(y)
pretty(y1)
y1 =
/
2 \
| 2 asin(x)
2 x asin(x) |
2
| ----------- + ------------ | (x - 1)
|
2 3/2
2
2
|
\ (1 - x )
(x - 1)
/
- --------------------------------------2
asin(x)
ANALISIS DE RESULTADOS
1. Se puede distinguir que los puntos a, d, g y h son polinomios de grado
superior a 2, por lo que para evaluar dichas funciones, se requiri saber sus
verdaderas races mediante el uso del comando roots, previamente de
ingresar los coeficientes del polinomio con la condicin pol.
2. Despus de evaluar las races de los polinomios, se procedi a expandir la
funcin a la que estaba elevada, para as desarrollar correctamente el
procedimiento de derivada en la operacin de comandos.
3. Algunos ejercicios que llevaban consigo el operador de Logaritmo Natural
(LN), se debieron presentar en los comandos de las operaciones como un
logaritmo, en dichos casos, log, para poder operar la funcin, y obtener su
derivada de la manera correcta.
4. En ciertos puntos, apareci la expresin del nmero de Euler, por lo que
para ingresarlo al programa se requiri utilizar el comando exp(), que
representa dicha expresin.
5. Como se haba practicado en anteriores laboratorios, se encuentran
funciones trigonomtricas, por lo que algunas, como la secante se deben
escribir de la forma 1/cos, respectivamente, para que el programa pueda
procesar la informacin y llegar as a la solucin del problema planteado.
CONCLUSIONES