Works always, but is more work.
Inhomogeneous equation:
First solve the homogeneous equation, then allow its integration constants to vary.