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
Let $u = x + y - 1$. Then $\frac{du}{dx} = 1 + \frac{dy}{dx} = 1 + u^2$. Separating variables gives $\tan^{-1}u = x + c$, so $u = \tan(x + c)$. Substituting back, $y = 1 - x + \tan(x + c)$.