Suppose $J, M: U \rightarrow U$ are self-adjoint linear functions on an inner product space $U$.
(a) Prove that $\langle J[\mathbf{u}], \mathbf{u}\rangle=\langle M[\mathbf{u}], \mathbf{u}\rangle$ for all $\mathbf{u} \in U$ if and only if $J=M$.
(b) Explain why this result is false if the self-adjointness hypothesis is dropped.