Solving Integrating Factor Homework Statement

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
12 replies · 2K views
gtfitzpatrick
Messages
372
Reaction score
0

Homework Statement



use an integrating factor to solve
[tex] \frac{ \partial u}{ \partial x} = -2 + \frac{u}{2x} [/tex]


The Attempt at a Solution


let P(x) = [tex]\frac {1}{2x}[/tex]

M(x) = [tex]e^(\int(\frac {1}{2x}dx))[/tex]

= [tex]\sqrt{x}[/tex]

so u = [tex] \frac{1}{ \sqrt{x}} \int-2\sqrt{x} dx = \frac{1}{ \sqrt{x}}(\frac{2}{3} x^(3/2))[/tex]

=-4x + k


anyone got any ideas if I am doing this right?
thanks
 
Physics news on Phys.org
You have a numerical integration factor in the wrong place

gtfitzpatrick said:
so u = [tex] \frac{1}{ \sqrt{x}} \int-2\sqrt{x} dx = \frac{1}{ \sqrt{x}}(\frac{2}{3} x^{(3/2)} + \mathbf{k})[/tex]

[tex]=-4x + \mathbf{\frac{k}{\sqrt{x}}}[/tex]
 
deadly thanks a mill
 
sorry should it be [tex] =\frac {-4x}{3} + \mathbf{\frac{k}{\sqrt{x}}}[/tex]
 
Sorry, I looked at the -4x in your solution, which is correct, so I missed an earlier mistake. You should have had

[tex]P(x) = -\frac{1}{2x}.[/tex]

This changes quite a bit, so you should go back through the algebra.
 
i don't understand why [tex] P(x) = -\frac{1}{2x}.[/tex] should it not be term infront of u?
 
gtfitzpatrick said:
i don't understand why [tex] P(x) = -\frac{1}{2x}.[/tex] should it not be term infront of u?

[tex]P(x)[/tex] is defined with that term on the same side as the derivative:

[tex]u'(x) + P(x) u(x) = q(x).[/tex]

Remember that the integrating factor works because

[tex](u'(x) + P(x) u(x) ) \exp \left(\int P(x) dx\right) = \frac{d}{dx} \left[ u(x) \exp \left(\int P(x) dx \right) \right].[/tex]
 
ahh yes i didnt bring it across, thanks
 
i think this is right?
let P(x) = [tex]\frac {-1}{2x}[/tex]

M(x) = [tex]e^(\int(\frac {-1}{2x}dx))[/tex]

= [tex]\frac{1}{\sqrt{x}}[/tex]

so u = [tex] \sqrt{x} \int \frac {-2}{\sqrt{x}} dx = \sqrt{x}(-4\sqrt{x} + k)[/tex]

=-4x + [tex]\sqrt{x}[/tex] k
 
The easiest way to verify a solution to a differential equation is to explicitly check that it actually satisfies the differential equation.
 
i can't figure out where i went wrong!
 
oh, ok cool. thanks a mill for your help...you have great patience