Solveeit Logo

Question

Question: Solve the following differential equation \(\dfrac{{dy}}{{dx}} = 1 + x + y + xy\)...

Solve the following differential equation
dydx=1+x+y+xy\dfrac{{dy}}{{dx}} = 1 + x + y + xy

Explanation

Solution

Hint- We will try to separate both the terms of x&yx\& y. In that case it will be easy to integrate separately.

Given equation: dydx=1+x+y+xy\dfrac{{dy}}{{dx}} = 1 + x + y + xy
Before solving the differential equation, first let us rearrange the given equation by taking some common terms.

dydx=1+x+y+xy dydx=1(1+x)+y(1+x) dydx=(1+x)(1+y)  \Rightarrow \dfrac{{dy}}{{dx}} = 1 + x + y + xy \\\ \Rightarrow \dfrac{{dy}}{{dx}} = 1\left( {1 + x} \right) + y\left( {1 + x} \right) \\\ \Rightarrow \dfrac{{dy}}{{dx}} = \left( {1 + x} \right)\left( {1 + y} \right) \\\

Now, let us separate the like terms together on either side of the equation.
dy(1+y)=(1+x)dx\Rightarrow \dfrac{{dy}}{{\left( {1 + y} \right)}} = \left( {1 + x} \right)dx
Now, integrating both the sides
dy(1+y)=(1+x)dx\Rightarrow \int {\dfrac{{dy}}{{\left( {1 + y} \right)}}} = \int {\left( {1 + x} \right)dx}
As we know that
[dxx=lnx]&[xndx=xn+1n+1]\left[ {\because \int {\dfrac{{dx}}{x} = \ln x} } \right]\& \left[ {\int {{x^n}dx = \dfrac{{{x^{n + 1}}}}{{n + 1}}} } \right]
So using the above formula and by solving the integral, we get
ln(y+1)=x22+x+c\Rightarrow \ln \left( {y + 1} \right) = \dfrac{{{x^2}}}{2} + x + c
As we know by the property of natural logarithm
lnx=y x=ey  \ln x = y \\\ \Rightarrow x = {e^y} \\\
So using this in the above equation, we have

y+1=ex22+x+c y=ex22+x+c1  \Rightarrow y + 1 = {e^{\dfrac{{{x^2}}}{2} + x + c}} \\\ \Rightarrow y = {e^{\dfrac{{{x^2}}}{2} + x + c}} - 1 \\\

Hence, the solution of the given equation isy=ex22+x+c1y = {e^{\dfrac{{{x^2}}}{2} + x + c}} - 1

Note- To solve any differential equation, rearranging of the equation in the correct form at the beginning is a very basic step. Re-arrangement should be made in such a way as the terms on L.H.S. and R.H.S. must contain different variables. ln\ln in the solution represents natural logarithm which means logarithm with base ee.