18.01.2015 Views

Appunti di Calcolo Numerico - Esercizi e Dispense - Università degli ...

Appunti di Calcolo Numerico - Esercizi e Dispense - Università degli ...

Appunti di Calcolo Numerico - Esercizi e Dispense - Università degli ...

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.

11.9. Convergenza e stabilità<br />

y(t) = y 0 e −λt e tende a zero per valori <strong>di</strong> t crescenti. Vogliamo che tenda a zero anche la soluzione numerica<br />

(in modo da mantenere limitato l’errore). La soluzione numerica (fissato h e per i grande, cioè per valori <strong>di</strong> t<br />

crescente) tende a zero se |1 − hλ| < 1 cioè per −1 < 1 − hλ < 1 ⇐⇒ 0 < hλ < 2 ⇐⇒ h < 2 λ .<br />

Il metodo <strong>di</strong> Eulero esplicito è stabile sotto con<strong>di</strong>zione.<br />

11.9.3 Convergenza <strong>di</strong> Eulero implicito<br />

Il metodo <strong>di</strong> Eulero implicito applicato all’equazione test <strong>di</strong>venta:<br />

Quin<strong>di</strong><br />

y 0<br />

y 1 =<br />

(1 + hλ)<br />

y 1<br />

y 2 =<br />

(1 + hλ) = y 0<br />

(1 + hλ) 2<br />

y 2<br />

y 3 =<br />

(1 + hλ) = y 0<br />

(1 + hλ) 3<br />

.<br />

y i =<br />

y i−1<br />

(1 + hλ) = y 0<br />

(1 + hλ) i<br />

y i+1 =<br />

y i<br />

(1 + hλ)<br />

In tal caso<br />

lim<br />

h→0<br />

i→+∞<br />

y i = lim<br />

h→0<br />

i→+∞<br />

y 0<br />

(1 + hλ) i = lim<br />

h→0<br />

i→+∞<br />

⎡<br />

1<br />

⎤<br />

y 0 (1 + hλ) −i = y 0<br />

⎣(1 + hλ) h ⎦<br />

(i passaggi sono del tutto simili a quelli visti per Eulero esplicito).<br />

Abbiamo provato la convergenza.<br />

−i h<br />

= y 0 e −tλ = y(t)<br />

11.9.4 Stabilità <strong>di</strong> Eulero implicito<br />

y 0<br />

Per la stabilità, dalla soluzionei numerica y i = , si osserva che, per i → +∞, qualunque sia il valore<br />

<strong>di</strong> h, la soluzione tende a zero in quanto lim i→+∞ = 0 Si parla <strong>di</strong> metodo incon<strong>di</strong>zionatamente<br />

(1 + λh)<br />

i<br />

1<br />

(1 + λh)<br />

i<br />

stabile.<br />

11.9.5 Convergenza <strong>di</strong> Crank-Nicolson<br />

Il metodo <strong>di</strong> Crank-Nicolson applicato all’equazione test <strong>di</strong>venta: y i+1 = y i + hλ<br />

2 [−y i − y i+1 ] da cui<br />

( ) 2 − hλ<br />

y i+1 = y i<br />

2 + hλ<br />

Andando a ritroso si ricava<br />

( ) 2 − hλ i+1<br />

y i+1 = y 0<br />

2 + hλ<br />

179

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

Saved successfully!

Ooh no, something went wrong!