Let $A$, $B$ square matrices over $\mathbb{R}$ with the same dimension. If $A$ is positive definite and $B$ is positive semidefinite, is $AB$ positive semidefinite? If yes, prove it. If no, counterexample it.
What if $A$ and $B$ are symmetric?
Let $A$, $B$ square matrices over $\mathbb{R}$ with the same dimension. If $A$ is positive definite and $B$ is positive semidefinite, is $AB$ positive semidefinite? If yes, prove it. If no, counterexample it.
What if $A$ and $B$ are symmetric?
The matrices should be symmetric by definition of positive definiteness.
If $A$ and $B$ commute, the result is positive semidefinite again. For the case in which they don't commute, there is a counterexpample.
Proof for the case $AB = BA$: Since $A>0$, there exists a unique symmetric matrix $A^{1/2}>0$ such that $A^{1/2}A^{1/2} = A$. We can write
$$\langle AB x,x\rangle = \langle BA x,x\rangle = \langle A^{-1/2}A^{1/2} B A^{1/2}A^{1/2}x,x\rangle = \langle A^{1/2} B A^{1/2}x,x\rangle = \langle B(A^{1/2}x), A^{1/2}x\rangle =\langle Bz,z\rangle \ge 0,$$ with $z = A^{1/2}x$.