Sunteți pe pagina 1din 10

EXAMEN FINAL DE METODOS NUMERICOS

1. En la siguiente tabla, use diferenciacin numrica para determinar:


a) ' 0.003
p p
f si x =
b) '' 0.213
p p
f si x =

x 0 0.05 0.10 0.15 0.20 0.25
f(x) 1.0000 1.0513 1.1052 1.1618 1.2214 1.2840


Solucin a):

Para 0.003
p
X = est en la parte inicial de la tabla entonces usamos N. Progresivo:

x f(x)
A
2
A
3
A
0 1.0000 513 26 1
0.05 1.0513 539 27 3
0.10 1.1052 566 30 0
0.15 1.1618 596 30
0.20 1.2214 626
0.25 1.2840


Segn la frmula de la derivada en funcin de P:
2 2 3
0 0
0
(2 1) (3 6 2) 1
( )
2! 3!
p
P f P P f
f f
h
A + A
'
= A + +

y
0
0.003 0
0.06
0.05
p
X X
P
h


= = =

2
0.003
1 (2(0.06) 1)0.0026 (3(0.06) 6(0.06) 2)0.0001
(0.0513 )
0.05 2! 3!
' f
+
= + +

=
0.003
1.00367 ' f










Como
3
0
| | 8 f A <
Solucin b):

Como 0.213
p
X = est al final de la tabla usamos N. Regresivo:


x f(x)
V
2
V
3
V
0 1.0000
0.05 1.0513 513
0.10 1.1052 539 26
0.15 1.1618 566 27 1
0.20 1.2214 596 30 3
0.25 1.2840 626 30 0



Segn la frmula de la segunda derivada en funcin de P:

2 2 3
0 0
0
(2 1) (3 6 2) 1
( )
2! 3!
p
P f P P f
f f
h
V + V
'
= V + +

2 3
0 0
1
( ( 1))
p
f f f P
h
''
= V +V

y
0
0.213 0.25
0.74
0.05
p
X X
P
h


= = =

0.213
1
(0.0030 0( 1))
0.05
'' P f = +
0.213
0.06 '' f =




2. Halle la solucin por el mtodo de Gauss Seydel del siguiente sistema:

1
1 2 3
1 2 3
1 2 3
10 2 0 1 10
3 16 2 2
4 3 20 3
x x x con yverificar suconvergencia
x x x
x x x
c

+ = =
+ + =
+ =







Como
3
0
| | 8 f V <
Solucin

Verificar Convergencia:

|10|>|-2+0| -> 10>2 Bien
|16|>|-3+2| -> 16>1 Bien
|20|> |4-3| -> 20>1 Bien

El sistema es diagonalmente dominante

Siendo
1 2 3
0 ; 1 ; 2 x x x = = = y siendo 0,1 c =

1ra Iteracin

0
2
1
1 2( ) 1 2(1)
0,3
10 10
x
x
+ +
= = =

0 1 3
2
2 3 2 2 0,9 4
0,06875
16 16
x x
x
+ +
= = =

0
1 2
3
3 4( ) 3( ) 1, 8 0,20625
0,07969
20 20
x x
x
+
= = =


2ra Iteracin

1
1
1 2( 0,06875)
0,08625
10
x
+
= =

1
2
2 3(0,08625) 2(0,07969)
0,13121
16
x
+
= =

1
3
3 4(0,08625) 3(0,13121)
0,15243
20
x
+
= =

Comprobando valores calculados talque sean 0.1 s

1 0
1 1
| | |0,08625 0,3| | 0,21375| 0.1 x x = = s Mal
1 0
2 2
| | | 0,13121 ( 0,06875)| | 0,19996| 0.1 x x = = s Mal
1 0
3 3
| | |0,15243 0,07969| |0,07274 | 0.1 x x = = s Bien

Dado que no se cumple la condicin se continua con una iteracin adicional:

3ra Iteracin

2
1
1 2(0,13121)
0,12624
10
x
+
= =

2
2
2 3(0,12624) 2(0,15243)
0,12962
16
x
+
= =

2
3
3 4(0,12624) 3(0,12962)
0,1442
20
x
+
= =


Comprobando valores calculados talque sean 0.1 s

2 1
1 1
| | |0,126240 0,086250| | 0,039990| 0.1 x x = = s Bien
2 1
2 2
| | |0,12962 0,13121| | 0,00159| 0.1 x x = = s Bien
2 1
3 3
| | |0,14420 0,15243| | 0,00823 | 0.1 x x = = s Bien

Dado que se cumple la condicin el resultado es:
1 2 3
0,12624 ; 0,12962 ; 0,1442 x x x = = =



3. Resolver la siguiente integral para 4 n= de
2 2
1
( )
( )
1
senx
sen x
dx
e

+
}

por el mtodo de Romberg.

Solucin

Sabemos que 1 a = y 2 b = ;

Generamos la tabla

K 1 2 3 4
k
n
1 2 4 8
k
h
1 0.5 0.25 0.125

1
2
k
k
n

= y
2 1 1
k
k k k
b a
h
n n n

= = =

Por Romberg tenemos que expresar:




11
R

21
R
22
R

31
R
32
R
33
R

41
R
42
R
43
R
44
R
1 k
R
2 k
R
3 k
R
4 k
R



Se sabe adems que :
2
( )
( )
1
senx
sen x
f x
e

=
+



I. Para la 1ra columna

Para 1 k =
11
1 1
[ (1) (2)] [0, 587998830 ( 0, 539491482)] 0, 024253674
2 2
R f f = + = + =


