Question
Question: A solution to the differential equation: \[\left( \dfrac{dy}{dx} \right)-x\dfrac{dy}{dx}+y=0\] is?...
A solution to the differential equation: (dxdy)−xdxdy+y=0 is?
Solution
Hint: Take dxdy common from the first two terms. Take all the terms containing ‘x’ one side and all the terms containing ‘y’ at another side. Integrate the side containing ‘x’ with respect to the variable x and the side containing ‘y’ with respect to the variable y. Add an arbitrary constant or constant of integration at one of the sides to get the answer.
Complete step-by-step solution -
We have been given the differential equation: (dxdy)−xdxdy+y=0.
Taking dxdy common from the first two terms, we get,
(dxdy)(1−x)+y=0
This can be written as,
y=−dxdy(1−x)⇒y=dxdy(x−1)
Now, separating the terms containing ‘y’ to the L.H.S and the terms containing ‘x’ to the R.H.S, we get,
ydy=(x−1)dx
Integrating the above expression, we get,
∫ydy=∫(x−1)dx
We know that, ∫xdx=logx. Therefore,
logy=log(x−1)+logc, where logc is any arbitrary constant.
Now, using the property of logarithm given by: logm+logn=logmn, we get,
logy=logc(x−1)
Removing log from both sides, we get,
y=c(x−1)⇒(x−1)y=c
Note: One may note that, we have chosen ‘logc’ and not ‘c’ as our arbitrary constant or you can say constant of integration. The reason is that we can easily use the properties of logarithm and simplify the expression. If we will use ‘c’ as the arbitrary constant then we have to use the property of exponents to simplify which will be lengthy. However, the answer will not change. The above method of finding a solution is known as a variable separable method.