Let Z and N be the set of all integers and positive integers, respectively. Mm (Z) be the set of m×m matrix over Z where m ∈ N. In this paper, by using the result of Fermat's Last Theorem, we show that the following second-order matrix equation has only trivial solutions:Xn + Yn=λnI (λ ∈ Z, λ ≠ 0, X, Y ∈ M2(Z)), where X has an eigenvalue that is a rational number and n ∈ N, n ≥ 3; By using the result of primitive divisors, we show that the second-order matrix equation Xn +Yn=(±1)nI (n ∈ N, n ≥ 3, X, Y ∈ M2(Z)) has nontrivial solutions if and only if n=4 or gcd(n,6)=1 and all nontrivial solutions are given; By constructing integer matrix, we show that the following matrix equation has an infinite number of nontrivial solutions:∀n ∈ N, Xn + Yn=λnI (λ ∈ Z, λ ≠ 0, X, Y ∈ Mn(Z)); X3 + Y3=λ3I (λ ∈ Z, λ ≠ 0, m ∈ N, m ≥ 2, X, Y ∈ Mm(Z)).