An M-shaped curve is created by graphing the parabola $y=x^2$ in the coordinate plane, and then reflecting the part of the parabola that is above the line $y=1$ across the line $y=1$. There is a horizontal line that intersects the M-shaped curve at four points $A, B, C$, and $D$ so that $AB=BC=CD$. As a fraction in simplest radical form, what is the distance $\overline{AB}$?
The M-shaped curve is traced in red, and the four yellow dots represent A, B, C, D, from left to right, respectively.
I find the reflected parabola's equation to be $y=-x^2+2$ because it is a parabola opening downward shifted 2 up.
So I can say for $|x|\le1$, $y=x^2$; for $|x|\ge1$, $y=-x^2+2$. So it's a piecewise function.
I am stuck here. I assume I need to find solutions for $x$ from both parabola's equations, but I am not sure how. Help is appreciated!
Thanks!
Max0815

HINT I would consider finding a straight line $$r : y = k$$ with $0<k<1$, such that the intersection between $r_1$ and $$\gamma_1 : y=x^2$$ generates a chord of some length $L$ and the intersection between $r$ and $$\gamma_2:y =-x^2+2$$ generates a chord of length $3L$.
Intersecting $r$ and $\gamma_1$ yields $$ \begin{cases} y = k\\ y=x^2 \end{cases} $$ and thus the chord lenght is $$L = 2\sqrt{k}.$$ Similarly, by the intersection between $r$ and $\gamma_2$ you get $$3L = 2\sqrt{2-k}.$$ Equating the last two expressions and solving for $k$ will bring you close to your final result.