texto: metodos numericos para ecuaciones diferenciales ordinarias
texto: metodos numericos para ecuaciones diferenciales ordinarias
texto: metodos numericos para ecuaciones diferenciales ordinarias
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Ejemplo<br />
1. Sea la ecuación diferencial y ′ = xe 3x − 2y,y(0) = 0, cuya solución general es<br />
y(x) = 1<br />
5 xe3t − 1<br />
25 e3t + 1<br />
25 e−2t , usando el método de Runge-Kutta con h = 0.1,<br />
aproximar y(1)<br />
Solución<br />
Utilizando el método de Runge-kutta se consigue los siguientes valores<br />
Método<br />
Valor exacto Runge-Kutta Error<br />
xn y(xn) yn |y(xn) − yn|<br />
0.0 0 0 0<br />
1.0e-003 *<br />
0.1 0.005752053971599 0.005754631311524 0.002577339924445<br />
0.2 0.026812801841426 0.026818770596771 0.005968755345566<br />
0.3 0.071144527666900 0.071155164515354 0.010636848453718<br />
0.4 0.150777835474151 0.150795060680180 0.017225206029203<br />
0.5 0.283616521867142 0.283643159044116 0.026637176974542<br />
0.6 0.496019565629524 0.496059711486905 0.040145857380935<br />
0.7 0.826480869814429 0.826540417642342 0.059547827913398<br />
0.8 1.330857026396779 1.330944404473756 0.087378076976341<br />
0.9 2.089774397011061 2.089901607341672 0.127210330611138<br />
1.0 3.219099319039492 3.219283395463391 0.184076423899171<br />
observamos que y(1) ≈ 3.219283395463391.<br />
2. Sea la ecuacion diferencial y ′ = −y+x+2 con la condicion inicial y(0) = 2, usando<br />
el método de Runge-Kutta de cuarto orden con h = 0.1, h = 0.05 y h = 0.01,<br />
aproximar y(1).<br />
Solución<br />
Si usamos el método de Runge-Kutta, observemos que al reducir h se reduce el<br />
error que se comete.<br />
Aproximación Solución exacta Error<br />
h a y(1) y(1) |y(1)-Aprox|<br />
0.1 2.367879774412498 2.367879441171442 3.332410560830112e-007<br />
0.05 2.367879461147540 2.367879441171442 1.997609810899803e-008<br />
0.01 2.367879441202356 2.367879441171442 3.091393807608256e-011<br />
25