Dirst order ODE's with x & expontials

  • Context: Undergrad 
  • Thread starter Thread starter Pixter
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
Pixter
Messages
29
Reaction score
0
hej
have a ode that looks like this:

y'-xy=-x
so i find the particular integral which is e^-(x^2)/2

but then when i try to solve the eqn i have to do a integration by parts
ie:
ye^-(x^2)/2 = integrate[ -xe^-(x^2)/2 dx]
but when i do this integration by parts i end up with having to do another, and i never ends..
i know that there is some trick when dealing with simple x*e^x bla bla bla..

but don't know how to do it.. would someone please show me, or help me out?
 
Physics news on Phys.org
Why not solve:

[tex]\int \frac{dy}{y-1}=\int x dx[/tex] ?
 
HallsofIvy said:
dy/dx= xy- x= y(x-1)

I think there was a slip of the mind on that last step:

xy - x = x(y-1), so dy/(y-1) = xdx, as originally stated by J77.

I'm sure it was just an accident, but I figured it warranted correction.
 
Pixter said:
hej
have a ode that looks like this:

y'-xy=-x
As J77 pointed out, this is a separable first order equation:
dy/dx= xy- x= x(y-1) so you get
(edited to correct misprint)
[tex]\frac{dy}{y-1}= xdx[/tex]
and so [itex]ln(y-1)= \frac{1}{2}x^2+ c[/itex].
Then
[tex]y(x)=1+ Ce^{\frac{x^2}{2}[/tex]

so i find the particular integral which is e^-(x^2)/2

but then when i try to solve the eqn i have to do a integration by parts
ie:
ye^-(x^2)/2 = integrate[ -xe^-(x^2)/2 dx]
but when i do this integration by parts i end up with having to do another, and i never ends..
i know that there is some trick when dealing with simple x*e^x bla bla bla..

but don't know how to do it.. would someone please show me, or help me out?
But if you really want to do that integration, just use a simple substitution: your integrand is NOT "[itex]xe^x[/itex]" (which could be done easily by parts) but [itex]xe^{x^2}[/itex]. Let u= x2.