Está en la página 1de 3

Taller 7

1. Determine las consatntes de Lipschiz para |t| ≤ 1.


a. f(t,y)=-2|y|
f es continua en D
|f(t,y1)-f(t,y2)| = |-2|y1|-(-2|y2|)| = 2||y1|-|y2||
Por la desigualdad triangular inversa |a|-|b|≤ |a-b|
2||y1|-|y2|| ≤ |y1-y2|
Por tanto, la constante de Lipschiz es L=2

b. f(t,y)=t^4*sin(y)
f es continua en D
La region D en la que la funcion esta definida es un cuadrado, por tanto es
convexa
Y ademas
|df(t,y)/dy| =| 4*t^3*cos(y)| = |t^4||*|cos(y)| ≤ Max {|t^4|*|cos(y)|} =1 ∀ |t|
≤1
Entonces la constante de Lipschitz es L=1

c. f(t,y)=4t/(t^4+1)|cos(y)|
f es continua en D
|f(t,y1)- f(t,y2)| = |4t/(t^4+1)|cos(y1)-4t/(t^4+1)|cos(y2)|| = 4t/(t^4+1)||
cos(y1)|-|cos(y2)|
Por el teorema del valor medio f(b)-f(a) = f'(c)(b-a)
4t/(t^4+1)||cos(y1)|-|cos(y2)||= 4t/(t^4+1)*||-sin(c)|*(y1-y2)| ≤
max{4t/(t^4+1)}*|y1-y2| ∀|t|≤1

Sea g= 4t/(t^4+1)
dg(t)/dt = 4(1-3t^4)/(1+t^4)^2
Puntos criticos 1-3t^4=0 t=±(1/3)^(1/4)
g((1/3)^(1/4)) = 2.2795
g(1)=2
4t/(t^4+1)*||-sin(c)|*(y1-y2)| ≤ 2.2795* |y1-y2| ∀ |t|≤1
Por tanto, f cumple una condicion de Lipschitz con L=2.2795

2. R={(t,y) : 0 ≤ t ≤ 2, -1< y< 3} f(t,y)=exp(-2t)*|y|


f en continua en R
|f(t,y1)-f(t,y2)| = |exp(-2t)*|y1|-exp(-2t)*|y2|| = exp(-2t)||y1|-|y2||
Por la desigualdad triangular inversa |a|-|b| ≤ |a-b|
exp(-2t)||y1|-|y2|| ≤ exp(-2t)|y1-y2| = max{exp(-2t)}|y1-y2| = |y1-y2|
L=1 es la menor constante de Lipschitz

3. La mayor region donde f(t,y)=t*exp(-y) satisfaga una condicion de Lipschitz


Sea R la region, supongamos que R es convexa y que f es continua en ella
|df(t,y)/dy|=|t||-exp(-y)|
t ∈[a,b] entonces |t|≤ max{|a|,|b|}
y∈[c,infinito) para c∈Reales
R{(t,y) : a ≤ t ≤ b, c < y < infinito , con a,b,c∈Reales}

4. Despues
5. ¿Cual soluncion y1(t)=-t^2/4 y2(t)=1-t aproxima el metodo de Euler con h=0.25?
P.V.I. = 2y'=(t^2+4y)^(1/2)-t, 2≤t≤3
y(2)=-1
f=((t^2+4y)^(1/2)-t)/2
Aproximando por Euler tenemos:
t0=2 t1=2.25 t2=2.5 t3=2.75 t4=3
W0=-1 y1(2)= -1 y2(2)=-1
W(i+1)= W(i)+ 0.25*f(ti,Wi) y1(2.25)=-1.26 y2(2.25)=-1.25
W1=-1+0.25*(-1)=-1.25 y1(2.5)=-1.56 y2(2.5)=-1.5
W2=-1.25+0.25*(-1)=-1.5 y1(2.75)=-1.87 y2(2.75)=-1.75
W3=-1.5+0.25*(-1)=-1.75 y1(3)=-2.25 y2(3)=-2
W4=-1.75+0.25*(-1)=-2
La solucion es y2(t)

6. P.V.I= y'=cos(t^2*y)+exp(t)/(t+4), 1≤t≤1.5


7. P.V.I= y'=4*t^2*y/(t^4+1), 0 ≤ t ≤ 2
y(0)=1
a. Demuestre que f(t,y) satisface Lipschitz en R
R es un region covenxa pues tiene forma de rectangula y f es continua en R.
|df(t,y)/dy|=|4*t^2/(t^4+1)|=
Sea g= 4*t^2/(t^4+1)
dg/dt= 8t(1+t^4)/(1+t^4)^(1/2)
Puntos criticos 8t(1+t^4)=0 t=0 t=1
g(0)= 0
g(1)= 2
g(2)=0.9412

b. Euler h=0.2 para aproximar y(0.4)


W(i+1)= W(i)+ 0.2*f(ti,Wi)
W0=1
W1=1+0.2*(0)=1
W2=1+0.2(0.1597)=1.0319

Tylor orden 2
W(i+1)=W(i)+h[f(ti,wi)+h/2f'(ti,wi)]
#Se deriva teniendo en cuenta que y dep de t, evaluar y'antes de volver a
derivar
W0=1
W1=1
W2=1.0643

8.
a.

b. Euler
W0=0
W1=0.6796
W2=2.3148
W3=5.6074
W4=11.6153

Tylor orden 3
W(i+1)= W(i)+h[f(ti,wi)+h/2f'(ti,wi)+h/6f''(ti,wi)]
df = @(t,y)
[2./t.*y+t.^2.*exp(t),2.*y./t.^2+exp(t).*(t.^2+4.*t),exp(t).*(t.^2+6.*t+6),0,0];
a=1;
b=2;
ya=0;
M=4;
T4 = Taylor (df, a, b, ya, M)
W0=0
W1=1.1963
W2=3.9388
W3=9.2389
W4=18.5757

9. Despues
10. Despues
11.
a. Demuestre que tiene unica solucion
La region es de deficion es convexa, por ser cuadrada y f1,f2,f3 son continuas
en ella
f1(t, u1, u2,u3)=u2-u3+t
|df1/du1|=0 |df1/du2|=1 |df1/du3|=1 Por tanto |df1/dui|≤1 L=1

f2(t,u1,u2,u3)=3*t^2+2|u1|
|f2(t,v1,v2,v3)-f2(t,w1,w2,w3)| = |3*t^2+2|v1|-(3*t^2+2|w1|)| = 2||v1|-|w1||

Por la desigualdad triangular inversa


2||v1|-|w1|| ≤ 2|v1-w1| ≤ 2|v1-w1|+2|v2-w2| +2|v3-w3|
L=2

f3(t,u1,u2,u3)=u2+exp(-t)
|f2(t,v1,v2,v3)-f2(t,w1,w2,w3)|= |v2+exp(-t)-(w2+exp(-t)| = |v2-w2|≤ |v1-w1|+|
v2-w2|+|v3-w3|
L=1

b. F=[u2-u3+t;3*t^2+2|u1|;u2+exp(-t)]
U=[u1,u2,u3]
a=[1.4,1.5,-0.6]

RK4 Vecorial
F=@(t,u)[u(2)-u(3)+t,3.*t.^2+2.*abs(u(1)),u(2)+exp(-t)]
Za=[1.4,1.5,-0.6]
a=0.2
b=1
h=0.2
M=(b-a)/h
[T, Z] = rks4 (F, a, b, Za, M)
12.
13.
14.

También podría gustarte