Integrating factor question.
I have th
I'm getting the solution to be y=c
Wolfram says otherwise
I forgot how to do integrating factors, did u multiply both sides by it?
Yes I'll show you my attempt now.
kk I think I'll be able to follow that.
Where did the x go in your solution?
(dy/dx)(e^(x^2/2))+x*e^(x^2/2)*y=x*e^(x^2/2)
I integrated e^(x^2/2)*x It's equals to e^(x^2/2)+C
\[\frac{\text dy}{\text dx}+xy=x,\qquad x>1,\qquad y(1)=0\] \[\mu(x)=e^{x^2/2}\] \[\frac{\text d}{\text dx}\left(y\mu \right)=x\mu\]\[\frac{\text d}{\text dx}\left(y e^{x^2/2} \right)=xe^{x^2/2}\]\[ye^{x^2/2} =\int xe^{x^2/2}\]
Yep
dx
When you integrate the right side, you get the integrating factor plus a constant.
Oh maybe I need you use integration by parts here.
no u use u sub
ok now I finally followed. u = x^2/2 du = xdx Integral = (e^u)du Integral = e^(x^2/2)+c
y(1)=0
Yep
\[ye^{x^2/2} =\int xe^{x^2/2}\text dx\] let\[x=u\qquad e^{x^2/2}\text dx=\text dv\]\[\text dx=\text du\qquad\qquad \frac{e^{x^2/2}}{x}=v\]
y*e^(x^2/2)=e^(x^2/2)+c 0=e^(1/2)+c c=-e^(1/2)
y=1-[e^(1/2)]/[e^(x^2/2)]
Unkle why are you using integration by parts?
Well u can use both methods, u sub wld be easier though
Thats I did. However, I solved the ode in wolfram gives a different answer. http://www.wolframalpha.com/input/?i=solve+dy%2Fdx+%2Bxy%3Dx
This is what I have and I cannot see anything wrong with it
No wait it would be y=c/int factor
your right no need for integration by parts, \[ye^{x^2/2} =e^{x^2/2}+c\] \[y =1+ce^{-x^2/2}\]
I see what wolfram did, they brought up the int factor and changed the sign.
\[y(x) =1+ce^{-x^2/2}\] \[y(1) =1+ce^{-1^2/2}=0\]
so c=-e^1/2
\[y(x)=1-e^{(1-x^2)/2}\]
Subtract -1 from both sides.
and divide by the int factor?
to get c on its own.
uhmm did i get it right?
I'm not sure, I'm not getting the same as @amistre64 anyways
i dont recall working in this problem :)
Oh god, I am losing my mind @UnkleRhaukus sorry @amistre64
are you still having trouble with this question @ironictoaster?
I'm not sure how you got the constant from the inital condition
I have y=1+c^-0.5=1
I have y=1+c^-0.5=0
\[y(x) =1+ce^{-x^2/2}\] sub substituting x=0 \[y(1) =1+ce^{-1^2/2}\]\[0=1+ce^{-1/2}\]\[-1=ce^{-1/2}\]\[-e^{1/2}=c\]
Do you not sub x=1
yeah whops,
So you divided by both sides by the e^...
yeah the last step was to divide by e^-1/2 or to multiply by e^1/2 same thing
I see, my problem was that I did it on a calculator and -1.6....
and got -1.6
\[c=-e^{1/2}\approx-1.65\]
Thats great, thank you.
Join our real-time social learning platform and learn together with your friends!