# Homework Help: Linear differential equation problem

1. Dec 3, 2007

### tunabeast

1. The problem statement, all variables and given/known data
$$\ \frac{dy}{dx} + 2y = xe^x$$

2. Relevant equations

3. The attempt at a solution
I'v only ever solved differential equations where values can be seperated easily, i understand i may have to use something called the integrating factor but this does not seem to fit the formula layout of

2. Dec 3, 2007

### coomast

The equation you presented:

$$\frac{dy}{dx}+p(x)\cdot y=q(x)$$

is a linear differential equation of the first order. This is the next type you learn after the ones you can separate immediately. It has a general solution. What is your knowledge on the ways for solving these? You should have some idea about this, can you show an attempt of solving it?

3. Dec 3, 2007

### Hurkyl

Staff Emeritus
Why not? What doesn't match?

4. Dec 3, 2007

### HallsofIvy

Remember that p(x) and q(x) can be 'constant functions'.