Transient solution to the diffusion equation for nonlinear stochastically perturbed systems