The GATE Grind

GATE 2017 EC – Question 39

Engineering Mathematics · Differential Equations · 2 marks · Multiple choice

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?

  1. $y = 1 + x + \tan^{-1}(x + c)$, where $c$ is a constant.
  2. $y = 1 + x + \tan(x + c)$, where $c$ is a constant.
  3. $y = 1 - x + \tan^{-1}(x + c)$, where $c$ is a constant.
  4. $y = 1 - x + \tan(x + c)$, where $c$ is a constant.

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)$.

More Differential Equations questions

All Differential Equations questions →