The inverse of a diagonal matrix is obtained by taking the reciprocal of each diagonal element.
Given:
\[
A = \begin{bmatrix}
-1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1
\end{bmatrix}
\]
To compute \( A^{-1} \), we find the reciprocal of the diagonal entries.
Therefore,
\[
A^{-1} = \begin{bmatrix}
\frac{1}{-1} & 0 & 0 \\
0 & \frac{1}{1} & 0 \\
0 & 0 & \frac{1}{1}
\end{bmatrix}
= \begin{bmatrix}
-1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1
\end{bmatrix}
\]