I was studying plane curves and came across the traktrix. A defining feature is its constant length tangent. From the adjoined figure, this relation can be captured by: $d^2 = (a-x)^2 + y^2$ via a direct application of the Pythagorean theorem. Here, $d$ is the constant length of the tangent, $a$ is the distance to the x-axis (making $(a-x)$ the width of the base of the triangle), and $x$, $y$ are the coordinates.
From this, I wanted to derive its corresponding differential equation. So I attempted implicit differentiation. My first naive attempt resulted in: $y' = \frac {a-x}{y}$, which is the reciprocal of the correct answer. I then realized I had treated $a$ as constant which was wrong. $a$, changes with $y$ and so would need to be treated as a variable.
However, if I substitute $\sqrt{d^2 - y^2}$ for $a$, I attain a tautology where everything cancels.
I am not sure how to proceed in using implicit differentiation here. My interest in doing so is only to practice and learn.
My work was following this page, starting at 'Herleitung' (Derivation).
Thank you!
I have insufficient reputation to post an image, so here is a link to the figure.


Implicitly differentiate the given equation. $$ 2dd' = 2(a-x)(a'-x')+2yy' $$ Implicitly differentiate the relation for $a$. While we're here, let's replace the radical in the result with $a$ and cancel the common factors of $2$. \begin{align*} a' &= \frac{2dd'-2yy'}{2\sqrt{d^2 - y^2}} \\ &= \frac{dd'-yy'}{a} \end{align*} Eliminate $a'$. $$ 2dd' = 2(a-x)\left( \frac{dd'-yy'}{a}-x' \right) +2yy' $$ Now choose $x$ to be the independent variable. This choice makes $x' = 0$ and $y' = \frac{\mathrm{d}y}{\mathrm{d}x}$. While we're here, let's apply that $d' = 0$ because $d$ is constant. (We could have been rewriting each $d'$ as $0$ all along.) $$ 0 = 2(a-x)\left( \frac{-y \frac{\mathrm{d}y}{\mathrm{d}x} }{a}-1 \right) +2y \frac{\mathrm{d}y}{\mathrm{d}x} $$ Now solve for $\frac{\mathrm{d}y}{\mathrm{d}x}$. $$ \frac{\mathrm{d}y}{\mathrm{d}x} = \frac{a(a-x)}{xy} $$
Assuming we started with a correct equation and relation for $a$, this is the result of the procedure you say you want to follow.