# First order separable differential equation

1. Feb 1, 2008

### amolv06

1. The problem statement, all variables and given/known data

$$\frac{dy}{dx} + x^{2} = x$$

2. Relevant equations

Above.

3. The attempt at a solution

After rearranging, I am stuck at

$$\int \frac{1}{x-x^{2}} dx = \int dt$$

I can't think of any u-substitution, or any other trick for integrals I could use to solve this.

2. Feb 1, 2008

### Mathdope

Recheck you're expressions. The problem you give involves x and y, while the attempt at a solution gives x and t. Please clarify.

It looks like you should have dx/dt where you currently have dy/dx no? If that's the case consider a partial fraction decomposition.

3. Feb 1, 2008

### amolv06

I wrote the wrong variable for the last integral. It should have been of dy rather than dt. I solved it. I forgot about partial fractions.

4. Feb 1, 2008

### HallsofIvy

Even so, $dy/dx= x- x^2$ becomes $dy= (x- x^2)dx$. There is no need for partial fractions.

5. Feb 1, 2008

### fermio

What need to find if y, then
$$y=\int(x-x^2)dx=\frac{x^2}{2}-\frac{x^3}{3}+C$$