Substitute the trial solution and its derivatives into the ODE, factor out the common term , and collect like terms by powers of . Equating the remaining constant term to the right-hand side yields .
Conditions: The trial solution is .; The ODE is .; is never zero, allowing it to be canceled from both sides.