Complete sum-square difference