Solution of integro-differential equations by projection