12.07.2015 Views

Esercizi svolti di esame ed esonero - Dipartimento di Matematica

Esercizi svolti di esame ed esonero - Dipartimento di Matematica

Esercizi svolti di esame ed esonero - Dipartimento di Matematica

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.

Soluzioni<strong>Esercizi</strong>o 2.a) Se [x k , x k+1 ] é l’intervallo in cui si interpola, si tratta <strong>di</strong> stimare in modo ottimale ilvaloremaxx∈[x k ,x k+1 ] |ω 3(x)|con ω 3 (x) = (x − x k−1 )(x − x k )(x − x k+1 )(x − x k+2 ). Conviene, per simmetria,riferirsi alla situazione convenzionale in cui x k−1 = −3h/2, x k = −h/2, x k+1 = h/2,x k+2 = 3h/2. In questo caso il polinomio ω 3 é pari <strong>ed</strong> ha la formaω 3 (x) = (x 2 − h 2 /4)(x 2 − 9h 2 /4)e nell’intervallo <strong>di</strong> interesse [−h/2, h/2] il suo massimo é chiaramente ottenuto inx = 0. Poiché ω 3 (0) = 9h 4 /16, si ottiene finalmente la stima|E 3 (x)| = |f (4) (ξ)||ω 3 (x)|4!≤ 3h4128 max |f (4) (x)|b) Conviene porre ulteriormente h = 1 e sfruttare la simmetria dei pesi, per la quale siha w 0 = w 3 , w 1 = w 2 , e ∑ i w 1 = 1. Calcolando per esempio w 2 , si ha:L 2 (x) =(x + 1/2)(x + 3/2)(x − 3/2)(1/2 + 3/2)(1/2 − 3/2)= · · · = − 1 2 x3 − 1 4 x2 + 9 8 x + 9 16da cui si ottienew 2 = w 1 =∫ 1/2−1/2w 0 = w 3 = 1 2La formula <strong>di</strong> quadratura cercata é quin<strong>di</strong>∫ xk+1L 2 (x)dx = · · · = 1324(1 − 26 )= − 124 24 .x kf(x)dx ≈ h 24 (−f(x k−1) + 13f(x k ) + 13f(x k+1 ) − f(x k+2 )).c) Per brevitá, <strong>di</strong>amo la formula <strong>di</strong>rettamente come viene applicata nella valutazion<strong>ed</strong>ell’integrale. In<strong>di</strong>cando con x 0 , . . . , x 4 i no<strong>di</strong> appartenenti all’intervallo [0, π], e conx −1 , x 5 gli ulteriori no<strong>di</strong> a<strong>di</strong>acenti che vengono utilizzati dalla formula <strong>di</strong> quadratura,si ha:I 3,4 = h 24 [−f(x −1) + 12f(x 0 ) + 25f(x 1 ) + 24f(x 2 ) + 25f(x 3 ) + 12f(x 4 ) − f(x 5 )](piú in generale, per un numero qualsiasi <strong>di</strong> no<strong>di</strong>, ogni nodo che ha almeno due no<strong>di</strong> adestra e due a sinistra appartenenti all’intervallo <strong>di</strong> integrazione apparirá nella formula45

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

Saved successfully!

Ooh no, something went wrong!