Sei sulla pagina 1di 45

Mtodo de Biseccin.

Ejercicio
Tarea
Mtodo de la regla falsa
Ejercicio
Tarea
Mtodo de punto fijo
Ejercicio
Tarea
Mtodo de Newton-Raphson
Ejercicio
Tarea
Mtodo de los Trapecios
Ejercicio
Tarea
Mtodo de Simpson
Ejercicio
Tarea
SISTEMA DE ECUACIONES
Gauss-Seidec
Ejercicio
Tarea
Mtodo de Jacobi
Ejercicio
Tarea
Mtodo de Euler
Ejercicio
Tarea
REPASO
EXAMEN PARCIAL

MTODO DE BISECCIN
f(x) = x2 + 5x + 6
(x + 3) (x +2) = 0
x2 + 5x + 6
x1 = -3
x2 = -2

Aplicando formula de vieta.


x=

b b24 ac
2a

Resolviendo:
x=

5 5 24 (1)(6)
2(1)

x=

5 2524
2

x=

5 1
2

x=

5+1
2

4
= 2 = -2

x=

51
2

6
= 2 = -3

Ejemplo 1
f(x) = x2 + 5x + 6
No.
a
b
(a+b)/2
f(a)
f(b)
f((a+b)/2)
1
-4
-2,5
-3,25
2
-0,25
0,3125
2
-3,25
-2,5
-2,875
0,3125
-0,25
-0,109375
3
-3,25
-2,875
-3,0625
0,3125
-0,109375 0,06640625
4
-3,0625
-2,875
-2,96875 0,06640625
-0,109375
-

0,03027343
8
5

-3,0625 -2,96875

-3,015625 0,06640625

3,01563 -2,96875

0,01587429
-2,99219
7

3,01563 -2,96875

-2,99219

3,01563 -2,96875

0,01587429
-2,99219
7

0,01587429
7

0,03027343
8
0,03027343
8
0,03027343
8
0,03027343
8

0,01586914
1
0,00774900
4
0,00774900
4
0,00774900
4

Tarea 1
No. 1
Error =

3+2.99219
100
3

= 0.00260333333%

No. 2
Encuentre la raz
F(x) = x3+4x 10
[1,2]
No.
A
b
1
1
2
1
3
1,25

(a+b)/2
2
1,5
1,5

1,5
1,25
1,375

-5
-5
-1,796875
-1,796875
0,848388672
0,350982666
0,096408844
0,096408844
0,032149971

1,25

1,375

1,3125

1,3125

1,375

1,34375

1,34375

1,375

1,359375

1,359375

1,375

1,3671875

8
9

f(a)

1,359375 1,3671875 1,36328125


1,3632812
1,36523437
5 1,3671875
5

f(b)

f((a+b)/2)
14
2,375
2,375
-1,796875
2,375 0,162109375
0,16210937
5 -0,848388672
0,16210937
5 -0,350982666
0,16210937
5 -0,096408844
0,16210937
5 0,032355785
0,03235578
5 -0,032149971
0,03235578
5 7,20248E-05

Dato Real = x1= 1.365230013


1.3652300131.365234375
100
Error =
1.365230013

= -0.00000319506%

No. 3
Para la funcin

1
f ( x)=3 ( x+1)(x )(x1)
2

[-2,1.5]

Encontrar la raz de X, usando cinco interacciones y encontrar el error porcentual.


Valor Real segn calculadora: 1
Procedimiento:
1 Los valores que usamos para valuar la funcin estn dados por el intervalo conocido
[-2,1.5]
2 El primer valor del intervalo es a y el segundo valor es b.
3 Construimos una tabla en donde anotamos los resultados de valuar la funcin en
a+ b
f(
)
f(a), en f (b) y en
.
2
4
5

