Calculating the Energy of a Function
To calculate the energy of a function, use the following equation.
$ E=\int_{t1}^{t2}{|f(t)|^2dt} $
For clarity, follow the example below.
$ E=\int_{0}^{2\pi}{|2sin(t)|^2dt} $
$ E=2\int_{0}^{2\pi}{|sin(t)|^2dt} $
$ =\int_0^{2\pi}(1-cos(2t))dt $
$ =(t-\frac{1}{2}sin(2t))|_{t=0}^{t=2\pi} $
$ =(t-\frac{1}{2}sin(2t))|_{t=0}^{t=2\pi} $