0% ont trouvé ce document utile (0 vote)
16 vues4 pages

Approximation de courbe par méthode d'Euler

Transféré par

Khalifa Bakkar
Copyright
© All Rights Reserved
Nous prenons très au sérieux les droits relatifs au contenu. Si vous pensez qu’il s’agit de votre contenu, signalez une atteinte au droit d’auteur ici.
Formats disponibles
Téléchargez aux formats PDF, TXT ou lisez en ligne sur Scribd
0% ont trouvé ce document utile (0 vote)
16 vues4 pages

Approximation de courbe par méthode d'Euler

Transféré par

Khalifa Bakkar
Copyright
© All Rights Reserved
Nous prenons très au sérieux les droits relatifs au contenu. Si vous pensez qu’il s’agit de votre contenu, signalez une atteinte au droit d’auteur ici.
Formats disponibles
Téléchargez aux formats PDF, TXT ou lisez en ligne sur Scribd

APPROXIMATION DE LA COURBE INTEGRALE PAR LA

METHODE DEULER

1. ETUDE THEORIQUE

Le but de cette tude est de tracer par approximation la courbe dune fonction F dont
on connat lexpression de sa fonction drive f, et dont on connat ( )
0
F x , soit tracer la
courbe CF sachant que : ( ) ( ) ' F x f x = connaissant une valeur ( )
0
F x .
CF est appele courbe intgrale de la fonction f.

Cette tude ayant surtout son application en physique, nous allons utiliser les
notations le plus couramment utilises dans cette matire.
La variable sera note : t
La fonction F cherche sera note x . A ( ) F x correspondra donc ( ) x t

