In an open economy, the source for the demand for loanable funds is primarily derived from both domestic investment and net capital outflow. Therefore, the correct answer is:
d. domestic investment + net capital outflow.
In an open economy, the total demand for loanable funds comes from domestic investment, which is the investment made by businesses within the country, as well as net capital outflow, which represents the net flow of funds invested abroad.