If a square with side ‘a’ is inserted within a circle such that the corners coincide with the circumference of the circle with diameter ‘d’. Find the relation between ‘a’ and ‘d’.