A square is inscribed inside a square ABCD such that the vertices of the smaller square lies on the midpoints of the sides of the square ABCD. Find the ratio of the area of the square ABCD to that of the smaller one.