Algebra · real student question

Expand the product of x2 + 8x + 16 and x2 - 4x + 4.

Question

Expand:

(x2+8x+16)(x24x+4)(x^2+8x+16)(x^2-4x+4)

Step-by-step solution

  1. Recognise each trinomial as a perfect square. Check the pattern a2±2ab+b2a^2\pm 2ab+b^2:

    x2+8x+16=(x+4)2,x24x+4=(x2)2x^2+8x+16=(x+4)^2,\qquad x^2-4x+4=(x-2)^2

    The middle coefficients confirm it: 24=82\cdot 4=8 and 22=42\cdot 2=4. Nine separate term-by-term products are now avoidable.

  2. Merge the two squares into one. Since u2v2=(uv)2u^2v^2=(uv)^2,

    (x+4)2(x2)2=[(x+4)(x2)]2(x+4)^2(x-2)^2=\bigl[(x+4)(x-2)\bigr]^2

    This is the whole trick: multiply the linear factors first, then square once.

  3. Multiply the two binomials.

    (x+4)(x2)=x22x+4x8=x2+2x8(x+4)(x-2)=x^2-2x+4x-8=x^2+2x-8

    so the problem reduces to squaring the trinomial x2+2x8x^2+2x-8.

  4. Square the trinomial with the three-term identity. Using (a+b+c)2=a2+b2+c2+2ab+2ac+2bc(a+b+c)^2=a^2+b^2+c^2+2ab+2ac+2bc with a=x2a=x^2, b=2xb=2x, c=8c=-8:

    a2=x4, b2=4x2, c2=64, 2ab=4x3, 2ac=16x2, 2bc=32xa^2=x^4,\ b^2=4x^2,\ c^2=64,\ 2ab=4x^3,\ 2ac=-16x^2,\ 2bc=-32x

  5. Collect like terms. The two x2x^2 contributions combine:

    x4+4x3+(416)x232x+64=x4+4x312x232x+64x^4+4x^3+(4-16)x^2-32x+64=x^4+4x^3-12x^2-32x+64

  6. Check at x=1x=1 and x=4x=-4. At x=1x=1 the original is (1+8+16)(14+4)=251=25(1+8+16)(1-4+4)=25\cdot 1=25, and the expansion gives 1+41232+64=251+4-12-32+64=25. At x=4x=-4 the original is 00 (since (x+4)2(x+4)^2 vanishes), and the expansion gives 256256192+128+64=0256-256-192+128+64=0. Both match.

Answer

(x2+8x+16)(x24x+4)=[(x+4)(x2)]2=x4+4x312x232x+64(x^2+8x+16)(x^2-4x+4)=\bigl[(x+4)(x-2)\bigr]^2=x^4+4x^3-12x^2-32x+64

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