• Aucun résultat trouvé

TP 3 - Introduction aux m´ ethodes de Runge–Kutta - Correction Exercice 1.

N/A
N/A
Protected

Academic year: 2022

Partager "TP 3 - Introduction aux m´ ethodes de Runge–Kutta - Correction Exercice 1."

Copied!
2
0
0

Texte intégral

(1)

IUT Littoral 2019 - 2020

Info 2A Ana. Num. – C++

TP 3 - Introduction aux m´ ethodes de Runge–Kutta - Correction Exercice 1.

a. On a d = 1, y

0

= 1 et

f : R

+

× R → R (t, y) 7→ 2 y

b. La d´ eriv´ ee de la fonction t 7→ e

at

´ etant ae

at

, nous obtenons que les solutions de l’´ equation diff´ erentielle sont de la forme y(t) = λe

2t

. La condition y(0) = 1 donne λe

0×t

= 1 puis λ = 1. La solution de l’´ equation diff´ erentielle est donc y(t) = e

2t

. Exercice 2.

a. Les inconnues de (1) sont θ(t) et ω(t) = θ

0

(t). Nous posons alors y(t) = θ(t)

ω(t)

. b. Nous avons d = 2 ainsi que

y

0

= y(0) = θ(0)

ω(0)

= π/8

0

et

f : R

+

× R

2

→ R

2

t, θ

ω

7→

ω

g`

sin(θ)

Exercice 3.

a. Nous avons

Z

tn+1

tn

y

0

(t)dt = y(t

n+1

) − y(t

n

).

b. Nous obtenons ainsi

y(t

n+1

) = y(t

n

) + Z

tn+1

tn

y

0

(t)dt = y(t

n

) + Z

tn+1

tn

f (t, y(t))dt.

Exercice 4.

a. Nous obtenons Z

tn+1

tn

f (t, y(t))dt ≈ (t

n+1

− t

n

) f (t

n

, y(t

n

)) = h f (t

n

, y(t

n

)).

b. La suite (a

n

)

n∈N

v´ erifie la r´ ecurrence a

0

= y

0

et

a

n+1

= a

n

+ h f (t

n

, a

n

) pour n ∈ N . Exercice 5.

a. Nous obtenons Z

tn+1

tn

f (t, y(t))dt ≈ (t

n+1

− t

n

) f

t

n

+ t

n+1

2 , y

t

n

+ t

n+1

2

≈ h f

t

n

+ h 2 , y

t

n

+ h

2

. b. Nous utilisons l’approximation y t

n

+

h2

= y(t

n

) +

h2

f (t

n

, y(t

n

)).

c. La suite (a

n

)

n∈N

v´ erifie la r´ ecurrence a

0

= y

0

et a

n+1

= a

n

+ h f

t

n

+ h

2 , a

n

+ h

2 f (t

n

, a

n

)

pour n ∈ N .

(2)

2

Exercice 6.

a. Pour l’exercice 1 nous avons y

0

= 1 et f (t, y) = 2y. La suite a

n

est donc donn´ ee par a

0

= 1 et

a

n+1

= a

n

+ h f (t

n

, a

n

) = a

n

+ 2h a

n

= (2h + 1) a

n

. Pour l’exercice 2 nous avons y(t) =

θ(t) ω(t)

, y

0

=

π

8

0

et f

t, θ

ω

=

ω

g`

sin(θ)

. La suite a

n

est donc donn´ ee par a

0

=

π

0

8

et a

n+1

= a

n

+ h f (t

n

, a

n

)

= a

n,1

a

n,2

+ h f

t

n

, a

n,1

a

n,2

= a

n,1

a

n,2

+ h

a

n,2

g`

sin(a

n,1

)

=

a

n,1

+ ha

n,2

a

n,2

g`

sin(a

n,1

)

. b. Pour l’exercice 1 nous obtenons a

0

= 1 ainsi que

a

n+1

= a

n

+ h f

t

n

+ h

2 , a

n

+ h

2 f (t

n

, a

n

)

= a

n

+ h f

t

n

+ h

2 , a

n

+ h 2 2a

n

= a

n

+ h f

t

n

+ h

2 , (h + 1)a

n

= a

n

+ 2 h (h + 1)a

n

= (2h

2

+ 2h + 1)a

n

. Pour l’exercice 2 nous obtenons a

0

=

π

8

0

ainsi que

a

n+1

= a

n

+ h f

t

n

+ h

2 , a

n

+ h

2 f(t

n

, a

n

)

= a

n,1

a

n,2

+ h f

t

n

+ h

2 , a

n,1

a

n,2

+ h

2 f

t

n

, a

n,1

a

n,2

= a

n,1

a

n,2

+ h f

t

n

+ h 2 ,

a

n,1

a

n,2

+ h 2

a

n,2

g`

sin(a

n,1

)

= a

n,1

a

n,2

+ h f

t

n

+ h

2 ,

a

n,1

+

h2

a

n,2

a

n,2

g h2`

sin(a

n,1

)

= a

n,1

a

n,2

+ h

a

n,2

g h2`

sin(a

n,1

)

g`

sin a

n,1

+

h2

a

n,2

=

a

n,1

+ h a

n,2

g h2`2

sin(a

n,1

) a

n,2

g h`

sin a

n,1

+

h2

a

n,2

.

Références

Documents relatifs

Déterminer les ensembles de définition des fonctions

1,5 point Il faut rincer la coupelle de pesée et l’entonnoir; le ménisque doit être bien positionné..

Exemple : On dissout du sucre dans de l’eau, on obtient une solution d’eau sucrée.. Le rapport U/I est constant aux erreurs de mesure près donc U est proportionnelle

1 point On utilise une fiole jaugée de

Le dipôle étudié est une résistance car U et I sont proportionnelles; R est le coefficient de proportionnalité

0,5 point Le grain sphérique se comporte comme un obstacle circulaire et donne donc la même figure de diffraction qu’un trou de même dimension (tout comme une

[r]

[r]