Vous êtes sur la page 1sur 3

UNIVERSITÉ HASSAN 1er

ÉCOLE NATIONALE DES SCIENCES


Appliquées BERRECHID
1ère ANNÉE : IA
TD 2 -INGÉNIERIE De
MATHÉMATIQUE
Pr. Jaouad Danane
Exercice 1
A l’aide de la formule de différence centrée d’ordre 2 :
f (x + h) − f (x − h)
f 0 (x) = + O(h2 ).
2h
Monter que
f (x + 2h) − 2 f (x) + f (x − 2h)
f 00 (x) ≈ .
4h2
Correction
On a
f (x + h) − f (x − h)
f 0 (x) = + O(h2 ).
2h
Donc,
f 0 (x + h) − f 0 (x − h)
f 00 (x) ≈ ,
2h
ainsi,
f (x + 2h) − f (x) f (x) − f (x − 2h)
f 0 (x + h) ≈ et f 0 (x − h) ≈ ,
2h 2h
alors,
f (x + 2h) − 2 f (x) + f (x − 2h)
f 00 (x) ≈ .
4h2

Exercice 2
En vous servant des développements de Taylor appropriés, donner l’ordre de précision de l’approxi-
mation
f (x + 3h) − 3 f (x + 2h) + 3 f (x + h) − f (x)
f (3) (x) ≈ .
h3
Correction Le développement de Taylor de f au voisinage de x de f (x + 3h) à l’ordre 5 donne

9 9 27 81
f (x + 3h) = f (x) + 3h f 0 (x) + h2 f 00 (x) + h3 f (3) (x) + h4 f (4) (x) + h5 f (5) (x) + O(h6 ).
2 2 8 40
De même
4 2 4
f (x + 2h) = f (x) + 2h f 0 (x) + 2h2 f 00 (x) + h3 f (3) (x) + h4 f (4) (x) + h5 f (5) (x) + O(h6 ),
3 3 15
et
1 1 1 1 5 (5)
f (x + h) = f (x) + h f 0 (x) + h2 f 00 (x) + h3 f (3) (x) + h4 f (4) (x) + h f (x) + O(h6 ).
2 6 24 120

1
En calculant la combinaison linéaire f (x + 3h) − 3 f (x + 2h) + 3 f (x + h), on obtient
−11 4 (4)
f (x + 3h) − 3 f (x + 2h) + 3 f (x + h) = f (x) + h3 f (3) (x) + h f (x) + O(h5 )
24
D’où,
f (x + 3h) − 3 f (x + 2h) + 3 f (x + h) − f (x)
f (3) (x) = + O(h).
h3

Exercice 3

1. A l’aide des développements de Taylor appropriés, donner l’expression des deux premiers
terme de l’erreur liée à la formule
f (x + ah) − f (x − bh)
,
(a + b)h

permettant de calculer f 0 (x) ; a et b sont des constantes telles que a + b 6= 0.


2. Déterminer l’ordre de cette approximation en fonction de a et b.
Correction
1. L’expression des deux premiers termes de l’erreur :

a2 − b2 2 00 a3 + b3 3 (3)
f (x + ah) − f (x − bh) = (a + b)h f 0 (x) + h f (x) + h f (x) + O(h4 ),
2 6
donc,

f (x + ah) − f (x − bh) 0 a − b 00 a2 − ab + b2 2 (3)


= f (x) + h f (x) + h f (x) + O(h4 ),
(a + b)h 2 6

2. Si a 6= b ; l’approximation est d’ordre 1.


Si a = b ; l’approximation est d’ordre 2.

Exercice 4
On considère le θ -schéma
   
0 f (x + h) − f (x) f (x) − f (x − h)
f (x) ≈ (1 − θ ) +θ = Appθ (h)
h h

1. Montrer que les deux premiers termes de l’erreur associée au θ -schéma Appθ (h) sont donnés
par :
(2θ − 1) 00 h2
f (x) − f (3) (x).
h 6
2. en déduire l’ordre de précision du θ -schéma en fonction de θ .
Correction

2
1. On pose
   
f (x + h) − f (x) f (x) − f (x − h)
Appθ (h) = (1 − θ ) +θ = Appθ (h),
h h

On sait que
1 1
f (x + h) = f (x) + h f 0 (x) + h2 f 00 (x) + h3 f (3) (x) · · · ,
2 6
1 1
f (x − h) = f (x) − h f 0 (x) + h2 f 00 (x) − h3 f (3) (x) · · · .
2 6
D’où,
1 − 2θ 00 1
Appθ (h) = f 0 (x) + h f (x) + h2 f (3) (x) + O(h3 ).
2 6
Par suite,
1 − 2θ 00 1
f 0 (x) = Appθ (h) − h f (x) − h2 f (3) (x) + O(h3 ).
2 6
1
2. Si θ 6= ; le θ -schéma est d’ordre 1.
2
1
Si θ = ; le θ -schéma est d’ordre 2.
2

Vous aimerez peut-être aussi