Separation of Variables and Integral Relations for Special Functions