Está en la página 1de 4

Grupo 5

Cortes Farith - Mosquera Ana

Taller diagonalización
1.
In[2]:= {{1, 2, - 1}, {1, 0, 1}, {4, - 4, 5}} // MatrixForm
forma de matriz

1 2 -1
In[3]:= b= 1 0 1
4 -4 5
Out[3]= {{1, 2, - 1}, {1, 0, 1}, {4, - 4, 5}}

In[4]:= CharacteristicPolynomial[b, x]
polinomio característico

Out[4]= 6 - 11 x + 6 x2 - x3

In[6]:= Solve6 - 11 x + 6 x2 - x3 ⩵ 0
resuelve

Out[6]= {{x → 1}, {x → 2}, {x → 3}}

In[7]:= Eigenvectors[b]
autovectores

Out[7]= {{- 1, 1, 4}, {- 2, 1, 4}, {- 1, 1, 2}}

In[16]:= p = {{- 1, - 2, - 1}, {1, 1, 1}, {4, 4, 2}} // MatrixForm


forma de matriz

-1 -2 -1
In[17]:= p= 1 1 1
4 4 2
Out[17]= {{- 1, - 2, - 1}, {1, 1, 1}, {4, 4, 2}}

In[18]:= Det[p]
determinante

Out[18]= -2

In[19]:= Inverse[p] // MatrixForm


matriz inversa forma de matriz
2 Grupo 5 - Taller III Cortes, Mosquera.nb

1
1 0
2
In[20]:= f= -1 -1 0
0 2 -1
2

1 1
Out[20]= 1, 0, , {- 1, - 1, 0}, 0, 2, - 
2 2

In[28]:= Dot[f, b, p] // MatrixForm


producto escalar forma de matriz
Out[28]//MatrixForm=
3 0 0
0 2 0
0 0 1

2.
In[29]:= {{4, 2, 3}, {2, 1, 2}, {- 1, - 2, 0}} // MatrixForm
forma de matriz

4 2 3
In[30]:= a= 2 1 2
-1 -2 0
Out[30]= {{4, 2, 3}, {2, 1, 2}, {- 1, - 2, 0}}

In[31]:= CharacteristicPolynomial[a, k]
polinomio característico

Out[31]= 3 - 7 k + 5 k 2 - k3

In[32]:= Solve3 - 7 k + 5 k2 - k3 ⩵ 0
resuelve

Out[32]= {{k → 1}, {k → 1}, {k → 3}}

In[33]:= Eigenvectors[a]
autovectores

Out[33]= {{- 5, - 2, 3}, {- 1, 0, 1}, {0, 0, 0}}

In[34]:= pp = {{- 5, - 1, 0}, {2, 0, 0}, {3, 1, 0}} // MatrixForm


forma de matriz

-5 -1 0
In[35]:= pp = 2 0 0
3 1 0
Out[35]= {{- 5, - 1, 0}, {2, 0, 0}, {3, 1, 0}}

In[36]:= Det[pp]
determinante

Out[36]= 0

Se puede concluir que la matriz a no es diagonalizable, los vectores son linealmente independientes .
Grupo 5 - Taller III Cortes, Mosquera.nb 3

Taller espacios vectoriales


1.
In[39]:= {{- 1, 1, 1, - 2}, {1, 1, 1, 1}, {0, 0, 1, 2}} // MatrixForm
forma de matriz

-1 1 1 -2
In[40]:= c= 1 1 1 1
0 0 1 2
Out[40]= {{- 1, 1, 1, - 2}, {1, 1, 1, 1}, {0, 0, 1, 2}}

In[41]:= RowReduce[c] // MatrixForm


reduce filas forma de matriz
Out[41]//MatrixForm=
3
1 0 0
2
0 1 0 -5
2
0 0 1 2

El sistema tiene única solución α1= 32 , α2= -5


2
y α3=2
3 5
In[45]:= Simplify t - 1 - t + 1 + 2 t2 + t + 1
simplifica 2 2

Out[45]= - 2 + t + 2 t2

Se concluye que el polinomio -2 + t + 2 t2 pertenece generado a los tres anteriores.

2.
In[51]:= {1, 1, 0, 2, π}, 1, 7, 4, 8, 25 , {- 1, 2, 2, 1, 9} // MatrixForm
forma de matriz

1 1 0 2 π
In[52]:= s= 1 7 4 8 5
-1 2 2 1 9
Out[52]= {{1, 1, 0, 2, π}, {1, 7, 4, 8, 5}, {- 1, 2, 2, 1, 9}}

In[53]:= RowReduce[s] // MatrixForm


reduce filas forma de matriz
Out[53]//MatrixForm=

1 0 -2 1 0
3
2
0 1 1 0
3
0 0 0 0 1
4 Grupo 5 - Taller III Cortes, Mosquera.nb

El sistema es inconsistente, tiene infinitas soluciones por lo cual no es generador de R3.

También podría gustarte