Differential equations for generalized Jacobi polynomials