Le problme est donc le suivant :
Comment tracer la courbe
x
C sachant que : ( ) ( ) ' x t f t = et connaissant ( )
0 0
x t x = ?
(Ex en physique : on connat lacclration dun mobile en fonction du temps ( ( ) f t )et
on voudrait connatre sa vitesse en fonction du temps, sachant que le mobile dmarre
sans vitesse initiale : ce problme se traduira par : Comment tracer
v
C sachant que
( ) ( ) ' v t f t = et que ( ) 0 0 v = ?)


( ) ( ) ' x t f t = scrit aussi :
( ) '
dx
f t
dt
= , galit que les physiciens vont traduire par :

( ) ( )
x
f t x f t t
t

= =




Dtermination du 2
e
point de la courbe cherche Cx :












t
x
0
t
0
x
t
x

1
t
1
x
0
M
1
M
Elments connus :
0
t et
0
x
La fonction f

Elment fix : t

Elment calcul (en fonction de ce qui est
connu et fix) :
1
x = ( )
0 0
f t t x +

On peut donc, de proche en proche, connatre les coordonnes des points
1 2
, ,.........
n
M M M de la courbe
x
C cherche.

Complter le tableau suivant :

0
t
0
x
1
t =
0
t t +
1
x = ( )
0 0
f t t x +
2
t =
1
t t +
2
x = ( )
1 1
f t t x +

n
t =
1 n
t t

+
n
x = ( )
1 1 n n
f t t x

+

On a donc cre deux suites : ( )
n
t et ( )
n
x dont les termes seront calculs laide du
tableur Excel.

2. APPLICATION

A laide du tableur Excel, on va tracer la courbe intgrale Cx telle que :
( ) ' 2 x t t = et sachant que ( ) 0 1 x =

a. Entre des donnes

On se fixe dabord la valeur de 1 t = que lon place dans la cellule A1
Dans la cellule A2 on place la valeur
0
t = 0 puis dans la cellule B2 la valeur de
0
x = 1
Nous allons placer la valeur des
i
t dans la colonne A, puis la valeur des
i
x dans la
colonne B.
Ex : Dans la cellule A3 on placera
1
t =
0
t t + en tapant dans cette cellule : =A2+$A$1
Indiquer la formule que lon doit taper dans la cellule B3 pour placer
( )
1 0 0
x f t t x = + :=2*A2*$A$1+B2
Faire glisser ensuite les cellules A3 et B3 vers le bas de faon obtenir 25 points.















b. Reprsentation graphique

Pour cela, cliquer sur insersion-graphique-nuage de points. Etc.
















On obtient une courbe intgrale approche.

c. Comparaison avec la courbe thorique

En fait, la courbe que lon devrait obtenir a pour quation : ( )
2
1 x t t = +
Montrer que cette fonction est celle qui correspond nos donnes initiales :
( ) ( )
( )
2
' 2
0 0 1 1
x t t f t
de plus x
= =
= + =
ce qui correspond bien aux conditions initiales



Nous allons la tracer sur le mme graphique et nous pourrons ainsi apprcier
lapproximation faite prcdemment.
Dans la colonne C, taper les valeurs de x thoriques, puis tracer sur le mme
graphique la courbe thorique. Pour cela, on clique droite dans la zone graphique,
puis donnes sources-srie-ajouter puis slectionner sur le tableau les abscisses
puis les ordonnes.
On peut modifier lchelle des abscisses et des ordonnes en cliquant droite sur
chacun des axes du graphique pour visualiser au mieux les carts.
On peut aussi, dans la colonne D, faire apparatre les carts entre les valeurs
thoriques et les valeurs calcules par la mthode dEuler.
Faire varier ensuite la valeur de t . Que remarque-t-on ?
Plus t diminue, meilleure est la prcision.



Vous devriez obtenir la feuille suivante :

Common questions

Alimenté par l’IA

The comparison is crucial as it allows for the evaluation of the accuracy of the Euler method in approximating the integral curve. By plotting both the approximated and theoretical curves on the same graph, it is possible to visually and quantitatively assess how closely the numerical method tracks the actual function, indicating the reliability and potential error of the approximation. It is especially important when applied in fields like physics where precise modeling is required .

The choice of step size Δt greatly affects the accuracy of the final approximation. A smaller Δt yields a closer approximation to the true curve due to reduced truncation errors at each step. Mathematically, smaller increments allow the discrete summation to better approximate the continuous integral of the derivative, thereby minimizing cumulative errors over the interval .

The primary objective of using Euler's method is to approximate the curve of a function F using its derivative f, with a known initial condition (F(0) = x_0). This method is applied by calculating successive values of the function at discrete time intervals Δt, using the formula x_{n+1} = x_n + f(t_n) * Δt. This allows for the tracing of an approximate integral curve Cx of the function f by generating two sequences: one for time points, t_n, and the other for the values of the approximated function, x_n .

The process involves first setting a step size, i.e., Δt, in cell A1. The initial time t_0 is placed in cell A2, and the initial value x_0 of the function is placed in cell B2. Subsequent time values t_n are calculated in column A using the formula =A2+$A$1, and the function values x_n are calculated in column B using the formula =2*A2*$A$1+B2. The data is then extended to include additional points by dragging down the formulas in cells A3 and B3 .

The document uses a quadratic derivative function of the form f(t) = 2t to illustrate the method of tracing an integral curve. The initial condition provided is x(0) = 1, which dictates the starting point of the curve. Through Euler's method, the trajectory x(t) is approximated, demonstrating how knowledge of the derivative and an initial condition can define the integral curve .

Excel is utilized to facilitate visualization and analysis by plotting both the approximated curve obtained through Euler's method and the theoretical curve on the same graph, thereby allowing for direct comparison. Additionally, Excel can compute the differences between the theoretical and approximated values and display these errors in a dedicated column, making it easier to assess the impact of varying factors such as the step size Δt on the approximation accuracy .

The conditions for initiating from a stationary state in a physical problem involve the known initial value of the function being zero, such as a mobile starting with zero initial velocity. For example, if one knows the acceleration function f(t) over time and is tasked with finding the velocity starting from rest, the problem reduces to initializing with v(0) = 0 and tracing the curve knowing that the derivative v'(t) equals f(t).

The method relies on iterative calculation by using the current values of the function and its derivative to compute the next values sequentially over small intervals Δt. This is significant for physics applications because many physical systems are governed by differential equations that describe rates of change, and obtaining solutions through iterative methods can surmount analytical solution challenges in complex systems or real-time simulations .

The methodology uses two sequences: one for the time points t_n and another for the approximations of function values x_n. The time sequence iterates using t_n = t_{n-1} + Δt, while the function values sequence iterates using x_n = x_{n-1} + f(t_{n-1}) * Δt. These sequences compute successive approximations, reflecting the stepwise accumulation of changes guided by the derivative .

Precision of the Euler method approximation improves as the step size Δt decreases. This is reflected in the document by noting that as Δt is reduced, the approximated curve becomes closer to the theoretical curve with equation x(t) = t^2 + 1. Graphically, this is demonstrated by plotting both the calculated and theoretical curves on the same graph and observing reduced discrepancies between them as Δt diminishes .

Vous aimerez peut-être aussi