A standard $8.5$ inches by $11$ inches piece of paper is folded so that one corner touches the opposite long side and the crease runs from the adjacent short side to the other long side, as shown in the picture below. What is the minimum length of the crease?
So I put the shorter leg of the folded portion (since it's a right triangle) as $x$ and the longer leg $y$. Then the crease is $\sqrt{x^2+y^2}$ and deriving it (which is what I'm supposed to be doing for optimisation) in terms of x to minimise the crease length, I got $\frac{x+yy'}{\sqrt{x^2+y^2}} = 0$, so $x+yy' = 0$. Then I was able to find some similar triangles - one with hypotenuse $x$ and one leg $8.5-x$ and the other with hypotenuse $y$ and the not-corresponding leg $8.5$. From there I was able to get the equation $y=\sqrt{y^2-8.5^2} + \sqrt{x^2-(8.5-x)^2}$. Then I started squaring the equation but it got quite messy, and I'm not even sure if the problem is supposed to be so messy... Can someone help me solve this?
Disclaimer: I do know that there is a post with the same problem on this site, but unfortunately the answers there didn't really help me, and I don't get what I am doing wrong.



Let me denote the corners in your figure clockwise (starting from the top left corner) by $A$, $B$, $C$, $D$, $E$, and $F$. This means $|AB|=b=8.5$, $|AE|=a=11$, $|DF|=x$, $|CF|=y$, ... Furthermore, I denote the point on the left edge of the paper which has the same height as $C$ by $G$.
I define $z=|EF|$. From the two right triangles $DEF$ and $CFG$ we obtain $z^2+(b-x)^2=x^2$ and $(y-z)^2+b^2=y^2$. Solving these equations for $x$ and $y$ yields $$x=\frac{b^2+z^2}{2b}\qquad\mbox{ and }\qquad y=\frac{b^2+z^2}{2z}.$$ Hence, $$\sqrt{x^2+y^2}=\frac{(b^2+z^2)^{3/2}}{2bz}.$$ This is what needs to be minimized with respect to $z$. The first-order optimality condition yields $z=b/\sqrt{2}$. Hence, the solution is $$x=\frac{3b}{4}\qquad\mbox{ and }\qquad y=\frac{3b}{2\sqrt{2}}.$$