# Solving second order ODE

• Oct 7th 2012, 09:26 PM
mhguo1
Solving second order ODE
I'm trying to solve a second order ODE in the form of Ay''+By'+1=0. This is part of a genetics problem I have, but I haven't taken DiffEq in a very long time and can't quite remember how to go about solving this. Can anyone help?

Thanks!
• Oct 7th 2012, 10:18 PM
MaxJasper
Re: Solving second order ODE
$y(x)= -\frac{a c_1 e^{-\frac{b x}{a}}}{b}-\frac{x}{b}+c_2$
• Oct 7th 2012, 10:59 PM
JJacquelin
Re: Solving second order ODE
Quote:

Originally Posted by mhguo1
I'm trying to solve a second order ODE in the form of Ay''+By'+1=0. This is part of a genetics problem I have, but I haven't taken DiffEq in a very long time and can't quite remember how to go about solving this. Can anyone help?
Thanks!

Let f(x)=y'
This leads to a first order ODE. I suppose that you know the method to solve linear first order ODE.
• Oct 7th 2012, 11:03 PM
MarkFL
Re: Solving second order ODE
I would write the ODE as follows:

$Ay''+By'=-1$

The characteristic roots are:

$0,-\frac{B}{A}$ and so the homogeneous solution is:

$y_h(x)=c_1+c_2\frac{A}{B}e^{-\frac{B}{A}x}$

I would next assume a particular solution of the form:

$y_p(x)=kx$

Now, we may use the method of undetermined coefficients to find $k$:

$y_p'(x)=k$

$y_p''(x)=0$ and so:

$Bk=-1\,\therefore\,k=-\frac{1}{B}$ and we have:

$y_p(x)=-\frac{1}{B}x$

By superposition, we now may write the general solution:

$y(x)=y_h(x)+y_p(x)=c_1+c_2\frac{A}{B}e^{-\frac{B}{A}x}-\frac{x}{B}$
• Oct 8th 2012, 04:42 PM
mhguo1
Re: Solving second order ODE
Great, thanks for everyone's help!