Question
Question: What is the solution to the differential equation \( \dfrac{{dy}}{{dx}} = \dfrac{y}{x} \) ?...
What is the solution to the differential equation dxdy=xy ?
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: dxdy=xy
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
⇒ydy=xdx - - - - - - - - - - (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
⇒∫y1dy=∫x1dx - - - - - - - - - - - (2)
Now, integration of x1 is lnx and integration of y1 is lny .
So, equation (2) becomes
⇒lny=lnx+lnc - - - - - - - - - - (3)
Now, using the general property of logarithmic functions,
loga+logb=logab
Equation (3) becomes,
⇒lny=lnxc - - - - - - - - - (4)
Removing ln from both sides of the equation, equation (4) becomes
⇒y=xc
Hence, the general solution to the differential equation dxdy=xy is y=xc .
So, the correct answer is “ y=xc .”.
Note : Here, c is an arbitrary constant of integration and we can write lnc 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.