Solveeit Logo

Question

Question: What is the solution to the differential equation \( \dfrac{{dy}}{{dx}} = \dfrac{y}{x} \) ?...

What is the solution to the differential equation dydx=yx\dfrac{{dy}}{{dx}} = \dfrac{y}{x} ?

Explanation

Solution

Hint : This is a differential equation and to find its solution, we are going to first separate the terms and arrange the like terms on the same side of equal to sign and then integrate on both the sides. After integrating, using basic properties of logarithmic functions, we will get our solution.

Complete step by step solution:
The given differential equation is: dydx=yx\dfrac{{dy}}{{dx}} = \dfrac{y}{x}
Now, separate the variables and arrange like terms on the same side of equal to sign. So, the given differential equation can be written as
dyy=dxx\Rightarrow \dfrac{{dy}}{y} = \dfrac{{dx}}{x} - - - - - - - - - - (1)
By separating the variables we must keep in mind that dy and dx are in the numerators with their respective function.
Now, integrate on both the sides of equation (1), we get
1ydy=1xdx\Rightarrow \smallint \dfrac{1}{y}dy = \smallint \dfrac{1}{x}dx - - - - - - - - - - - (2)
Now, integration of 1x\dfrac{1}{x} is lnx\ln x and integration of 1y\dfrac{1}{y} is lny\ln y .
So, equation (2) becomes
lny=lnx+lnc\Rightarrow \ln y = \ln x + \ln c - - - - - - - - - - (3)
Now, using the general property of logarithmic functions,
loga+logb=logab\log a + \log b = \log ab
Equation (3) becomes,
lny=lnxc\Rightarrow \ln y = \ln xc - - - - - - - - - (4)
Removing ln\ln from both sides of the equation, equation (4) becomes
y=xc\Rightarrow y = xc
Hence, the general solution to the differential equation dydx=yx\dfrac{{dy}}{{dx}} = \dfrac{y}{x} is y=xcy = xc .
So, the correct answer is “ y=xcy = xc .”.

Note : Here, c is an arbitrary constant of integration and we can write lnc\ln c instead of c as our solution is in terms of natural logarithm. Writing c is very important in this question and one must not forget to add the constant at the end of integration.