We take where . The trial solution results in , so . We write this as where , and . Thus and , so . The steady-state solution is , with amplitude .
Alternatively: if the inhomogeneous term was , the steady-state solution would be . Our inhomogeneous term is , so our steady-state solution will be . We have , , and , which leads to the same solution as above.