Hello, and welcome to FMH!
I agree the the homogeneous solution is:
[MATH]y_h=c_1\cos(2x)+c_2\sin(2x)[/MATH]
And so this means our particular solution will take the form:
[MATH]y_p(x)=x(A\sin(2x)+B\cos*(2x))[/MATH]
And so using the method of undetermined coefficients, we get:
[MATH]4(A-Bx)\cos(2x)-4(Ax+B)\sin(2x)+4(x(A\sin(2x)+B\cos(2x)))=4\cos(2x)[/MATH]
[MATH]A\cos(2x)-B\sin(2x)=1\cdot\cos(2x)+0\cdot\sin(2x)[/MATH]
Hence:
[MATH](A,B)=(1,0)[/MATH]
And so:
[MATH]y_p(x)=x\sin(2x)[/MATH]
And thus, the general solution is:
[MATH]y(x)=y_h(x)+y_p(x)=c_1\cos(2x)+c_2\sin(2x)+x\sin(2x)[/MATH]
Now, you may proceed to determine the values of the two parameters which satisfy the IVP.
