09.05.2013 Views

Métodos numericos: ecuaciones diferenciales ordinarias

Métodos numericos: ecuaciones diferenciales ordinarias

Métodos numericos: ecuaciones diferenciales ordinarias

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Métodos</strong>deunpaso<br />

tenemos que f(t, y) =y, porloque ∂f<br />

∂f<br />

(t, y) =0y (t, y) =1, y así la recurrencia anterior se expresa<br />

∂t ∂y<br />

de la forma<br />

yi = yi−1 + yi−1h + 1<br />

2 yi−1h 2 µ<br />

= 1+h + h2<br />

<br />

yi−1,<br />

2<br />

para i =1, ..., n. Tomando h =0.1 (n =10) y calculando obtenemos<br />

µ<br />

y1 = 1+h + h2<br />

<br />

y0 =1.105,<br />

2<br />

µ<br />

y2 = 1+h + h2<br />

<br />

y1 =1.22103,<br />

2<br />

µ<br />

y3 = 1+h + h2<br />

<br />

y2 =1.34923,<br />

2<br />

µ<br />

y4 = 1+h + h2<br />

<br />

y3 =1.4909,<br />

2<br />

µ<br />

y5 = 1+h + h2<br />

<br />

y4 =1.64745,<br />

2<br />

µ<br />

y6 = 1+h + h2<br />

<br />

y5 =1.82043,<br />

2<br />

µ<br />

y7 = 1+h + h2<br />

<br />

y6 =2.01157,<br />

2<br />

µ<br />

y8 = 1+h + h2<br />

<br />

y7 =2.22279,<br />

2<br />

µ<br />

y9 = 1+h + h2<br />

<br />

y8 =2.45618,<br />

2<br />

µ<br />

y10 = 1+h + h2<br />

<br />

y9 =2.71408,<br />

2<br />

y ahora los errores son<br />

ei = |e i∗0.1 − yi|,<br />

para i =1, ..., 10, que nos da la siguiente tabla aproximada<br />

e1 e2 e3 e4 e5 e6 e7 e8 e9 e10<br />

0.00017 0.0004 0.0006 0.0009 0.0013 0.0017 0.0022 0.0028 0.0034 0.0042<br />

Como vemos, el error decrece notablemente en comparación al obtenido al aplicar el método de<br />

Euler. Además, los errores para diferentes tamaños de paso son<br />

h =1 h =0.1 h =0.01 h =0.001 h =0.0001 h =0.00001<br />

0.2183 0.0042 0.000045 4.5 · 10 −7 4.5 · 10 −9 4.5 · 10 −11<br />

Como vemos, se mejora notablemente el error con respecto al método de Taylor, siendo éste además<br />

de orden dos, es decir, al dividir por 10 el tamaño de paso, el error es aproximadamente el del paso<br />

anterior al cuadrado.<br />

28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!