$\frac{\mathrm{d^2}y }{\mathrm{d} x^2} - 2\frac{\mathrm{d} y}{\mathrm{d} x} + 2y = 4e^xsinx$
Then my complementary function:
$y = e^x(c_{1}cosx + c_{2}sinx])$
I know that $e^xsinx$ is in the complementary function but I don't know how to address that in this example
I've re-written $4e^xsinx = 2(e^{(i+1)x} - e^{(1-i)x})$
Then I have $y_{PI_{1}} = Ae^{(i+1)x}$ and $y_{PI_{2}} = Be^{(1-i)x}$ with $y_{PI} = y_{PI_{1}} + y_{PI_{2}}$
But then I get stuck, and I'm not sure if this is the correct way. The solution provided says to take $y_{PI} = Axe^{(1+i)x}$ aiming to take the imaginary part later. I don't understand what it means/how that would work, if someone could provide a slightly more detailed explanation that would help.
Sorry if my question is confusing, new to the topic.