Question
Question: Solve the differential equation \(\left( {{e}^{x}}+1 \right)ydy+\left( y+1 \right)dx=0\)....
Solve the differential equation (ex+1)ydy+(y+1)dx=0.
Solution
Hint: Use a variable separable method to solve the given differential equation. Integrate with respect to ‘dx’ and ‘dy’ to both sides and simplify it to get the solution of the given differential equation.
Complete step-by-step answer:
We have
(ex+1)ydy+(y+1)dx=0.............(i)
Dividing the whole equation by dx, we get,
(ex+1)ydxdy+(y+1)dxdx=0
Or
(ex+1)ydxdy+(y+1)=0..........(ii)
Now, as we know, we have three types of differential equations i.e., separable, linear and homogeneous.
Now, by observation, we get that if we divide equation (ii), by ‘y’ then we can separate variables ‘x’ and ‘y’ easily. Hence, the given differential equation belongs to a separable type.
So, on dividing equation (ii), we get
(ex+1)yydxdy+(yy+1)=0
Or
(ex+1)dxdy+yy+1=0
Now transferring yy+1 to other side, we get
(ex+1)dxdy=−y(y+1)..........(iii)
Now, we can transfer functions of variable ‘x’ to one side and functions of variable ‘y’ to another side to integrate the equation with respect to ‘dx’ and ‘dy’.
So, equation (iii) can be written as
(y+1y)dy=ex+1−1dx
Now, we observe that variable are easily separated, so we can integrate them with respect to
‘x’ and ‘y’ hence, we get
∫y+1ydy=−∫ex+11dx............(iv)
Let I1=∫y+1ydy and I2=∫ex+11dx
Let us solve both the integration individually.
So, we have I1 as,
I1=∫y+1ydy
Adding and subtracting ‘1’ in numerator, we get,
I1=∫(y+1)(y+1)−1dy
Now, we can separate (y+1) as
I1=∫y+1y+1dy−∫y+11dy
Or
I1=∫1dy−∫y+11dy
As we know,
$\begin{aligned}
& \int{\dfrac{1}{x}dx}=\ln x \\
& \int{{{x}^{n}}dx=\dfrac{{{x}^{n+1}}}{n+1}} \\
\end{aligned}$
So, I1 can be simplified as,
I1=∫y0dy−ln(y+1)+C1
I1=y−ln(y+1)+C1............(v)
Now, we have I2 as
I2=∫ex+11dx
Multiplying by e−x in numerator and denominator we get,
I2=∫ex.e−x+e−xe−xdx
As we have property of surds as, ma.mb=ma+b
So, we can write I2 as
I2=∫1+e−xe−xdx..............(vi)
Let us suppose 1+e−x=t.
Differentiating both sides w.r.t. x, we get
−e−x=dxdt
Where dxdex=ex, so, we have
e−xdx=−dt
Substituting these values in equation (vi), we get
I2=∫t−dt=−∫tdt
Now, we know that ∫t1dt=lnt hence,
I2=−lnt+C2
Since, we have value of t as 1+e−x, hence I2 in terms of x can be given as
I2=−ln(1+e−x)+C2.............(vii)
Hence, from equation (iv), (v) and (vii) we get,
$\begin{aligned}
& y-\ln \left( y+1 \right)+{{C}{1}}=-\left( -\ln \left( 1+{{e}^{-x}} \right)+{{C}{2}} \right) \\
& y-\ln \left( y+1 \right)+{{C}{1}}=\ln \left( 1+{{e}^{-x}} \right)-{{C}{2}} \\
& y-\ln \left( y+1 \right)=\ln \left( 1+{{e}^{-x}} \right)+{{C}_{3}} \\
\end{aligned}$
Where −C2−C1=C3
Let us replace C3 by ‘ln C’, so we get above equation as
y−ln(y+1)=ln(1+e−x)+lnC........(viii)
Now, we know that ln a+lnb=lnab, so, equation (viii) can be given as
y=ln(y+1)+ln(C(1+e−x))
y=ln(C(y+1)(1+e−x))
As we know that if ax=N then x=logaN or vice versa.
Hence, above equation can be written as
C(y+1)(1+e−x)=ey
This is the required solution.
Note: One can go wrong if trying to solve the given differential equation by a homogenous method, as the given equation is not a homogeneous differential equation so we cannot apply this method to a given variable separable differential equation.
Observing the given differential equation as a variable separable equation is the key point of the question.