Given two linear, possibly unbounded, operatorsAandBon a Hilbert spaceH, we are concerned with linear nonhomogeneous equations of the form:. Explicit solutions can be obtained, as in the ordinary differential equation case, by means of the variation of constants formula. We use results from the stochastic calculus for anticipative integrands in order to prove our theorems