# 2nd ODEs

• Apr 25th 2010, 11:34 AM
Jeffman50
2nd ODEs
Having a few problems

1. $\displaystyle d^2y/dx^2 + 4dy/dx + 5y= x + 2$

So the characteristic equation is $\displaystyle r^2+4r+5=0$
with imaginary roots so

$\displaystyle y(h)= e^-2x(C(1)cosx+ C(2)sinx)$

But how do i solve for y(p)? I cant do 5y=x+2.. thats not working

I think i'll be fine for all of them once I figure out how to solve these when there is an x variable on the right side and not just a 0 or a constant
• Apr 25th 2010, 11:50 AM
The solution to an inhomogenous linear equation is the sum of the general solution to the homogenous equation plus a particular solution. Its not easy in general to find a particular solution; most people just guess and check I think. In your case, try guessing $\displaystyle y_{\text{particular}}(x) = bx+c$ and solve for b and c. Then the general solution will be $\displaystyle y =e^{-2x}(C_1\cos x+ C_2\sin x) + bx + c$.
• Apr 25th 2010, 11:51 AM
Jeffman50
Are there any strategies other than just guessing?
• Apr 25th 2010, 12:14 PM