A new semi-analytical method with diagonal coefficient matrices for potential problems