Signal Power
The average power over an interval of time $ [t_1,t_2]\! $ is $ P_{avg}=\frac{1}{t_2-t_1}\int_{t_1}^{t_2} |x(t)|^2\ dt \! $.
Given that $ y(t) = cos(2*pi*t) \! $ and time interval $ [0,2]\! $, 1/(2-0)
Signal Energy
The equation to calculate signal energy is as follows: $ E=\int_{t_1}^{t_2}x(t)dt $
using the same equation $ y(t) = cos(2*pi*t) \! $ over a time interval $ [0,2]\! $ as the previous section,