Analytical solutions for extended Graetz problem in infinite domains via integral transforms