Solveeit Logo

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\left( {{e}^{x}}+1 \right)ydy+\left( y+1 \right)dx=0.

Explanation

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)\left( {{e}^{x}}+1 \right)ydy+\left( y+1 \right)dx=0.............\left( i \right)

Dividing the whole equation by dx, we get,

(ex+1)ydydx+(y+1)dxdx=0\left( {{e}^{x}}+1 \right)y\dfrac{dy}{dx}+\left( y+1 \right)\dfrac{dx}{dx}=0

Or

(ex+1)ydydx+(y+1)=0..........(ii)\left( {{e}^{x}}+1 \right)y\dfrac{dy}{dx}+\left( y+1 \right)=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)yydydx+(y+1y)=0\left( {{e}^{x}}+1 \right)\dfrac{y}{y}\dfrac{dy}{dx}+\left( \dfrac{y+1}{y} \right)=0

Or

(ex+1)dydx+y+1y=0\left( {{e}^{x}}+1 \right)\dfrac{dy}{dx}+\dfrac{y+1}{y}=0

Now transferring y+1y\dfrac{y+1}{y} to other side, we get

(ex+1)dydx=(y+1)y..........(iii)\left( {{e}^{x}}+1 \right)\dfrac{dy}{dx}=-\dfrac{\left( y+1 \right)}{y}..........(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

(yy+1)dy=1ex+1dx\left( \dfrac{y}{y+1} \right)dy=\dfrac{-1}{{{e}^{x}}+1}dx
Now, we observe that variable are easily separated, so we can integrate them with respect to

‘x’ and ‘y’ hence, we get

yy+1dy=1ex+1dx............(iv)\int{\dfrac{y}{y+1}dy=-\int{\dfrac{1}{{{e}^{x}}+1}dx............(iv)}}

Let I1=yy+1dy{{I}_{1}}=\int{\dfrac{y}{y+1}dy} and I2=1ex+1dx{{I}_{2}}=\int{\dfrac{1}{{{e}^{x}}+1}dx}

Let us solve both the integration individually.

So, we have I1{{I}_{1}} as,

I1=yy+1dy{{I}_{1}}=\int{\dfrac{y}{y+1}dy}

Adding and subtracting ‘1’ in numerator, we get,

I1=(y+1)1(y+1)dy{{I}_{1}}=\int{\dfrac{\left( y+1 \right)-1}{\left( y+1 \right)}dy}

Now, we can separate (y+1) as

I1=y+1y+1dy1y+1dy{{I}_{1}}=\int{\dfrac{y+1}{y+1}dy}-\int{\dfrac{1}{y+1}dy}

Or

I1=1dy1y+1dy{{I}_{1}}=\int{1dy}-\int{\dfrac{1}{y+1}dy}

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{{I}_{1}} can be simplified as,

I1=y0dyln(y+1)+C1{{I}_{1}}=\int{{{y}^{0}}dy-\ln \left( y+1 \right)+{{C}_{1}}}

I1=yln(y+1)+C1............(v){{I}_{1}}=y-\ln \left( y+1 \right)+{{C}_{1}}............\left( v \right)

Now, we have I2{{I}_{2}} as

I2=1ex+1dx{{I}_{2}}=\int{\dfrac{1}{{{e}^{x}}+1}dx}

Multiplying by ex{{e}^{-x}} in numerator and denominator we get,
I2=exex.ex+exdx{{I}_{2}}=\int{\dfrac{{{e}^{-x}}}{{{e}^{x}}.{{e}^{-x}}+{{e}^{-x}}}dx}

As we have property of surds as, ma.mb=ma+b{{m}^{a}}.{{m}^{b}}={{m}^{a+b}}

So, we can write I2{{I}_{2}} as

I2=ex1+exdx..............(vi){{I}_{2}}=\int{\dfrac{{{e}^{-x}}}{1+{{e}^{-x}}}dx}..............\left( vi \right)

Let us suppose 1+ex=t1+{{e}^{-x}}=t.

Differentiating both sides w.r.t. x, we get

ex=dtdx-{{e}^{-x}}=\dfrac{dt}{dx}

Where ddxex=ex\dfrac{d}{dx}{{e}^{x}}={{e}^{x}}, so, we have

exdx=dt{{e}^{-x}}dx=-dt

Substituting these values in equation (vi), we get

I2=dtt=dtt{{I}_{2}}=\int{\dfrac{-dt}{t}=-\int{\dfrac{dt}{t}}}

Now, we know that 1tdt=lnt\int{\dfrac{1}{t}dt=\ln t} hence,

I2=lnt+C2{{I}_{2}}=-\ln t+{{C}_{2}}

Since, we have value of t as 1+ex1+{{e}^{-x}}, hence I2{{I}_{2}} in terms of x can be given as

I2=ln(1+ex)+C2.............(vii){{I}_{2}}=-\ln \left( 1+{{e}^{-x}} \right)+{{C}_{2}}.............\left( vii \right)

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 C2C1=C3-{{C}_{2}}-{{C}_{1}}={{C}_{3}}

Let us replace C3{{C}_{3}} by ‘ln C’, so we get above equation as

yln(y+1)=ln(1+ex)+lnC........(viii)y-\ln \left( y+1 \right)=\ln \left( 1+{{e}^{-x}} \right)+\ln C........\left( viii \right)

Now, we know that ln a+lnb=lnab\text{ln }a+\ln b=\ln ab, so, equation (viii) can be given as
y=ln(y+1)+ln(C(1+ex))y=\ln \left( y+1 \right)+\ln \left( C\left( 1+{{e}^{-x}} \right) \right)

y=ln(C(y+1)(1+ex))y=\ln \left( C\left( y+1 \right)\left( 1+{{e}^{-x}} \right) \right)

As we know that if ax=N{{a}^{x}}=N then x=logaNx={{\log }_{a}}N or vice versa.

Hence, above equation can be written as

C(y+1)(1+ex)=eyC\left( y+1 \right)\left( 1+{{e}^{-x}} \right)={{e}^{y}}

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.