$C$ is a curve of $y(x)$ function on $XY$ , there is point $P:=(x,y)$. A parallel line and perpendicular line of C pass through the point $P$.
$AB=Y = y + y'(x) (X-x)$
$PG= Y = y - \frac{1}{y'(x)} (X-x)$
Find the curves such that $PM=MG$.
I need to find the formula of the curves family and don't know how to do it.
My solution :
I will find $M$ and $G$:
$0=y - \frac{1}{y'(x)} (X-x) \implies X_G=yy'(x)+x \implies G=(yy'(x)+x,0).$
$Y_M = y - \frac{1}{y'(x)} (0-x) \implies Y_M=y+\frac{x}{y'(x)} \implies M=(0,y+\frac{x}{y'(x)}).$
Find $PM : \sqrt{(x-0)^2+(y-(y+\frac{x}{y'(x)})^2} = \sqrt{x^2+(\frac{x}{y'(x)})^2}$
Find $MG$ : $\sqrt{(0-(yy'(x)+x))^2+(y+\frac{x}{y'(x)}-0)^2}$
$PM=MG : \sqrt{x^2+(\frac{x}{y'(x)})^2}= \sqrt{(0-(yy'(x)+x))^2+(y+\frac{x}{y'(x)}-0)^2}$
$ \implies x^2+(\frac{x}{y'(x)})^2=(y\cdot y'(x)+x)^2+(y+\frac{x}{y'(x))}^2$
$ \implies x^2 + \frac{x^2}{(y'(x))^2}=y^2\cdot (y'(x))^2+2y\cdot y'(x)\cdot x+x^2+y^2+\frac{2xy}{y'(x)}+\frac{x^2}{(y'(x))^2} $
$\implies 0=y^2\cdot y'(x)+2y\cdot y'(x)\cdot x+y^2+\frac{2xy}{y'(x)} \implies y'(x)=\sqrt{\frac{x}{-y-x}}.$
Is this part of my solution correct?