Para 2 k =
21
1
1
1
[0, 024253674 (1) ]
2
1
(1 ( )(1)
2
i
R f i
=
= + +



21
0,29634366 R =


Para 3 k =
31
2
1
1
[ (0.5) ]
2
1
0,29634366 (1 ( )(0.5)
2
i
R f i
=
= + +



31
0,89817183 R =


Para 4 k =
41
4
1
1
[ (0.25) ]
2
1
0, 89817183 (1 ( )(0.25)
2
i
R f i
=
= + +



41
1,19908592 R =




II. Para la 2da Columna utilizamos
1 ( 1) 1
2
4
, 2,3, 4
3
k k
k
R R
R k

= =

Para 2 k =


22
0,387040322 R =


Para 3 k =


32
1,098781220 R =


Para 4 k =


42
1,299390617 R =

III. Para la 3ra Columna utilizamos
2 ( 1) 2
3
16
, 3, 4
15
k k
k
R R
R k

= =

Para 3 k =


33
1,146230613 R =


Para 4 k =


43
1,312764576 R =


IV. Para la 4ta Columna utilizamos
3 ( 1) 3
4
64
, 4
63
k k
k
R R
R k

= =

Para 4 k =


44
1,315407973 R =



Resumen:


0,024253674


0,296343660 0,387040322

0,898171830 1,098781220 1,146230613

1,199085920 1,299390617 1,312764576 1,315407973


2 2
1
( )
( ) 1,315407973
1
senx
sen x
dx
e

=
+
}






4. Sea
2
2
'
x
x
xy e
y
x xe
+
=
+
con
(1)
0 y = ; halle
(1.15)
y aplicando RK4

Solucin

Las ecuaciones de Runge-Kutta de cuarto orden (RK4) estn dadas como:

1 1 2 3 4
( 2 2 )
6
i i
h
y y k k k k
+
= + + + +

donde:
1
1
2
2
3
3 3
( , )
( , )
2 2
( , )
2 2
( , )
i i
i i
i i
i i
k f x y
k h
k f x y h
k h
k f x y h
k f x h y hk
=
= + +
= + +
= + +


Como
0 0
(1) 0 1 , 0 y x y = = =
Hallar
1 1 1
(1.15) ( ) 1.15 , ? y y x x y = = =
Por tanto:

1 0
1.15 1 0.15 0.15 h x x h = = = =




Solucin
Segn la formula:

1 0 1 2 3 4
(1.15) (1) 1 2 3 4
( 2 2 )
6
0.15
( 2 2 )
6
h
y y k k k k
y y k k k k
= + + + +
= + + + +


Se sabe que :
2
2
' ( , )
x
x
xy e
y f x y
x xe
+
= =
+

Luego:

1
1 0 0
2 1
1
1,075
1
2 0 0
2 1,075
2
1,075
2
3 0 0
2 1,075
3
2(1)(0)
( , )
1 1
0,731058579
2(1,075)(0,054829393)
( , )
2 2 1,075 1,075
0,707924745
2(1,075)(0,053094356)
( , )
2 2 1,075 1,075
0,7070583
e
k f x y
e
k
k h e
k f x y h
e
k
k h e
k f x y h
e
k
+
= =
+
=
+
= + + =
+
=
+
= + + =
+
=
1,15
4 0 0 3
2 1,15
4
08
2(1,15)(0,106058746)
( , )
1,15 1,15
0,686685174
e
k f x h y hk
e
k
+
= + + =
+
=



Calculo de
1
y
1 (1.15) (1) 1 2 3 4
(1.15) 1 2 3 4
(1.15)
(1.15)
0.15
( 2 2 )
6
0 0.025( 2 2 )
0.025(0,731058579
2(0,707924745)
2(0,707058308)
0,686685174)
0,106192746
y y y k k k k
y k k k k
y
y
= = + + + +
= + + + +
= +
+
+
=



5. Sea
2 2
''' '' ' ( )
iv
x y x y x y x y x y x sen x + + =
con
(0) (0)
'' 1 y y = = y
(0) (0)
' ''' 0 y y = =

(a) Expresar como un sistema EDO de primer orden
(b) Segn (a), hallar
(0.2)
y por Euler


Solucin(a)

''' '' ' ( )
iv
y x y y x y y sen x = + +

1 1 2
2 2 3
3 3 4
4 4 4 3 2 1
' '
' ' ''
'' ' '''
''' ' ( )
iv
y y y y y
y y y y y
y y y y y
y y y y x y y x y y sen x
= = =
= = =
= = =
= = = + +



2 1
3 2
3 4
4 3 2 1 4
'
'
'
'
( ) '
y y
y y
y
y y
x y y x y y sen x y
= =
+ +



De las condiciones iniciales

(0) 1 (0)
(0) 2 (0)
(0) 3 (0)
(0) 4 (0)
1 1
' 0 0
'' 1 1
''' 0 0
y y
y y
y y
y y
= =
= =
= =
= =


1 (0) (0)
2 (0) (0)
(0)
(0) 3 (0)
(0) 4 (0)
1
'
0
'' 1
0
'''
y y
y y
y
y y
y y
= = =


Solucin(b)

Para EULER
1
' , 0,1,2,...
i i i
y y h y i
+
= + =

1
1 0
0
0.2
0
0.2
x
h x x
x
h
=
=

=

=



Para 0 i = y
1 0 0
0.2 ' y y y = +

1 (0) 2(0)
2(0) 3(0)
1
3(0) 4 (0)
4 (0) 4 (0) 3(0) 2(0) 1 (0)
0.2
0 0 (0)
y y
y y
y
y y
y y y y y sen
= +
+ +


1
1 0
0 1
0.2
1 0
0 1 1 0
y = +
+


1
1 0 1 0 1
0 1 0 0.2 0.2
0.2
1 0 1 0 1
0 2 0 0.4 0.4
y = + = + =

S-ar putea să vă placă și