The square side without the marked segment consists of two segments of lenght \(1-\dfrac{\sqrt{2}}{2}\) ,see We deduce that the marked segment has length \[1-2\cdot \Big(1-\dfrac{\sqrt{2}}{2}\Big) =\sqrt{2}-1\,.\]