Skip to content
Worked Examples · Example 9

Q.Find the general solution of the differential equation dydx+y=1\frac{dy}{dx}+y=1, (y≠1)(y\ne 1)

CBSENCERTSubjective· 3mImportance★★★★★
17% · 9/54 Questions
✓ Free question

Separating variables in dydx=1−y\dfrac{dy}{dx}=1-y and integrating gives y=1+Ce−xy=1+Ce^{-x}.

Variable-separable: write dy1−y=dx\dfrac{dy}{1-y}=dx and integrate both sides. Recall ∫dy1−y=−log⁡∣1−y∣+c\displaystyle\int\dfrac{dy}{1-y}=-\log|1-y|+c.

Given: dydx+y=1,  (y≠1)\dfrac{dy}{dx}+y=1,\;(y\ne1).

  1. Rearrange: dydx=1−y\dfrac{dy}{dx}=1-y.
  2. Separate variables: dy1−y=dx\dfrac{dy}{1-y}=dx.
  3. Integrate: ∫dy1−y=∫dx  ⇒  −log⁡∣1−y∣=x+c1\displaystyle\int\dfrac{dy}{1-y}=\int dx\;\Rightarrow\;-\log|1-y|=x+c_1.
  4. So log⁡∣1−y∣=−x−c1  ⇒  ∣1−y∣=e−xe−c1\log|1-y|=-x-c_1\;\Rightarrow\;|1-y|=e^{-x}e^{-c_1}.
  5. Write 1−y=Ae−x1-y=Ae^{-x} (with A=±e−c1A=\pm e^{-c_1} arbitrary).
  6. Solve for yy: y=1−Ae−xy=1-Ae^{-x}. Renaming −A=C-A=C: y=1+Ce−xy=1+Ce^{-x}.
✓Final answer

General solution:   y=1+Ce−x  \;y=1+Ce^{-x}\; (CC arbitrary).

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.