I have a simple notebook with this input:
d[x] = x + x^2 + x^3 + x^4 + x^5 + x^6
d[x]^2
When I evaluate d[x]^2, it unhelpfully throws back (x+x^2+x^3+x^4+x^5+x^6)^2 . How do I get it to actually evaluate that square and give me the coefficients of the polynomial?