Documente Academic
Documente Profesional
Documente Cultură
Integrare numerică
I=integrate('sin(x)','x',0,%pi)
disp('I=',I)
2𝑥+5
b) Fie functia 𝑓: [2,5] → ℝ, 𝑓(𝑥) = .
𝑥 2 +1
5
Să se calculeze integrala 𝐼 = ∫2 𝑓(𝑥)𝑑𝑥 .
I=integrate('(2*x+5)/(x^2+1)','x',2,5)
disp('I=',I)
Exerciţii:
Să se calculeze integralele:
1 5 3 4
1 𝑑𝑥 𝑑𝑥 (𝑥 2 +1)⋅(𝑥 2 +2)
1.∫ 𝑑𝑥 ; 2. ∫ ; 3. ∫ ; 4. ∫ 3 𝑑𝑥;
√1+𝑥 2 𝑥ln2 𝑥 𝑥√𝑥 2 +5𝑥+1 √𝑥 2
0 2 1 1
3 3 𝜋 𝜋 𝜋
(1+√𝑥)
5. ∫ 3 𝑑𝑥; 6. ∫−𝜋 cos 5𝑥 𝑑𝑥; 7. ∫ sin 𝑥 𝑑𝑥; 7’. ∫ 2 𝑠𝑖𝑛 4 𝑥 2 𝑑𝑥
2 2 4
𝜋
4 4
𝜋
√x − −
2 4 4
2𝜋 3 3 4
𝑥 2𝑥 1 𝑑𝑥 𝑑𝑥
8.∫ sin cos 𝑑𝑥; 9. ∫ 𝑑𝑥;10. ∫ ; 11. ∫ ;
3 3 sh2 𝑥 ch 𝑥 2 𝑥(𝑥+1)2 (𝑥+1)(𝑥 2 +1)
0 1 2 0
1 5 2
𝑑𝑥 2𝑥−3 𝑑𝑥
12.∫ ; 13. ∫ 𝑑𝑥 ;14. ∫
(𝑥+1)3 (𝑥 2 +1) (𝑥 2 −3𝑥+2)2 (𝑥−3)2 (𝑥+1)2
0 3 1
Problema Cauchy pentru
ecuaţii diferenţiale ordinare
Exemplu:
𝑦 ′ (𝑥) = 𝑥𝑦
Fie { . Să se determine valoarea lui y pentru x=1.
𝑦(0) = 1
deff('z=f(x,y)','z=x*y');
x0=0;y0=1;x=1;
y=ode(y0,x0,x,f)
disp('valoarea lui y pentru x=1:',y)
𝑦 ′ (𝑥) = 𝑦 + √𝑦
1. { pentru 𝑥 = 1.5;
𝑦(1) = 1
𝑦 ′ (𝑥) = 𝑦 2 𝑥
2. { pentru 𝑥 = 1.25
𝑦(0) = 1
𝑦 𝑦 2
𝑦 ′ (𝑥) = − ( )
3. { 𝑥 𝑥 pentru 𝑥 = 4
𝑦(1) = 3