Solveeit Logo

Question

Question: How do you find the general solution to \(\left( {{x^2} + 1} \right)y' = xy\)?...

How do you find the general solution to (x2+1)y=xy\left( {{x^2} + 1} \right)y' = xy?

Explanation

Solution

Since this question is in geometric form, first try to find out if the given equation is similar to any of the trigonometric identities. If it is similar try to reconstruct the given equation into the suitable identity which will enable us to further solve the question and reach our desired solution.

Formula used:
(1) xxdx=(lnx)\int {\dfrac{{x'}}{x}dx} = \left( {\ln x} \right)
(2) lnxy=lnx+lny\ln xy = \ln x + \ln y
(3) lnx2=2lnx\ln {x^2} = 2\ln x lnx2=2lnx\ln {x^2} = 2\ln x

Complete step by step solution:
The above equation given to us is in two variables.
Let us separate these variables such that one variable is on one side of the equation and the other is on different sides.
(x2+1)y=xy 1y×y=x(x2+1)(1)  \left( {{x^2} + 1} \right)y' = xy \\\ \Rightarrow \dfrac{1}{y} \times y' = \dfrac{x}{{\left( {{x^2} + 1} \right)}} - - - (1) \\\
Where yy' is nothing but dydx\dfrac{{dy}}{{dx}}.
Since the above equation has been separated let us proceed further.
Let us integrate equation (1) on both the sides with respect to xx.
Therefore we get
1y×ydx=xx2+1dx\int {\dfrac{1}{y} \times y'dx = \int {\dfrac{x}{{{x^2} + 1}}dx} }
Observing the above equation carefully, we can apply one of the integration formula which is
xxdx=(lnx)\int {\dfrac{{x'}}{x}dx} = \left( {\ln x} \right)
We can use this formula on Left hand side as well on the right hand side. But to apply this on the right hand side we will have to make minute changes that multiply and divide by 2 because the derivative of x2+2{x^2} + 2 is 2x2x.
Making this changes we get
lny=12(ln(x2+1))+C\ln y = \dfrac{1}{2}\left( {\ln \left( {{x^2} + 1} \right)} \right) + C where CC is the constant of integration.
We can further write the above equation as
lny=12(ln(x2+1))+lnC\ln y = \dfrac{1}{2}\left( {\ln \left( {{x^2} + 1} \right)} \right) + \ln C since lnC\ln C is a constant
Further using the properties of log, we get
lny=12lnC(x2+1)\ln y = \dfrac{1}{2}\ln C\left( {{x^2} + 1} \right)
Solving further we get
2lny=lnC(x2+1)2\ln y = \ln C\left( {{x^2} + 1} \right)
lny2=lnC(x2+1)\ln {y^2} = \ln C\left( {{x^2} + 1} \right) (By using the property of log)
Taking antilog on both sides we get
y2=C(x2+1){y^2} = C\left( {{x^2} + 1} \right)
Now taking square root on both sides we get
y=C(x2+1)y = \sqrt {C\left( {{x^2} + 1} \right)}

Hence the General solution to the given equation is y=C(x2+1)y = \sqrt {C\left( {{x^2} + 1} \right)}

Note: A equation which is separable generally looks like dydx=g(x)f(y)\dfrac{{dy}}{{dx}} = \dfrac{{g(x)}}{{f(y)}}. But not always is our question given to us in this general form. If we try to conclude the equation by separating the variables the equation becomes easier to solve and these kinds of questions are generally known as variable separable differential equations.