Calculadora de matrices

🌐 Español
A (3×3)
Filas: 3
Columnas: 3
B (3×3)
Filas: 3
Columnas: 3
Supports: fractions (1/2), decimals (0.5), constants (pi, e). Empty cells are treated as 0.

Resultados del cálculo

Coseno matricial: definición, fórmula, ejemplos y problemas de práctica

The matrix cosine function \(\cos(A)\) is an important matrix function used in differential equations, numerical analysis, and linear algebra applications. This page explains the definition, formula, common mistakes, and provides worked examples and practice problems.


1. Definición del coseno matricial

For a square matrix \(A\), the matrix cosine is defined using the Taylor series of the cosine function:

\[ \cos(A) = I - \frac{A^2}{2!} + \frac{A^4}{4!} - \frac{A^6}{6!} + \cdots \]

Where:

  • \(I\) is the identity matrix
  • The series always converges for any square matrix \(A\)

If the matrix is diagonalizable, another useful expression is:

\[ A = P D P^{-1} \quad \Rightarrow \quad \cos(A) = P \cos(D) P^{-1} \]

Where \(\cos(D)\) is simply taking cosine of the diagonal entries.


2. Ejemplos resueltos

Ejemplo 1 (con pista de entrada)

Input: Enter the matrix into the calculator as:

1 0
0 1
                            

Let

\[ A = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \]

Como esta matriz es diagonal, el coseno es simplemente el coseno de cada elemento diagonal:

\[ \cos(A) = \begin{bmatrix} \cos(1) & 0 \\ 0 & \cos(1) \end{bmatrix} \]

Ejemplo 2 (con pista de entrada)

Input: Enter the matrix into the calculator as:

0 -1
1 0
                            

Let

\[ A = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} \]

This is a standard rotation matrix generating matrix. Its cosine is known from matrix exponential theory:

\[ \cos(A) = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} \]

Pero lo calculamos usando la serie:

\[ A^2 = -I, \quad A^4 = I, \quad A^6 = -I, \cdots \]

So:

\[ \cos(A) = I - \frac{(-I)}{2!} + \frac{I}{4!} - \cdots = \cos(1)\,I \]

Thus:

\[ \cos(A) = \cos(1)\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \]


3. Errores comunes que se deben evitar

  • Mistake 1: Applying cosine element-wise. Matrix cosine is not: \[ \cos(A) \ne \begin{bmatrix} \cos(a_{11}) & \cos(a_{12}) \\ \cdots \end{bmatrix} \]
  • Mistake 2: Forgetting that the Taylor series uses matrix powers. Correct computation requires \(A^2, A^4, A^6, \dots\).
  • Mistake 3: Not recognizing when a matrix is diagonalizable. Using \(A = P D P^{-1}\) can drastically simplify the calculation.
  • Mistake 4: Using too few terms in numerical approximation. Truncating too early leads to large errors.

4. Practice Problems

Intenta calcular el coseno matricial de las siguientes matrices.

Ejercicio 1

\[ A = \begin{bmatrix} 2 & 0 \\ 0 & 3 \end{bmatrix} \]

Mostrar respuesta

La matriz es diagonal, por lo tanto:

\[ \cos(A) = \begin{bmatrix} \cos(2) & 0 \\ 0 & \cos(3) \end{bmatrix} \]

Ejercicio 2

\[ A = \begin{bmatrix} 0 & -2 \\ 2 & 0 \end{bmatrix} \]

Mostrar respuesta

\(A\) behaves like a scaled rotation generator.

\[ A^2 = -4I \] \[ \cos(A) = I - \frac{-4I}{2!} + \frac{(-4)^2 I}{4!} - \cdots = \cos(2)\, I \]

Ejercicio 3

\[ A = \begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix} \]

Mostrar respuesta

Esta matriz no es diagonal, pero sí triangular superior.

\[ A^2 = \begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix}, \quad A^3 = \begin{bmatrix} 1 & 3 \\ 0 & 1 \end{bmatrix} \]

Usando la expansión en serie se obtiene:

\[ \cos(A) = \begin{bmatrix} \cos(1) & \sin(1) \\ 0 & \cos(1) \end{bmatrix} \]

Ejercicio 4

\[ A = \begin{bmatrix} 4 & -1 \\ 1 & 4 \end{bmatrix} \]

Mostrar respuesta

This matrix represents scaling + rotation. Diagonalize \(A\) or use Jordan form.

Final result: \[ \cos(A) = \cos(4)I + \sin(4) \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix} \]


Aprende multiplicación de matrices más fácilmente en solo 2 minutes with this juego gratuito.

Juego de multiplicación de matrices