Documente Academic
Documente Profesional
Documente Cultură
PROFESSIONAL
Curs 11
Titular CURS:
Conf.univ.dr.M.Sc.ing.ec.
Augustin SEMENESCU
MATHCAD
Curs 5
forma: .. .
x ( t ) b ( t ) x ( t ) c( t )
.. .
d 2 x(t ) dx(t ) x(aa)
Unde: t [aa, bb] , x(t ) , x(t ) , conditii: .
dt 2 dt x(aa)
MATHCAD
dx(t )
• Discretizarea conditiei initiale trebuie efectuata astfel incat
dt t aa
ordinul de consistenta sa fie egal cu acela al ecuatiei cu diferente.
MATHCAD
u0
.. 1 1 1 1
x(aa) [h u0 h 2 u0 h3 u0 h 4 u0 ]
h 2 3 4
1 2 1 1
h ui (1 2 h ) b(ti ) ui (1 2 h ) c(ti )
h 12 12
i 1..n 1
MATHCAD
..
x(0) 0
x(t ) t x(t ) 2 t 3 , t (0,1) , Conditii initiale .
x(0) 0
Solutia: x(t ) t 2
MATHCAD
1 0 0 0 0
25 4 1
4 3
12 3 4
M 12 bt h2 10 h 2 bt 24 12 bt h2
0 1 2 0 0
0 12 bt1 h
2
10 bt2 h 24 12 bt3 h
2
0
12 bt2 h
2
10 bt3 h 24 12 bt4 h
2 3
0 0
h
m h c t 2 10 c t 1 c t 3
2
h c t 3 10 c t 2 c t 1
2
2
h c t 4 10 c t 3 c t 3
MATHCAD
a
u : M - 1 . m
j : u..n - 1
40
ui
20
0
0 0.5 1
ti
MATHCAD
1
2
u t u xx 0 , xR , t 0
a
MATHCAD
u (0, x) ( x)
( y x)2
1
u (t , x)
2a t
( y ) e
4 a 2 t
dy
sau
z z
( x)2 ( x)2
1 z 1 z
1 z dz z dz
lim { (
(1 z ) 2 1 z
u (t , x) )e 4 a 2 t
( )e 4 a 2 t
}
2a t 1
1
1 z (1 z ) 2
MATHCAD
u t - u(xx) 0
u(0, x) e - x 2
x 2 4 t 1
1
u (t , x) e
4t 1
MATHCAD
z z
( x )2 ( x )2
0
1 z 0.99 1 z
1 z 1 z 1
u (t , x)
2a t
(
0.99
(
1 z
)e 4a 2 t
(1 z ) 2
dz
0
(
1 z
)e 4a 2 t
(1 z ) 2
dz )
k x
1
2
Ak f ( x) sin( ) dx
l 0 l
MATHCAD
Vom considera urmatoarea problema test:
, conditii initiale:
u (0, x) sin( 2 x)
ut uxx 0
u (t ,0) 0
u (t ,1) 0
Solutia problemei test este urmatoarea: 0
4 2 t
u0 (t , x) e sin( 2 x)
MATHCAD
t : 0.25
x : 0.25
u (t , x) 5.1723 10 5
u 0 (t , x) 5.1723 10 5
MATHCAD
6.4. Forma standard a unui sistem cu ecuatii diferentiale
In acest capitol sunt prezentati pasii cei mai importanti pentru rezolvarea sistemelor
cu ecuatii diferentiale.
Se porneste de section,
In this la o ecuatie diferentiala
we'll look ceimportant
at the most poate fistep
scrisa sub diferite
in “prepping” a forme :
differential equation for solving in Mathcad. The idea here is to take
a differential equation, which can come in many forms,
d2 d
x( t) x( t) 3 x( t) 4 sin( t)
2 dt
dt
y'' ( s) 1
y( s)
y( s) y' ( s)
2
d z d
2
2
w( z) e 2 w( z) z w( z) z
dz dz
MATHCAD
y0 ( x) y( x)
d
y1 ( x) y0 ( x)
dx
MATHCAD
d
y1( x) 3 y1( x) 7 y0( x) 4x
dx
Astfel aceasta ecuatie diferentiala contine doua functii in loc de una singura;
astfel, avem o legatura intre cele doua functii:
d
y1( x) y0( x)
dx
MATHCAD
Ecuatia diferentiala devine un sistem de doua ecuatii diferentiale, de forma:
d
y1( x) y0( x)
dx
d
y1( x) 3 y1( x) 7 y0( x) 4x
Sau: dx
Further, we'll adopt the convention of writing these equations
with the derivatives alone on the left-hand side.
d
y0( x) y1( x)
dx
d
y1( x) 4 x 7 y0( x) 3 y1( x)
dx
MATHCAD
6.4.1. Pasii procesului de standardizare
Primul pas in standardizarea procesului : exemplul 1
Ecuatia diferentiala :
d2
d3 2d
S ( t) t S ( t) S ( t) cosh( t)
3
dt
dt 2
dt
Sistemul reprezentativ al ecuatiei diferentiale este de forma:
unde S0(t) este identic cu S(t)
d
S0 ( t) S1 ( t)
dt
d
S1 ( t) S2 ( t)
dt
d 2
S2 ( t) cosh( t) t S1( t) S2( t)
dt
MATHCAD
d
U1( r) 2
sin r U0( r)
dr
MATHCAD
Pentru ultima ecuatie a trebuit sa rezolvam: d2 prin trecerea
U( r)
2
dr
d
W0( z) W1( z)
dz
d 2
W1( z) z z W1( z) 4 W0( z)
dz
MATHCAD
Pentru a izola derivatele de ordinul II este necesar sa extragem radical:
2
d2 2 d
W ( z) z z W ( z) 4 W ( z)
dz2 dz
d2 2 d
W ( z) z z W ( z) 4 W ( z)
dz
2
dz
Rezultatul dorit corespunde radacinii pozitive, insa am fi putut alege si radacina
negativa, ceea ce ar fi dus la un alt sistem de ecuatii diferentiale, iar rezolvarea
acestor sisteme ducand la solutii diferite.
MATHCAD
d
y1( x) 4 x 7 y0( x) 3 y1( x)
dx
d
y1( x) 4 x 7 y0( x) 3 y1( x)
dx
MATHCAD
Pentru fiecare x , derivate lui y0 este egala cu valoarea lui y1 si derivate lui y1 este
exprimata in functie de y1 si y0 . Derivatele lui y0 si y1 in punctual x=1 sunt:
y1 =7.2
4 . x + 7 . y0 – 3 . y1 = -38.6
Functia de mai jos este specifica pentru fiecare vector cu valori ale functiei in
punctual x , vectorul fiind corespunzator valorilor derivatelor. Functia DY este un
component esential in rezolvarea ecuatiilor diferentiale numerice.
y1
DY( x y)
4 x 7 y0 3 y1
MATHCAD
Putem construi, de asemenea, functii pentru fiecare dintre cele trei exemple:
Exemplul 1.
d
S0 ( t) S1 ( t)
dt
d
S1 ( t) S2 ( t)
dt
d 2
S2 ( t) cosh( t) t S1( t) S2( t)
dt
Definim:
S1
DS ( t S) S2
2
cosh( t) t S1 S2
MATHCAD
Exemplul 2.
d
U0( r) U1 ( r)
dr
d
U1( r) 2
sin r U0( r)
dr
Definim:
U1
DU( r U)
sin r2 U0
MATHCAD
Exemplul 3.
d
W0( z) W1( z)
dz
d 2
W1( z) z z W1( z) 4 W0( z)
dz
W1
Definim:
DW ( z W)
z z2 W 4 W
1 0
Sau, daca alegem radacina negativa:
W1
DW2 ( z W)
z z2 W 4 W
1 0
MATHCAD
Pasul 3
Pentru a rezolva un sistem care are urmatoarea forma :
d
q R( q) P ( q) 1q
dq
d q
R( q) P ( q) R( q) e
dq
putem defini functiile urmatoare:
F0( q) R( q) F1( q) P ( q)
MATHCAD
Sistemul devine:and then the system looks like
d
q F0( q) F1( q) 1q
dq
d q
F0( q) F1( q) F0( q) e
dq
Functia derivata are forma:
1 q F1
q
DF ( q F)
e q F0
F0
MATHCAD
Un exemplu mai compex este :
2
d d 3
G ( w) K ( w) 2 G ( w) w
2 dw
dw
2
d d
w K ( w) G ( w) ln( w) K ( w) sin( w)
2 dw
dw
Definim functiile:
T0( w) G ( w) T1( w) K ( w)
MATHCAD
Sistemul pentru cele doua ecuatii devine:
d
T0 ( w) T2( w)
dw
d
T1 ( w) T3( w)
dw
d 3
T2 ( w) w 2 T0 ( w) T3 ( w)
dw
sin( w) ln( w) T1 ( w) T2 ( w)
d 1
T3 ( w)
dw w
MATHCAD
Iar functia corespunzatoare este:
T2
T3
DT( w T) 3
w 2 T0 T3
1
sin( w) ln( w) T1 T2
w