Académique Documents
Professionnel Documents
Culture Documents
exercice I
y (1) 2, =
y'(l) 1, y "(l)
=
S
2,(x) y(1)
=
z,(x) y() =
y'() z2(x)
z,()
=>
=
=
z,A) z2()
=
(1)
Ez(z) y'(x)
=
Zc() 7g(x)
=
(2)
z3(x) y" (x) Es(t) yl"(x) Es'() Ez3() zz() 37,() (3)
EzlYan" ceen
= - +
= =
=
↳ De LED0:y()
3Y"- y=Ez3k) () (x)
=
y(1) 2
=
1-
Separation des variables
2 EDO linéaire -> Facteur intigrant
-
;g(y)=y:EDO variables
à
separables
M(7) N(y) y' +
0
=
=> =
y(t) me
est solution triviale de l'EDo, mais ne satisfait pas la condition initially (1)=2
siy(t)
=
0:
y'lt) ty(t)=
-
2 -
t0 =
M(t N(y)y) 0
M(t) t, Ny)= ty
=
+ = =-
La solution dannie
est sens la farme implicate par:
eet
-
=
c
=
2 y(t) I
et
=
enly)
=>
-
=>
+
=
en141=c+ E
=>
=>
y(t) 1
=
et2
Calcul de K:
y(=bety are card initiale y(1)=2
y4) ke" k Y2
2
2 2
-
= =
= =
2e
=
y(t) ret=zelet-zekt2)
=
f(t,y) ->
fet 2 variables, tindep, y dipendante
t2 11th totzh
=
=
ti=tofih
to is the te... .... tu inte
on vent
des de la calcul t,tz, te,..., tn, Enti
approximations pt
->
solution aux de
Notations
y (ti) solution
analytique (exactel partti
->
an
Yi -
Approximation de la solution au ti
point
a
to Do (t,y,)
o(tz, yu)
En Yu .
(to,y0)
yn
i
zu to 42
Methode d'Euler-explicite
y(t) yo En=tothh
=
Iheitivation: solution t t,
on
approximation de la
chache me
=
ti toth:y(t)
y(toth) y(td) + hy(t) 0Ch2) an
y'(t) f(t,y(t))
= =
=
+ =
y(t0) yo =
=> + +
y(t) y0
=>
-
hf(to,y(t)) 0 (h2)
=
+
+
exacte
Approximation erreur
y(tz) yz
=
Approximation
y(tz) y(t, h) y(ti) hy'(t) 0(h2)
=
+
=
+ + Sean l'EDO, y'(t) f(t,y(ti))
=
y(tz) yz y, hf(t,y(ti))
=
= +
Algorithme
I Yn+1
tn+1 Anth =
y(tn) Yn =
Yn
=
+ =>
(approximation an temps tn+1 de
dipend uniquement la solution
an temps to
precedent
2 -
La methode estdite explicite, car il n'est pas necessaie de resence me EDO
pour
traver yut. Sa value depend deth et
directement Yu
1
=
to =
In +1 Yn hf(tn,yn)
=
+
h8 (to,y0)
y1 Yo h( Yo+ to+1)
+
= -
y, 1 0,1( 1 0 1)
=
+
+ - +
y, 1=
=>
y1 1
= =
zenitération:t24th =
0,2
=
M1 yz y, + h
f(t,,y,) ti=h
=
=
y2 y, h( y, t, 1)
=
+ - + +
yz 1 0,1) 1 0,1 1)
=
+ +
- +
y2 1,01
=
y(tz) y(0,2) y2
=> = =
1,0)
=
~inte
erreur
yi
-
y (ti)
-
y(ti) yi
peneitérations-
se
3
&e
.
Estimation de l'erreur
exacte
- proximation
L'erreur a literation estdennie par tn=y1tn) -
yn
iew itération:y(t) yo +
·Pour Ia =
hf(to,y0) 2 +
evreur
y, Y0+ h f(to,40):on
=
commet
me erreur en laissant tember le 0(h2)
Ervenu de troncature
->
Erreur de tranlature 0(h?
->
Erreur d'approximation en remplacant y (t) Y,
=
on
pas solu exacte. Alas si t
connait
grand difference entre 2
solution exacte la dernière
methode, on dit
que solu a
gardant cette
converge en
-me repenses.
~Wz
~h 2-3 esseries
Orche I pas geniale nermalement
>
Methode de d'ordre 2
runge-kutta
(yf(tYt)) avec h20, tn=tothh, net e
1- Euler-modifiée
tn+1=tnth, h > 0 pas de
temps
y yn
=
hf(tn,yn)
+
euler
=
explicite
Yn+1 yn =
->ache 2
2- Pants milieu
Ent= tnth,R=nfCtn,yn), Yn+1=Ynth(flAnt, In+E)] th
I thes
3-méthode runge-kutta d'adre 4
tn+1 tnth
=
initiale
Riftyamierete
R3 h8(tn+-miner e
ke hf(tn
=
4xhan+)
+
3 yn Yn
en
+1
0
=
=
(ha)
5(k
+ +
2k2 2k3
ache &
+
k0]
+
Exercice I
a) et
y'(t) f(t,y(t)) y(H
= =
to
0,y(0) y0
2 h 0,1
=
= = =
penitération:Erlen-modifie
y yo hf(tr,y0) enter explicite ->
=
+
5 yo
=
+
h(y0 e24) +
y 2 0,1/2 e]
=
+ +
y 2,3
=
y1 yo =
+
E(f(to,y0) f(t h,y)] + +
+ + +
2
(2 e 2,3 e"]
= +
0,200 2,713148 +
+
+
y1 2,326070138
=
zime itération
y2 y,
=
+ +
+
=
+
+
+ +
= +
+
+
+
=
Solution analytique,lexat
et
E =
↳y2 2,7120758 =
↳ 3CS
b) h 0,1; =
y2 2,7120758
=
E(h 0,1) =
(y(0,2)
= -
yz) 0,11516558.10-2
=
Ernst(ides) em ** lindelle
=
=> -
1,50
- car
and précision tranceture à
Chagne fais
n tres
=12 16 =
grand aussi.
alas m = 2 - adve 2
ii)n 0,1 =
-
y(0,2) yz
=
h 0,025 -
=
y(0,2) 40 (tableau
=
Extrapolation de Richarson:Eula-modifieace m2
=
48
n=
↳ 1 yr
=
1
=
-
y2 2,71321988
=
&2 -
1
-
-> on a me
approximation d'adre 3/awns)
Estimation de la précision
Comparais de 3 methodes:Erla explicite I
appel de fonction
2
Plus
2x che
Erler modifie 2
appel de fet 4 + cher
RK de fet
·appel
ly-yexactel
adve t 0;tf 1
=
=
n abre itération Appels de fut erveur
I Erla explicite 0,025 &8 48 0,164-10-2 >petitmais transport
erreur
iteration
2 Erle modifie 0,05 20 & 8 0, 159.18-3
0, 1 10 48 0,333.16-0
↑ RK ->
mansiteration avec a relativement petit
alas mains de
transportd'erreur
selon adve on h meilleur car
#appels egals (incent)? 10
-
itirations
->
ordre le + grand possible,
systeme d'ordre (
S
y'(t) 1, =
(t,y,(t), y2(t), . .
.
,
nCt)) =>
Syst. EDO dadve1
b) ....
y2(t) y2,0 d2
I
=
=
Yn(to) n,0 =
am
=
I
y en
YTH(
520)
(3) (i)
5
ET
= - -
Etape 2:il faut utilisa les methodes numériques pour regendre le probleme [Tty(t)
Exercice 2
t0
=
h 0,1
=
t 0,2 y,10,2)
=
la methode
entermodifié -yz(0,2)
↳ zitérations de
1 -
- =
5(t) F (t,y(t))
=
y(0) Yo
=
peneiteration:Erler explicite
4 50 th F(to, y) 41
(y,i) 4(x) (yi)
=
=
et
=
=
-(2) :) : I
(Y)-ly) aty I
=>
(Y)=(i) (ân]
=>
+ a
5=
(yi) (ii) =
- 4,2,) 4,10,1) 4,,1
= =
2,3
=
yz (+1) Yz (0,1)
= =
2,1 1,2
=
zeme itération
4=5, hf(t,y,) +
↓
->
I ) (Y:) - :i I
-lilyzii)le 5
Ye I
(yi) (P)
=
=
-> y,(t) y,10,2) 41,2
= =
2,65
=