Solve the first order differential equation

chwala
Gold Member
Messages
2,825
Reaction score
413
Homework Statement
Solve ##x\dfrac {dy}{dx}+y##=##x^{-1/2}##, ##x>0##given that ##y=2## when ##x=4##
Relevant Equations
First order ode
From my working...I am getting,
##xy=####\int x^{-1/2}\ dx##
##y##=##\dfrac {2}{x}##+##\dfrac {k}{x}##
##y##=##\dfrac {2}{x}##+##\dfrac {6}{x}##
##y##=##\dfrac {8}{x}##
i hope am getting it right...
 
Last edited:
Physics news on Phys.org
chwala said:
Homework Statement:: Solve ##x\dfrac {dy}{dx}+y##=##x^{-1/2}##, given that ##y=2## when ##x=4##
Relevant Equations:: First order ode

From my working...I am getting,
##xy=####\int x^{-1/2}\ dx##
##y##=##\dfrac {2}{x}##+##\dfrac {k}{x}##
How did you get the last line in the above quote?
 
George Jones said:
How did you get the last line in the above quote?
think slight error there on my typo...
##y##=##\dfrac {2}{\sqrt x}##+##\dfrac {k}{x}##
applying initial condition, ##y(4)=2##, we get;
##y##=##\dfrac {2}{\sqrt x}##+##\dfrac {4}{ x}##
 
chwala said:
think slight error there on my typo...
##y##=##\dfrac {2}{\sqrt x}##+##\dfrac {k}{x}##
applying initial condition, ##y(4)=2##, we get;
##y##=##\dfrac {2}{\sqrt x}##+##\dfrac {4}{ x}##
Looks good.

From post #1:
chwala said:
##y##=##\dfrac {2}{x}##+##\dfrac {6}{x}##
##y##=##\dfrac {8}{x}##

i hope am getting it right...
No need to hope for anything -- once you get a solution, you should always check that it satisfies the differential equation. That would have showed that you made an error.

There's an important first step that you didn't show.
##x\dfrac {dy}{dx}+y = x^{-1/2}, x>0##
##\Rightarrow d(xy) = x^{-1/2}##
##\Rightarrow xy = \int x^{-1/2}dx = 2x^{1/2} + k##
and so on.
The second line above takes advantage of the fact that ##\frac {dy}{dx} + y## is the differential of ##xy##.
 
Last edited:
Mark44 said:
Looks good.

From post #1:

No need to hope for anything -- once you get a solution, you should always check that it satisfies the differential equation. That would have showed that you made an error.

There's an important first step that you didn't show.
##x\dfrac {dy}{dx}+y = x^{-1/2}, x>0##
##\Rightarrow d(xy) = x^{-1/2}##
##\Rightarrow xy = \int x^{-1/2}dx = 2x^{1/2} + k##
and so on.
The second line above takes advantage of the fact that ##\frac {dy}{dx} + y## is the differential of ##xy##.
Thanks Mark, I actually have all the steps on paper,I just went ahead and posted final steps...true, I should be able verify the solution by differentiation...cheers

ok let me verify my solution, given
##x\dfrac {dy}{dx}+y##=##x^{-1/2}.##
We shall verify the equation above by having,
##x(-x^{-3/2} - 4x^{-2})+2x^{-1/2}+4x^{-1}##=
##-x^{-0.5} - 4x^{-1} +2x^{-0.5}+4x^{-1} ##= ## x^{-0.5}## bingo!:cool:
 
Last edited:
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top