Solution (source code)

= Solution

The terms are logistic birth and crowding, $rn-rn^2/K$, linear predation mortality $-δn$, and diffusion $Dn_{xx}$. The coast is reflecting, so $n_x(0)=0$; lethal habitat beyond $L$ gives the absorbing condition $n(L)=0$.