Los valores de a y b para la primera iteracin, son los valores del intervalo dado
[-2,1.5].
Para las siguientes iteraciones, observamos los resultados de valuar la funcin en
a+ b
f(
)
a, en b y en
, el valor con signo diferente de estas tres valuaciones
2
ser nuestro siguiente a o b, y el valor ms pequeo de los restantes dos valores
que tengan el mismo signo es nuestra otra a o b.
Del inciso anterior, determina quien es a o quien es b, la cifra de menor valor;
a siempre va a ser menor que b, (a<b)

Clculo del error porcentual:

E = (DT-DE/DT)*100
E=

1(1.015625)
100
1

= 201.56%

MTODO DE LA REGLA FALSA.

Demostracin:
m=

f (x i +1)f ( x i)
( x i+1 )( x i )

m=

f ( x i +1)f (x r )
( x i+1 )( x r )

f ( x i+1 )f (x i) f (x i +1)f ( x r )
=
( xi +1 )( x i )
( x i+1 )( x r )

[ f ( xi +1)f ( x i )] [ ( x i+ 1) ( x r ) ]=[ ( x i+1 ) ( x r ) ][ ( x i+1 ) ( x i) ]

( x i+1 )( xr )=

( xr )=

[ ( x i+1 ) ( x r ) ][ ( x i+1 ) ( x i ) ]
f (x i+1)f ( x i )

[ ( x i+1 ) ( x r ) ][ ( x i+1 ) ( xi ) ] x
f ( x i+1 ) f ( x i )

( x r ) =( x i+1 )

i+1

f ( x i+1 ) [ ( x i+1 ) ( x i ) ]
f ( x i+1 ) f ( x i )

Ejemplo:
3

f ( x )=2 x + x 1

A.
x i=0
x i+1=1

f ( x i )=1
f ( x i+1 ) =2

0< x <1

x r=1

2( 10 )
=0.3333
2(1 )

B.
x i=0 .3333

f ( x i )=0.5926

x i+1=1

f ( x i+1 ) =2

x r=1

2( 10.3333 )
=0.4857
2(0.5926 )

C.
x i=0 .4857

f ( x i )=0.2851

x i+1=1

f ( x i+1 ) =2

x r=1

No.

xi

x i+1

2( 10.4857 )
=0.5499
2(0.2851 )

xr

f ( xi )

f ( x i+1 )

f ( xr )

0.3333

-1

-0.5926

0.3333

0.4857

-0.5926

-0.2851

0.4857

0.5499

-0.2851

-0.1175

EJERCICIO No. 3

( 12 )( x1)

f ( x )=3 ( x +1 ) x

-. Realizar 5 iteraciones, calcule el error porcentual y grafique al funcin.


A.
x i=2

f ( x i )=22.5

x i+1=1.5

f ( x i+1 ) =3.75
x r=1.5

B.
x i=2

f ( x i )=22.5

x i+1=1

f ( x i+1 ) =0

C.
x i=2

f ( x i )=22.5

x i+1=1

f ( x i+1 ) =0

D.
x i=2

f ( x i )=22.5

(3.7 .5)( 1.5(2))


=0
022.5( 3.75 )

x r=1

(0)( 1(2) )
=0
( 3.75 ) (22.5)

x r=1

(0)( 1(2) )
=0
( 3.75 ) (22.5)

x i+1=1

f ( x i+1 ) =0

E.
x i=2

f ( x i )=22.5

x i+1=1

f ( x i+1 ) =0

No.

xi

x i+1

x r=1

(0)( 1(2) )
=0
( 3.75 ) (22.5)

x r=1

(0)( 1(2) )
=0
( 3.75 ) (22.5)

xr

f ( xi )

f ( x i+1 )

f ( xr )

-2

1.5

-22.5

3.75

-2

-22.5

-2

-22.5

-2

-22.5

-2

-22.5

Error porcentual
Dato terico: 1
Dato real: 1
11
E=
100 =0
1

[ ]

TAREA No. 2
f ( x )=X 2 X =0 ;

0< x <1

; con exactitud de 10 -5 y calcule el error

