solve y''=k/(d-x)y