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.

7. METODI DIRETTI PER LA SOLUZIONE DI SISTEMI LINEARI<br />

La matrice L è dunque<br />

⎛<br />

1 0<br />

⎞<br />

0<br />

⎝0 2 0⎠<br />

2 4 3<br />

<strong>Esercizi</strong>o 7.6.2 ⎛ Data la matrice ⎞<br />

0.2 1 0.2<br />

A = ⎝ 1 6.5 1.75⎠<br />

0 2 2.25<br />

(a) verificare che A sod<strong>di</strong>sfa le con<strong>di</strong>zioni del teorema LDU ;<br />

(b) fattorizzare secondo Crout A = LU (prendendo u i i = 1);<br />

(c) usare la fattorizzazione per calcolare det(A −2 );<br />

(d) usare la fattorizzazione per risolvere il sistema Ax = b, con b T = (2.8 19.25 10.75) T .<br />

Svolgimento<br />

(a) La matrice verifica le con<strong>di</strong>zioni del teorema LDU in quanto i minori principali costruiti a partire<br />

dall’angolo superiore sinistro hanno tutti determinante <strong>di</strong>verso da zero:<br />

a 11 = 0.2 ≠ 0<br />

( ) 0.2 1<br />

det = 0.3 ≠ 0 det A = 0.375 ≠ 0<br />

1 6.5<br />

(b) La fattorizzazione <strong>di</strong> A come A = LU si costruisce imponendo:<br />

⎛<br />

⎞ ⎛<br />

⎞⎛<br />

⎞<br />

0.2 1 0.2<br />

l 11 0 0 1 u 12 u 13<br />

A = ⎝ 1 6.5 1.75⎠ = LU = ⎝l 21 l 22 0 ⎠⎝0 1 u 23<br />

⎠<br />

0 2 2.25<br />

l 31 l 32 l 33 0 0 1<br />

Usando le formule <strong>di</strong> pag. 106, si ottiene<br />

l 11 = 0.2<br />

0.2u 12 = 1 =⇒ u 12 = 5<br />

0.2u 13 = 0.2 =⇒ u 13 = 1<br />

l 21 = 1<br />

1 · 5 + l 22 = 6.5 =⇒ l 22 = 1.5<br />

1 · 1 + 1.5u 23 = 1.75 =⇒ u 23 = 0.5<br />

l 31 = 0<br />

0 · 5 + l 32 = 2 =⇒ l 32 = 2<br />

0 · 1 + 2 · 0.5 + l 33 = 2.25 =⇒ l 33 = 1.25<br />

Le matrici L e U sono:<br />

⎛<br />

0.2 0 0<br />

⎞<br />

⎛<br />

1 5<br />

⎞<br />

1<br />

L = ⎝ 1 1.5 0 ⎠ U = ⎝0 1 0.5⎠<br />

0 2 1.25<br />

0 0 1<br />

(c) Si ha det A = detLU = detL detU = detL = 0.375. Quin<strong>di</strong> det(A −2 ) = det(A) −2 = 0.375 −2 = 7.11111111.<br />

110

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

Saved successfully!

Ooh no, something went wrong!