Find the equation of a curve passing through the origin, given that the slope of the tangent to the curve at any point (x,y) is equal to the sum of the coordinates of the points.
According to question, the differential equation is
dydx=x+y⇒dydx−y=x
On comparing with the form dydx+Py=Q, we get
P=-1 and Q=x
∴IF=e−∫1dx⇒IF=e−x
The general solution of the given differential equation is given by
y.IF=∫Q×IFdx+C⇒ye−x=∫e−x.xdx+C⇒ye−x=x∫e−xdx−∫[ddx(x)∫e−xdx]dx+C⇒y.e−x=−xe−x+∫e−xdx+C⇒e−xy=−xe−x−e−x+C ...(ii)
Since, the curve passing through the origin so put x=0, y=0 in Eq.(ii), we get
(0)e−0=−0(e−0)−e−0+C⇒C=1
On putting the value of C in Eq. (ii), we get
⇒e−xy=−xe−x−e−x+1⇒y=−x−1+ex⇒x+y+1=ex
which is the required equation of curve.