Here is what I have done so far, using the Method of Undetermined Coefficients:
y''+4y=cos^2(t),y(0)=y' (0)=0
y''+4y=1/2+1/2 cos^2(2t) (power reduction formula)
Y(t)=A+B sin(2t)+C cos(2t)
Y'(t)=2B cos(2t)-2C sin(2t)
Y'' (t)=-4B sin(2t)-4C cos(2t)
[-4B sin(2t)-4C cos(2t)]+4[A+B sin(2t)+C cos(2t)]=1/2+1/2 cos(2t)
4A=1/2+1/2 cos(2t)
Now, it looks like towards the last steps, the B's and C's cancel each other out, leaving only an A term. What should I do from here to find A, B, and C?
y''+4y=cos^2(t),y(0)=y' (0)=0
y''+4y=1/2+1/2 cos^2(2t) (power reduction formula)
Y(t)=A+B sin(2t)+C cos(2t)
Y'(t)=2B cos(2t)-2C sin(2t)
Y'' (t)=-4B sin(2t)-4C cos(2t)
[-4B sin(2t)-4C cos(2t)]+4[A+B sin(2t)+C cos(2t)]=1/2+1/2 cos(2t)
4A=1/2+1/2 cos(2t)
Now, it looks like towards the last steps, the B's and C's cancel each other out, leaving only an A term. What should I do from here to find A, B, and C?