Académique Documents
Professionnel Documents
Culture Documents
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
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
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
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
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
t3 + 2t2 + 5t − 6
F (x) = g(t) = .
t (t + 1) (t + 2) (t + 3)
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)