Question: How can I find a values of the coefficients in polynomial equation?

I tried to solve a equation f(x). Finally I got a polynomial with coefficients.  (see Solve_for_coefficients.mw)

I want to find the values of unknown coeffients in the last polynomial equation as procedure to equating each cofficients to zero.

For example, the coefficients of x^2 is 1/48*(-24*p[2]+48*q[1]+24*q[2]+24) = 0.

Likewise, collect all the coefficients from x^0 to x^4 and solve them. Finally we get the coefficients value.

My question is How to collect the coefficients in this polynomial and solve this coefficients?

Please Wait...