Solving xy' + 3y = x² with integrating factor

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 1K views
tomeatworld
Messages
49
Reaction score
0

Homework Statement


x y' + 3y = x2

Homework Equations


The Attempt at a Solution


So I tried using an integrating factor (as I couldn't separate variables).
So I've said that the function p(x)= 1/x and q(x)=x. So the integrating factor is elog(x) or x. Putting this in:
x y = [tex]\int x^{2}[/tex] so
x y = [tex]\frac{1}{3} x^{3}[/tex] + c
and finally: y(x) = [tex]\frac{1}{3} x^{2} + \frac{c}{x}[/tex] but this isn't the right answer. Where have I gone wrong?
 
Physics news on Phys.org
You don't have the right integrating factor. Starting from y' + (3/x)y = x, your integrating factor should be x3. Multiplying by the integrating factor gives x3y' + 3x2y = x4.

This equation can be written as d/dx(x3y) = x4. Can you take it from there?
 
ahh I see! yeah, that's great! thanks a load!