Solve 1st Order Diff. Eq: y' + y/(x+1) = x^2

  • Thread starter Thread starter Gwilim
  • Start date Start date
Gwilim
Messages
126
Reaction score
0
Okay I'm sorry. I'm sure this is very easy but I just can't figure it out. The exam is on Monday. If any of you remember me you will probably be shaking you heads in disgust. Again, I'm sorry, but please please I need help.

y' + y/(x+1) = x^2

My first instinct with 1st order DEs is to separate the variables.

But I can't.

Help.

Edit: that's "y/(x+1)" not "(y/x)+1". My LaTeX is rusty
 
Physics news on Phys.org
Sorry for asking a question? Anyway what do you know about integrating factors? Multiply the differential equation by u(x) first then try to write the LHS as d(uy)/dx.
 
Last edited:
I've heard of them but I can't get my head round them. I assume the u(x) is (x+1)^(-1).

So the integrating factor is e^ln(x+1)=x+1

Multiplying both sides gives me (x+1)y' + y = (x+1)x^2

And that's where I get stuck.

Is there a reasonably short guide to this anywhere?
 
You are pretty close. I am sure you can find a guide somewhere, but I have not much to do currently so I'll try to help you out.

Lets multiply the differential equation by u(x) this yields u(x)y'(x)+\frac{y(x)u(x)}{x+1}=u(x)x^2. We want to write the left hand side as d(uy)/dx.

<br /> \frac{duy}{dx}=u \frac{dy}{dx}+y\frac{du}{dx}<br />

This must be equal to the LHS so we get.

<br /> u \frac{dy}{dx}+y\frac{du}{dx}=u\frac{dy}{dx}+\frac{yu}{x+1}<br />

For this to be true \frac{du}{dx}=\frac{u}{x+1} \Rightarrow u(x)=c(x+1).

We can now write the differential equation as:

<br /> \frac{duy}{dx}=x^2 u<br />

You know u can you solve for y now?
 
Last edited:
Cyosis said:
Sorry for asking a question? Anyway what do you know about integrating factors? Multiply the differential equation by u(x) first then try to write the LHS as d(uy)/dx.

While Cyosis is editing, you could try that last part?
 
Cyosis said:
You are pretty close. I am sure you can find a guide somewhere, but I have not much to do currently so I'll try to help you out.

Lets multiply the differential equation by u(x) this yields u(x)y&#039;(x)+\frac{y(x)u(x)}{x+1}=u(x)x^2. We want to write the left hand side as d(uy)/dx.

<br /> \frac{duy}{dx}=u \frac{dy}{dx}+y\frac{du}{dx}<br />

This must be equal to the LHS so we get.

<br /> u \frac{dy}{dx}+y\frac{du}{dx}=u\frac{dy}{dx}+\frac{yu}{x+1}<br />

For this to be true \frac{du}{dx}=\frac{u}{x+1} \Rightarrow u(x)=c(x+1).

With you so far.

We can now write the differential equation as:

<br /> \frac{duy}{dx}=x^2 u<br />

You know u can you solve for y now?

And now you've lost me.

*thinks hard*

Okay given that expression for \frac{duy}{dx} I can substitute in the u(x), split the variables and integrate but I can't see how you arrived there in the first place.

In an ideal world I'd probably like to also know exactly what duy/dx actually means, but just learning how to do these should be enough for now.
 
Ohh... the penny has dropped.

Thankyou so much.

Edit: and I think I figured out what duy/dx means too!
 
Last edited:
Hehe you're welcome.
 
Back
Top