solve 1-dimensional SDE