Thanks for your answer and thanks for your hint with upper cases.
Sadly, it still won’t work. I copied your corrected functions into a new notebook, but still won’t get a proper result.
Unbelievable! Then you should to research whether FourierTransform is a command available in the \mathit{Mathematica}\mathit{Student}\mathit{Edition}. If something tends to absurdity, it might have a legal reason.
the problem seems to be that your new variable had a value, i.e. you obviously executed before
\[omega]=1
Starting a new notebook does not change that. Clearing all variables - as you did in your solution - does make the difference!
Therefore it is a good idea (and often seen) to start every “new” notebook with the command