Two consecutive sides of a square are perpendicular to each other and form a right angled triangle with the diagonal.

From the Pythagoras’ theorem
a^2+a^2=d^2 \Rightarrow 2a^2=d^2 \Rightarrow...