Question:

The solution of the differential equation \((1+e^{-x})\left(1+y^{2}\right)\frac{dy}{dx}=y^{2}\) which passes through the point \((0,1)\) is

Show Hint

Separate variables, integrate and use the given point to find the constant.
Updated On: Nov 17, 2026
  • \(y^{2}+1=y\left(\log \left(\frac{1+e^{x}}{2}\right)+2\right)\)
  • \(y^{2}+1=y\left(\log \left(\left(\frac{1+e^{-x}}{2}\right)+2\right)\right)\)
  • \(y^{2}=1+y\log \left(\frac{1+e^{-x}}{2}\right)\)
  • \(y^{2}=1+y\log \left(\frac{1+e^{x}}{2}\right)\)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Understanding the Concept
\((1+e^{-x})(1+y^2)\frac{dy}{dx}=y^2\Rightarrow\frac{1+y^2}{y^2}dy=\frac{dx}{1+e^{-x}}=\frac{e^x}{1+e^x}dx\).

Step 2: Integrate
\(\int\left(1+\frac{1}{y^2}\right)\!dy\) gives \(y-\frac{1}{y}\), and \(\int\frac{e^x}{1+e^x}dx=\log(1+e^x)\).
So \(y-\frac{1}{y}=\log(1+e^x)+c\).

Step 3: Use the point (0,1)
\(0=\log2+c\Rightarrow c=-\log2\).

Step 4: Simplify
\(y-\frac{1}{y}=\log\frac{1+e^x}{2}\). Multiply by \(y\): \(y^2=1+y\log\frac{1+e^x}{2}\).

Final Answer:
The solution is \(y^2=1+y\log\left(\frac{1+e^x}{2}\right)\). \[ \boxed{\text{(D) }y^2=1+y\log\left(\dfrac{1+e^{x}}{2}\right)} \]
Was this answer helpful?
0
0