Pls Help me find the general solution of (1+x) (dy/dx) - xy = x+ x^2
e^(x-ln|1+x|) y = integral of (e^x-ln|1+x|)) x
Then I'm stuck with the integral of something I don't quite see
your integrating factor is correct and the left hand side is also correct
\[\large \int e^{x - \ln |1+x|}x ~dx\]
are you stuck with that integral ?
Yes!
use exponent laws
\[\large a^{m-n} = \dfrac{a^m}{a^n}\] etc
Then I just do integration by parts?
\[\large \int e^{x - \ln |1+x|}x ~dx = \int \dfrac{e^x}{e^{\ln |1+x|}}x ~dx = \int \dfrac{xe^x}{1+x} ~dx\]
yeah, maybe we can simplify a bit before IBP : \[\large = \int \dfrac{(1+x-1)e^x}{1+x}~dx\]
\[\large = \int e^x - \dfrac{e^x}{1+x}~dx\]
not possible in elementary functions http://www.wolframalpha.com/input/?i=%5Cint+e%5Ex%2F%281%2Bx%29+dx so you're lucky, notthing to do here, just leave the integral as it is
Oh wow, thanks
wait a sec, your integrating factor doesn't look correct :o
\[\large (1+x) \dfrac{dy}{dx} - xy = x+ x^2\]
\[\large \dfrac{dy}{dx} + \dfrac{ -x}{1+x}y = x\]
right ?
yes
thats what i have
IF = \[\large e^{\int \dfrac{-x}{1+x} ~dx} = e^{-\int \dfrac{1+x-1}{1+x} ~dx} \]
\[ \large e^{-\int 1 - \dfrac{1}{1+x} ~dx} = e^{-x + \ln |1+x|}\]
right ?
Notice that your signs were flipped in the exponent thats the reason we arrived at a messedup integral
Oh I didnt carry the - sign
simplify the IF before multiplying both sides : \[ \large e^{-\int 1 - \dfrac{1}{1+x} ~dx} = e^{-x + \ln |1+x|} = \dfrac{1+x}{e^x}\]
you may be able to integrate easily with this IF :) good luck !
Thanks so much!!
yeah wolfram says its integrable http://www.wolframalpha.com/input/?i=%5Cint+x%281%2Bx%29%2Fe%5Ex+dx
Join our real-time social learning platform and learn together with your friends!