Intertwining operators for solving differential equations with applications to symmetric spaces