This is similar to the how-to-replace-variable-with-power question, but here it involves two variables with different power combinations.
This quesion arises from paper forward kinematics of the 6-6 Stewart platform. I’m trying to solve the forward kinematics problem with Mathematica. Mathematica really helped—I’ve nearly nailed it. However I’m stuck on the final key step.
I cannot eliminate $c1$ $c2$ with power {{8,0},{7,1},{6,2},...}.
ClearAll[c1, c2] phi3A29= U1 + {U2j0, U2j1, U2j2}.Table[c1^(2 - j) c2^j, {j, 0, 2}] + {U3j0, U3j1, U3j2, U3j3, U3j4}.Table[c1^(4 - j) c2^j, {j, 0, 4}] + {U4j0, U4j1, U4j2, U4j3, U4j4, U4j5, U4j6}. Table[c1^(6 - j) c2^j, {j, 0, 6}] + {U5j0, U5j1, U5j2, U5j3, U5j4, U5j5, U5j6, U5j7, U5j8}. Table[c1^(8 - j) c2^j, {j, 0, 8}] ruleA32= Thread[Table[c1^(4 - j) c2^j, {j, 0, 4}] -> Table[Symbol["H" <> ToString[j] <> ToString[jj]], {j, 0, 4}, {jj, 1, 3}] . {c1^2, c1 c2, c2^2}/E0]; ruleA32// MatrixForm nu = phi3A29 //. ruleA32// Together // Numerator co = CoefficientRules[nu, {c1, c2}]; co // Keys I supposed that $co$ should be $\{\{2,0\}, \{1,1\}, \{0,2\}, \{0,0\}\}$, which matches equation (34) in the paper, the order does not matter in $\{ \}$. I have a rough idea of what’s causing the issue, but I’d like to make better use of Mathematica to solve it. Could anyone help me out? Thanks in advance!
a rather simple (and maybe a bit clumsy) idea : manually write out a substitution rule for $c1^{8-j}c2^j$ using combinations of ${c1}^{4-j}{c2}^j$, $c1^2$ and $c2^2$.




Ruleto a subtraction inruleA32. Then dored = PolynomialReduce[phi3A29, ruleA32, c3, {c1, c2}, MonomialOrder -> EliminationOrder, CoefficientDomain -> RationalFunctions][[2]]$\endgroup$