Solution of \(\displaystyle\frac{dy}{dx}+y = 2\) is:
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(\log(2-y) = C-x\); where C is arbitrary constant of integration
The variables separate:
\( \displaystyle \frac{dy}{dx} = 2-y \)
\( \displaystyle \frac{dy}{2-y} = dx \)
Integrating both sides (the integral of \(\frac{1}{2-y}\) is \(-\log|2-y|\)):
\(-\log|2-y| = x + c\)
\(\log|2-y| = -c-x\)
Writing C for \(-c\):
\(\log(2-y) = C-x\)