Integrate[Cos[Pi tau] UnitStep[t - tau], {tau, 0, \[Infinity]}]