Vous êtes sur la page 1sur 7

CHAPITREEquations differentielles

exercice I

[ By'" 3xy" lexy'-0y 0 EDO dadve3 X:variable independante


=
- +

y (1) 2, =

y'(l) 1, y "(l)
=

= - linéaire y:variable dépendante, linconnue, la solution


Gcar 13y",
ABBy",...
a) Transfumél'EDO d'ade 3 en 1
syst equivalentd'EDO dadel
Ecrire le
syst. Cons fame matricielle

-> II fant introduire 3 nowelles variables

S
2,(x) y(1)
=

z,(x) y() =

y'() z2(x)
z,()
=>
=
=

z,A) z2()
=

(1)
Ez(z) y'(x)
=

z2(x) y'() z'k) y"() 73()


=
= = =

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)
=

·fi)(80) z,() y() z,(1) y(1) 2


= =
=
nitales associers
=
au
syst. Obtene et

zz(x) y(x) z(1) y'(l) 1


=
=
=
=

z3(x) y"(x) zz(1) y"(l) 1


=
= = =
-

Exercice 2:Risendre le problème de valeurs initiales


(y(t) ty(t)
=

y(1) 2
=

1-
Separation des variables
2 EDO linéaire -> Facteur intigrant
-

y'(t) f(t)g(y) f(t)- t


=
=>

;g(y)=y:EDO variables
à
separables
M(7) N(y) y' +

0
=

Division par y(t) y'(t)


car
y(t) 0 0
=

=> =

y'ct)= ty (H) devient 0=t.0 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:

-Stdt +/y 14)


=>

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)
=

monlineaie car functionne pas.

Principe des méthodes numériques


On le
considère probleme Syriey*) EDO dachel, yonYo,
Initiale
fet â 2 variables

f(t,y) ->
fet 2 variables, tindep, y dipendante

to point initiale:430 calcul:ti to th


un
est pas de temps. On introductles pants de =

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

L'erreur an temps ti denné


est
par:li=y(ti)-y;
La solution est donnée fame de tableau de données discretes
humorique sens la

a
to Do (t,y,)

o(tz, yu)
En Yu .

(to,y0)

yn
i

zu to 42

Methode d'Euler-explicite

(y() f(t,y(t)) h> 0


=

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(x) y(z 0) hf(t,y(z0)) 0(h2)


=

=> + +

y(t) y0
=>

-
hf(to,y(t)) 0 (h2)
=
+
+

exacte
Approximation erreur

On pose:y(A) y, Yo+ hf(to,y0)


= =
zime itération:On cherche me
approximation du
temps t2 t,th
=

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) y() hf(t,y(+1) 0(h2)


=
+ +

y(tz) yz y, hf(t,y(ti))
=
= +

Algorithme
I Yn+1
tn+1 Anth =

y(tn) Yn =

Yn
=

+ hf(tn,yn) y(tn+1) Yn+1 =

Remarque:1- La methode est dite à


un pas, l'algorithme sens
est la fame:
·
car

In+1 n f(tn, 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

Exemple I.P manuel

I y(0) -y(t) + + 1h 0,10.


y'(t) = +
=

Faire 2 itirations de la methode d'Erler explicite à


partir de

1
=

to =

In +1 Yn hf(tn,yn)
=
+

y(t) f(t,y(t)) y(t) t 1,to 0,y(0) y0 1


= -
+ =
+ = =
=

fin itération.I, Yo+ =

h8 (to,y0)
y1 Yo h( Yo+ to+1)
+
= -

y, 1 0,1( 1 0 1)
=
+
+ - +

y, 1=
=>

y(t,) y(toth) y(0,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

·Pour la zinciteration:y(tz) y(t) hf(t,,y(t)) 0(h2) =


+ +

yz y, hf(t,y.):On introduct zerreurs:


=

->
Erreur de tranlature 0(h?
->
Erreur d'approximation en remplacant y (t) Y,
=

-> Résultat important:Alitération, l'erreur en=yctn) -

Yn vient d'une erreur de trencature 0 (h2)


d'une erreur de de l'erreur (en) de literation présidente
et
propagation quivient
que cette erreur de propagation est 0(h)
On peut
mention

fu=yLtn) -yn Ch+cch 0(h):methode d'Erler-explicite est d'ache de précision 1


=

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

y(tn+) y(tn+ h) yctn) hy(tn) by"(n) 0(h2)


= =
+
+ +

2 inconvenient dirivers partielles

1- Euler-modifiée
tn+1=tnth, h > 0 pas de
temps

y yn
=

hf(tn,yn)
+

euler
=

explicite

Yn+1 yn =

+ ff(tn,yn) f(tn h,y)] + + => euler modifie +

centense, ment + precise


titi 0 (72)
=

->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)] + +

=Yo (Yo et+y et h)]


+

+ + +

2
(2 e 2,3 e"]
= +

0,200 2,713148 +
+
+

y1 2,326070138
=

y(t) y(t0+h) y(0,1) y,


= = =
2,326070/38
=

zime itération

y y, hf(t1,y,) y, h(y, e24] y, 0,1(y) e02] 2,6808174 =


= =
+
+
+ + +
=

(f(11,4,) f(t, h,y)] y, E(4, e y et 4)] y, (y, e" y e"] 2,7/20758


+

y2 y,
=
+ +
+
=
+
+
+ +
= +
+
+

+
=

y(tz) y(t, h) y(0,2) yz 2,7120758


=
+
=
= =

Solution analytique,lexat
et

E =

(y10,21-yz1 (e. + 9" Yz) 0,11516558.18-220,5.18-2= le


= - =

dernier es est à la position 10-2

↳y2 2,7120758 =

↳ 3CS

b) h 0,1; =

y2 2,7120758
=

E(h 0,1) =

(y(0,2)
= -

yz) 0,11516558.10-2
=

var derniere colone du tableau


~
h 0,025
=

(y(0,2) yu) (y(0,2) 2,713198) 0,798558.10-83+précis


=
-
= -
=

car titeration, I centax

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

y!(t) f2(t, y,(t), y2(t),...,Yn(t)) t variable


indep.
=

i variables dependantes:y, It), ye(t),..., Yuct)


Yn(t)=fn(t, Y, (t), 42(t), ..., Yu(t))

Conditions fame rectorielle


initiales:1, 10) 41,0 9, Etape 1:Il faut
reecrive le systeme sens ta
· =
=
·

b) ....
y2(t) y2,0 d2
I
=
=

Yn(to) n,0 =

am
=

I
y en

82Ct, Y, Ct, y2(t),...,yy(t)

fuCt, Y, (t), 42 (t),..., Yu(t))


Le systeme devient:
4(t) FCt, =

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 -

Ecrive le syst. Sens fame rectorielle


TCH= 4'ct)=
(y); (y)
y(0) y(t) (yic) (y) 5 (i)
=
=

- =

5(t) F (t,y(t))
=

(Ettee I 8,1t, y,17,1(t)) 4,1t1+4n(t)


an
F(t,(t) =
=

y(0) Yo
=

feLt, y, 1t, y2(t) t y,(t)=

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
=

yz (t) Yz(0,2) y2,2 1,41


=
= =

Vous aimerez peut-être aussi