Building upon this I have read than transformers are less efficient and dissipate more heat when passing a square wave but I have to find a satisfy answer as to why this happens. I understand the power losses given the high frequencies present in a square wave and the formula for inductive reactance being dependent on frequency. what I don't understand is why more heat is created given that reactance does not dissipate energy as heat as resistance does.

thanks