For the differential equation xydydx=(x+2)(y+2), find the equation of the curve passing through the point (1, -1).
The given curve is xydydx=(x+2)(y+2) ....(i)
On separating the variables, we get yy+2dy=x+2xdx
On integrating both sides, we get
∫yy+2dy=∫x+2xdx⇒∫(y+2−2y+2)dy=∫x+2xdx⇒∫y+2y+2dy−∫2y+2dy=∫xxdx+∫2xdx⇒∫dy−2∫1y+2dy=∫dx+2∫1xdx⇒y−2log|y+2|=x+2log|x|+C ....(ii)
Now, the curve passes through the point (1,-1).
so, put x=1 and y=1
-1-2log|-1+2|=1+2log1 +C
⇒−1−2log1=1+2log1+C⇒C=−2 [∵log1=0]
Hence, from Eq.(ii) we get
y−2log|y+2|=x+2log|x|−2⇒y−x+2=2log|x(y+2)|⇒y−x+2=log[x2(y+2)2]
which is the required equation of the curve.