using dyson equation to calculate the special function