porcentual
A.
x i=0

f ( x i )=1

x i+1=1

f ( x i+1 ) =0.5

x r=1

(0.5)( 10 )
=0.6667
0.5(1 )

B.
x i=0

f ( x i )=1

x i+1=0.6667

f ( x i+1 ) =0.036754

x r=0.6667

0.036754( 0.66670 )
=0.643064
0.036754 (1 )

C.
x i=0

f ( x i )=1

x i+1=0.643064

D.
E.

x r=0.643064

f ( x i+1 ) =2.7125 x 1 03
0.01063( 0.65040.643064 )
=0.641324
2.7125 x 1 03(1 )

x i=0

f ( x i )=1

x i+1=0.641324

f ( x i+1 ) =1.9969 x 1 04

x r=0.641324

F.

x i=0

1.9969 x 1 04( 0.6413240 )


=0.641195
1.9969 x 1 04 (1 )

f ( x i )=1

x i+1=0.641195

x r=0.641195

f ( x i+1 ) =1.3368 x 1 05

1.3368 x 1 05( 0.6411950 )


=0.641186
1.3368 x 1 05 (1 )

G.
f ( x i )=1

x i=0
x i+1=0.641186

f ( x i+1 ) =9.4682 x 1 0

9.4682 x 1 07( 0.6411860 )


x r=0.641186
=0.641185
9.4682 x 107 (1 )

H.
f ( x i )=1

x i=0
x i+1=0.641185

x r=0.641185

f ( x i+1 ) =3.6904 x 1 07

3.6904 x 1 07( 0.6411850 )


=0.641185
3.6904 x 107(1 )

xi

No.

x i+1

xr

f ( xi )

f ( x i+1 )

f ( xr )

0.6667

-1

0.5

0.036754

0.6667

0.643064

-1

0.036754

2.7124x 10-3

0.643064

0.641324

-1

2.7124x 10-3

1.99698x 10-4

06413224

0.641195

-1

21.9969x 10-4

1.33689x 10-5

0.641195

0.643064

-1

1.33689x 10-5

9.4682x 10-7

0.641186

0.641185

-1

9.4682x 10-7

-1.07538x 10-6

0.641185

0.641186

0.641185

-1.0753x 10-6

3.6904x 10-7

-1.07538x 10-6

Error porcentual
Dato terico: 0.641185
Dato real: 0.641714

E=

0.6411850.641714
100 =0.0825
0.641185

Grfica
Y

f(xi +1)

x
xi +1

f(xi )

MTODO DEL PUNTO FIJO


CONDICIONES:

f (x ) x [ a , b ]

f ' (x ) x ( a , b )

CONVERGENCIA:

|g '(x)|1

PROCESO:
1

f (x )=0

g( x )=x

g '( x )

Ejemplos:
f (x )=x 2+5 x +6

[ 3.5,2.5 ]

f (x )=0

x 2+5 x +6=0
x 2=5 x6
x = 5 x 6
g (x )1= 5 x6
g( x ) 2=5 x6
2

g( x )=x

se despeja la variable x del trmino de grado 1.

5 x=x 26
2

x=

x 6
5

g (x )3 =

x 26
5

g '( x )

Para:
g( x ) 1=5 x6

Se tiene

se derivan todas las tres funciones obtenidas.


Para:
g( x ) 2=5 x6

Se tiene

1
g ' ( x ) 1= (5 x6 ) 2 (5 )
2
g ' ( x ) 1=

5
2 5 x6

g ' ( x ) 2=

1
(5 x6 ) 2 (5 )
2

g ' ( x ) 2=

5
2 5 x6

Para:
g( x ) 3 =

x 26
5

Se tiene
1
g ' ( x ) 3= (2 x )
5

g ' (x )3 =

2
x
5

Se valan las derivadas de las funciones en un punto fijo del intervalo


x 0=3.5
g ' (3.5 ) 1=

