Documente Academic
Documente Profesional
Documente Cultură
LIMITES DE FUNCIONES:
r
x4 + x3 + 2x + 3
a) lm
x2
x2 + 4
SOLUCION:
>> syms x
>> f=sqrt((x^4+x^3+2*x+3)/(x^2+4))
f =
((x^4 + x^3 + 2*x + 3)/(x^2 + 4))^(1/2)
>> limit(f,2)
ans =
(8^(1/2)*31^(1/2))/8
>> eval(ans)
ans =
1.9685
GRAFICA:
>>
>>
>>
>>
x=[-10:0.01:10];
f=sqrt((x.^4+x.^3+2.*x+3)./(x.^2+4));
plot(x,f);
grid
e) S
x + 5
f (x) :
9 + x2
3x
si x < 3
si 3 x 3
si 3 < x
Determine:
lm f (x) lm + f (x) lm f (x) lm+ f (x) lm f (x)
x3
x3
x3
x3
x3
Solucion:
>>
>>
>>
>>
>>
syms x
f1=x+5;
f2=sqrt(9+x^2);
f3=3-x;
a=limit(f1,x,-3,left)
a =
2
>> b=limit(f2,x,-3,right)
b =
18^(1/2)
>> c=limit(f2,x,3,left)
c =
18^(1/2)
>> d=limit(f3,x,3,right)
d =
0
>> e=limit(f2,x,3)
e =
18^(1/2)
2
GRAFICA:
>> x=[-5:0.001:5];
>> f=(x<-3).*(x+5)+((x>=-3)&(x<=3)).*(sqrt(9+x.^2))+(x>3).*(3-x);
>> plot(x,f)
>>grid
>> x=[-10:0.001:10];
>> f=abs(1-x.^2);
>> plot(x,f);
>>grid
syms x;
f1=-(1-x^2);
f2=(1-x^2);
limit(f1,x,1,left)
ans =
0
>> limit(f2,x,1,right)
ans =
0
Como lm (1 x2 ) = lm+ 1 x2 La funcion en el punto 1 es continua.
x1
x1
3) Determine si f es diferenciable en 1
SOLUCION:
>>
>>
>>
>>
>>
>>
>>
>>
>>
syms h;
a=1;
f1=polyval([1 0 -1],a);
f2=polyval([-1 0 1],a);
fa=((1-(1+h)^2)-f1)/(h);
fb=(-(1-(1+h)^2)-f2)/(h);
re1=limit(fa,h,0,right);
re2=limit(fb,h,0,left);
re1
re1 =
-2
>> re2
re2 =
2
(1 (1 + h)2 ) + f (1)
(1 (1 + h)2 ) + f (1)
6= lm+
h0
h0
h
h
La funcion en el punto 1 no es diferenciable.
Como lm
2) DERIVADAS
a) S f (x) = cos(x)sin(3x) determine f 0 (x) en x =
SOLUCION:
>> syms x;
>> f=cos(x)*sin(3*x);
>> deri=diff(f,x)
deri =
4
3*cos(3*x)*cos(x) - sin(3*x)*sin(x)
>> eval(deri)
ans =
-1.5000
GRAFICA:
>> syms x
>> ezplot(deri,x);
>>grid
>> x=[-10:0.0001:10];
>> f=sin(3.*x).*cos(x)
>> plot(x,f);
>>grid
x
y
>> deriparci=diff(f,y)
deriparci =
2*x^2 + 2*b*x*y + 3*y^2
i) S
dx2 +ex+f
x2
+ xb + 1c
a
SOLUCION:
>> syms x a b c d e f ;
>> f=(d*x^2+e*x+f)/((x^2/a)+(x/b)+(1/c));
>> deri=diff(f,x)
deri =
(e + 2*d*x)/(x/b + 1/c + x^2/a) - (((2*x)/a + 1/b)*(d*x^2 + e*x + f))/
(x/b + 1/c + x^2/a)^2
>> deri2=diff(f,x,2)
deri2 =
(2*d)/(x/b + 1/c + x^2/a) + (2*((2*x)/a + 1/b)^2*(d*x^2 + e*x + f))/
(x/b + 1/c + x^2/a)^3 - (2*((2*x)/a + 1/b)*(e + 2*d*x))/
(x/b + 1/c + x^2/a)^2 - (2*(d*x^2 + e*x + f))/(a*(x/b + 1/c + x^2/a)^2)
>> x=2;
>> eval(deri2)
ans =
(2*d)/(4/a
(2*(4/a +
(4/a + 2/b
(x/b + 1/c
>> syms x y;
>> f=(x+y)^2+(x-y)^2;
>> deri=diff(f,x)
deri =
4*x
>> deri=diff(f,y)
deri =
4*y
GRAFICA:
>>
>>
>>
>>
>>
x=[-10:0.01:10];
y=[-10:0.01:10];
[X,Y]=meshgrid(x,y);
z=(X+Y).^2+(X+Y).^2;
mesh(z)
>> x=[-10:0.01:10];
>> y=[-10:0.01:10];
>> f1=4*x;
>> f2=4*y;
>> plot(x,f1); hold on
>>grid
;plot(y,f2)
3) INTEGRALES
Z
a)
log(x)
dx
x
SOLUCION:
>> syms x;
>> f=(log10(x))/sqrt(x);
>> integ=int(f,x)
integ =
7
(2*x^(1/2)*(log(x) - 2))/log(10)
>> pretty(integ)
1/2
2 x
(log(x) - 2)
------------------log(10)
GRAFICA:
>> syms x;
integ =
(2*x^(1/2)*(log(x) - 2))/log(10)
>> ezplot(integ,[-10 10])
>>grid
ZZ2
(x(1 x) + sin(x)cos(y)) dx
e)
0 0
SOLUCION:
>> syms x y;
>> integr=int(int(x*(1-y)+sin(x)*cos(y),x,0,2*pi),y,0,pi)
integr =
-pi^3*(pi - 2)
GRAFICA:
>> syms x y;
ezplot(x.*(1-y)+sin(x).*cos(y),[-10,10]);
>>grid
Z
i)
8 sin 2x sin x
dx
(20 4 sin 2x 19 sin2 x)2
SOLUCION:
>> syms x;
>> f=(8*sin(2*x)*sin(x))/((20-4*sin(2*x)-19*(sin(x))^2)^(5/2));
>> integra=int(f);
>> pretty(integra)
1/2
1/2
9
(4 2
(19 cos(2 x) - 8 sin(2 x) + 21)
(151995215872 cos(x) 10
11
8
125928545280 cos(x)sin(x) - 90073640960cos(x) -139713721344cos(x)sin(x) +
7
63982346240 cos(x)
6
- 21846464512 cos(x)
5
sin(x) +5065269248 cos(x)
4
3
3
861399040 cos(x) sin(x)+102404096 cos(x)+405504 cos(x)+8260608sin(x)
28687511760 sin(4 x) +
856116576 sin(10 x) +
GRAFICA:
>>ezplot(integra,[-10;10]);
>>grid
4) POLINOMIO TAYLOR
a) f (x) = (x + 1sin(x2 ), a = 0)
SOLUCION:
>>
>>
>>
>>
syms x;
f=(x+1)*sin(x^2);
a=0;
seri1=taylor(f,5,a)
seri1 =
x^3 + x^2
>> reri2=taylor(f,10,a)
reri2 =
- x^7/6 - x^6/6 + x^3 + x^2
>> seri3=taylor(f,15,a)
seri3 =
- x^14/5040 + x^11/120 + x^10/120 - x^7/6 - x^6/6 + x^3 + x^2
GRAFICA:
e) f (x) = arctg(x) a = 0
SOLUCION:
10
>> syms x;
>> f=atan(x);
>> seri1=taylor(f,x,5,0)
seri1 =
- x^3/3 + x
>> seri2=taylor(f,x,10,0)
seri2 =
x^9/9 - x^7/7 + x^5/5 - x^3/3 + x
>> seri3=taylor(f,x,15,0)
seri3 =
x^13/13 - x^11/11 + x^9/9 - x^7/7 + x^5/5 - x^3/3 + x
GRAFICA:
11
>> simplify(ans)
ans =
/
1/2
\1/3
| 3348
|
1
| ------- - 1/2 |
- ---------------------\
108
/
/
1/2
\1/3
| 3348
|
3 | ------- - 1/2 |
\
108
/
#1 - #2
- #2 - #1
where
/
/
1/2
\2/3
1/2 \
| 1/2 | 3348
|
3
|
| 3
| ------- - 1/2 |
+ ---- | i
\
\
108
/
3
/
#1 == -------------------------------------/
1/2
\1/3
| 3348
|
2 | ------- - 1/2 |
\
108
/
/
1/2
\2/3
| 3348
|
| ------- - 1/2 |
- 1/3
\
108
/
#2 == -------------------------/
1/2
\1/3
| 3348
|
2 | ------- - 1/2 |
\
108
/
12
-+
|
|
|
|
|
|
|
|
|
|
|
-+
GRAFICA:
>>ezplot(x^3+x+1,[-10 10])
>>grid
e)
16+x2
16x2
SOLUCION:
>> syms x;
>> f=sqrt((16+x^2)/(16-x^2));
>> solve(f)
ans =
4*i
-4*i
GRAFICA:
>>ezplot(f,[-10 10])
>>grid
6) RESOLUCION DE SISTEMAS DE ECUACIONES
a) S
x + 2y = 1
2x 3y = 2
SOLUCION:
13
>> syms x y
>> [X,Y]=solve(x+2*y=1,2*x-3*y=2)
X =
1
Y =
0
GRAFICA:
>>
>>
>>
>>
>>
x=[-10:0.01:10];
y=[-10:0.01:10];
f=x+2.*y-1;
g=2.*x-3.*y-2;
plot(f);hold on;plot(g)
e) S
3e 22y = 77
x
3 2 2y = 7
SOLUCION:
>> syms x y
>> [X,Y]=solve(3^(x)-22*y=77,3^(x/2)-2^(y)=7)
X =
3.6745571368413979232740757282145
Y =
-0.92494428032905623937173446417311
14
GRAFICA:
>>
>>
>>
>>
>>
>>
x=[-10:0.01:10];
y=[-10:0.01:10];
f=3.^(x)-22.*y-77;
g=3.^(x./2)-2.^(y)-7;
grid;
plot(f,r);hold on ; plot(g,b)
GRAFICA:
SOLUCION:
>> x=[0:0.1:5];
>> f=2.*x+3;
>> tra=trapz(x,f)
tra =
40
15
GRAFICO
>>
>>
>>
>>
syms x
f=2.*x+3;
ezplot(f,[-10 10])
grid
9) Interpolacion
a) x=[1 2 3 4 5 6 7 8 9 ] y y=[3 5 7 5 6 8 10 11 12] SOLUCION:
>>
>>
>>
>>
>>
>>
>>
x=[1 2 3 4 5 6 7 8 9];
y=[3 5 7 5 6 8 10 11 12];
xi=1:0.1:8;
l=interp1(x,y,xi,linear);
s=interp1(x,y,xi,spline);
p=interp1(x,y,xi,pchip);
c=interp1(x,y,xi,cubic);
GRAFICA:
>> plot(x,y,o,xi,l);
>> hold on;
>> plot(x,y,r,xi,s);
>> hold on;
>> plot(x,y,b,xi,p);
>> hold on;
>> plot(x,y,c,xi,c)
>>grid
10)graficos:
a) Grafique una esfera transparente de radio 2.5u. SOLUCION:
>>
>>
>>
>>
r=2.5;
[x, y, z] = sphere(30);
plot3(x*r,y*r,z*r)
grid
16
17