Concept:
For diagonal matrices:
\[
A^2 = \text{square of each diagonal element}
\]
Step 1: Compute \( A^2 \).
\[
A^2 =
\begin{bmatrix}
4 & 0 & 0 \\
0 & 9 & 0 \\
0 & 0 & 16
\end{bmatrix}
\]
Step 2: Compute \( B^2 \).
\[
B^2 =
\begin{bmatrix}
1 & 0 & 0 \\
0 & 4 & 0 \\
0 & 0 & 9
\end{bmatrix}
\]
Step 3:
\[
A^2 + B^2 =
\begin{bmatrix}
5 & 0 & 0 \\
0 & 13 & 0 \\
0 & 0 & 25
\end{bmatrix}
\]