I have a question: $$p^{2}x+q^{2}y = z.$$
I formed the Charpit auxiliary equation as follows
$$ \frac{\mathrm{d}x}{2px} = \frac{\mathrm{d}y}{2py} = \frac{\mathrm{d}z}{2(p^2x + q^2y)} = \frac{\mathrm{d}p}{p-p^2} = \frac{\mathrm{d}q}{q-q^2}.$$
After forming the equation I was unable to solve further (I applied everything I was taught). So I did some research (checked several books, and on the website as well) and found the next step to be
$$\frac{p^2\,\mathrm{d}x + 2px\,\mathrm{d}p}{p^2x} = \frac{q^2\,\mathrm{d}y + 2qy\,\mathrm{d}q}{q^2y}. \tag{1}$$
After which I was able to solve. But I can not understand how they derived the relation (1). Can someone explain what method they applied here?
Disclaimer: The course we are being taught is engineering mathematics.

Charpit's equation: $$\boxed{\frac{dx}{2px} = \frac{dy}{\color{red}{2qy}} = \frac{dz}{2(p^2x + q^2y)} = \frac{dp}{p-p^2} = \frac{dq}{q-q^2}}$$ We have from Charpit's equation $$\frac{dy}{2qy} =\frac{dq}{q-q^2}$$ Rearranging terms $$(q-q^2){dy} =2qy{dq}$$ $$q{dy} =2qy{dq}+q^2dy$$ $$\text { (1) }\frac{dy}{qy} =\frac {2qy{dq}+q^2dy}{q^2y}$$ We have also from Charpit's equation that : $$\frac{dx}{2px} = \frac{dp}{p-p^2}$$ $${dx}{(p-p^2)} = 2px{dp}$$ $${pdx} = 2px{dp}+p^2dx$$ $$\text { (2) }\frac {dx}{px} = \frac {2px{dp}+p^2dx} {p^2x}$$ We use a third equality from Charpit's equation $$\frac {dx}{2px}=\frac{dy}{2qy} \implies \frac {dx}{px}=\frac{dy}{qy} $$ Therefore $$\boxed{\frac{p^2\,\mathrm{d}x + 2px\,\mathrm{d}p}{p^2x} = \frac{q^2\,\mathrm{d}y + 2qy\,\mathrm{d}q}{q^2y}}$$ That you can easily integrate...