5
5
=
=0.73
2 5 x6 2 5 (3.5 )6

g ' (3.5 ) 2=

5
5
=
=0.73
2 5 x6 2 5 (3.5 )6

g' (3.5 )3=

2
2
x=
(3.5 )=1.4
5
5

De los valores obtenidos en el proceso anterior, se busca la derivada que cumpla la


condicin de convergencia; es decir

|g '(x)|1
Por lo tanto, se tienen dos opciones:
g ' (3.5 ) 1=

5
5
=0.73 g ' (3.5 ) 2=
=0.73
2 5 x6
2 5 x6

Se elige una de las dos ecuaciones cuyas derivadas valuadas en el punto fijo nos dan
valores menores o iguales a uno; en este caso se elige la primera; es decir:
g ' (3.5 ) 1= 0.73

que es derivada de la ecuacin

g( x ) 1=5 x6 , en esta ecuacin se

inicia valuando el punto fijo, en este caso 3.5.


g( x ) 1=5 x6

x 0=3.5 x0 j=g( x

Por lo tanto:
Iteracin

ecuacin

g( x ) 1

g(3.5 ) 1= 5 (3.5 )6

3.39

g(3.39 )1= 5 (3.5 )6

x / R

Como en la segunda iteracin se encontr que la ecuacin no se puede resolver dentro del
conjunto de los nmeros reales; y recordando que se tenan dos valores que cumplan la
condicin de convergencia, se toma la funcin de la otra derivada que cumpla esta
condicin, es decir

g( x ) 2=5 x6
y se repite el procedimiento descrito con anterioridad.

Iteracin

ecuacin

g( x ) 1

g(3.5 ) 1=5 (3.5 )6

3.39

g(3.39 )1=5 (3.39 )6

3.31

g(3.31 )1= 5 (3.31 )6

3.25

g(3.25 )1=5 (3.25 )6

3.20

g(3.20 )1=5 (3.20 ) 6

3.16

g(3.16 )1 =5 (3.16 )6

3.13

g(3.13 )1=5 (3.13 )6

3.11

g(3.11 ) 1=5 (3.11 )6

3.09

g(3.09 )1=5 (3.09 )6

3.07

10

g(3.07 )1 =5 (3.31 )6

3.06

11

g(3.06 )1 =5 (3.06 )6

3.05

Tarea No. 4
Utilizar el valor de -2.5 para verificar las otras derivadas del ejemplo

x 0=2.5
g ' (3.5 ) 1=

5
5
=
=0.98
2 5 x6 2 5 (3.5 )6

g ' (3.5 ) 2=

5
5
=
=0.98
2 5 x6 2 5 (3.5 )6

g' (3.5 )3=

2
2
x=
(3.5 )=1
5
5

Primera ecuacin:
Iteracin

ecuacin

g( x ) 1

g(2.5 ) 1= 5 (2.5 )6

-0.98

g(0.98 )1 =5 (0.98 )6

x / R

Iteracin

ecuacin

g( x ) 1

g(2.5 ) 1=5 (2.5 )6

0.98

g(0.98 )1 =5 ( 0.98 )6

x / R

ecuacin

g( x ) 1

Segunda ecuacin

Tercera ecuacin
Iteracin

2
(2.5 )
5

g(3.5 ) 1=

g(1 )1=

2
( 1)
5

0.4

g(0.4 ) 1=

2
(0.4 )
5

0.16

g(0.16 ) 1=

2
( 0.16 )
5

0.064

g(0.645 ) 1=

g( 0.026 )1=

g(0.010 )1=

g(0.004 )1 =

g(0.002) 1=

10

g(0.008 )1=

2
(0.64 . )
5

0.026

2
( 0.026 )
5

0.010

2
(0.010 )
5

0.004

2
( 0.004 )
5

0.002

2
(0.002 )
5

0.008

2
( 0.008 )
5

0.003

MTODO DE NEWTON-RAPHSON.

y y 0 =m(xx 0)

0f ( x )=f ( x ) [ x k +1x k ]

f (x)
=x k+1 x k
f (x)

EJEMPLO
f ( x )=2 x 3+ x 1

Datos:

[ 0,1 ]

x k+1=x k

f ( x)
f ( x)

x k+1=x n

f ( x)
f ( x)

x k =0
f ( x )=2 x 3+ x 1
f ( x )=6 x 2 +1

Incgnita:
3
La raz de la funcin: f ( x )=2 x + x 1

en

[ 0,1 ]

Planteamiento:
Utilizamos la ecuacin obtenida:
x k+1=x k

f ( x)
f ( x)

Sustituyendo datos tenemos que:


x k+1=0

2 ( 0 )3+ ( 0 )1
=1
6 ( 0 )2+1

Ahora:
x 0=0
x 1=1

Sustituimos este nuevo valor en la ecuacin y as sucesivamente:

x 2=1

2 ( 1 ) + ( 1 )1
=0.7143
2
6 ( 1 ) +1

x 3=0.7143

2 ( 0.7143 )3 + ( 0.7143 )1
=0.60517
6 ( 0.7143 )2 +1

x 4=0.60517

2 ( 0.60517 ) + ( 0.60517 )1
=0.59002
2
6 ( 0.60517 ) + 1

2 ( 0.59002 )3 + ( 0.59002) 1
x 5=0.59002
=0.58975
6 ( 0.59002)2 +1

Ejercicio
f ( x )=e x 3

Datos:
x k =1
f ( x )=e x 3
f ( x )=ex

Incgnita:

[ 1,2 ] , con exactitud 103

La raz de la funcin:

f ( x )=e 3

[ 1,2 ] , con exactitud 103

Planteamiento:
Utilizando la ecuacin

x k+1=x k

f ( x)
f ( x)

Sustituyendo valores tenemos que:


x k+1=1

2 (1 )3 + (1 )1
=1.10364
6 (1 )2+ 1

x 1=1.10364

2 (1.10364 ) + (1.10364 )1
=1.09862
2
6 (1.10364 ) +1

2 (1.09862 )3 + (1.09862 )1
x 2=1.09862
=1.09861
6 (1.09862 )2 +1
Respuesta:
La raz estimada de la funcin dada es: 1.09861

Clculo de error porcentual:


La raz estimada de la funcin dada es: 1.09861
Raz terica: 1.098612289

%E=

valor estimadovalor terico


100
valor terico

%E=

1.09861(1.098612289)
100
1.098612289

%E=

1.09861+1.098612289
100
1.098612289

%E=

2.289106
100
1.098612289

%E=2.08353758910 100

%E=0.00020835

Tarea
Encuentre la raz y calcule el error.
f ( x )=ln x + x 3

[ 0,1 ] ;

x k+1=

104

f (x)
f '(x)

1
'
2
f ( x )= +3 x
x

x k+1=0

x k+1=1

ln ( 0 ) + ( 0 )3
=No existe
1
2
+3 ( 0 )
0
ln ( 1 ) + ( 1 )3
=0.75
1
2
+3 ( 1 )
1
3

x k+1=0.75

ln ( 0.75 ) + ( 0.75 )
=0.705577
1
2
+3 ( 0.75 )
0.75

x k+1=0.705577

x k+1=0.704709

ln ( 0.705577 ) + ( 0.705577 )3
=0.704709
1
2
+3 ( 0.705577 )
0.705577
ln ( 0.704709 )+ ( 0.704709 )3
=0.704709
1
2
+3 ( 0.704709 )
0.704709

Respuesta:
La raz estimada: 0.7047
Clculo de error porcentual:
La raz estimada: 0.7047
Raz terica: 0.7047094903

Error porcentual=

valor te ricovalor estimado


100
valor te rico

Error porcentual=

0.70470949030.7047
100
0.7047094903

Error porcentual=

0.000009490254913
100
0.7047094903

Error porcentual=0.00001100

Error porcentual=0.001

MTODO DE LOS TRAPECIOS

A =( x f x 0 ) [ f ( x 0 ) ]

1
A = ( x f x 0 ) [ f ( x f ) f ( x 0 ) ]
2

A T =A + A
1
A T =( x f x 0 ) [ f ( x 0 ) ] + ( x f x0 ) [ f ( x f ) f ( x 0 ) ]
2

A T =( x f x 0 ) f ( x 0 ) +

A T =( x f x 0 )

[(

f ( xf )
2

f x0 ) f ( x f )
+
2
2

f ( x0 )
2

AT =

x f x 0
[ f ( x 0 ) +f ( x f ) ]
2

x0

f ( x 1+ f () ] +

x 2x 1
x x
f ( x 1 ) + f ( x 2 ) ]+ 3 2 [ f ( x2 ) + f ( x 3 ) ]
[
2
2
x x
AT = 1 0
2

A=

x
f ( x 0 ) +2 f ( x 1 )+ 2 f ( x2 ) + f ( x 3 ) ]
2n [

x=

x f x0
n

x=

x f x0
3

AT =

x f x 0
[ f ( x 0) + 2 f ( x1 ) +2 f ( x 2 ) + f ( x3 ) ]
6

Ejemplo:

f ( x )=x 2 +2 x +1 [ 0,3 ]
3

( x 2 +2 x +1 ) dx
0

x3 2 x2
+
+x
3
2

1 3 2
x +x +x
3

( 3 )3
+ ( 3 )2 + ( 3 )=21
3

T =

( 30 )
[ 1+2 ( 4 )+2 ( 9 )+16 ]
6

3
T = [ 1+8+18+ 16 ]
6

1
T = ( 43 )
2

T =21.5

Ejercicio:
Usando el mtodo de los trapecios (5 trapecios) resuelva:
1

e x dx
0

x=

x f x0
n

x=

10 1
= =0.2
5
5

AT =

10
[ 1+2 ( 1.041 )+ 2 ( 1.174 )+ 2 ( 1.433 ) +2 ( 1.896 ) +2.718 ]
10

AT =

1
[ 1+ 2.082+ 2.348+ 2.866+3.792+2.718 ]
10

A T =0.1 ( 14.806 )

A T =1.4806

Mtodo de Simpson 1/3

P (x) = a x2 + b x +c

ax
(+ bx+ c)dx
ln

P ( x ) dx
ln
ln

ln

h
( a x 2+ bx+ c ) dx= a x 3 + b x 2+ cx I h

ah bh
ab b h
+
+ch
+
ch
3
2
3
2

a h3 b h2
a h3 b h2
+
+ch+

+ ch
3
2
3
2

2 3
a h +2 ch P ( x ) dx
3
h

P(-h)= Y 1 a h bh+ c
a(h)2 +b (h ) +c

2= c
P ( 0 )=Y

P ( h )=Y 3=a h +bh+c

Y 1=a h 2bh+c

Y 3=a h2hh+ c

Y 1+ Y 3=2 a h +2 c

c=Y 2
2

Y 1+ Y 3=2 a h +2 Y 2

3==2 a h2
Y 12 Y 2+ Y

Y 1 2Y 2 +Y 3
2 h2

P ( x ) dx= 23
h

=a

Y 2 Y 2 +Y 3
2

2h

h3+ 2Y 2 h

P ( x )=

( Y 12 Y 2 +Y 3 )
3

P ( x ) dx=h
h

h+2Y 2 h

Y1 2Y2 6Y2 Y3

+
+
3
3
3
3

Y 1+
h

P ( x ) dx= h3
h

h=

ba
Son losextremos
2

f ( x ) dx
a

Ejemplos
1

( x 3 +1 ) dx
0

h=

12 1
= =0.5
2
2

o.5

1.125

4 4 Y 2+Y 3

( x 3 +1 ) dx=[ 1+4 ( 1.125 )+ 2 ] 0.5


3
0

( x 3 +1 ) dx=1.25
o

falta tarea

MTODO DE JACOBI
Ax=b x= A1 b
A=D+ R

( D+ R ) x=b
Dx+ Rx=b
Dx=bRx

x=D1 bD1 Rx
x k +1=D1 bD1 R x k
Se tiene la matriz:

)( ) ( )

a 11 a12 a13 x
b1
a 21 a22 a23 y = b2
a 31 a32 a33 z
b3

Para A= D+R donde

a11 0
0
D= 0 a22 0
0
0 a33

R=

0 a12 a13
a 21 0 a23
a 31 a32 0

1
a 11

( )

D1= 0

1
a22

1
a 33

()
b1
b2
b3

()
x
y
z

( )

1
a11

1
a11

( ) ( )(

x k+1
y k +1 = 0
z k+1
0

1
a22

1
a33

()

b1
b2 0
b3
0

1
a22

1
a33

Ejemplo:
5 x+ y +2 z=13
2 x +5 yz=5
x +4 y + 6 z =27

)( )

0 a12 a13 x k
a21 0 a23 y k
a31 a32 0 z k

5 1 2 13
2 5 1 5
1 4 6 27

1
5

D1= 0

1
5

1
6

( )

b=

) ()

