Documente Academic
Documente Profesional
Documente Cultură
3
2
2 cos(1 x )
1 0.5 sen x
e 0.5 x dx
f(x)
0,25
0,75
1,25
1,75
2,727
2,811
2,605
2,863
3,500
3,000
2,500
2,000
1,500
1,000
0,500
0,000
0
0,25
0,5
0,75
1,25
1,5
el cambio en y desde
ya hasta yb es:
1,75
2,25
2,5
2,75
dy
f (x)
dx
yb
xb
ya
xa
dy f ( x)dx
Integracin
Suma de reas
yb ya
xb
f ( x)dx
xa
Area
infinitesimalmente
pequea
f(x)
b
yb
y
dy
Magnitud del
cambio
ya
Area bajo
la curva
xa
dx
xb
de la variable independiente
xb
xa
Trapecios
Polinomio de
orden 1
( x)dx
xb
( x)dx
xa
Simpson 1/3
Polinomio de
orden 2
Simpson 3/8
Polinomio de
orden 3
xb
xb
f ( x)dx f ( x)dx
1
xa
16,000
f(xb)
14,000
xa
f ( x a ) f ( xb )
I ( xb x a )
2
12,000
10,000
8,000
6,000
Error
f(xa)
4,000
f(0.5) = 2.817
2,000
0,000
0
0,5
xa
1,5
2,5
I = 19.262938
Er% = ?
3,5
xb
f(3.5) = 13.419
I (3.5-0.5)(2.817+13.419)/2 = 24.353
f(xn)
12,000
El intervalo se
divide en n
segmentos de
igual ancho
x x
h n 1
n
10,000
8,000
6,000
Error
4,000
f(x1)
2,000
f ( x a ) f ( xb )
I ( xb x a )
2
0,000
0
0,5
1,5
2,5
3,5
xn
x1
I h
f ( x3 ) f ( x2 )
f ( xn ) f ( xn1 )
f ( x2 ) f ( x1 )
h
... h
2
2
2
n 1
n 1
h
I f ( x1 ) 2 f ( xi ) f ( xn )
2
i 2
I ( xn x1 )
f ( x1 ) 2 f ( xi ) f ( xn )
i 2
2n
x3
x3
f ( x)dx f
Polinomio de Lagrange
x1
( x)dx
x1
( x x2 )( x x3 )
( x x1 )( x x3 )
( x x1 )( x x2 )
I f ( x1 )
f ( x2 )
f ( x3 )
dx
( x1 x2 )( x1 x3 )
( x2 x1 )( x2 x3 )
( x3 x1 )( x3 x2 )
x1
x3
16,000
14,000
h
f ( x1 ) 4 f ( x2 ) f ( x3 )
3
f(x2)
12,000
10,000
8,000
( x3 x1 )
2
Cantidad de
segmentos
Error
6,000
f(x1)
4,000
f(x0)
2,000
I ( x3 x1 )
0,000
0
0,5
x0
1,5
x1
2,5
3,5
x2
f ( x1 ) 4 f ( x2 ) f ( x3 )
6
I 2h
x3
x5
xn
x1
x3
xn 2
I ( x3 x1 )
f ( x1 ) 4 f ( x2 ) f ( x3 )
6
h
( x3 x1 )
2
f ( x1 ) 4 f ( x2 ) f ( x3 )
f ( x3 ) 4 f ( x4 ) f ( x5 )
f ( xn2 ) 4 f ( xn1 ) f ( xn )
2h
... 2h
6
6
6
( xn x1 )
h
n
f ( x1 ) 4
I ( xn x1 )
Cantidad de
segmentos
n 1
n2
f (x ) 2 f (x ) f (x )
i 2, 4, 6
j 3, 5 , 7
3n
x4
x4
f ( x)dx f ( x)dx
(x x )
h 4 1
3
x1
3h
I f ( x1 ) 3 f ( x2 ) 3 f ( x3 ) f ( x4 )
8
x1
16,000
f(x4)
14,000
12,000
f(x3)
10,000
8,000
Error
6,000
I ( x4 x1 )
4,000
f(x2)
2,000
f(x1)
0,000
0
0,5
x1
1,5
x2
2,5
x3
3,5
x4
f ( x1 ) 3 f ( x2 ) 3 f ( x3 ) f ( x4 )
8
Comparacin de errores
1,6405
puntos
Trapecio
Error%
Simpson
Error%
1,0688
35
1,3675
17
1,3696
17
1,5192
1,4848
1,6235
1,5399
1,6451
0,28
1,5703
1,6372
0,20
1,6008
1,6395
0,06
1,6381
0,15
(3/8)
(1/3 + 3/8)
(1/3 + 3/8)
xa
xa
xb
F cte
xa
W=F(x)cos((x))dx
xb
xb
W
xa
xb
x(ft)
0
5
10
15
20
25
30
W=F(x)cos((x))dx
7 puntos
equidistantes
119,0
117,1
12,0
10,0
8,0
6,0
4,0
2,0
0,0
0
10
15
20
F(x)cos(ang)
25
30
35
W=F(x)cos((x))dx
5
3
7 puntos no
equidistantes
104,603
25,049
129,652
12,0
10,0
8,0
6,0
129,652
4,0
2,0
0,0
0
10
20
F(x)cos(ang)
30
40
50
n 1
function [y]=f(x)
y = evstr(funcion)
endfunction
I ( xn x1 )
f ( x1 ) 2 f ( xi ) f ( xn )
i 2
2n
funcion=input('f(x)= ','s')
( xn x1 )
h
n
segmentos
n 1
h = (xn-x1)/(n-1) //paso
for x = (x1+h):h:(xn-h)
f
(
x
)
i I = I + f(x)
i 2
end //for
n 1
n= length(v)
( xn x1 )
h
n
segmentos
I ( xn x1 )
h = (xn-x1)/(n-1) //paso
f ( x1 ) 2 f ( xi ) f ( xn )
i 2
2n
n 1
f (x )
i 2
I = h*(v(1)+2*I + v(n))/2
for i = 2:n-1
I = I + v(i)
end //for
3
2
2 cos(1 x ) 0.5 x
0.5 1 0.5senx e dx
3.5
-->deff('y=f(x)','y=(2+cos(1+x.^1.5)/sqrt(1+0.5*sin(x)))*exp(0.5*x)')
-->I=intg(0.5,3.5,f)
I =
19.262938
Valor similar al
obtenido con PlanMaker
0.5
0.75
1
1.25
1.5
1.75
2
2.25
2.5
2.75
3
3.25
3.5
f(x)
2.817
2.811
2.722
2.605
2.584
2.863
3.694
5.295
7.710
10.628
13.278
14.536
13.419
19.2639582