Find the equation of a curve passing through the point (0,2) given that the sum of the coordinates of any point on the curve exceeds the magnitude of the slope of the tangent to the curve at that point by 5.
According to question, we have x+y=dydx+5
or dydx+(−1)y=x−5 ...(i)
It is a linear differential equation of the form dydx+Py=Q
∴ P=-1 and Q=x-5 and IF=e∫Pdx⇒IF=e∫(−1)dx⇒IF=e−x
The general equation of the curve is given by
y.IF=∫Q×IFdx+C⇒y.e−x=∫(x−5)e−xdx+C⇒y.e−x=(x−5)∫e−xdx−∫[ddx(x−5).∫e−xdx]dx+C⇒y.e−x=(x−5)(−e−x)−∫(−e−x)dx+C⇒y.e−x=(5−x)e−x−e−x+C ...(ii)
The curve passes through the point (0,2), therefore
2e−0=(5−0)e−0−e0+C⇒2=5−1+C⇒C=2−4=−2
On putting the value of C in Eq. (ii), we get
e−xy=(5−x)e−x−e−x−2⇒y=4−x−2ex
which is the required equation of the curve in reference.