Let $A,B$ be symmetric positive semi-definite matrix with real entries I have to show that
$ Im(A) \subset Im(A+B)$
if $tr(AB)=0$ then $ AB=O $
I know that a symmetric matrix A is positive semi-definite iff any principle minors of A $\geq 0$ (There are also other properties such as all eigenvalue is non negative ,for all $x\neq 0 ,x^t(A)x \geq 0$ etc.) also A+B is still symmetric positive semi-definite but I don't know how to apply this property to find $Im(A)$ and $Im(A+B)$ and for 2. If I can show that A and B can be simultaneously diagonalized (I found that this is true? but cannot show it) then $X^{-1}AX=M ,X^{-1}BX=N$ for some diagonal matrix M,N with all entries nonnegative.This mean $X^{-1}ABX=MN$ therefore $0=tr(AB)=tr(MN) $but MN is diagonal matrix with all entries nonnegative so $MN=O$ so $AB=XMNX^{-1} =O$ Do I miss anything? Any ideas to complete this proof? and how to show 1.?
Thanks for your help.
Here is an outline for the first, with some gaps to fill in.
Show instead that ker($A+B) \subset$ ker $A$ (by the dimension formula, this is the same). So we need to show that an $x$ in the kernel of the sum is in the kernel of $A$.
But $0 = (A+ B)x$ is the same as $Ax = -Bx$, and so $x^tAx = - x^tBx$, and so (why?) $$x^tAx=0$$
Now, $A$ has a Cholesky decomposition. If you replace $A$ by it, then you get that the norm of a vector (not $x$ !) is zero. But this vector is (...), and if you left-multiply this vector by part of the Cholesky decomposition again, it stays zero. This leads you to $Ax=0$, which is what we wanted to show.