in the context of non-relativistic quantum mechanics I want to show that, for any $A$ and $B$ operators
if and only if
I remember my professor told use about looking for a differential equation but I don't remember the details, and I want to be able to prove it. Brute force the series doesn't seem to be a good idea.
Any hint will be appreciated thanks.