GATE 2017 EC – Question 39
Which one of the following is the general solution of the first order differential equation $\frac{dy}{dx} = (x + y - 1)^2$, where $x, y$ are real?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (D) $y = 1 - x + \tan(x + c)$, where $c$ is a constant.
Explanation
Substitute $u=x+y-1$. Then $\dfrac{du}{dx}=1+\dfrac{dy}{dx}=1+u^2$.
Separate the variables: $\dfrac{du}{1+u^2}=dx$, so $\tan^{-1}u=x+c$ and $u=\tan(x+c)$.
Substituting back, $x+y-1=\tan(x+c)$, so $y=1-x+\tan(x+c)$.