Now after drawing a square on this diagonal,
From the Chou pai suan ching, quoted in Swetz and Kao, 1877.