Algebra · real student question

Write each polynomial as a product: (a) 27x^3 + y^3, (b) x^3 - 8y^3, (c) x^3 + 512. Then multiply out (x + 1)(x^2 - x + 1) and explain how the result confirms the identity you used.

Question

Write each polynomial as a product of factors:

(a) 27x3+y327x^3+y^3 (b) x38y3x^3-8y^3 (c) x3+512x^3+512

Then expand (x+1)(x2x+1)(x+1)(x^2-x+1) and explain how the result confirms the identity you used.

Step-by-step solution

  1. Learn the two identities and, more importantly, their shape. Every cube factorisation comes from

    a3+b3=(a+b)(a2ab+b2),a3b3=(ab)(a2+ab+b2)a^3+b^3=(a+b)(a^2-ab+b^2),\qquad a^3-b^3=(a-b)(a^2+ab+b^2)

    The pattern is worth memorising as a sentence rather than as symbols: the first factor is the same sign as the original (plus with plus, minus with minus), and inside the quadratic factor the middle sign is the opposite one while the two outer terms are always positive. That single rule prevents the most common mistake, writing a22ab+b2a^2-2ab+b^2 (which is just (ab)2(a-b)^2) instead of a2ab+b2a^2-ab+b^2.

  2. (a) Identify the two cubes in 27x3+y327x^3+y^3. The only work here is recognising 27=3327=3^3, so

    27x3=(3x)3,y3=y3  a=3x,  b=y27x^3=(3x)^3,\qquad y^3=y^3\ \Longrightarrow\ a=3x,\; b=y

    Substituting into the sum-of-cubes identity:

    27x3+y3=(3x+y)((3x)2(3x)(y)+y2)=(3x+y)(9x23xy+y2)27x^3+y^3=(3x+y)\big((3x)^2-(3x)(y)+y^2\big)=(3x+y)(9x^2-3xy+y^2)

    Notice that (3x)2=9x2(3x)^2=9x^2, not 3x23x^2 — squaring the whole term 3x3x is where sign-correct answers most often go numerically wrong.

  3. (b) Use the difference version for x38y3x^3-8y^3. Here 8y3=(2y)38y^3=(2y)^3, so a=xa=x and b=2yb=2y, and the minus identity applies:

    x38y3=(x2y)(x2+x(2y)+(2y)2)=(x2y)(x2+2xy+4y2)x^3-8y^3=(x-2y)\big(x^2+x(2y)+(2y)^2\big)=(x-2y)(x^2+2xy+4y^2)

    The quadratic factor x2+2xy+4y2x^2+2xy+4y^2 cannot be factored further over the real numbers: its discriminant as a quadratic in xx is (2y)24(4y2)=12y2<0(2y)^2-4(4y^2)=-12y^2<0. That is true of the quadratic factor in every cube factorisation, which is why the answer is always exactly two factors.

  4. (c) Recognise 512512 as a perfect cube. Since 512=83512=8^3, take a=xa=x and b=8b=8 in the sum-of-cubes identity:

    x3+512=x3+83=(x+8)(x28x+64)x^3+512=x^3+8^3=(x+8)(x^2-8x+64)

    A quick sanity check on the constant: the product of the constant terms must reproduce the original constant, and 8×64=5128\times 64=512. ✓

  5. Expand (x+1)(x2x+1)(x+1)(x^2-x+1) to see the identity from the other side. Distributing term by term:

    (x+1)(x2x+1)=x(x2x+1)+1(x2x+1)=x3x2+x+x2x+1(x+1)(x^2-x+1)=x(x^2-x+1)+1(x^2-x+1)=x^3-x^2+x+x^2-x+1

    Everything in the middle cancels in pairs — x2-x^2 with +x2+x^2, and +x+x with x-x — leaving

    (x+1)(x2x+1)=x3+1(x+1)(x^2-x+1)=x^3+1

    This is exactly a3+b3a^3+b^3 with a=xa=x, b=1b=1. The cancellation is the reason the middle sign inside the quadratic must be ab-ab: it is what kills the two leftover middle terms.

  6. Check each answer by multiplying back or by testing a value. The fastest check is substituting a convenient number. For (c) at x=2x=2: the original gives 8+512=5208+512=520, and the factored form gives (2+8)(416+64)=10×52=520(2+8)(4-16+64)=10\times 52=520. ✓ Doing one numeric check per part catches sign slips far more reliably than re-reading the algebra.

Answer

27x3+y3=(3x+y)(9x23xy+y2),x38y3=(x2y)(x2+2xy+4y2),x3+512=(x+8)(x28x+64)27x^3+y^3=(3x+y)(9x^2-3xy+y^2),\quad x^3-8y^3=(x-2y)(x^2+2xy+4y^2),\quad x^3+512=(x+8)(x^2-8x+64)

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