Let $P$ and $Q$ be polynomials over $\mathbb C$, and $n\in\mathbb N$ be a positive integer. I'm interested in the root sums of the form $$ \sum_{P(x)=0}\frac{Q(x)}{P'(x)^n},$$ where the sum runs over all roots of $P$, which we assume to be distinct (simple roots). Since $P'$ is a polynomial, we sum a rational function over the roots of polynomial, which using the elementary symmetric polynomials gives a rational function in the coefficients of $P$ and $Q$.
Motivation: These sums occur in calculations of partition functions in physics.
Goal: Express this as a function of $P$, $Q$ and $n$.
Intermediate goal: Consider the polynomial $Q(x)=1$. As discussed in Math.stackexchange 4955603, I believe this gives $$ \sum_{P(x)=0}\frac{1}{P'(x)^n}=\frac{R(P)}{D(P)^{\lfloor \frac n2 \rfloor}}$$ Here, $D(P)$ denotes the discriminant of the polynomial $P$, $\lfloor \cdot \rfloor$ is the floor function, and $R(P)$ is another polynomial in the coefficients of $P$. For odd $n$ there is a cancellation of a common factor of numerator and denominator.
How does this extend to the cases where $Q$ is an arbitrary polynomial? Are these root sums known in the algebra literature?