The right triangle altitude theorem

The right triangle altitude theorem describes a relation between the altitude on the hypotenuse in a right triangle and the two line segments it creates on the hypotenuse by orthogonal projection. It states that the geometric mean of the two segments equals the altitude, or in other words, [math]h^2=pq.[/math][br]The initial setting in this diagram that the triangle [i]ABC[/i] is right, hence the equation is valid. By dragging the point [i]C[/i] and keeping the triangle right it can be visually checked that the equation is correct in those cases.[br]By dragging [i]C[/i] to make a non-right triangle, its color will be slowly changed to red. This means that the formula is no longer valid, the difference of the color from green shows the difference of the sides of the equation.
The theorem of Thales ensures that the triangle is right if and only if [i]C[/i] lies on a circle with diameter [i]AB[/i]. That is, the locus of the "green" [i]C[/i] points is a circle... or something more?[br]By computing and showing the implicit locus one can find other curves so that the position of [i]C[/i] will introduce suitable lengths [i]p[/i], [i]q[/i] and [i]h[/i] to satisfy the equation.
What curve (or curves) satisfy the equation (other than the Thales circle of the diameter AB)?
Further challenges
[list=1][*]Find the missing curve exactly by placing the construction in a coordinate system and define the points to have "easy" coordinates.[br][/*][*]Factorize the curve by using the CAS command [code]Factor[LeftSide[...]-RightSide[...]][/code] in GeoGebra.[/*][*]Try to create the same curve synthetically by using a GeoGebra tool.[/*][*]You can try to prove that the equation explicitly holds for the extra curve as well, but remember that this computation may be too heavy for the current GeoGebra version.[/*][/list]
Close

Information: The right triangle altitude theorem