On the matrix equation