Algebra · real student question

Expand and simplify the square of (1 + x + x2 + x3), then subtract x cubed.

Question

Expand and simplify:

(1+x+x2+x3)2x3(1+x+x^2+x^3)^2-x^3

Step-by-step solution

  1. Get the square by counting index pairs instead of multiplying 16 terms. In (1+x+x2+x3)2(1+x+x^2+x^3)^2 the coefficient of xkx^k counts the ordered pairs (i,j)(i,j) with i+j=ki+j=k and 0i,j30\le i,j\le 3. Counting: k=0k=0 has 11 pair, k=1k=1 has 22, k=2k=2 has 33, k=3k=3 has 44 (namely 0+3,1+2,2+1,3+00{+}3,1{+}2,2{+}1,3{+}0), k=4k=4 has 33, k=5k=5 has 22, k=6k=6 has 11.

  2. Write the square.

    (1+x+x2+x3)2=1+2x+3x2+4x3+3x4+2x5+x6(1+x+x^2+x^3)^2=1+2x+3x^2+4x^3+3x^4+2x^5+x^6

    The coefficients read the same forwards and backwards, which is expected: squaring a palindromic polynomial always gives a palindromic one.

  3. Sanity-check the square at x=1x=1. The base becomes 1+1+1+1=41+1+1+1=4, so the square must be 1616; and 1+2+3+4+3+2+1=161+2+3+4+3+2+1=16. Any miscount in step 1 would show up here. (For the record, 1+x+x2+x3=x41x11+x+x^2+x^3=\frac{x^4-1}{x-1} when x1x\neq 1, so the square also equals (x41)2(x1)2\frac{(x^4-1)^2}{(x-1)^2}.)

  4. Subtract x3x^3. Only one coefficient is affected — the cubic one drops from 44 to 33:

    1+2x+3x2+(41)x3+3x4+2x5+x61+2x+3x^2+(4-1)x^3+3x^4+2x^5+x^6

  5. Write the result and verify at x=2x=2. In descending order,

    x6+2x5+3x4+3x3+3x2+2x+1x^6+2x^5+3x^4+3x^3+3x^2+2x+1

    At x=2x=2 the original is (1+2+4+8)28=1528=217(1+2+4+8)^2-8=15^2-8=217, and the expansion gives 64+64+48+24+12+4+1=21764+64+48+24+12+4+1=217. The two agree, so the expansion is correct.

Answer

(1+x+x2+x3)2x3=x6+2x5+3x4+3x3+3x2+2x+1(1+x+x^2+x^3)^2-x^3=x^6+2x^5+3x^4+3x^3+3x^2+2x+1

Need to solve a different problem like this? Open the solver →