Solvin the green function