Solve the first order differential equation

Click For Summary
The discussion revolves around solving the first-order differential equation x(dy/dx) + y = x^(-1/2) with the initial condition y(4) = 2. The initial steps involve integrating and applying the initial condition to derive the solution y = 2/√x + 4/x. Participants emphasize the importance of verifying the solution by substituting it back into the original equation. A user confirms the correctness of their solution through differentiation, demonstrating that it satisfies the differential equation. The conversation highlights the necessity of checking solutions in differential equations to ensure accuracy.
chwala
Gold Member
Messages
2,827
Reaction score
415
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:

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
697
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
931
  • · Replies 14 ·
Replies
14
Views
1K
  • · Replies 2 ·
Replies
2
Views
766
  • · Replies 3 ·
Replies
3
Views
2K