# Power of a square wave signal

I have a signal with half-amplitude $A$ and period $T$ and I want to calculate the average power of the signal.

I think I remember the power of a signal $x(t)$ to be $$\frac{1}{T}\int_{0}^{T}|x(t)|^2dt$$ but how do I apply this to a square wave?

• Why can't you evaluate the integral you showed? – Jason R Sep 10 '14 at 19:13
• Hint: break up the integral into the sum of integrals with limits $(0,T_1)$ and $(T_1,T)$ respectively where $T_1$ is a number that you get to choose. If you apply a modicum of sense before choosing (hint: it helps a lot to sketch the square wave first), the answer is obtained trivially, but if not... – Dilip Sarwate Sep 10 '14 at 19:37