I am a physics undergrad and studying some transform methods.
The question is as follows:
$$y^{\prime \prime} - 2 y^{\prime}+y=\cos{x}\,\,\,\,y(0)=y^{\prime}(0)=0\,\,\, x>0$$
I am having some confusing doing this using Fourier transforms. I took the transform of the entire equations after which i got
$\hat{u}=\frac{\mathcal{F}(\cos{x})}{-\xi^2 -2i \xi +1}$, where $\xi$ is the variable of the Fourier transform of the solution.
The solution of the ODE is $$\mathcal{F}^{-1}=\cos{x} \star \mathcal{F}^{-1}(\frac{1}{-\xi^2 -2i \xi +1})$$ where I have used the fact, that the inverse Fourier transform of the product is the convolution. How do I find the inverse transform of the second factor? I know the method of using complex contour integral, and using the residue theorem. Is this the only way? Is there any shorter way in which I can reduce it to the inverse transform of some other function?
After calculating the convolution, what do I do? As far as I can see, the problem ends here, but where do I apply the initial condition?
EDIT: The source of this problem specifically asks to do it using the Fourier transform method. I have been unable to to solve similiar problems e.g. $$(D^2-2D+5)y=xe^{2x}\,\,\,y(0)=y^{\prime}(0)=0\,,x>0~.$$ I am utterly confused as to what to do with the initial conditions.