Originally posted by: simms
want to help me with a Calc IV question?
xy'+2y=3x, y(1)=5 ... solve the dif eqn.
![]()
Originally posted by: simms
want to help me with a Calc IV question?
xy'+2y=3x, y(1)=5 ... solve the dif eqn.
![]()
Originally posted by: EarthwormJim
Originally posted by: simms
want to help me with a Calc IV question?
xy'+2y=3x, y(1)=5 ... solve the dif eqn.
![]()
Probably wrong, but if Y(1)=5 doesn't that mean that at y=1, x=5? So shouldn't it just be plug and chug? Or is that too easy?
5y'+2(1)=3(5) y'=13/5? at (1,5)
meh?
Originally posted by: chuckywang
bump cause I solved it.![]()
I win.
Originally posted by: Vespasian
Originally posted by: chuckywang
bump cause I solved it.![]()
I win.
So the final answer should be y(x)= x+4
In this particular problem you could have almost guessed the answer without going through all of the steps.
Originally posted by: Vespasian
Originally posted by: chuckywang
bump cause I solved it.![]()
I win.
I did it differently:
y'+ (2/x)y = 3 (divide each term by x)
P(x)= 2/x
Q(x)= 3
So the integrating factor is e^(Integral P(x)dx)= e^[2ln(x)] = x^2
(x^2)y' + 2xy = 3x^2
(x^2y)' = 3x^2
x^2y = x^3
y = x + C
5 = 1 + C
C = 4
So the final answer should be y(x)= x+4
In this particular problem you could have almost guessed the answer without going through all of the steps.
Originally posted by: chuckywang
Originally posted by: Vespasian
Originally posted by: chuckywang
bump cause I solved it.![]()
I win.
So the final answer should be y(x)= x+4
In this particular problem you could have almost guessed the answer without going through all of the steps.
1) Your answer doesn't work. Just plug it in:
xy' + 2y = x*1 + 2*(x+4) = 3x+8, which does not equal 3x.
2)Originally posted by: Vespasian
So the integrating factor is e^(Integral P(x)dx)
The integrating factor is e^(-Integral P(x)dx). You forgot the -1 factor before the integral. Common mistake.
Trust me, my answer is the only solution to the diffeq.
Originally posted by: chuckywang
Originally posted by: simms
want to help me with a Calc IV question?
xy'+2y=3x, y(1)=5 ... solve the dif eqn.
![]()
Remember that the general solution to a diffeq is the homogenous solution + (any) particular solution.
The particular solution is y1(x) = x just be judicious guessing.
The homogenous solution is the solution to xy' + 2y = 0, which is the same as y' + 2/x*y = 0, which can be solved by variation of parameters (I assume you are on this topic now). Sparing you the work, the homogeneous solution is y2(x) = A*x^-2 where A is any constant.
Therefore, the entire solution is y(x) = y1(x) + y2(x) = A*x^-2 + x.
Since you know that y(1) = 5, you can solve for A by plugging in:
5 = A + 1 which means A = 4.
Your final solution is y(x) = 4x^-2 + x.
Originally posted by: Vespasian
My first method was correct but I forgot to divide C by x^2. The integrating factor is negative only if you use the formula directly. Stop confusing me!![]()
y'+ (2/x)y = 3 (divide each term by x)
P(x)= 2/x
Q(x)= 3
So the integrating factor is e^(Integral P(x)dx)= e^[2ln(x)] = x^2
(x^2)y' + 2xy = 3x^2
[(x^2)y]' = 3x^2
(x^2)y = x^3 + C
y = x + C/x^2
5 = 1 + C
C = 4
therefore y(x)= x + 4/x^2
Originally posted by: Hankerton
Woah chuckywang, do you teach calculus or something?
Originally posted by: chuckywang
Originally posted by: Vespasian
My first method was correct but I forgot to divide C by x^2. The integrating factor is negative only if you use the formula directly. Stop confusing me!![]()
y'+ (2/x)y = 3 (divide each term by x)
P(x)= 2/x
Q(x)= 3
So the integrating factor is e^(Integral P(x)dx)= e^[2ln(x)] = x^2
(x^2)y' + 2xy = 3x^2
[(x^2)y]' = 3x^2
(x^2)y = x^3 + C
y = x + C/x^2
5 = 1 + C
C = 4
therefore y(x)= x + 4/x^2
I realize that you were indeed correct about the integrating factor. I apologize for my mistake and I edited my previous responses to your posts. It seems that I got confused of what exactly the "integrating factor" is defined as.