# Factoring differential operators

I need help with the proof of this fact:

An ordinary differential operator in the variable $$x$$ can be factored $$P = AB$$ if and only if $$\ker(B) \subset \ker(P)$$.

The forward direction is obvious, but I am unsure how to proceed with the backward direction.