This question is from problem 29.1 from Ashcroft-Mermin.
I am given the following ODE: $$\psi''(x) = K^2(\sinh \psi - \Delta N(x) / (2n_i))$$
I assume that $\psi << 1$, s.t $\sinh \psi \approx \psi$.
So I get the following ode: $$\psi'' = K^2[\psi-\Delta N(x)/(2n_i))$$
Now, in the text it's written that the solution to the last ODE is: $$\psi(x) = \frac{K}{2} \int_{-\infty}^\infty dx' e^{-K|x-x'|}\frac{\Delta N(x')}{2n_i}$$
I don't see how to get this ansatz, really.
I first need to solve the homogeneous ode of $\psi''-K^2\psi=0$, which is $\psi(x) = Ae^{Kx}+Be^{-Kx}$, but then how to solve the inhomogeneous ODE?