Solve the equation $y-3px+ayp^2=0$ where $p=\frac {dy}{dx}$

calculusordinary differential equations

Solve the equation $y-3px+ayp^2=0$ where $p=\frac {dy}{dx}$

My Attempt:
Given
$$y-3px+ayp^2=0$$
$$3px=y+ayp^2$$
$$x=\frac {1}{3} \cdot \frac {y}{p} + \frac {a}{3} \cdot yp$$
This is solvable for x. Differentiating both sides with respect to $y$
$$\frac {dx}{dy}=\frac {1}{3} \cdot \frac {p-y\frac {dp}{dy}}{p^2} + \frac {a}{3} (y\cdot \frac {dp}{dy} +p)$$
$$\frac {dx}{dy} = \frac {1}{3p} – \frac {y}{3p^2} \cdot \frac {dp}{dy} + \frac {ay}{3} \cdot \frac {dp}{dy} + \frac {ap}{3}$$
$$\frac {1}{p} – \frac {1}{3p} -\frac {ap}{3} = \frac {y}{3} \cdot \frac {dp}{dy}\cdot \frac {ap^2-1}{p^2}$$
$$\frac {3-1-ap^2}{3p} = \frac {y}{3} \cdot \frac {ap^2-1}{p^2} \cdot \frac {dp}{dy}$$
$$(2-ap^2) = \frac {y}{p} \cdot (ap^2-1) \cdot \frac {dp}{dy}$$
$$\frac {dy}{y} = \frac {ap^2-1}{p(2-ap^2)} dp$$

How do I integrate the RHS of above equation?

Best Answer

Hint 1:

$$\frac{ap^2-1}{p(2-ap^2)} = -\frac{1-ap^2}{p(2-ap^2)} = - \frac{(2-ap^2) - 1}{p(2-ap^2)} = - \frac{1}{p} + \frac{1}{p(2-ap^2)}$$

Hint 2: The second expression involves two simple logarithmic expressions and can be and explicitly calculated.