[Tex/LaTex] Determinants inside matrix

matrices

I am typing in .tex a solution using Cramer method but I can't find a way to write those matrixes inside the main matrix. Is there an easy way to do that?

Best Answer

I have the solution already... is not that beautiful, but there is an example.

enter code here

\[adj(\mathbb{K})= \left[ \def\arraystretch{1.8} \begin{array}{ccc}  
+\begin{vmatrix} \frac{-2r\cos\theta}{R_E\sin^3\theta} &                     0                  \\ 0 & 1 \end{vmatrix}   &
-\begin{vmatrix} \frac{1}{R_E\sin^2\theta}             &                       0                \\ 0 & 1 \end{vmatrix}   &
+\begin{vmatrix} \frac{1}{R_E\sin^2\theta}             & -\frac{-2r\cos\theta}{R_E\sin^3\theta} \\ 0 & 0 \end{vmatrix}   \\
  &&\\
-\begin{vmatrix} \frac{-R^2_E\sin^2\theta}{r^2}        &                 0                      \\ 0 & 1 \end{vmatrix}   &
+\begin{vmatrix} \frac{-2R^2_E\cos\theta}{r^3}         &                 0                      \\ 0 & 1 \end{vmatrix}   &
-\begin{vmatrix} \frac{-2R^2_E\cos\theta}{r^3}         & -\frac{-R_E\sin\theta}{r^2}            \\ 0 & 0 \end{vmatrix}   \\
 &&\\
+\begin{vmatrix} \frac{-R^2_E\sin\theta}{r^2}  &            0   \\ \frac{-2r\cos\theta}{R_E\sin^3\theta}  &    0 \end{vmatrix}  &
-\begin{vmatrix} \frac{-2R^2_E\cos\theta}{r^3} &            0   \\ \frac{1}{R_E\sin^2\theta}              &    0  \end{vmatrix}  &
+\begin{vmatrix} \frac{-2R^2_E\cos\theta}{r^3} &\frac{-R^2_E\sin\theta}{r^2} \\ \frac{1}{R_E\sin^2\theta} & \frac{-2r\cos\theta}{R_E\sin^3\theta}\end{vmatrix}
    \end{array} \right]^T,\]

The result