A symbolic matrix with two parameters, say $x,y$, shows up in my calculation. The entries of the matrix are homogeneous polynomials. I want the entries to be written in some standard format, e.g. in ascending power of say $x$ and descending powers of $y$, or vice versa. But Mathematica insists on factoring some of them. How do you force Mathematica to expand expressions such as $ab^2(a^2-b^2)$ or $a(a^2-b^2)^2$ that occur inside a matrix?
put on hold as off-topic by Kuba, Oleksandr R., Sjoerd C. de Vries, bobthechemist, Yves Klett 4 hours ago
This question appears to be off-topic. The users who voted to close gave these specific reasons:
- "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Oleksandr R., Sjoerd C. de Vries, Yves Klett
- "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – Kuba, bobthechemist