Question: Coefficients of a multivariable polynomial in a vector or variable

Hi dears

Just a simple question: I am trying to restore the coefficients of a polynomial in a vector, respect to a list of variables. For example

    f := a u[] u[1] u[2] + c u[2] v[] v[1] + d u[] u[2] v[1] + d u[] v[1] v[2] + b u[1] u[2]+fu[]v[]
       (a u[] + b) u[1] u[2] + (c v[] + d u[]) u[2] v[1] + d u[] v[1] v[2]+fu[]v[]


in above example I intend to keep (a u[] + b) and (c v[] + d u[]) and d and fu[]v[] in a vector or a varieble. Is there any comments?

Thanks indeed in advence

Please Wait...