If k is an arbitrary constant, then what is the general solution of the equation (x+y)^{2}\frac{dy}{dx}=k^{2}?

  1. A. y+x=\tan(x+c)+k
  2. B. x+y=k~\tan\left(\frac{y-c}{k}\right)
  3. C. x-y=k~\tan\left(\frac{y-c}{k}\right)
  4. D. y-x=\tan(x+c)+k

Correct Answer: B. x+y=k~\tan\left(\frac{y-c}{k}\right)

Explanation

Let v = x+y. Then \frac{dv}{dx} = 1 + \frac{dy}{dx} \implies \frac{dy}{dx} = \frac{dv}{dx} - 1. The equation becomes v^2\left(\frac{dv}{dx} - 1\right) = k^2 \implies \frac{dv}{dx} = \frac{k^2+v^2}{v^2}. Separating variables gives \int \left(1 - \frac{k^2}{k^2+v^2}\right) \,dv = \int dx. This integrates to v - k\tan^{-1}\left(\frac{v}{k}\right) = x + c. Substituting v=x+y yields y - c = k\tan^{-1}\left(\frac{x+y}{k}\right), which means x+y = k\tan\left(\frac{y-c}{k}\right).

Related questions on Calculus

Practice more NDA Mathematics questions