I am considering the equation $\frac{d^2y}{dx^2}-5\frac{dy}{dx}+6y=e^{2x}$. The complementary function is found to be $Ae^{2x}+Be^{3x}$. Ordinarily I would let $y=\lambda e^{2x}$ to find the particular integral, but as this I a part of the complementary function it cannot satisfy the whole equation. My text book then says to let $y=\lambda xe^{2x}$ without justification. I was wondering why we need the x here and do not need it otherwise. Also, in what cases can we simply add an x for the solution to work? When is adding an x necessary, and when is it allowed?
Thank you in advance :)