GATE 2020 EC – Question 37
Which one of the following options contains two solutions of the differential equation $\dfrac{dy}{dx}=(y-1)x$?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) $\ln|y-1|=0.5x^2+C$ and $y=1$
Explanation
Separate the variables: $\dfrac{dy}{y-1}=x\,dx$, so $\ln|y-1|=\dfrac{x^2}2+C$ (coefficient $0.5$).
The constant function $y=1$ also satisfies the equation, since both sides become 0 (it is the case $y-1=0$ that was divided out). The function $y=-1$ gives $0\ne(-2)x$, so it is not a solution.
So the two solutions are $\ln|y-1|=0.5x^2+C$ and $y=1$.