# Differential equation problem

1. Apr 11, 2004

### Gunni

The last example on my homework assignment this week is this: Solve the following differential equation.

$$y'' + 2y' + y = e^{-x}$$

I started by solving it like it was y'' + 2y' +y = 0 (Instert y = e^ax and so on) and got the following equation and solution:

$$e^{ax}(a^2 + 2a + 1) = 0 => a = -1$$

$$y'' + 2y' + y = 0, y = e^{-x}(k_1x + k_2)$$

Since the right side of the original equation is of the form Me^hx, and h is a solution to the equation above (a = -1), I tried inserting f(x) = Axe^(-x).

From that I got that f'(x) = Ae^(-x) - Axe^(-x) and f''(x) = Axe^(-x) -2Ae^(-x).

But when I insert that into the original equation everything cancels out and I'm left with e^(-x) = 0. Since that never applies I'm inclined to think that there are no solutions to the equation. What do you think?

2. Apr 11, 2004

### arildno

You might try a particular solution of the form f(x)=Ax^(2)e^(-x)

3. Apr 11, 2004

### Gunni

That doesn't seem to work, I get that A should equal both 0 and 1/2. I've also tried Ae^-x, which didn't work either.

4. Apr 11, 2004

### arildno

f(x)=Ax^(2)e^(-x)
f'(x)=2Axe^(-x)-Ax^(2)e^(-x)
f''(x)=Ax^(2)e^(-x)-4Axe^(-x)+2Ae^(-x)
f''+2f'+f=2Ae^(-x)-->A=1/2

5. Apr 11, 2004

### Gunni

Hmm... I must have made some mistake. Well, thanks a lot for the help.