4

I've seen a lot on this website that has helped me get started, but I have one last problem: how do I align the 0s in the first row to the matrix below them?

enter image description here

\documentclass{article}
\usepackage{amsmath}
\usepackage [american]{babel}
\begin{document}
\begin{equation*}
\left[ 
\begin{array}{cc}
\begin{matrix}
0 
\end{matrix} & \begin{matrix}
0 & 0 & 0 
\end{matrix} \\
\begin{matrix}
0 \\
0 \\
0 \\
\end{matrix}
 & \begin{bmatrix}
n_1 & 0 & 0 \\
0 & n_2 & 0 \\
0 & 0 & n_3
\end{bmatrix}^{-1}
\end{array}\right]
\end{equation*}
\end{document}
1

How about manually adding the spacing?

\left[ 
  \begin{array}{cc}
  \begin{matrix}
0 
\end{matrix} & \begin{matrix}
~0~~ & 0~~ & 0~~  & \\ 
\end{matrix} \\
\begin{matrix}
0 \\
0 \\
0 \\
\end{matrix}
 & \begin{bmatrix}
n_1 & 0 & 0 \\
0 & n_2 & 0 \\
0 & 0 & n_3
\end{bmatrix}^{-1}
\end{array}\right]
  • I didn't know you could do this! Thank you! – Clarinetist Dec 16 '15 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.