Problem when transforming with cosine

Thank you Travis for your prompt help.