()
13
5
27

0 1 2
x
R= 2 0 1 x= y
1 4 0
z

1
5

2
5
1
5

( )
( ) ( ) ( )( )

13
5
D1 b= 1 D1 R=
27
6

()

x k+1
y k +1
z k+1

0
13
5
= 1 + 2
5
27
1
6
6

2
5
1
6

1
5

2
5
1
5

0
2
3

2
3

xk
yk
zk

( )(
x k+1
y k +1
z k+1

)(

1
2
y
z
13
5
5
5
2
1
= 1 +
x z
5
5
27
1
2
x
y
6
6
3

x k+1
y k +1
z k+1

13 1
2
y
z
5
5
5
2
1
=
x
1
z
5
5
1
2
27
x
y
6
3
6

( )
Para x= 0; y=0; z= 0

x 1=

13
27
; y 1=1 ; z 1=
5
6

x 2=

13 1
2 27 3
(1 )
= =0.6
5 5
5 6
5

y 2=

2 13
1 27 147
+ 1+
=
=2.94
5 5
5 6
50

z 2=

( )

( )

( )

1 13 2
27 17
( 1 ) + = =3.40
6 5
3
6
5

x 3=

( )

13 1
2
( 2.94 ) (3.40 )=0.652
5 5
5

2
1
y 3= ( 0.6 )+1+ ( 3.40 )=1.92
5
5
z 3=

1
2
27
( 0.60 ) ( 2.94 )+ =2.44
6
3
6

x 4=

13 1
2
( 1.92 ) ( 2.44 )=1.24
5 5
5

2
1
y 4 = ( 0.652 )+ 1+ ( 2.44 )=1.7488
5
5
z 4=

1
2
27
( 0.652 ) ( 2.44 )+ =3.111
6
3
6

x 5=

13 1
2
( 1.7488 ) ( 3.111 )=1.00584
5 5
5

2
1
y 5= ( 1.24 )+1+ ( 3.111 )=2.1182
5
5
z 5=

1
2
27
( 1.24 ) ( 1.7488 ) + =3.127466
6
3
6

x 6=

13 1
2
( 2.1182 ) ( 3.127466 )=0.9253
5 5
5

2
1
y 6= ( 1.00584 )+ 1+ (3.127466 )=2.0278292
5
5
z 6=

1
2
27
(1.00584 ) ( 2.1182 )+ =2.9202
6
3
6
No

.
1
2
3
4
5
6

13/5
0.6
0.652
1.24
1.00584
0.9253

1
2.94
1.92
1.7488
2.1182
2.0278292

27/6
3.40
2.44
3.111
3.127466
2.9202

Falta terea
Mtodo de Euler

dy
=f (x)
dx
dy
=g (x)
dx
dy
=f
d x (x , y)

0
x

f (x) dx=f ( x )f
f

xf

x0

xf

f ( x) dx =( x f x 0) f (x , y)
x0

f (x )f ( x ) =( x f x 0)f (x , y)
f

f (x )=f ( x ) +( x f x 0 ) f (x , y)
f

f (x )=f ( x ) + x f (x , y)
f

f (x )=f ( x ) +h (f ( x , y ))
f

f (x )=f ( x ) +h (f ( x , y ))
f

y( x ) = y 0 +h( y )
f

EJEMPLO
Considere
y (2 )=4

y =0.1 y+ 0.4 x 2

, utilice el mtodo de Euler para obtener la aproximacin

h=0.1 y despus h=0.05

Datos:
y =0.1 y+ 0.4 x 2
y (2 )=4

ecuacin diferencial
condiciones iniciales

h=0.1 ; h=0.05

espacios

y 1=4+0.1 [ 0.1 4+ 0.4(2)2 ]=4.18


y 2=4.18+ 0.1 [ 0.1 4.18+ 0.4(2.1)2 ]=4.38
y 3=4.38+0.1 [ 0.1 4.38+ 0.4(2.2)2 ]=4.59
y 4 =4.59+0.1 [ 0.1 4.59+0.4 (2.3)2 ]=4.82
y 5=4.82+ 0.1 [ 0.1 4.82+0.4 (2.4)2 ]=5.07
RESUMEN DE VALORES
n
0
1

x
2.0
2.1

Y
4
4.18

y (2.5 ) usando

2
3
4
5

2.2
2.3
2.4
2.5

4.38
4.59
4.82
5.07

Considerando h=0.05
y 1=4+0.05 [ 0.1 4+ 0.4(2)2 ]=4.09
y 2=4.09+ 0.05 [ 0.1 4.09+ 0.4(2.05)2 ]=4.18
y 3=4.18+0.05 [ 0.1 4.18+0.4 (2.10)2 ] =4.28

y 10=4.97 +0.05 [ 0.1 4.97+0.4 (2.45)2 ]=5.10

RESUMEN DE VALORES
n
0
1
2
3
4
5
6
7
8
9
10

x
2.00
2.05
2.10
2.15
2.20
2.25
2.30
2.35
2.40
2.45
2.50

Y
4.00
4.09
4.18
4.28
4.38
4.49
4.60
4.72
4.84
4.97
5.10

RESPUESTA: La solucin del sistema es 5.10

TAREA
Considere el problema con valores iniciales
Euler para obtener una aproximacin de

y =0.2 xy ,

y= y o + h( y )
y 1=1+0.10 [ 0.2(1)(1) ]=1.02
y 2=1.02+0.10 [ 0.2 ( 1.10 )( 1.02 ) ]=1.04
y 3=1.04+ 0.10 [ 0.2 ( 1.20 ) ( 1.04 ) ] =1.07

y 5=1.10+0.10 [ 0.2 ( 2.50 ) ( 1.10 ) ]=1.13


RESUMEN DE VALORES
x
1.00
1.10
1.20
1.30
1.40
1.50

Y
1.00
1.02
1.04
1.07
1.10
1.13

Usando h=0.05
n
0
1

x
y
1.00 1.00
1.00 1.01

, utilice el mtodo de

y (1.5) usando h=0.1 y despus h=0.05

Usando h=0.1

n
0
1
2
3
4
5

y(1) =1

2
3
4
5
6
7
8
9
10
11

1.05
1.10
1.15
1.20
1.25
1.30
1.35
1.40
1.45
1.50

1.02
1.03
1.04
1.05
1.07
1.08
1.09
1.11
1.12
1.14

RESPUESTA: La solucin al sistema de 1.14

Potrebbero piacerti anche