Come again? What is the shoulder of a square wave if it is not zero time? You can see the same conclusion regarding energy of square wave being infinite here:
I made an error in one of the implications in the part you quoted. Consistent with what I stated, the change of energy is the product of power and the change of time, i.e. dE = P x dt, but the incorrect implication of infinite energy requiring zero time was based on it being the ratio. Thus, for energy to be infinite, at least one of power or time has to infinite while the other has to be non-zero. If power is infinite for zero time, energy is finite as this is akin to the Dirac delta function. Thus, even at the zero crossings of the square wave, changes in energy are finite and thus the energy of a square wave is finite for any finite time.
The video is a mess. It treats the square wave as being for infinite time but also calculating the power as the limit for the period approaching infinity. The latter is utterly uncalled for and turns the square wave into a step function from -1 to +1 at time zero. Thus, energy is calculated using only one times the power of a cycle. However, the power calculation is initially set up for two cycles - one each side of zero - but then only calculates the power for the positive side as if there were no square wave at the negative side and with the zero crossing happening at half of infinity in the calculated limit. Thus, the calculation incorrectly uses two periods rather than one for the power of a single cycle. Regardless, since there is thus only one cycle, the energy is calculated using one times the power, i.e. two times that incorrectly calculated in the video, and hence finite. Still and absolutely trivially, for a finite period, for infinite time, the number of cycles is infinite and thus so is energy. None of this has anything to do with the power or energy at any one zero crossing.
Last edited: