Energy of cos(2t)
$ E = \int_{t2}^{t1}{|(f(t)|^2}dt $
Power of cos(2t)
$ P = 1/(t2-t1)\int_{t2}^{t1}{|f(t)|^2}dt $