So, I'm trying to solve the wave equation with the Fourier transform, and I'm struggling to figure out how to apply the BC's. Here's the problem I considered:
$$\frac{d^2u}{dt^2}=c^2\frac{d^2u}{x^2}$$ $$u(x,0)=g(x)$$ $$\frac{du}{dt}=0$$ at t = 0
Running through computations, I find that the Fourier transform solution is as follows:
$$F(u(\lambda,t))=A(\lambda)e^{ic\lambda t}+B(\lambda)e^{-ic \lambda t}$$
How would I apply boundary conditions to this and then transform back to u? ANy detailed explanation on this would be appreciated (I'm still learning this stuff). I'm thinking it may be easier to work with cosines and sines.
You basically fourier the initial condition to get:
$\hat{u}(\lambda,0)=\hat{g}(\lambda)=A(\lambda)+B(\lambda)\Rightarrow A(\lambda)=\hat{g}(\lambda)-B(\lambda)$
$\frac{\partial\hat{u}}{\partial t}=ic\lambda A(\lambda)e^{ic\lambda t}-ic\lambda B(\lambda)e^{-ic\lambda t}=0\Rightarrow A(\lambda)=B(\lambda)e^{-2ic\lambda t}$
$\Rightarrow \hat{g}(\lambda)-B(\lambda)=B(\lambda)e^{-2ic\lambda t}\Rightarrow B(\lambda)=\large\frac{\hat{g}(\lambda)}{(1+e^{-2ic\lambda t})}$
$\Rightarrow A(\lambda)=\large\hat{g}(\lambda)-\frac{\hat{g}(\lambda)}{(1+e^{-2ic\lambda t})}$
Thus $\large\hat{u}(\lambda,t)=(\hat{g}(\lambda)-\frac{\hat{g}(\lambda)}{(1+e^{-2ic\lambda t})})e^{ic\lambda t}+(\frac{\hat{g}(\lambda)}{(1+e^{-2ic\lambda t})})e^{-ic\lambda t}$
$\large=\frac{e^{-ic\lambda t}}{1+e^{-2ic\lambda t}}+(\frac{\hat{g}(\lambda)}{(1+e^{-2ic\lambda t})})e^{-ic\lambda t}=\frac{1+\hat{g}(\lambda)e^{-ic\lambda t}}{1+e^{-2ic\lambda t}}$
Now you inverse fourier to find $u(x,t)$
Hope that helps.
Inverse fourier: (you are correct, this seems hard)
Write $\large\frac{1+\hat{g}(\lambda)e^{-ic\lambda t}}{1+e^{-2ic\lambda t}}=\frac{1}{1+e^{-2ic\lambda t}}+\frac{\hat{g}(\lambda)e^{-ic\lambda t}}{1+e^{-2ic\lambda t}}=\frac{1}{1+e^{-2ic\lambda t}}+\hat{g}(\lambda)\hat{f}(\lambda,t)$
Then $u(x,t)=F^{-1}(\frac{1}{1+e^{-2ic\lambda t}})+(\sqrt{2\pi})g(x)f(x,t)$
This simplifies things, so you need to calculate:
$\large F^{-1}(\frac{1}{1+e^{-2ic\lambda t}})$, and $\large F^{-1}(\frac{e^{-ic\lambda t}}{1+e^{-2ic\lambda t}})$