We are given two diagonal matrices A and B,
On adding the two diagonal matrices of order (3 x 3) we get an diagonal matrix of order (3 x 3)
Each of the elements get added to the corresponding element hence,
we get after adding,
Hence, we get A+B = diag(4 1 1)