Solve the following ODE using the method of undetermined coefficients:
$$y''-4y'+4y=(x+1)e^{2x}$$
My work. I have the homogeneous solution: $$y_h=C_1e^{2t}+C_2te^{2t}$$ I use this function to get the particular solution of the ODE: $$y=(Ax+B)xe^{2x}$$ And after substitution on the ODE, I get: $$2A=(x+1)e^{2x}$$ What about $B$? I don't know what I am missing. Could someone give me a hint? Thank you.
Hint. Since the characteristic polynomial is $(z-2)^2$ then the multiplicity $m$ of the root $2$ is $2$. It follows that for $f(x)=(x+1)e^{2x}$ you should try a particular solution of the form $$y(x)=(Ax+B)x^me^{2x}=(Ax+B)x^2e^{2x}.$$
P.S. If you use the form $y(x)=(Ax+B)2e^{2x}$ then after the substitution you should get $2Ae^{2x}=xe^{2x}+e^{2x}$ which is impossible to solve.