12.07.2015 Views

problemi ai limiti per equazioni differenziali ordinarie - Sezione di ...

problemi ai limiti per equazioni differenziali ordinarie - Sezione di ...

problemi ai limiti per equazioni differenziali ordinarie - Sezione di ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Meto<strong>di</strong> alle <strong>di</strong>fferenze finiteI meto<strong>di</strong> alle <strong>di</strong>fferenze finite consistono nell’approssimare ciascuna derivata nelle <strong>equazioni</strong> <strong><strong>di</strong>fferenziali</strong>(1.1) o (1.3) con una opportuna formula alle <strong>di</strong>fferenze finite.Prima <strong>di</strong> tutto introduciamo una <strong>di</strong>scretizzazione dell’intervallo [a,b] <strong>di</strong>videndolo in N + 1sottointervalli uguali, cioè introduciamo i no<strong>di</strong> equispaziatix i = a + ih, i = 0,1,... ,N + 1, h = b − aN + 1 . (2.1)Nei no<strong>di</strong> interni x i , i = 1,... ,N, l’equazione <strong>di</strong>fferenziale (1.1) <strong>di</strong>ventanel caso lineare, la (1.3) <strong>di</strong>ventaL y(x i ) = −y ′′ (x i ) + f(x i ,y(x i ),y ′ (x i )) = 0; (2.2)L y(x i ) = −y ′′ (x i ) + p(x i )y ′ (x i ) + q(x i )y(x i ) = r(x i ). (2.3)Per risolvere numericamente i <strong>problemi</strong> <strong><strong>di</strong>fferenziali</strong> (2.2) e (2.3) è necessario approssimaresia y ′ (x i ) che y ′′ (x i ). L’approssimazione viene scelta in modo che sia garantito uno specificoor<strong>di</strong>ne nell’errore <strong>di</strong> troncamento.Supponendo che y ∈ C 3 [x i−1 ,x i+1 ], si può ricorrere allo sviluppo in serie <strong>di</strong> Taylor <strong>di</strong> or<strong>di</strong>ne2 <strong>per</strong> approssimare y(x i+1 ) e y(x i−1 ):y(x i+1 ) = y(x i + h) = y(x i ) + hy ′ (x i ) + 1 2! h2 y ′′ (x i ) + 1 3! h3 y ′′′ (η + i ),η + i ∈ (x i ,x i+1 ),y(x i−1 ) = y(x i − h) = y(x i ) − hy ′ (x i ) + 1 2! h2 y ′′ (x i ) − 1 3! h3 y ′′′ (η − i ),η − i ∈ (x i−1 ,x i ).Sottraendo la seconda equazione alla prima e usando il teorema della me<strong>di</strong>a si hay ′ (x i ) = y(x i+1) − y(x i−1 )2h− h26 y(3) (η i ), η i ∈ (x i−1 ,x i+1 ). (2.4)Questa è la formula alle <strong>di</strong>fferenze finite centrate <strong>per</strong> y ′ (x i ) e ha errore <strong>di</strong> troncamentoτ(x i ,y(x i );h;f) = − h26 y(3) (η i ) = O(h 2 ). (2.5)Per approssimare y ′′ (x i ) si utilizza lo sviluppo in serie <strong>di</strong> Taylor <strong>di</strong> or<strong>di</strong>ne 3, purché y ∈3

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

Saved successfully!

Ooh no, something went wrong!