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 separating the variables
⇒dy2e−y−1=dxx+1⇒eydy2−ey=dxx+1
On integrating both sides, we get
∫eydy2−ey=∫dxx+1 ...(ii)
Put 2−ey=t⇒−ey=dtdy⇒eydy=−dt
Then Eq. (ii) becomes
∫−dtt=∫dxx+1⇒−log|t|=log|x+1|+logC⇒−log|2−ey|=log|C(x+1)|⇒12−ey=C(x+1) [∵−logx=logx−1=1x]
⇒2−e−y=1C(x+1)
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+2−1x+1⇒ey=2x+1x+1⇒y=log∣∣2x+1x+1∣∣,(x≠−1) [∵If logex=m⇒em=x]