Solve the differential equation y-xdy/dx=0 - Mathematics and Statistics

Solve the differential equation y-xdy/dx=0

Solution

y-x(dy/dx)=0

y=x dy/dx

dx/x=dy/y

Integrating on both sides, we get

intdx/x=intdy/y

log|x|=log|y|+log|c|

log|x|=log|cy|

x=cy

Concept: Methods of Solving First Order, First Degree Differential Equations - Differential Equations with Variables Separable Method
Is there an error in this question or solution?