Question
Question: Solve the following differential equation \(\dfrac{{dy}}{{dx}} = 1 + x + y + xy\)...
Solve the following differential equation
dxdy=1+x+y+xy
Solution
Hint- We will try to separate both the terms of x&y. In that case it will be easy to integrate separately.
Given equation: dxdy=1+x+y+xy
Before solving the differential equation, first let us rearrange the given equation by taking some common terms.
Now, let us separate the like terms together on either side of the equation.
⇒(1+y)dy=(1+x)dx
Now, integrating both the sides
⇒∫(1+y)dy=∫(1+x)dx
As we know that
[∵∫xdx=lnx]&[∫xndx=n+1xn+1]
So using the above formula and by solving the integral, we get
⇒ln(y+1)=2x2+x+c
As we know by the property of natural logarithm
lnx=y ⇒x=ey
So using this in the above equation, we have
Hence, the solution of the given equation isy=e2x2+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 in the solution represents natural logarithm which means logarithm with base e.