Given $$\begin{align*} x^2 + y^2 &= z^2\\ ax + by &= cz\\ a^2 + b^2 &= c^2\\ \end{align*}$$
how can I solve for $y$ and $z$ in terms of $x$?
My work so far:
Note that once we solve for $y$ in terms of $x$, then $z$ will immediately follow. So let's start with $y$:
$$z^2 = \frac{(ax + by)^2}{c^2}\\ y^2 = \frac{a^2x^2 + 2axby + b^2y^2 }{c^2} - x^2\\ (1-\frac{b^2}{c^2})y^2 - \frac{2abx}{c^2}y-(\frac{a^2}{c^2}-1)x^2 = 0.$$
To avoid getting lost, define new constants $A,B,C$, such that $$Ay^2 + Bxy +Cx^2 = 0\\ y = \frac{-Bx \pm \sqrt{B^2x^2 - 4ACx^2}}{2A}\\ y =\frac{-B \pm \sqrt{B^2 - 4AC}}{2A}x.$$
I believe that this can be simplified further, and that in fact $B^2 = 4AC$, but haven't been able to show that yet.
Is my work so far correct? Is there a simpler approach? How do I finish this?
How in general are these problems best solved? (The approach I've taken is messy brute force - is there a more direct, simpler, or elegant approach?)
Update
Inspired by dxiv's hint:
$$(x^2 + y^2)(a^2 + b^2) = c^2z^2 = (ax + by)^2\\ a^2x^2 + b^2x^2 + a^2y^2 + b^2y^2 = a^2x^2 + b^2y^2 + 2axby\\ b^2x^2 + a^2y^2 = 2axby\\ a^2y^2 -2abxy + b^2x^2= 0\\ y = \frac{2abx \pm \sqrt{4a^2b^2x^2 - 4a^2b^2x^2}}{2a^2}\\ y = \frac b a x. $$