Find a particular solution of the differential equation (x+1)dydx=2e−y−1, given that y = 0 when x = 0
Given, differential equation is (x+1)dydx=2e−y−1 ...(i)
On separting the variables
⇒dy2e−y−1=dxx+1⇒ey dy2−ey=dxx+1
On integrating both sides, we get
∫ey dy2−ey=∫dxx+1 .... (ii)
Put 2−ey=t⇒−ey=dtdy⇒eydy=−dt
Then Eq. (ii) becomes
∫−dtt=∫dxx+1⇒−log|t|=log|x+1|+log C⇒−log|2−ey|=log|C(x+1)|⇒12−ey=C(x+1)[∵−log x=log x−1=1x]
⇒2−ey=1C(x+1) ..... (iii)
Now, at x = 0 and y = 0, 2 - 1 =1C⇒C=1
On putting the value of C in Eq. (iii), we get
2−ey=1(x+1)⇒ey=2−1x+1⇒ey=2x+1x+1
⇒y=log∣∣2x+1x+1∣∣(x≠−1) [∵Iflogex=m⇒em=x]