Find the particular solution of the differential equation
(1+e2x) dy+(1+y2)ex dx=0 given that y = 1 when x = 0
Given, differential equation is (1+e2x)dy+(1+y2)ex dx=0
Separating the variables, we get dy1+y2+ex dx1+e2x=0
On integrating both sides, we get ∫dy1+y2+∫exdx1+e2x=C
Put t=ex⇒exdx=dt⇒tan y+∫dt1+t2=C
⇒tan−1y+tan−1t=C⇒tan−1y+tan−1ex=C……(i)
Now, put x = 0 and y = 1
∴tan−1+tan−1e0=C⇒π4+π4=C⇒C=π2
On putting the value of C in Eq. (i), we get tan−1y+tan−1ex=π2
which is the required particular solution.