Vous êtes sur la page 1sur 2

C. RAT. 20/06/2018. ANALYSE NUM. CORRECTION.

Exercice 1. On commence par dresser le tableau des différences divisées associé à f aux points 0,1 et
2
x f (x)
0 1 = f (x0 )
3 = f [x0 , x1 ]
Le polynôme d’interpolation version Newton s’écrit
1 4 4 = f [x0 , x1 , x2 ]
11
2 15

P (x) = f (x0 ) + (x − x0 ) f [x0 , x1 ] + (x − x0 ) (x − x0 ) f [x0 , x1 , x2 ] = 1 + 3x + 4x (x − 1) = 4x2 − x + 1.

Exercice 2. Le pas est h = 12 . x0 = 0, x1 = 12 et x2 = 1. La formule composite du type point milieu


permettant l’approximation de notre intégrale est
1       
X xi+1 + xi 1 1 3 7
(xi+1 − xi ) f = f +f = .
2 2 4 4 32
i=0

Exercice 3.
R1 R1
1) g(t) = 1 : −1 1dt = 2 = α × g(0) ⇒ α = 2. g(t) = t : −1 tdt = 0 = 2 × g(0). g(t) = t2 :
R1 2 2
−1 t dt = 3 6= 2 × g(0) = 0. Le degré d’exactitude est alors 1.
2)
1 1 1 1 1 1
t2 (2)
Z Z Z Z Z Z
g(t)dt = P (t)dt + g (ξt )dt. P (t)dt = g(0) dt + g 0 (0) tdt = 2g(0)
−1 −1 −1 2! −1 −1 −1
(2)
La fonction t 7→ g (ξt ) est continue sur [−1, 1] et la fonction t 7→ t2 garde un signe constant sur [−1, 1]
et donc par application de la deuxière formule de la moyenne, on a il existe un c ∈ [−1, 1] tel que
Z 1 2 Z 1 2 (2)
t (2) (2) t g (c)
g (ξt )dt = g (c) dt =
−1 2! −1 2! 3
3)
Z b N
X −1 Z xi+1
f (x)dx = f (x)dx.
a i=0 xi

On considère le changement de variables de [−1, 1] vers [xi , xi+1 ] tel que t 7→ x = xi + xi+12−xi (t + 1) =
xi + h2 (t + 1). On a dx = h2 dt et
Z xi+1
h 1 h 1
Z Z
h
f (x)dx = f (xi + (t + 1))dt = gi (t)dt
xi 2 −1 2 2 −1

avec gi (t) = f (xi + h2 (t + 1)). D’après la question 2), on a


Z 1 (2)  
gi (ci ) xi + xi+1
gi (t)dt = 2gi (0) + avec gi (0) = f
−1 3 2
 (2) 2
(2) h h (2) h
et gi (ci ) = f (xi + (t + 1)) (ci ) = f (xi + (ci + 1))
2 /t 4 2

b N −1 Z xi+1 N −1
h2 (2)
Z    
X X h xi + xi+1
f (x)dx = f (x)dx = 2f + f (ξi ) avec ξi ∈ [xi , xi+1 ] .
a 2 2 12
i=0 xi i=0
N −1 N −1
h3 (2)
 
X xi + xi+1 X
= hf + f (ξi )
2 24
i=0 i=0

2AP2. S.P. 2017/18. ENSA-TÉTOUAN. Pr. M. CHERKAOUI.


1/ 2
C. RAT. 20/06/2018. ANALYSE NUM. CORRECTION.

4) (Question supplémentaire.) Soit ε = 10−2 . Trouver N pour que notre formule composite ap-
R3
proche 0 exp (−x) dx avec la précision ε.
Rb P −1  
xi +xi+1
Réponse. Le reste de l’approximation de a f (x)dx par la formule composite N
i=0 hf 2 est
PN −1 h3 (2)
i=0 8 f (ξi ). Alors

−1 3

NX h (2) h3 N (2) (b − a)3 M2
(2)
f (ξi ) = f (c) ≤ avec c ∈ [a, b] et M = sup f

2
24 T.V.I. 24 24N 2


i=0 [a,b]

f (x) = exp(−x). f est de classe C ∞ sur R. f (2) (x) = exp(−x) fonction décroissante sur R et par suite

M2 = sup f (2) = f (2) (0) = 1.
[0,3]

r !
(b − a)3 M2 27 −2 2 2700 2700
2 = 2 ≤ ε = 10 ⇒N ≥ ⇒N ≥E + 1 = 11
24N 24N 24 24

Exercice 4. 1) Le polynôme d’interpolation version Lagrange :


3
X
P3 (t) = ϕk (t) yk avec {ϕk }0≤k≤3 base de Lagrange associée aux points tk .
k=0
3 Q3
(t − tj ) j=0 (t − tj ) Π3 (t)
Y
ϕk (t) = = Q3 = 0
(t − tj ) (t − tk ) j=0, j6=k (tk − tj ) (t − tk ) Π3 (tk )
j=0 k
j6=k

On a

3 3 3
0 0
X Y Y
Π3 (t) = (t − tj ) ⇒ Π3 (tk ) = (tk − tj )
i=0 j=0, j6=i j=0, j6=k

2) On pose x2 = t, alors pour t 6= −3, −2, −1 et 0, on a

t3 + 2t2 + 5t − 6
F (x) = g(t) = .
t (t + 1) (t + 2) (t + 3)

On pose h(t) = t (t + 1) (t + 2) (t + 3) g(t) = t3 + 2t2 + 5t − 6. Le polynôme d’interpolation de h aux


points tk = −3, −2, −1 et 0 pour k allant de 0 à 3, est lui même car h(t) est un polynôme de degré
≤ 3. Ainsi pour Π3 (t) = 3k=0 (t − tk ) et yk = h(tk ), on a
Q

3
X Π3 (t)
h(t) = t (t + 1) (t + 2) (t + 3)g(t) = Π3 (t) g(t) = P3 (t) = 0 yk .
| {z }
k=0
(t − t k ) Π3 (tk )
=Π3 (t)

x2 =t h(t0 ) = −30 h(t1 ) = −16 h(t2 ) = −10 h(t3 ) = −6


⇒ g(t) = F (x) = 0 + 0 + 0 + 0
(x2 + 3) Π3 (t0 ) (x2 + 2) Π3 (t1 ) (x2 + 1) Π3 (t2 ) x2 Π3 (t3 )
| {z } | {z } | {z } | {z }
=−6 =2 =−2 =6
5 −8 5 −1
= 2
+ 2 + 2 + 2
(x + 3) (x + 2) (x + 1) x

Ces 4 dernières fractions sont irréductibles dans R.

2AP2. S.P. 2017/18. ENSA-TÉTOUAN. Pr. M. CHERKAOUI.


2/ 2

Vous aimerez peut-être aussi