Solveeit Logo

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=Ceyx+y+2=C{{e}^{y}}
[b] x+y+4=Clogyx+y+4=C\log y
[c] log(x+y+1)=Cy\log \left( x+y+1 \right)=Cy
[d] log(x+y+2)=C+y2\log \left( x+y+2 \right)=C+{{y}^{2}}

Explanation

Solution

Hint: Divide both sides of the equation by dy and hence prove that the given equation is equivalent to the differential equation dxdyx=y+1\dfrac{dx}{dy}-x=y+1. Use the fact that the solution of the differential equation of the form dydx+P(x)y=Q(x)\dfrac{dy}{dx}+P\left( x \right)y=Q\left( x \right) is given by yIF=Q(x)IFdxyIF=\int{Q\left( x \right)IFdx}, where the integrating factor IF is given by IF=eP(x)dxIF={{e}^{\int{P\left( x \right)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\left( x+y+1 \right)dy=dx
Dividing both sides by dy, we get
dxdy=x+y+1\dfrac{dx}{dy}=x+y+1
Subtracting x from sides, we get
dxdyx=y+1\dfrac{dx}{dy}-x=y+1, which is of the form dxdx+P(y)x=Q(y)\dfrac{dx}{dx}+P\left( y \right)x=Q\left( y \right) 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 dydx+P(x)y=Q(x)\dfrac{dy}{dx}+P\left( x \right)y=Q\left( x \right) is given by yIF=Q(x)IFdxyIF=\int{Q\left( x \right)IFdx}, where the integrating factor IF is given by IF=eP(x)dxIF={{e}^{\int{P\left( x \right)dx}}}
Here P(y) = -1 and Q(y) = y+1
Hence, we have
IF=e1dy=eyIF={{e}^{\int{-1dy}}}={{e}^{-y}} and the solution of the equation is given by
xey=(y+1)eydyx{{e}^{-y}}=\int{\left( y+1 \right){{e}^{-y}}dy}
We know that if df(x)dx=u(x)\dfrac{df\left( x \right)}{dx}=u\left( x \right) and g(x)dx=v(x)\int{g\left( x \right)}dx=v\left( x \right), then f(x)g(x)dx=f(x)v(x)u(x)v(x)dx\int{f\left( x \right)g\left( x \right)dx}=f\left( x \right)v\left( x \right)-\int{u\left( x \right)v\left( x \right)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 ddy(y+1)=1\dfrac{d}{dy}\left( y+1 \right)=1 and eydy=ey\int{{{e}^{-y}}dy}=-{{e}^{-y}}
Hence, using integration by parts taking y+1y+1 as the first function and ey{{e}^{-y}} as the second function, we get
(y+1)ey=(y+1)ey+ey=(y+1)eyey=ey(y+2)\int{\left( y+1 \right){{e}^{-y}}}=-\left( y+1 \right){{e}^{-y}}+\int{{{e}^{-y}}}=-\left( y+1 \right){{e}^{-y}}-{{e}^{-y}}=-{{e}^{-y}}\left( y+2 \right)
Hence, we have
xey=ey(y+2)+Cx{{e}^{-y}}=-{{e}^{-y}}\left( y+2 \right)+C, where C is a constant of integration
Multiplying both sides by ey{{e}^{y}}, we get
x=y2+Ceyx=-y-2+C{{e}^{y}}
Hence, we have
x+y+2=Ceyx+y+2=C{{e}^{y}}, 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
dtdy=dxdy+1 dxdy=dtdy1 \begin{aligned} & \dfrac{dt}{dy}=\dfrac{dx}{dy}+1 \\\ & \Rightarrow \dfrac{dx}{dy}=\dfrac{dt}{dy}-1 \\\ \end{aligned}
Hence, we have
dtdy1=t\dfrac{dt}{dy}-1=t
Adding 1 on both sides, we get
dtdy=t+1\dfrac{dt}{dy}=t+1
Hence, we have
dtt+1=dy\dfrac{dt}{t+1}=dy
Integrating both sides, we get
ln(t+1)=y+a\ln \left( t+1 \right)=y+a, where a is a constant
Hence, we have
t+1=eyea t+1=Cey \begin{aligned} & t+1={{e}^{y}}{{e}^{a}} \\\ & \Rightarrow t+1=C{{e}^{y}} \\\ \end{aligned}
where C=eaC={{e}^{a}}
Reverting to original variables, we get
x+y+1+1=Cey x+y+2=Cey \begin{aligned} & x+y+1+1=C{{e}^{y}} \\\ & \Rightarrow x+y+2=C{{e}^{y}} \\\ \end{aligned}
Hence option [a] is correct.