Skip to main contentSkip to solution

The solution of the differential equation (x+1)dydx+1−2e−y=0(x + 1)\frac{dy}{dx} + 1 - 2e^{-y} = 0, y(0)=0y(0) = 0 is

Solution

✅ Correct Option: 2

Given differential equation: (x+1)dydx+1−2e−y=0(x + 1)\frac{dy}{dx} + 1 - 2e^{-y} = 0 with initial condition y(0)=0y(0) = 0

(x+1)dydx=2e−y−1(x + 1)\frac{dy}{dx} = 2e^{-y} - 1

dy2e−y−1=dxx+1\frac{dy}{2e^{-y} - 1} = \frac{dx}{x + 1}

Multiply numerator and denominator by eye^y:

ey dy2−ey=dxx+1\frac{e^y \, dy}{2 - e^y} = \frac{dx}{x + 1}


Let u=eyu = e^y

Then du=ey dydu = e^y \, dy

The equation becomes:

du2−u=dxx+1\frac{du}{2 - u} = \frac{dx}{x + 1}

−duu−2=dxx+1-\frac{du}{u - 2} = \frac{dx}{x + 1}


Integrating both sides:

∫−duu−2=∫dxx+1\int -\frac{du}{u - 2} = \int \frac{dx}{x + 1}

−ln⁡∣u−2∣=ln⁡∣x+1∣+C-\ln|u - 2| = \ln|x + 1| + C

Substituting back u=eyu = e^y:

−ln⁡∣ey−2∣=ln⁡∣x+1∣+C-\ln|e^y - 2| = \ln|x + 1| + C


Using the initial condition y(0)=0y(0) = 0:

−ln⁡∣e0−2∣=ln⁡∣0+1∣+C-\ln|e^0 - 2| = \ln|0 + 1| + C

−ln⁡∣1−2∣=ln⁡(1)+C-\ln|1 - 2| = \ln(1) + C

−ln⁡(1)=0+C-\ln(1) = 0 + C

C=0C = 0


With C=0C = 0:

−ln⁡∣ey−2∣=ln⁡∣x+1∣-\ln|e^y - 2| = \ln|x + 1|

ln⁡∣ey−2∣−1=ln⁡∣x+1∣\ln|e^y - 2|^{-1} = \ln|x + 1|

ln⁡1∣ey−2∣=ln⁡∣x+1∣\ln\frac{1}{|e^y - 2|} = \ln|x + 1|

1∣ey−2∣=∣x+1∣\frac{1}{|e^y - 2|} = |x + 1|

1=∣x+1∣⋅∣ey−2∣1 = |x + 1| \cdot |e^y - 2|

∣(x+1)(ey−2)∣=1|(x + 1)(e^y - 2)| = 1

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question