# sum of legs of inscribed right triangle

Consider a right and isoceles triangle ABC inscribed in a circle such as its hypotenuse forms the diameter AB of the circle (the right vertex is thus at the "apex" of the circle). If we procede to an infinitesimal displacement of the "apex" along the circumference $\ ds$ with subsequent horizontal and vertical displacements $\ dx$ and $\ dy$ , how does the function defined as $\ D(x)=a(x)+b(x)$ (with a and b the lengths of the two legs of the triangle) change with respect to the change in abscissa $\ x$?

A crude depiction:

• I must be missing something here: is the abscissa x not just a(x)? Oh, i suppose it's not straight forward even then Sep 5, 2013 at 18:45
• Assuming my understanding of what abscissa x means is correct (i.e. abscissa x = a(x)), that would give change in D(x) = change in abscissa x + change in b(x), and maybe it's possible to find out how change in b(x) depends on change in a(x) Sep 5, 2013 at 18:51
• Actually, a(x) and b(x) are the two legs of the triangle: when x=0, the triangle is symmetric, but when x>0, the triangle "skews" a little
– N.E.
Sep 5, 2013 at 18:54
• I gathered that, but what's the abscissa? Sep 5, 2013 at 19:01
• The projection of the arclength's variation on the "x axis"
– N.E.
Sep 5, 2013 at 19:03

Let's assume your circle to be the unit circle. Then you have

\begin{align*} y &= \sqrt{1-x^2} \\ y^2 &= 1-x^2 \\ a(x) &= \sqrt{(1+x)^2+y^2} = \sqrt{1+2x+x^2+1-x^2} = \sqrt{2\left(1+x\right)} \\ b(x) &= \sqrt{(1-x)^2+y^2} = \sqrt{1-2x+x^2+1-x^2} = \sqrt{2\left(1-x\right)} \\ D(x) &= a(x)+b(x) = \sqrt{2\left(1+x\right)}+\sqrt{2\left(1-x\right)} \end{align*}

I don't see a way to make this expression much easier, and neither does Wolfram Alpha. But you were writing about an infinitesimal change, so let's continue:

\begin{align*} D'(x) &= \frac{\mathrm d\,D}{\mathrm dx} = \frac{\sqrt{1-x}-\sqrt{1+x}}{\sqrt{2-2x^2}} \\ D'(0) &= 0 \\ D''(x) &= \frac{\mathrm d^2\,D}{\mathrm dx^2} = -\frac1{2\sqrt2}\left( \left(1+x\right)^{-\frac32}+ \left(1-x\right)^{-\frac32} \right) \\ D''(0) &= -\frac{1}{\sqrt2} \\ D'''(0) &= 0 \end{align*}

This corresponds to the beginning of a series expansion:

\begin{align*} D(x) &= D(0) + \frac{D''(0)}{2}x^2 + O\left(x^4\right) = 2\sqrt2 + \frac{1}{2\sqrt2}x^2 + O\left(x^4\right) \end{align*}

If you want more terms, ask Wolfram Alpha. You can also obtain a series in terms of $\mathrm ds$ instead of $\mathrm dx$, simply by substituting $x=\sin s$. But since the first difference is in the $x^4$ (resp. $s^4$) term, the above approximation won't notice the difference.