Documentos de Académico
Documentos de Profesional
Documentos de Cultura
MN Problemas 2010 PDF
MN Problemas 2010 PDF
Contents
1 INTRODUCCION.
6 DIFERENCIACION
NUMERICA
INTEGRACION
14
23
8 INTERPOLACION DE FUNCIONES II
36
X
an
0.1 = 2e
2n
n=1
INTRODUCCION.
El presente documento es el libro de problemas donde se
encuentran resueltos todos los problemas presentes en el
libro de Mtodos Numricos publicado por los mismos autores. Nunca se insistir lo suficiente sobre la necesidad de
hacer problemas para comprender correctamente cualquier
teora y sus aplicaciones. Adems la manera de afrontar
el estudio de los problemas debe ser bien distinta a la
forma de estudiar teora. Primero se debe intentar hacer
los problemas sin mirar en absoluto la solucin y despus
de reflexionar e intentar resolverlo de diferentes formas,
muchas de las cuales nos llevarn a callejones sin salida,
se mirar la solucin. Es un hecho fcilmente constatable,
que se aprende mucho ms de un problema que no se ha
conseguido resolver, pero al que se ha dedicado suficiente
esfuerzo, que de un problema del cual se mira directamente
la solucin sin ninguna fase de reflexin previa. Adems
se tiende a olvidar con facilidad la tcnica de resolucin
de un problema sobre el cual no se ha reflexionado suficientemente. De todo ello se deduce que el estudio correcto de los problemas de una asignatura va reido con las
= 10
t
X
an 2tn
n=1
P
ahora bien, como el nmero m = tn=1 an 2tn es entero,
de la desigualdad anterior obtenemos
2te = 5 2m
pero esta igualdad implica que el nmero 2te es divisible
por 5 lo cual es imposible.
X
an
2n
n=1
1 1
1 1
1 1
1
1
, 2 + 4, 2 + 3, 2 + 3 + 4
2
2 2
2 2
2 2
2
2
1 1
1
1 1
1 1
1
e=0
+
, + , + , +
2 2 23 2 22 2 22 23
1
1
1
1
e = 1 1, 1 + 2 , 1 + , 1 + + 2
2
2
2 2
1
1
e = 2 2, 2 + , 2 + 1, 2 + 1 +
2
2
e = 1
e = 1
e=0
e=1
e=2
1 X an
+
2 n=2 2n
1
1
+ 2 = 0.75 a2 = 0
2 2
1
1
0.5625 < + 3 = 0.625 a3 = 0
2 2
1
1
0.5625 = + 4 = 0.5625 a4 = 1
2 2
0.5625 <
por tanto
0.0 703 125 = 23
1
1
+
2 24
0
-1
-2
0
1
2
1
2t+1
1
2
xmin = 2emin 1
t
X
1
= 2emax
n
2
n=1
xmax = 2emax
1
emax
=2
1 t
2
1
1
1
= 1 + t1
+
2
2 2t
2
1
2
1
2t+1
1
=1 t
1
2
1 2
1
2
1
23
1
24
1
23
1
24
1
25
2
2n
2t
2n
n=1
n=1
Consideremos primero el caso de sumar 1/2t . Si ak =
1 para todo k, entonces
t
!
X 1
1
1
e
+ t = 2e+1
2
n
2
2
2
n=1
1
M enor = 231
210
1
1
2 2t
= 2e1
P
Problema 9 Dado un nmero ze = 2e tn=1 a2nn , en una
aritmtica de precisin finita. Calcular el nmero inmediatamente inferior y superior a l en dicha aritmtica.
i=1
donde m es un nmero entero. Ahora bien esta igualdad es imposible porque resultara que 3 divide a 2.
ze = 2e
1
2
1
25
1
26
Problema
7 Sean
A
=
2 12 + 213 +
+
1
25
1
27
+
B
1
28
+
=
t
X
1
n
2
n=1
1
9.
1
24
Problema 8 Sean emin , emax , los valores mnimo y mximo del exponente e. Demostrar que si emin < e < emax ,
entonces los nmeros:
t
!
X an
1
e
t
2
2n
2
n=1
1
1
32
N aN = 2
+
2 22
5. 2 12 2110 . Solucin:
1. B A = 22
1
1
2
Si guiente = 2
+
2 210
10
!
1
1
X 1
2 211
Anterior = 2
=
2
1
2i
2
i=1
4.
B + A = 23
1
29
ze + 2e
y el inmediato inferior es
2e1
Solucin:
1
2t
t
X
1
n
2
n=1
Problema 10 (1 puntos) Calcular las races del polinomio P (x) = x2 2x + 0.01 evitando los errores de cancelacin.
Solucin:
0 + (2)
= 1
2
f (2) > 0, f (0) < 0, f (1) < 0
N uevo Intervalo = [2, 1]
Solucin:
x=
4 0.04
x1 =
= 1.995
2
0.01
x2 =
1.995
2+
1 + (2)
= 1.5
2
f (2) > 0, f (1) < 0, f (1.5) > 0
N uevo Intervalo = [1.5, 1]
x=
Solucin:
Solucin:
Algoritmo: Mtodo de la biseccin
variables reales x,a,b,tol
leer(a,b,tol)
si (a> b) entonces
PRINT INTERVALO INCORRECTO
parar
finsi
si (F(a)*F(b)> 0) entonces
PRINT NO HAY CAMBIO DE SIGNO EN EL
INTERVALO
parar
finsi
mientras (F(x)!=0 Y (b-a)>tol)
x=(a+b)/2
si((F(a)*F(x))<0) entonces
b=x
adems
A=X
finsi
fin mientras
_PRINT LA RAIZ ES x
fin algoritmo
real F(real x)
real a cos(x) + x x 6
devolver a
fin funcin
Solucin:
Solucin:
2
f (0) = 1
f (2) f (0)
f (2) > 0, f (0) < 0, f (1) < 0
N uevo Intervalo = [1, 2]
4
1
f (1) =
x=1
f (2) f (1)
3
4
f (2) > 0, f (1) < 0, f ( ) < 0
3
4
N uevo Intervalo = [ , 2]
3
x=0
x1 = 1
2(3)
10
=3
Solucin:
Algoritmo: Mtodo de la Regula-falsi
variables reales x,a,b,tol
leer(a,b,tol)
si (a> b) entonces
PRINT INTERVALO INCORRECTO
parar
finsi
si (F(a)*F(b)> 0) entonces
PRINT NO HAY CAMBIO DE SIGNO EN EL
INTERVALO
parar
finsi
mientras (F(x)!=0 Y (b-a)>tol)
x=a-F(a)*(b-a)/(F(b)-F(a))
si((F(a)*F(x))<0) entonces
b=x
adems
a=x
finsi
fin mientras
_PRINT LA RAIZ ES x
fin algoritmo
Solucin:
Solucin:
x1 = 1
3 + 33
x1 = 1 +
6
2
5
=
3
3
Solucin:
Solucin:
P 0 (x) = 6x2 + 6x 12
P (x) = ((2x + 3)x + 4)x + 5
P (2) = ((7)2 + 4)2 + 5
P (2) = (18)2 + 5 = 41
P 0 (x) = (2x + 7)x + 18
P 0 (2) = (4 + 7)2 + 18 = 40
Problema 21 Calcular el nmero mximo de races positivas y negativas del polinomio x5 35x3 + 30x2 + 124x
120, y localizarlas en un intervalo.
INTERPOLACION DE FUNCIONES I
Problema 24 Calcular el polinomio interpolador de Lagrange P3 (x) de la funcin f (x) = sen(x) en los puntos
0, 2 , y 3
2 .
maxk=0,..,n1 | ak |
= 125
| an |
Solucin: Puesto que sen(0) = sen() = 0 slo necesitamos los polinomios base de Lagrange centrados en 2 y
3
2 .
x (x ) x 3
2
3
P 2 (x) =
2
2 2
2
x (x ) x 2
3
P 3
(x) = 3 3
2
2
2
2 2
++
P (x) = P 2 (x) P 3
(x)
2
Problema 25 Calcular la expresin del error interpolacin al aproximar la funcin f (x) = sen(x) en el intervalo [0, 2] interpolando en los puntos 0, 2 , , 3
2 . y acotarlo superiormente.
Problema 22 Aislar en intervalos las races del polinomio P (x) = 20x3 45x2 + 30x 1.
Solucin: Teniendo en cuenta que en este caso
1+
races x = 1, 2
maxk=0,..,n1 | ak |
45
65
=1+
=
| an |
20
20
sen()
3
f (x) PN (x) =
x x
(x ) x
4!
2
2
65
todas las races estn en el intervalo [ 65
20 , 20 ]. Para aislar las races calculamos los ceros de la derivada P 0 (x) =
60x2 90x + 30, dichas races son 1 y 1/2. Por otro lado
tenemos
3
|f (x) PN (x)| 2 2
(2 ) 2
4!
2
2
65
) = 1260. 4
20
1
21
P( ) =
2
4
P (1) = 4
65
P ( ) = 307. 75
20
P (
1
por tanto hay una nica raz en el intervalo [ 65
20 , 2 ].
Problema 23 Aislar en intervalos las races del polinomio P (x) = 2x3 + 3x2 12x + 1
6
maxx[a,b] f N+1) () b a N +1
| f (x) PN (x) |
(N + 1)!2N
2
Problema 29 Calcular el polinomio interpolador de Lagrange P3 (x) de la funcin f (x) = 2x en los puntos
0, 1, 3, 4 utilizando las diferencias divididas de Newton.
Expresar el polinomio tomando en primer lugar x0 = 0,
x1 = 1, x2 = 3 y x3 = 4, y en segundo lugar x0 = 4,
x1 = 3, x2 = 1, y x3 = 0.
-1
0
0
-1
2
1
P (x) = 1 + x + x(x 1) + x(x 1)(x 3)
3
4
-3
22
f [x0 , x1 ] = 8
f [x1 , x2 ] = 3
f [x2 , x3 ] = 1
5
f [x0 , x1 , x2 ] =
3
2
f [x1 , x2 , x3 ] =
3
1
f [x0 , x1 , x2 , x3 ] =
4
5
1
P (x) = 16+8(x4)+ (x4)(x3)+ (x4)(x3)(x1)
3
4
]=
2
como puede observarse, al cambiar el orden de los puntos de interpolacin, el polinomio de Lagrange expresado
a travs de las diferencias divididas cambia totalmente,
salvo el ltimo coeficiente 14 que es el mismo en mbos casos pues como se haba demostrado en teora el valor de
f [x0 , x1 , x2 , x3 ] no depende del orden en que se toman los
puntos de interpolacin.
2
f [ , ] =
2
3
2
f [,
]=
2
4
f [0, , ] = 2
2
3
f [ , ,
]=0
2
2
3
8
f [0, , ,
]= 3
2
2
3
Problema 30 Dada una funcin f (x), y una secuencia de valores xn , aproximar f (x) por la parbola que
pasa por los puntos (xn1 , f (xn1 )) , (xn2 , f (xn2 )) y
(xn3 , f (xn3 )), calcular posteriormente las derivadas del
polinomio, y comprobar que coinciden con las frmulas dadas en el mtodo de Muller para el clculo de las
derivadas f 00 (xn1 ) y f 0 (xn1 ).
4
8
P (x) = x 2 x x
+ 3x x
(x )
2
3
2
Solucin: Si utilizamos las diferencias divididas para interpolar obtenemos f [xn1 ] = f (xn1 )
f (xn1 ) f (xn2 )
xn1 xn2
f (xn2 ) f (xn3 )
f [xn2 , xn3 ] =
xn2 xn3
f [xn1 , xn2 ] f [xn2 , xn3 ]
f [xn1 , xn2 , xn3 ] =
xn1 xn3
f [xn1 , xn2 ] =
cos
x [0, 8 ] (x)2
x si x 8
cos[0, 4 ] (x) =
2
cos[0, ] 2 sin[0, ] 2
si x > 8
El polinomio interpolador es
P (x) = f (xn1 ) + f [xn1 , xn2 ](x xn1 )+
f [xn1 , xn2 , xn3 ](x xn1 )(x xn2 )
por tanto
sen[0, 4 ] (x) =
00
Problema 31 Aproximar la funcin sen(x) en el intervalo [0, 4 ] utilizando el desarrollo de Taylor, y calcular el
valor de n a partir del cual la aproximacin es la mejor
posible dentro de una aritmtica de 32 bits.
sen(x) u Pn (x) = x
cos(x) u Pn (x) = 1
2n+1
(x)
| Pn (x) cos(x) | sen( )
8 (2n + 1)!
2n+2
(x)
| Pn (x) sen(x) | sen( )
4 (2n + 2)!
| Pn (x) cos(x) |
224 = 5. 96 108
cos(x)
por tanto:
| Pn (x) sen(x) |
224 = 5. 96 108
sen(x)
2n+1
| Pn (x) cos(x) |
tan( ) 8
cos(x)
8 (2n + 1)!
por tanto:
2n+2
| Pn (x) sen(x) |
4
sen(x)
(2n + 2)!
(2n + 2)!
x2 x4
x2n
+
+ .... + (1)n
2!
4!
(2n)!
2n+1
x
x
x
+
+ .... + (1)n
3!
5!
(2n + 1)!
Solucin: En primer lugar, la funcin cos(x) la desarrollamos por serie de Taylor como
sen[0,8 ] (x) si x
2 cos[0, 8 ] x2 sin[0, 8 ] x2
si x >
Problema 33 Calcular los polinomios necesarios para interpolar las funciones trigonomtricas cos(x) y sen(x) en
el intervalo [0, 8 ] en una aritmtica de 32 bits
= 2. 46 108
x3
x5
x2n+1
+
+ .... + (1)n
3!
5!
(2n + 1)!
un1 =
bn1 an1,n un
an1,n1
(x)2n+2
| Pn (x) sen(x) | sen( )
8 (2n + 2)!
un2 =
un3 =
..
.
por tanto:
2n+2
| Pn (x) sen(x) |
8
sen(x)
(2n + 2)!
para n = 3 se tiene que
2n+2
8
(2n + 2)!
Sumas
n1
..
.
M ultiplic.
n1
..
.
Divisiones
1
..
.
T otal
2n 1
..
.
3
2
1
0
3
2
1
0
1
1
1
1
7
5
3
1
Sumas = 0 + 1 + 2 + 3 + . . . + n 1 =
(n1)n
2
Problema 34 (1 puntos) Como se puede obtener la funcin y x , donde x, y son nmeros reales, utilizando las funciones ex y ln(x).
M ultiplicac. = 0 + 1 + 2 + 3 + . . . + n 1 =
Total = 1 + 3 + 5 + 7 + . . . + 2n 1 =
(n1)n
2
Divisiones = 1 + 1 + 1 + 1 + . . . + 1 = n
y x = ex ln y
(n1)n
2
(n1)n
2
+ n = n2
Problema
36 Resolver
por el
mtodo
de Gauss el sistema
1 2
x
3
=
2 1
y
0
Solucin:
1 2
x
3
=
2
1
y
0
2 1
x
0
=
1
2
y
3
2 1
x
0
=
32 y = y y = 2
y
3
0 32
x = 22 = 1
a11 a12
a1,n2
a1,n1
a1n
0 a22
a2,n2
a2,n1
a2n
..
..
.
.
..
.
.
.
.
.
.
.
.
.
.
0
0
0 an2,n2 an2,n1 an2,n
0
0
0
0
an1,n1 an1,n
0
0
0
0
0
an,n
9
k2 =
k=1
Divisiones = 1 + 1 + . . . + 1 = n 2
M ultiplicac. = (n 1) + (n 1) + . . . + (n 1) =
=(n 1)(n 2)
1 3 1 2 1
M M + M
3
2
6
Solucin:
A=
a11
a21
..
.
a12
a22
..
.
..
.
a1n
a2n
..
.
an,1
an,2
an,n
M ultiplicac. = 2
Sumas = 2
Total operaciones1 :
Divisiones = (n1)+(n2)+(n3)+. . .+1 =
aji
aii
= 2n
. . . ajn ain
aji
aii
1a
2a
..
.
(n 1)a
3n2 +n
6
(n1)n
2
n3 n
3
Fila
2a
3a
..
.
Division.
1
1
..
.
Multiplic.
n
n
..
.
Sumas
n
n
..
.
na
3a
4a
..
.
1
1
1
..
.
n
n1
n1
..
.
n
n1
n1
..
.
na
..
.
1
..
.
n1
..
.
n1
..
.
na
n3 n
3
n(n1)
2
n3 n
3
n(n1)
2
= 23 n3 + 12 n2 76 n
3
11
2a Iteracin:
10
+ 22 + 32 + ... + (n 1)2 =
2n3 3n2 +n
6
09
fin mientras
10
u(I) = u(I)/A(I, I)
11 fin mientras
12 devolver 0
2. Definida positiva:
Como |B| 6= 0, si B x
= 0 = x
=0
Una matriz se dice definida positiva si se cumple que
x 6= 0, x
t A
x > 0 =
0 1 2
u1
1
1 2 1 u2 = 0
2 1 0
1
u3
x=x
t BB t x
= (B t x
) B t x
=
= x
t A
= yt y =
la primera:
2 1 0 1
1 2 1 0
0 1 2 1
0
b11 0
B = b21 b22 0
b31 b32 b33
u2 =
12u3
1
u1 =
1+u2
2
=1
=
=
2
2
1
1
A = B Bt =
b11 0
= b21 b22
b31 b32
=1
=1
b211
b11 b21
=
b11 b31
b211 = 1
b11 = 1
1. Simtrica:
t
At = (B B t ) = (B B t ) = (B t ) B t = B B t = A
b11 b21 = 1
b21 =
2 Matriz
b11
0
0 0
b33
0
b11 b21
b221 + b222
b21 b31 + b22 b32
b21
b22
0
b31
b32 =
b33
b11 b31
b21 b31 + b22 b32
b231 + b232 + b233
1 4
5 6
6 26
A = B Bt,
aj1
f ilaj f ila2 a11
;j > 2 :
2 1 0 1
2 1 0 1
0 3 2 1
0 3 2 1 ceros
0 1 2 1
0 0
4 4
4
4
aj1
f ilaj f ila1 a11
;j > 1 :
2 1 0 1
2 1 0 1
0 3 2 1
1 2 1 0 ceros
0 1 2 1
0 1 2 1
u3 =
yi2 > 0
Problema 41 Descomponer
mtodo de Cholesky
1
A= 1
4
0 1 2 1
1 2 1 0 pivoteo
2 1 0 1
x
t A
x
definida positiva:
x 6= 0 =
> 0.
Esta es la definicin formal. De forma prctica, se comprueba que los
menores principales de la matriz sean positivos. Tambin se cumple
si todos sus autovalores son positivos: x
t A
x=x
t
x =
xt x
> 0.
1
b11
=1
b11 b31 = 4
b31 =
11
4
b11
=4
b221 + b222 = 5
p
p
b22 = (5 b221 ) = (4) = 2
b32 =
6b21 b31
b22
64
2
=1
i=1
Sumas
0
0
..
.
M ultiplic.
0
0
..
.
Divisiones
0
1
..
.
1
n1
1
1
..
.
i=2
1 0 0
1 1 4
= 1 2 0 0 2 1
4 1 3
0 0 3
..
.
i=n
0
1
..
.
n1
n1
n2
2
2
..
.
2
2
..
.
0
1
..
.
2(n2)
2(n2)
n3
..
.
n1
..
.
n1
..
.
0
i=3
Problema 42 Calcular el nmero de operaciones necesarias para resolver un sistema por el mtodo de Cholesky.
1
1
..
.
Solucin: Las operaciones que se realizan en cada iteracin vienen dadas por:
Sumas = M ultiplicac. =
Iteraci
on
i=1
i=2
..
.
i=n
Operaciones
j = 1 : b11 = a11
21
j = 2 : b21 = ab11
..
.
j = n : bn1 = abn1
p11
j = 2 : b22 = a22 b221
21 b31
j = 3 : b32 = a32 b
b22
..
.
21 bn1
j = n : bn2 = an2 b
b22
..
.
q
= (n 1) + 2 (n 2) + 3(n 3) + . . . + (n 1) =
Pn1
3
= i=1 i(n i) = n 6n
Divisiones = (n 1) + (n 2) + (n 3) + . . . + 1 =
Pn1
= i=1 i = n(n1)
2
El resultado final es:
= 2n
n
6
n(n1)
2
= 13 n3 56 n + 12 n2
n3
3
AA1 = Id =
1 0
0 1
.. .. . .
.
. .
0 0
0
0
..
.
1
c11
c21
..
.
c12
c22
..
.
..
.
c1n
c2n
..
.
cn1
cn2
cnn
1 0
0 1
.. .. . .
.
. .
0 0
0
0
..
.
1
l2 u2 = b2
l2 = a2 m1 u1 , u2 =
..
.
mn2 un2 + ln1 = an1
c11
c21
..
.
cn1
c12
c22
A .
..
cn2
..
.
c1n
c2n
A .
..
cnn
1
0
..
.
0
0
1
..
.
0
0
0
..
.
1
ln = an mn1 un1
, c.q.d.
2
4 0
x
6
1 0 4 y = 3
0 1 0
z
1
A=
a1
c1
0
..
.
b1
a2
c2
..
.
0
b2
a3
..
.
b3
..
.
cn1
0
0
0
bn1
an
1 u1 .
.
0
0
l1 0
m1 l2
0
.
0
=
0 1 .
A=
0
0 . . un1
.
.
0
0
. mn1 ln
0 . 0
1
l1
m1
=
0
0
l1 u1
m1 u1 + l2
.
0
bn1
, mn1 = cn1
ln1
mn1 un1 + ln = an
b2
, m2 = c2
l2
0
l2 u2
.
.
.
.
.
mn1
ln1 un1
mn1 un1 + ln
4
2
=2
i=2
m1 = 1
l2 = 0 2 (1) = 2
u2 =
4
2
=2
i=3
l1 u1 = b1
l1 = a1 , u1 =
b1
, m1 = c1
l1
m2 = 1
l3 = 0 2 (1) = 2
m1 u1 + l2 = a2
13
2
0 0
1 2 0
A = L U = 1 2 0 0 1 2
0 1 2
0 0 1
Iteraci
on
i=1
i=2
i=3
..
.
Sumas
0
1
1
..
.
M ultiplic.
0
1
1
..
.
Divisiones
1
1
1
..
.
i=n
(U x = y)
= 1 + 1 + . . . + 1 = (n 1)
Ly = b
2
0 0
y1
6
1 2 0 y2 = 3 ,
0 1 2
1
y3
= 3 (n 1)
El orden del algoritmo es O (3n)
DIFERENCIACION E INTEGRACION
NUMERICA
y1
y2 =
y3
6
2
3+y1
2
1+y2
2
3
= 3
1
1 2 0
x1
3
0 1 2 x2 = 3
0 0 1
1
x3
Solucin:
x1
3 2x2
1
x2 = 3 2x3 = 1
x3
1
1
quedndonos la solucin final x =
Analticamente
2x 2y
2 2
f (x, y) =
f (1, 1) =
1 1
1 1
1 1 1
Problema 46 Calcular el nmero de operaciones necesarias para resolver un sistema tridiagonal por el mtodo
de Crout.
f1 (x, y) = x y
f1 (1,1)
x =
1
4(0.1) 2 2 (f1 (1 + 0.1, 1 0.1) f1 (1 0.1, 1
1
4(0.1) 2 2 (f1 (1 + 0.1, 1 + 0.1) f1 (1 0.1, 1
1
2 1 (f1 (1 + 0.1, 1) f1 (1 0.1, 1)) =
4(0.1) 2
Solucin: Las operaciones que se realizan en cada iteracin vienen dadas por:
0.1)) +
+ 0.1)) +
Operaciones
l1 = a1 ; u1 = bl11
m1 = c1 ; l2 = a2 m1 u1 ; u2 =
..
.
ln = an mn1 un1
f1 (1,1)
y =
1
4(0.1) 2 2 (f1 (1 0.1, 1 + 0.1) f1 (1 0.1, 1
1
4(0.1) 2 2 (f1 (1 + 0.1, 1 + 0.1) f1 (1 + 0.1, 1
1
2 1 (f1 (1, 1 + 0.1) f1 (1, 1 0.1)) =
4(0.1) 2
b2
l2
14
0.1)) +
0.1)) +
+f
00
+f
000
+f
000
f2 (1,1)
x =
1
4(0.1) 2 2 (f2 (1 + 0.1, 1 0.1) f2 (1 0.1, 1
1
4(0.1) 2 2 (f2 (1 + 0.1, 1 + 0.1) f2 (1 0.1, 1
1
2 1 (f2 (1 + 0.1, 1) f2 (1 0.1, 1)) =
4(0.1) 2
0.1)) +
f 0 (xi )
(xi
(xi )
xl ) f (xxrr)f
xi
distintos
+ (xr
xr xl
(xi )
(xi
3!
xi )(xl xi )2 +
xl )(xr xi )2
= (xr xl )f 0 (xi ) +
+f
0.1)) +
0.1)) +
000
(xi )
(xr
3!
f 00 (xi )
2!
0+
2 2
f (1, 1) =
1 1
puntos
(xi )
(xr
3!
(xi )
(xi )
(xr xi ) f (x(xl )f
+ (xi xl ) f (x(xrr)f
=
xi )
l xi )
Problema 48 Dados 3
demostrar que la frmula:
xi )(xl xi )+
+ 0.1)) +
f2 (1,1)
y =
1
4(0.1) 2 2 (f2 (1 0.1, 1 + 0.1) f2 (1 0.1, 1
1
4(0.1) 2 2 (f2 (1 + 0.1, 1 + 0.1) f2 (1 + 0.1, 1
1
2 1 (f2 (1, 1 + 0.1) f2 (1, 1 0.1)) =
4(0.1) 2
(xi )
2! (xr
(xi )
+ O(h3 )
+(xi xl ) f (x(xrr)f
xi )
f 0 (xi )
(xi xl )
f (xi )f (xl )
f (xr )f (xi )
+(xr xi )
xr xi
xi xl
xr xl
+ O(h2 )
xl , xi , xr
Problema 49 Dados 3 puntos distintos xl , xi , xr calcular
el polinomio de Lagrange que interpola a f (x) en esos 3
puntos, calcular la derivada de ese polinomio en xi y comprobar que da la misma frmula que la presentada en el
problema anterior.
(xl )
xi ) f (xxi i)f
xl
f (x) =
00
(xi )
2! (xl
f 000 (xi )
(xl
3!
xi )2 +
xi )3
+f
(xi )
2! (xr
xi )2 +
000
f 0 (x) =
(xi )
(xr
3!
xi )3
+f
(xi )
2! (xl
xi ) +
000
(xi )
(xl
3!
xi ) +
f 000 (xi )
(xr
3!
xi )2 ]
f 0 (xi ) =
xi ) ]
f 0 (xi ) =
(xr ) +
(xi xl )+(xi xr )
(xi xr )(xi xl ) f
(xi ) +
f (xi )
(xi xr )
f (xi )
(xi xl )
(xi xr )+(xi xi )
(xl xi )(xl xr ) f
(xi xl )f (xr )
(xr xi )(xr xl ) +
(xxl )+(xxi )
(xr xi )(xr xl ) f
i xr )f (xl )
+ (x(xl x
i )(xl xr )
(xi )
(xi )
(xr xi ) f (x(xl )f
+ (xi xl ) f (x(xrr)f
=
xi )
l xi )
00
(xi ) +
i xl )+(xi xi )
+ (x
(xr xi )(xr xl ) f (xr ) +
+f
(xxl )+(xxr )
(xi xr )(xi xl ) f
(xr )
(xi xl ) f (x(xi i)f
= (xi xl )[f 0 (xi )+
xr )
00
(xi )
+ f 2!
(xr
(xr ) +
r )+(xxi )
+ (xx
(xl xi )(xl xr ) f (xl )
(xi )
(xr xi ) f (x(xl )f
= (xr xi )[f 0 (xi )+
l xi )
00
(xxi )(xxl )
(xr xi )(xr xl ) f
(xi ) +
i )(xxr )
+ (x(xx
f (xl )
l xi )(xl xr )
(xxr )(xxl )
(xi xr )(xi xl ) f
(xr xl ) f 0 (xi ) =
xl )(xr xi )+
15
(xr xl )f (xi )
(xi xr )
(xr xl )f (xi )
+
(xi xl )
(xl )
xl )f (xr )
+ (xi(x
r xi )
(xr xl ) f 0 (xi ) =
(xi xr )f (xl )
(xl xi )
xl )f (xr )
+ (xi(x
r xi )
f 00 (xi ) 2
(xr xi )f (xl )
(xi xl )
(xr xi )f (xi )
(xi xl )
xr f (xi )
(x
+
r xi )
(xi xl )f (xr )
(xr xi )
(xr xl ) f 0 (xi ) =
xl f (xi )
(xi xl )
(xi xl )f (xi )
(xr xi )
xi f (xi )
(xr xi )
+f
xi f (xi )
(xr xi )
00
(xi )
2!
(xr xi ) +
f 000 (xi )
3!
(xr xi )
xr f (xi )
(xr xi ) +
00
(xi )
2!
(xl xi ) +
f 000 (xi )
3!
(xl xi )
+f
+f
f 00 (xi )
2!
f 0 (xi ) +
000
(xi )
3!
f (xl )f (xi )
(xl xi )
(xr xi )
f 0 (xi ) +
000
(xi )
3!
(xr xi ) +
f 00 (xi )
2!
(xl xi ) +
(xl xi )
simplificando,
f 0 (xi ) =
xr xl
xl f (xi )
(xi xl )
(xr xl ) f (xi ) =
f (xi )f (xl )
xi xl
i xl )
(xr xi )f (xl )
(xi xl )
xi f (xi )
(xi xl )
agrupamos trminos,
(xr xl ) f 0 (xi ) =
f (xr )f (xi )
xr xi
f (xr )f (xi )
(xr xi )
+f
000
(xi )
3!
f (xi )f (xl )
(xi xl )
f 00 (xi )
2!
(xr xl ) +
(xr xi )2 (xl xi )2
f 00 (xi ) 2
2
Solucin:
2
3
a f (xi + h) = f (xi ) + hf 0 (xi ) + h2 f 00 (xi ) + h6 f 000 (xi ) +
O(h4 )
1. b f (xi h) = f (xi ) hf 0 (xi ) +
h3 000
4
6 f (xi ) + O(h )
h2 00
2 f (xi )
a b 2c = 0
Sistema: a2 + 2b + 2c = 0
a
b
4c
6 6 3 =1
1, b = 3, c = 1.
Solucin:
((xr xi )2 (xl xi )2 )
xr xl
f (xr )f (xi )
f (xi )f (xl )
(xr xi )
(xi xl )
xr xl
+ O(h)
a =
f 000 (xi ) =
f 000 (xr )
3!
f 00 (xi ) 2
f (xi )f (xl )
(xr xi )
(xi xl )
xr xl
f (xr )f (xi )
f 00 (xi ) 2
16
f (x )f (x )
x ix +hl
(xi +hxi )
( i i )
xi +hxi +h
f (xr )f (xi )
f (xi )f (xl )
h
h
=
O(h2 ) =
=
f 000 (xi )
3!
(h h) +
+ O(h2 )
xl f (xl )
f (xi )f (xl ) +
f (xr )f (xi )
(xl )
f (xxi i)f
xi f (xi ) xi xl
xr xi
xl
xr xl
f (xr )f (xi )
xr xi
xr f (xr )
Polinomio de Lagrange:
f (xi )f (xl )
xi xl
f (xi )f (xl )
f (xr )f (xi )
xr xi
xi xl
xr xl
(x xl ) (x xi )
Derivamos el polinomio:
0
P (x) '
+
f (xi )f (xl )
xi xl
f (xi )f (xl )
f (xr )f (xi )
xr xi
xi xl
xr xl
f (xi )f (xl )
f (xr )f (xi )
xr xi
xi xl
xr xl
Fxx + Fyy =
(x xl ) +
(x xi )
f (xi )f (xl )
f (xr )f (xi )
xr xi
xi xl
xr xl
, c.q.d.
(xi xl )
f (xi )f (xl )
f (xr )f (xi )
+(xr xi )
xr xi
xi xl
xr xl
(0)
(1)
(01) f (4)f
+(40) f (0)f
40
01
41
10
91
4 +4 1
6
3
91
h2
2 Fyy
h2
2 Fyy
f (xr )f (xi )
f (xi ) 2
h2
2 Fxx
F (x + h, y) + F (x h, y) + F (x, y + h) +
24
3
f (xi )f (xl )
(xr xi )
(xi xl )
xr xl
F (x h, y) = F (x, y) hFx +
= 2
00
discretizando
Fi+1,j + Fi1,j + Fi,j+1 + Fi,j1 4Fi,j
F =
h2
10
= 2 (40)41(01) = 2 2+1
3 =2
17
0
0
Fx = 2h
+ (1 ) 4h
=0
Problema 56 Calcular una aproximacin del laplaciano de una funcin F (x, y) en el punto (x, y) =
(0, 0) conociendo los siguientes valores: F (0, 0) = 0,
F ( 12 , 0) = 14 , F ( 12 , 0) = 14 , F (0, 12 ) = 14 , F (0, 12 ) = 14 ,
F ( 12 , 12 ) = 12 , F ( 12 , 12 ) = 12 , F ( 12 , 12 ) = 12 , F ( 12 , 12 ) =
2
1
1 1
1
Fy = (1 ) 1
2h + 4h = 2 h 2 h = 2h
1
1 F (hi0 , hj0 ) = (Fx , Fy ) = 2h
,0
1
2
1
4
0
1
4
El valor de h es
Aproximamos el laplaciano promediando las dos expresiones del ejercicio anterior. Si no realizramos este
promediado, no se tendran en cuenta todos los valores de
la funcin.
8
3
2
3
4
3
=4
+ 1 23
1
1
1
1
4+4+4+4
1
4
1
Fy =
4h
2 2
0
2 2
0
0
0
1
1 1
Fy = (1 ) 1
2h + 4h = 2 h
1
4h
1 2
4 h
1
2h
2
2
2
2
1
4h
= ( 2) = 2 2
= ( 2) = 2 + 2
Fi+1,j Fi1,j
+
2h
Fi+1,j Fi1,j
=2 21
+
4h
F
F
+F
F
+ 2 2 i+1,j+1 i1,j+14h i+1,j1 i1,j1
2 2
0
2 2
Fy = (1 )
+
Fi,j+1 Fi,j1
+
2h
F
= 2 2 1 i,j+14h i,j1 +
F
F
+F
F
+ 2 2 i+1,j+1 i+1,j14h i1,j+1 i1,j1 ,
(1, 1)
2 | 2|
Fx = (1 )
1
0
0
1 2
4 h
2
2 2
1
2 2
21
0
2 21
1 2
4 h
2 2
1
Fx =
2 2
1
4h
2 2
1
1
1
1
2+2+2+2
2 14
1
4h
2
3
F (0, 0) =
1
1 1
Fx = (1 ) 1
2h + 4h = 2 h
F
+F
+Fi1,j1 +Fi+1,j1 4Fi,j
i+1,j+1 i1,j+1 2h
+
2
+ (1 )
0
0
0
y calculamos su gradiente:
1
2
1
4
1
2
1
2.
F =
1
0
0
1
0
0
Problema 58 Calcular una aproximacin del gradiente de una funcin F (x, y) en el punto (x, y) =
(0, 0) conociendo los siguientes valores: F (0, 0) = 0,
F ( 12 , 0) = 12 , F ( 12 , 0) = 12 , F (0, 12 ) = 12 , F (0, 12 ) =
18
1
2,
F ( 12 , 12 )
1
F ( 2 , 12 ) =
= 0, F ( 12 , 12 ) = 0, F ( 12 , 12 ) = 1,
1
2. n = 3
3
P
0
1
2
1
2
= 0.55555555555 P (0.7745966692) +
0
1
2
1
2
+0.88888888 P (0) +
+0.55555555555 P (0.7745966692) =
F
F
Fx = 2 2 1 i+1,j4h i1,j +
F
F
+F
F
+ 2 2 i+1,j+1 i1,j+14h i+1,j1 i1,j1 =
=2
=
1
2
21
21
h
1
1
2+2
4h + 2
1 2 2
1
= 2h
2 h
= . 4
R1
1+1
2 4h =
F
F
Fy = 2 2 1 i,j+14h i,j1 +
F
F
+F
F
+ 2 2 i+1,j+1 i+1,j14h i1,j+1 i1,j1 =
=2
21
= 12
21
h
1
1
2 2
4h
+ 2 2 11
4h =
1 2 2
2 h
wk P (xk ) =
k=1
1
= 2h
Fx
1
2h
F =
=
=
1
1
Fy
2h
Solucin:
R
1. 2 cos(x)dx = sin(x)]2 = 1 (1) = 2
R1
2
cos(x)dx = 1 cos( 2 t) 2 dt
2
2
3 2 cos (0) + 3 2 cos 4
= 13 2 + 13 = 2. 528 2
x x4 dx
1
2
3 2
cos 4 +
Problema 61 Encontrar cual sera la frmula de integracin numrica en el intervalo [1, 1] utilizando un slo
punto de interpolacin, y de tal manera que sea exacta
para polinomios de grado 1
Solucin:
N
R1 3
P
4
x
wk P (xk )
x
dx
'
1
k=0
P (x) = x3 x4
1. n = 2
2
P
wk P (xk ) =
k=1
= 1 P (0.5773502692 + 1 P (0.5773502692) =
= . 222 22
19
1dx = 2 = w0 f (x0 ) = w0
w0 = 2
xdx = 0 = w0 f (x0 ) = w0 x0
=
(w
0 f x02+1 + w
1 f x12+1 + +
2
x2 +1
w
2 f
)=
2
= 12 (0.55555556 f 0.7745966692+1
+
2
0+1
+0.8888888889 f 2 +
+0.55555556 f 0.7745966692+1
)=
2
x0 = 0
Problema 62 A partir de los ceros y de los pesos asociados a los polinomios de Legendre, y dado un intervalo
[a, b] cualquiera, encontrar los puntos xk , y los pesos wk
que hacen exacta hasta el orden 2N 1 una frmula de
integracin numrica sobre el intervalo [a, b]
= 8. 333 3 102
2
x x2 ex dx
f (x) dx '
N
X
w
k f (
xk )
R 3
2
x x2 ex dx = 12 = . 886 23
k=1
f (x) = x3 x2
este cambio representa la recta que pasa por los puntos -1,
1 para t = a, b, respectivamente.
Z
f (x) dx =
f (x) dx '
f
1
N
X
k=1
(b a) t + b + a
2
ba
w
k
f
2
R 3
P
2
wk f (xk )
x x2 ex dx =
k=1
ba
dt
2
(b a) x
k + b + a
2
= w1 f (x1 ) + w2 f (x2) =
= 0.8862269255 f (0.707106781) +
+0.8862269255 f (0.707106781) =
= . 886 23
x x3 dx
Solucin:
1
dx
1+x2
R1 2
x x3 dx =
0
f (x) =
1
12
= 8. 333 3 102
ex
1+x2
1
dx
1+x2
f (x) = x2 x3
2
ex
ex dx
1+x2
= 0.8862269255 f (0.707106781) +
+0.8862269255 f (0.707106781) =
R1 2
P
wk f (xk ) =
x x3 dx =
0
= 1. 948 2
k=1
20
x x2 ex dx
Solucin:
R1 3
x x4 dx = 25 = . 4
1
f (x) = x3 x4
R1 3
x x4 dx =
1
Solucin:
R 3
x x2 ex dx = 4
0
1
R 3
P
wk f (xk ) =
x x2 ex dx =
0
R0 3
R1
x x4 dx + 0 x3 x4 dx '
1
f (xk+1 )+f (xk )+4f
'
k=0
= w0 f (x0 ) + w1 f (x1 ) =
= 0.8535533903 f (0.585786438) +
+0.1464466093 f (3.414213562) =
'
= 4.0
+
Problema 67 Calcular una frmula de aproximacin
numrica de la integral siguiente
Z
f (x)ex dx
R
t=xa
t
f (t)e dx =
=
0
dt = dx
R
R
= a f (x a)ex+a dx = ea a f (x a)ex
0
ea
f (t)e dx =
N
P
R1 R1
1 1
F (x, y) dydx =
N
P
w
k
k=1
w
k f (
xk )
f (x a)ex = ea
N
P
w
k
k=1
N
P
k=1
k+1 +xk
2
#0
(xk+1 xk )
(xk+1 xk )
#1
(0 + 1) +
(1 0) =
Solucin:
k=0
f (0)+f (1)+4f (
6
x
1+0
2
k+1 +xk
2
5
= 12
= . 416 67
x
wk f (xk a)
R1
N
R1 P
1
w
k F (
xk , y) dy =
k=1
F (
xk , y) dy
N
P
w
j F (
xk , yk )
j=1
N
P
k F (
W
xk , yk ) ,
k,j=1
donde
k = w
k w
j
W
w
k =
w
j =
x x4 dx
R 1
1
T
(x
xi )
T i6=k
xk
xi )
i6=k (
T
(y
yi )
T i6=k
yk
yi )
1
i6=k (
R 1
y los x
k e yk son los ceros del polinomio de Legendre.
Problema 70 Deducir la frmula de integracin
numrica sobre un rectngulo [a, b]x[c, d] resultante
de aplicar la integracin numrica en una variable en los
intervalos [a, b], y [c, d].
21
Solucin:
RbRd
a
F (x, y) dydx =
N
P
w
k
k=1
N
P
w
k
k,j=1
w
k F (
xk , y) dy =
k=1
F (
xk , y) dy
N
P
j=1
k=1
N
P
Rd
N
Rd P
w
j0 F
w
k w
j0 F
(
xk , yk )
x
0 1+ey2
(
xk , yk ) ,
R2
0
x
k = (ba)xk2+(b+a)
w
k = (ba)
2 wk
(dc)yk +(d+c)
yk =
2
w
j0 = (dc)
w
k
2
dy = 2. 144 3
wk P (xk ),
(ba)
xk
2
(ba)
k
2 w
(b+a)
2
=x
k + 1,
=w
k ,
P (x) = x
R2
dy =
tenemos:
x2 y 2 dxdy =
1
P
2
1+ey2
k=0
1. wk =
1 1
2
1+ey2
xdx =
xk =
R1 R1
dxdy =
xdx =
= . 444 44
= w1 P (x1 ) + w2 P (x2 ) =
= (0.5773502692 + 1) + (0.5773502692 + 1) =
= 2.0
P (x) = x2
P (y) = y
R1 R1
1
1
1+ey2
por Hermite,
x2 y 2 dxdy =
1
=
=
dy =
R1
2
P
k=1
x2 dx
R1
w
k P (
xk )
y 2 dy =
2
P
1. P (y) =
1
P
w
j P (
yk ) =
k=1
1
ey2 +1
ey dy =
2
P
k=1
1
ey2 +1
wj P (yk ) =
k=0
= (w
1 P (
x1 ) + w
2 P (
x2 ))
(w
1 P (
y1 ) + w
2 P (
y2 )) =
= w1 P (y1 ) + w2 P (y2 ) =
= 0.8862269255 P (0.707106781) +
= (P (0.5773502692) + P (0.5773502692))
+0.8862269255 P (0.707106781) =
(P (0.5773502692) + P (0.5773502692)) =
= 1. 103 3
22
w
j P (
yk ),
1. Para 1 punto:
x
0 1+ey2
x2 ydxdy =
= F ( 23 , 23 )Area(T ) =
=
2 2
3
2
32
16
27
= . 592 59
2. Para 3 puntos:
Solucin:
x2 ydxdy =
= 13 Area(T ) F ( 22 , 0) + F ( 22 , 22 ) + F (0, 22 ) =
2
3
R 1 R 1x
= . 666 67
(ax + by + c) dydx = 16 a + 16 b + 12 c
8
15
la frmula
1. kxkp = 0 x = 0;
= . 533 33
p
p
|x1 |p + |x2 |p = 0 = |x1 |p + |x2 |p = 0,
4 4
12 4
4 12
= Area(T )[ 25
48 F ( 10 , 10 ) + F ( 10 , 10 ) + F ( 10 , 10 )
R 2 R 2x 2
x2 ydxdy = 0 0
x y dydx =
x2 ydxdy =
= . 533 33
1
3
b = c = 0, a = 1; 16 a = w0 x0 a x0 = 13 ,
2 2
27
48 F ( 3 , 3 )] =
1
2
a = c = 0, b = 1; 16 b = w0 y0 b y0 =
2
3
3. Para 4 puntos:
+ 16 b + 12 c = w0 (x0 a + y0 b + c)
a = b = 0, c = 1; 12 c = w0 c w0 =
1=
1 1 1
1
El rea del tringulo Area(T ) = 2 2 0 0
0 2 0
=2
23
2. kxkp = || kxkp , K y x E;
Solucin:
p
p
p
kxkp = p |x1 | + |x2 |
kxkp =
kxkp =
p
p
||p |x1 |p + ||p |x2 |p
q
PN
p
i=1
|xi |
PN
p
p
Limp
=
i=1 |xi |
p
p
||p (|x1 |p + |x2 |p )
P |xi | p
=
= Limp p |xmax |p N
i=1 |xmax |
p
p
p
kxkp = || p |x1 | + |x2 |
PN i | p
=
= Limp |xmax | p i=1 |x|xmax
|
= |xmax | Limp
p
p
p
p
|x1 + y1 | + |x2 + y2 | kxkp + kykp =
= |xmax | Limp
= |x1 + y1 |p + |x2 + y2 |p
p
p
p
p |x1 |p + |x2 |p + p |y1 |p + |y2 |p
Limp
Para p = 2 tenemos:
|x1 + y1 |2 + |x2 + y2 |2
|xi |
|xmax |
r
PN
p
i=1
N
i=1
|xi |
|xmax |
|xi |
|xmax |
|xi |
|xmax |
p 1/p
1 si xi = xmax
,
0 si xi 6= xmax
entonces
q
2
q
2
2
2
2
|xmax | Limp
N
i=1
|xi |
|xmax |
p 1/p
p
p
x21 +x22 +2 (x21 + x22 ) (y12 + y22 )+y12 +y22 =
= |xmax |, c.q.d.
= x1 y1 + x2 y2
p
p
(x21 + x22 ) (y12 + y22 ) =
Problema 77 Tomar N = 2, y dibujar el lugar geomtrico de los vectores x = (x1 , x2 ) que verifican
1. kxk1 < 1
2. kxk2 < 1
3. kxk < 1
= 0 (x1 y2 + x2 y1 ) ,
24
p
(x21 + x22 )
|xmax |
x2max
p
(x21 + x22 )
x21
Solucin:
x22
kABxk kBxk
kxk kBxk ,
supx
kABxk
kxk
supx
kABxk kBxk
kBxk kxk
supx
supx
kABxk kBxk
kBxk kxk
kBk kAk ,
= supx
kBxk
kxk
supx
kABxk
kBxk
entonces
2
x21 + x22 (|x1 | + |x2 |)
supx
kABxk
kxk
x1 + x2 = 0 x1 = x2
x1 + x2 = 0
2x3 = 0
x3 = 0
x
1 =
1
2
1
2. 2 , 3 = 2
1
1 1 0
x1
0
1 1 0 x2 = 0
0
0 0
0
x3
x1 + x2 = 0 x1 = x2
x1 x2 = 0
x3 libre
x3 libre
0
,x
3 = 0
x
2 =
1
0
1
2
1
2
1
2
1
1
2
1
2
La matriz,
xi 6= 0 E, i CAxi = i xi
Axi = i xi = (A i Id)xi = 0
B=
como xi 6= 0, entonces
0
0
1
|A i Id| = 0 = P () = 0, c.q.d.
1 0
A=
1 1
1 1 0
1 1 0
0 0 2
Solucin:
1. kAk2 =
p
(AT A)
s
q
2 1
= 3+12 5 = 1. 618
kAk2 =
1 1
1
1
0
1
1
0 = ((1 )2 1)(2 ) = 0
0
0
2
1 = 0
2 = 2
3 = 2
2
1
1
1
2. kAk1 = maxj
= 1 3 + 2 = 0, =
|a
|
ij
i=1
P
2
kAk1 = max(1, 2) = 2
3. kAk = maxi
0
1 1 0
x1
1 1 0 x2 = 0
0
0 0 2
x3
2
j=1
|aij | =
kAk = max(2, 1) = 2
26
3
2
1
2
2 1 0
2. A = 1 2 1
0 1 2
Solucin:
El condicionamiento de una matriz (A) =
2
2
2
1
1 = (2 ) (1 )2 1
1. 2
2
1
1
2 [2(1 ) + 2] 2 [2 + 2(1 )] =
(2 ) 2 2 8 (2 ) = (2 ) 2 2 + 8
1
1
= (At ) At AAt i (At ) IdAt =
1
= AAt i (At ) At =
de donde obtenemos
= |AAt i Id|
1 = 2
2 = 2
3 = 4
Esta matriz es simtrica, luego posee una base ortonormal 3 de autovectores, con lo que el condicionamiento de A se puede calcular como:
maxi {|i |}
(A) = kAk2 A1 2 =
mini {|i |}
maxi {| i |}
4
(A) = kAk2 A1 2 =
= =2
mini {| i |}
2
2
1
0
2
1
2. 1
0
1
2
Axi = i xi =
= A1 Axi = A1 i xi =
=
1
i xi
1 = 2
1 = 2 + 2
1 = 2 2
= A1 xi =
= A1 xi = 0i xi ,
Tambin es una matriz simtrica, con lo que sus autovectores forman una base ortonormal y su condicionamiento es:
2
i
i
i
mini {|i |}
1
maxi {| i |}
2+ 2
(A) = kAk2 A
=
2
=
3+2
=
2
mini {| i |}
2 2
entonces
(A) = kAk2 A1 2
(A) = maxi {|i |}
(A) =
maxi {|i |}
mini {|i |} ,
= 4 10 + 62 3 = 0
1
mini {|i |}
Solucin:
c.q.d.
Bxi = i xi =
= R1 AR xi = i xi =
2 2 2
1. A = 2 1 1
2 1 1
= RR1 ARxi = Ri xi =
3 Vectores
ortonormales:
dos vectores son ortonormales si cumplen
0 si i 6= j
T
lo siguiente, xi xj =
1 si i = j
27
= ARxi = i Rxi =
Problema 88 Demostrar
trigonomtricas
las
siguientes
igualdades
= Ayi = i yi ,
q
tan() = cot(2) + sign(cot(2)) 1 + cot2 (2)
1 1
A=
1 1
1
cos = p
1 + tan2 ()
cos sin
R=
sin cos
Solucin:
B = R1 AR =
cos sin
1 1
cos sin
=
=
sin cos
1 1
sin cos
2 cos sin + 1
2 cos2 1
=
=
2 cos2 1
2 cos sin + 1
b1 0
=
0 b2
Se tiene que cumplir que los elementos que estn fuera
de la diagonal sean iguales a cero,
2 cos2 1 = 0
r
1
cos =
2
De esta igualdad se obtiene el valor del ngulo :
=
cos(2)
sin(2)
1. cot(2) =
cos2 ()sin2 ()
2 sin() cos()
1tan2 ()
2 tan()
2 cot(2)
4 cot2 (2)+4
p
1 + cot2 (2)
p
3
, =
4
4
Como sign (tan()) = sign (cot()) , podemos expresar la anterior igualdad de la siguiente forma:
q
tan() = cot(2) + sign(cot(2)) 1 + cot2 (2)
1
cos 4
sin 4
2 12 2
2
=
R1 =
sin 4 cos 4
12 2 12 2
1
cos 3
2 2 12 2
sin 3
4
4
=
R2 =
sin 3
cos 3
12 2 12 2
4
4
1
1+tan2 ()
2. cos =
1
u
sin2 ()
1+ cos2 ()
1
cos2 ()+sin2 ()
cos2 ()
p
cos2 () = cos
b1 = 0, b1 = 2
b2 = 2 cos sin + 1
b2 = 2, b2 = 0,
luego las soluciones posibles son:
0 0
2 0
B1 =
, B2 =
0 2
0 0
28
sin()
cos()
cos = sin
4. cot(2) =
tan()+sin(2)
2 sin2 ()
sin()
cos()
+2 sin() cos()
2 sin2 ()
cos(2)
sin(2)
(2 cos2 ()1)
2 sin() cos()
= cot(2)
a11
ap1
ai1
aq1
an1
a0pq = 0
1
0
0 cos
0
0 sin
0
0
j 6= p, q
j 6= p, q
(a
0
0
0
0
1
A=
ai1 apj aij aqj ani
aq1 apq aqj aqq aqn
an1 apn ani aqn ann
1
0
0
0
0
0 cos
. sin 0
.
1
.
0
Rpq () = 0
0 sin . cos 0
0
0
0
0
1
0
0
0 sin
1
0
0 cos
0
0
B = R1 AR =
1
0
0 cos
0
=
0
0 sin
0
0
0
0
1
0
0
an1
apn
ani
aqn
ann
0
0
sin 0
0
0
=
cos 0
0
1
aq1
apq
aqj
aqq
aqn
ai1
apj cos aqj sin
aij
apj sin + aqj cos
ani
a0qj
ai1
apj
aij
aqj
ani
a11
ap1 cos aq1 sin
ap1 cos aq1 sin app cos2 + aqq sin2 apq sin 2
ai1
apj cos aqj sin
=
(app aqq )
ap1 sin + aq1 cos
sin 2 + apq cos 2
2
an1
apn cos aqn sin
ap1
app
apj
apq
apn
a0pq = 0 =
(app aqq )
2
tan(2) =
2apq
(aqq app )
aqq = app +
2apq
tan(2)
2apq
tan(2)
sin2
= app cos2 +
+
sin
1
= arctan 2 = . 553 57
2
= 2 tan()
1
a11 = 2 + tan
arctan 2 = 2. 618
2
a33 = 1 + tan()
2
a33 = 1 tan
2. 618 0
0
1
0
B = R1 AR = 0
0
0 0. 381 97
cos 0 sin
0.850 65 0 0.525 73
0
1
0
0
1
0 =
R () =
0.525 73 0 0.850 65
sin 0 cos
+apq sin 2 =
=
sin2 +
2 0 1
A= 0 1 0
1 0 1
2 1
A=
0 1
3 0
A=
1 1
Solucin:
cos 0 sin
0
1
0
R () =
sin 0 cos
(app aqq )
2
2apq
(aqq app )
2
tan(2) =
(1 2)
=
1
arctan 2 = . 381 97
2
a21 = a32 = 0
= aqq
1. A =
arctan (2)
2
2 1
0 1
1
u2 = A kuu1 k =
30
2 1
0 1
3
2 2
1
2 2
u =
2
A kuu2 k
2 1
0 1
7
10 52
1
10 5 2
2
2 5
1
2
2 5
2 1
0 1
3
2 2
1
10 2
7
10 2
1
10 2
x =
2. A =
3 0
1 1
3 0
1 1
27
1066
2132
26
2 ,
2
533 1066 26 2
. 997 79
6. 651 9 102
3 0
1 1
2 2
,
2
u3 = A kuu2 k =
1
2
1
2
n
sign u4 , u3
1. ku1 k = 1 u2 =
2 1
1 1
1
1
ku2 k = 1 u3 =
2 1
1 1
1
0
1
0
2
1
2 1
u =
26 = 2. 549 5
2
3 0
1 1
Solucin:
9
1066 26 2
2132
1
1066 26 2
2132
u2 = A kuu1 k =
=
3
u = 1 1066 = 2. 511 5
13
= 3. 109 8,
1066 26 2
21322782
.
958
8
65
026
x =
=
,
282
. 284 09
1066 26 2
533 65 026
15
226 1132
1
226 113 2
4 1
u =
113 = 2. 126
5
4
u = 1 65 026 = 3. 109 8
82
3
u = 5 = 2. 236 1
9
26 2
26
1
26 2
26
3
A kuu3 k
u4 = A kuu3 k =
2
u = 5 = 2. 236 1
u =
1
2
1
2
3
26
26 2 =
1
13 26 2
31
u3
ku3 k
1
1/2
2 1 0
0
1 1 u3 =
0
0 3
2 1
A=
0 3
u3 =
un1
kun1 k
2 1
0 3
u2 =
2 1
0 3
u3 =
u2 =
1
2
1
2
1
16 2
, u2 = = . 333 33
1
3
6 2
, u2 = 14
15
u3 =
1
3 2
1
6 2
14
15
1
x
= (A 2Id) x
max
1
Id x
=0
A 2Id
max
1
A 2+
=0
Id x
= (A prox Id) x
max
1
1
43
prox = 2 +
= 2 + 14 =
max
14
15
12 2
1
2 2
1
, u3 =
10 = . 527 05
6
prox = 3. 071 4
1 1 0
x
1
1 2 0 y = 3
0 1 3
z
1
partiendo de u1 = (0, 0, 0)
Solucin:
2 1 0
1 1
A0 = A 2Id = 0
0
0 3
xn
yn
zn
0 1 0
0 3 1
0 0 1
2
3
13
(A 2Id)1 x
= max x
3
u es el autovalor mximo de A1 , con lo que el
1
6
autovalor mnimo de A es min = ku
10 = 1.
3 k = 10
3 2
= 1.
897 4, con signo negativo ya que sign u , u
0 n
56
El autovalor mximo
(A 2Id)1 es max =
de
3
con signo positivo (sign u , u2 = 1)
Solucin:
Aun =
1
30
14
15
2
15
6
5
un1
kun1 k
2 1 0
1
0
1 1 u2 = 1
0
0 3
1
5
6
u2 = 32 , u2 =
13
= yn1 + 1
xn1 + 3
=
2
yn1 + 1
=
3
1
1. u2 = 3
2
1
3
1
2
2. u3 = 1
5
= . 833 33
6
32
5
6
3. u4 =
0
7
4
2
3
Problema 96 Calcular
1
tores de la matriz 0
1
Solucin:
una base
ortogonal de autovec0 1
2 0 ,
0 1
1. Autovectores y autovalores:
0
1
0, 0 , 1 2
1
0
1
0
1 1 0
x
1 2 0 y =
0 1 3
z
partiendo de u1 = (0, 0, 0)
1 1 0
x
1
1 2 0 y = 3 ,
0 1 3
z
1
partiendo de u1 = (0, 0, 0). Calcular previamente el
parmetro de relajacin ptimo
Solucin:
x y = 1
x + 2y = 3
y + 3z = 1
del mtodo de
Clculo del wopt :
1
3
1
0
x=y1
y = x2 + 32 = 12
0
z = y3 + 13
= yn1 + 1
xn + 3
=
2
yn + 1
=
3
0
x
1
0 y + 32
1
z
0
3
1
0
1
3
Los autovalores de MJ
(MJ )2 =
1. x1 = 1
y1 = 31
2 =1
2
z1 = 1+1
3 = 3
0, 12 , 12 , luego
1
2
wopt =
wopt =
2. x2 = 0
y2 = 32
z3 = 56
3. x3 = 1 + 32 =
3+ 1
y3 = 2 2 = 74
1+ 7
z3 = 3 4 = 11
12
2
q
1 + 1 (MJ )2
wopt =
2
1(MJ )2
1+
2
1+ 12 2
1+
1 12
4
2+ 2
wopt = 1. 171 6
Iteraciones del sistema:
1
2
xn = w (yn1 1) + (1 w) xn1
n
yn = w 3+x
+ (1 w) yn1
2
n
zn = w 1+y
+ (1 w) zn1
3
w
1. 171 6
= 1. 071 1
u2 = w 3w
2
. 808 83
w 1+1.3071 1
33
. 284 35
= 1. 740 2
. 931 34
w)
.
931
34
3
. 818 42
= 1. 938 2
. 987 65
u3 = M u2 + c = M M u1 + c + c = M 2 u1 + M c + c
..
.
un = M n1 u1 + M n2 c + . . . M c + c =
= M n1 u1 + M n2 + . . . M + 1 c
1
1
..
.
1
0
0
..
.
0
=0
1
1
..
.
1
M
+ ...M + 1 c =
Pn
= M n2 + . . . M + 1
i=1 ci xi =
P
Pn
n
= M n2 i=1 ci xi + . . . M i=1 ci xi +
Pn
Pn
+ i=1 ci xi = i=1 ci n2
xi +
i
Pn
Pn
+ . . . i=1 ci i xi + i=1 ci xi =
Pn
= i=1 ci xi n2
+ . . . + i + 1
i
{z
}
|
n
Y
i=1
i = 1 . . . 0 . . . n = 0
Pn
1
i=1 ci xi 1i ,
x2 + y 2 1 = 0
yx=0
x + y2 1 = 0
2x 2y
f (x, y) =
yx=0
1 1
34
f=
u0 = (1, 1)
f (un )z = f (un )
un+1 = un + z
2x 2y
z1
x + y2 1
=
1 1
yx
z2
f (un ) z = f (un )
un+1 = un + z
Iteraciones:
1
2 2
z1
=
1.
0
1 1
z2
z1
z2
14
14
u =u +z =
u =
2.
3
2
3
2
z1
z2
3
4
3
4
17
24
17
24
Algoritmo:
Este algoritmo utiliza una funcin, Sistema(A, u),
para resolver un sistema de ecuaciones.
1
1
14
14
z1
z2
1
24
1
24
u2 = u1 + z =
u2 =
3
4
3
4
. 708 33
. 708 33
1
8
Funcion F (u)
f (1) = a u(1)3 3a u(1) u(2)2 +
+b u(1)2 b u(2)2 + c u(1) + d
f (2) = 3a u(1)2 u(2) a u(2)3 +
+2b u(1) u(2) + c u(2)
devolver f
Fin funcion
1
24
1
24
un = (xn , y n )
Funcion F (u)
2
f (1, 1) = 3a u (1) 3a u(2)2 + 2b u (1) + c
f (1, 2) = 6a u (1) u (2) 2b u (2)
f (2, 1) = f (1, 2)
f (2, 2) = f (1, 1)
devolver f
Fin funcion
Problema 103 Plantear el algoritmo necesario para calcular, utilizando el mtodo de Newton-Raphson, las races
complejas o reales de un polinomio de grado 3.
Algoritmo
un1 = (x0 , y0 )
/* calculamos la primera
aproximacin
*/
z = Sistema F un1 , F un1
un (1) = un1 (1) + z(1)
un (2) = un1 (2) + z(2)
n=0
aproximacin
*/
z = Sistema F un1 , F un1
un (1) = un1 (1) + z(1)
un (2) = un1 (2) + z(2)
n=n+1
Fin Mientras
Si (n = T OP ) Entonces
ERROR: No se ha encontrado solucin
Fin Si
Fin Algoritmo
Solucin:
P (z) = az 3 + bz 2 + cz + d = 0
Un polinomio de grado 3 posee al menos una raz real.
Las otras dos races pueden ser tambin reales o imaginarias conjugadas.
Sea z un nmero complejo: z = x + yi, sustituyendo
en la anterior ecuacin,
P (x + yi) = a (x + yi)3 + b (x + yi)2 + c (x + yi) + d
P (x + yi) = ax3 + 3iax2 y 3axy 2 iay 3 +
+bx2 + 2ibxy by 2 + cx + icy + d = 0
Separamos la parte real de la parte imaginaria:
35
1
e (e 1)
z1
11
z2 =
2
z3
3
Solucin:
y
x1
1. f (x, y) =
f (1, 1) =
y2
x
1
1 0
1 0
0
2
u
=
+
1
1
1
1
1
1
1
=
1
2
17
2
INTERPOLACION DE FUNCIONES II
1
2 0
2 0
0
f (1, 2) =
u3 =
+
0
1
0
1
0
1
1
=
2
2
un+1 = un + z =
1
1
e (e 1)
11
= 1 +
2
1
3
15 1
2 e (e 1)
13
=
2
4
xyz
17
2
1.0
0.8
0.6
1=0
0.4
y z 2=0
0.2
(z 1)x4 3 = 0
partiendo de (x, y, z) = (1, 1, 1).
0.2
0.4
0.6
0.8
1.0
Solucin:
f (x, y, z) =
xyz
yze
0
4 (z 1) x3
xyz
xze
2y
0
xyz
0
Figure 4: Polinomio de Hermite H1
xye
3z 2
x4
0.8
f (x, y, z) z = f (x, y, z)
un+1 = un + z
yzexyz
0
4 (z 1) x3
xzexyz
2y
0
0.6
z1
xyexyz
3z 2 z2 =
x4
z3
0.4
0.2
exyz 1
= y z3 2
(z 1)x4 3
2
1.0
Iteracin:
e1
e e e
z1
0 2 3 z2 = 2
3
0 0 1
z3
0.2
0.4
0.6
0.8
1
Figure 5: Polinomio de Hermite H1
36
1.0
1.0
a = b = 14 ,
0.8
0.6
0
H1
(x) =
0.4
0.2
0.4
0.6
0.8
1.0
0.2
0.4
0.6
0.8
(x 1)2 (x + 2)
0.2
1
4
1
H1
(x) = (x 1) (a (x + 1) + b)
1
(1) = (1 1) (a (1 + 1) + b) = 4b = 0
H1
1.0
b=0
-0.2
-0.4
-0.6
10
H1
(x) = 2 (x 1) (a (x + 1) + b) + (x 1) a
-0.8
-1.0
10
H1
(1) = 2 (1 1) (a (1 + 1) + b) +
2
+ (1 1) a = 1
4a = 1
1. La grfica 4 se hace cero en 1 y sus derivadas, tanto
en ese punto como en 1, valen cero. Este polinomio
tiene dos races en 1 (la segunda debido al valor de su
derivada en 1), con lo que la forma de este polinomio
es como sigue:
0
H1
a = 14 ,
luego el polinomio nos queda:
1
H1
(x) = (x 1)
(x) = (x 1) (a (x + 1) + b)
1
4
(x + 1)
3. Para calcular los otros dos polinomios, basta considerar que son funciones simtricas a las dos anteriores. En la grfica 6 se puede ver que esta funcin
0
es simtrica a H1
(x) (ver grfica 4) con respecto al
eje de las y.
(1 1)2 (a (1 + 1) + b) = 4b = 1
b=
1
4
0
H10 (x) = H1
(x)
H10 (x) =
00
H1
(x) = 2 (x 1) (a (x + 1) + b) + (x 1)2 a = 0
1
4
(x 1)2 (x + 2)
2
H10 (x) = 14 (x + 1) (x 2)
00
(x) = 2 (2) (a (0) + b) + (2)2 a = 0
H1
4b + 4a = 0
37
x [1, 0]
P2 (x) = 23 x3 + 25 x2 +
x [0, 1]
1
H11 (x) = H1
(x)
P3 (x) =
2
H11 (x) = (x 1) 14 (x + 1)
H11 (x) =
(x + 1) (x 1)
-1
-1.0
i = 0, . . . N
1
f (x0 )
a0
a1 f (x1 ) 0
a2 = f (x2 ) = 1
0
f (x3 )
a3
3(ai+1 ai )
hi
3(ai ai1 )
hi1
Solucin:
sinc (x) =
c0 = c3 = 0
0
4 1
c1
=
6
c2
1 4
ci+1 ci
3hi
d0
d1 =
d2
(ai+1 ai )
hi
PN
sin( ( i))
f(x) i=M f (xi ) x ai
(a )
x
2
5
2
5 5
8
5
2x
+f (0)
8
15
hi (2ci +ci+1 )
3
13
15
19
15
1
15
+ sin
(x + 1)3 +
13
15
2x
+f
sin( ( 2x
2))
(
2x
2
sin(2x)
2
sin 2x
2x+
2x
sin 2x
2x
sin(( 2x
+1))
+
2
( 2x
+1)
sin(( 2x
1))
+
2
( 2x
1)
= sin
sin(2x+)
2
sin(2x+)
2x+
sin(2x)
2x
2x+
2x
= 2 4xsin
2 2
sin(( 2x
))
+f ()
i = 0, . . . N 1
[2, 1, 0, 1, 2]
sin( ( +2))
f(x) f () 2x+2
+f
( )
2
152
3
=
2
1 15
b0
b1 = 1 45 85 =
3
b2
1 + 16
15
P1 (x) =
xi = a i =
i = 0, . . . N 1
3
8
sin(x)
x
2
5
85
2 x y su
Problema 108 Calcular la funcin que interpola, utilizando la funcin sinc(x) a la funcin f (x) = sin(x) en
los puntos x = , 2 , 0, 2 , .
(xi xi1 )
ai = f (xi )
bi =
(x 1) + 1
1
-0.5
di =
1
15
0.5
c1
c2
(x 1)2 +
1.0
8
5
x [1, 2]
1
4
(x 1)3
8
15
hi = 1
19
15 x
(x + 1) 1
38
1.0
c2 = c2 = 0
c1 = c1 = 2
c0 = 2
0.5
-10
-8
-6
-4
-2
10
f(x)
-0.5
2 ix
e
= 12
-1.0
2 eix =
cos x
La siguiente grfica compara f (x) = |x| con su aproximacin f(x) para N = 2 en el intervalo [, ].
|x|
1.0
0.5
5
4
-10
-8
-6
-4
-2
10
-0.5
1
-1.0
-3
3
terpolacin x=2, 3
2 , , 2 , 0, 2 , , 2 , 2
-2
-1
3
2
1
-3
ck eikx ,
-2
-1
k=2
=
2
2
U0
U ikx
ikx
xe
dx
xe
dx
+ 0 2
2
5
4
|x|
Solucin:
x si x 0
|x| =
x si 0 x
ck =
2
X
Polinomio trigonomtrico (N = 2, [, ])
f(x)
39
aproximacin
mnimo
yi
0
1
0
2
Solucin: Aplicando las frmulas para calcular los coeficientes de la recta que ms se aproxima a estos puntos,
obtenemos:
a=
SN
S
SN
xi yi N
i=1 xi
i=1 yi
SN
SN
2
2
N i=1 xi ( i=1 xi )
=
b=
i=1
4(1+6)(1+2+3)(1+2)
4(1+22 +32 )(1+2+3)2
SN
i=1
x2i
N
1
2
S
SN
yi N
i=1 xi yi
i=1 xi
S
2
N
2
i=1 xi (
i=1 xi )
SN
Si=1
N
=
=0
P (x) = ax + b = 12 x
4
3
2
1
0
0
40