Since the diagonal forms two 45-45-90 special triangles, and with one side of square being S, the hypotenuse is: We then get: