Question
Question: The solution of (x+y+1)dy = dx is [a] \(x+y+2=C{{e}^{y}}\) [b] \(x+y+4=C\log y\) [c] \(\log \l...
The solution of (x+y+1)dy = dx is
[a] x+y+2=Cey
[b] x+y+4=Clogy
[c] log(x+y+1)=Cy
[d] log(x+y+2)=C+y2
Solution
Hint: Divide both sides of the equation by dy and hence prove that the given equation is equivalent to the differential equation dydx−x=y+1. Use the fact that the solution of the differential equation of the form dxdy+P(x)y=Q(x) is given by yIF=∫Q(x)IFdx, where the integrating factor IF is given by IF=e∫P(x)dx
Hence find the integrating factor of the above equation and hence solve the differential equation.
Complete step-by-step answer:
We have
(x+y+1)dy=dx
Dividing both sides by dy, we get
dydx=x+y+1
Subtracting x from sides, we get
dydx−x=y+1, which is of the form dxdx+P(y)x=Q(y) and hence is a linear differential equation with the dependent variable as x and independent variable as y.
We know that the solution of the differential equation of the form dxdy+P(x)y=Q(x) is given by yIF=∫Q(x)IFdx, where the integrating factor IF is given by IF=e∫P(x)dx
Here P(y) = -1 and Q(y) = y+1
Hence, we have
IF=e∫−1dy=e−y and the solution of the equation is given by
xe−y=∫(y+1)e−ydy
We know that if dxdf(x)=u(x) and ∫g(x)dx=v(x), then ∫f(x)g(x)dx=f(x)v(x)−∫u(x)v(x)dx
This is known as integration by parts rule. f(x) is known as the first function and g(x) as the second function.
Now, we know that dyd(y+1)=1 and ∫e−ydy=−e−y
Hence, using integration by parts taking y+1 as the first function and e−y as the second function, we get
∫(y+1)e−y=−(y+1)e−y+∫e−y=−(y+1)e−y−e−y=−e−y(y+2)
Hence, we have
xe−y=−e−y(y+2)+C, where C is a constant of integration
Multiplying both sides by ey, we get
x=−y−2+Cey
Hence, we have
x+y+2=Cey, which is the required solution of the differential equation.
Hence option [a] is correct.
Note: Alternative solution
Put x+y+1 =t
Differentiating both sides with respect to y, we get
dydt=dydx+1⇒dydx=dydt−1
Hence, we have
dydt−1=t
Adding 1 on both sides, we get
dydt=t+1
Hence, we have
t+1dt=dy
Integrating both sides, we get
ln(t+1)=y+a, where a is a constant
Hence, we have
t+1=eyea⇒t+1=Cey
where C=ea
Reverting to original variables, we get
x+y+1+1=Cey⇒x+y+2=Cey
Hence option [a] is correct.