Let $ABCD$ be a unit square. A hyperbola has its foci at the midpoints of $\overline{AB}$ and $\overline{CD},$ and passes through all the vertices of the square. Compute the distance between the two vertices of the hyperbola.
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Let $ABCD$ be a unit square. A hyperbola has its foci at the midpoints of $\overline{AB}$ and $\overline{CD},$ and passes through all the vertices of the square. Compute the distance between the two vertices of the hyperbola.
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
\frac{\sqrt5-1}{2}
Let $ABCD$ be a unit square. A hyperbola has its foci at the midpoints of $\overline{AB}$ and $\overline{CD},$ and passes through all the vertices of the square. Compute the distance between the two vertices of the hyperbola.
train