General solution to ODE [closed]

Considering the following ODE : find $f(x)$ such that $$\frac{\sigma^{2}}{2}\frac{d^2}{dx^2}f(x)+a(b-x)\frac{d}{dx}f(x)-(\rho+\lambda)f(x)=-\lambda g(x)$$ Where, $a,b,\rho,\lambda,\sigma\in(0,+\infty)$, and $f(x)$ and $g(x)$ are assumed to have enough "good properties" !

Using the Fourier transform, one specific solution could be found, but I am interested in finding a general solution. It would be great if some one could give me some ideas. Thanks for your time and consideration.

-

closed as too localized by Victor Protsak, Will Jagy, José Figueroa-O'Farrill, Yemon Choi, Harald Hanche-OlsenSep 12 '10 at 21:46

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

It's linear in $f$ –  Will Jagy Sep 12 '10 at 19:11
Hi Will, I am little confused by your comment, it would be great if you could clarify your comment for me –  Nameless Sep 12 '10 at 19:16
The difference of two solutions of an inhomogeneous linear equation is a solution of the corresponding homogeneous equation. –  Victor Protsak Sep 12 '10 at 19:41
Nameless, given the elementary nature of this question and your comments indicating lack of understanding of basic facts about linear ODEs, I suggest (a) reading a textbook on ODEs; (b) asking your teachers (if you are a student); (c) posting follow-up questions on other sites listed at the FAQ. Voting to close. –  Victor Protsak Sep 12 '10 at 20:32

Will + Victor noted the general solution is your particular solution plus the general solution of the corresponding homogeneous DE. And, note, that this homogeneous DE does not depend on $g$. According to Maple, the solution of that homogeneous DE is... $$f_\mathrm{homog} (x) = C_1 \mathrm{KummerM} \left(\frac{\rho + \lambda}{2 a},\frac{1}{2},\frac{a (b - x)^{2}}{\sigma^{2}}\right) + C_2 \mathrm{KummerU} \left(\frac{\rho + \lambda}{2 a},\frac{1}{2},\frac{a (b - x)^{2}}{\sigma^{2}}\right)$$