If in Mathematica I enter
=Integrate[Cos[t*w+f]Cos[t*w],t]
and after WolframAlpha returns the result I tap on the grey + to show more information and then click on the orange step-by-step- solution then it shows me the steps and seems to use the correct variable of integration
Unfortunately I don't know how to translate that into your Pods.