Since your "forcing function" is also "homogeneous solution", you have a "resonance effect".
I am puzzled by this. You are trying to do differential equations but do not know how to differentiate?Okay.
I make mistake when i need to derivate this part:
yp=x (A*cos(2x) +B*sin(2x) )
i dont know how to make first and second derivative.