Algebra · real student question

Multiply out and simplify (x + 1)(x² − x + 1).

Question

Carry out the multiplication and simplify:

(x+1)(x2x+1)(x+1)(x^2-x+1)

Step-by-step solution

  1. Distribute the binomial across the trinomial. Split (x+1)(x+1) into its two terms and multiply each by the whole second factor:

    (x+1)(x2x+1)=x(x2x+1)+1(x2x+1)(x+1)(x^2-x+1)=x(x^2-x+1)+1\cdot(x^2-x+1)

  2. Expand each piece.

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

    1(x2x+1)=x2x+11\cdot(x^2-x+1)=x^2-x+1

  3. Add and watch the middle terms annihilate.

    x3x2+x+x2x+1x^3-x^2+x+x^2-x+1

    The x2-x^2 and +x2+x^2 cancel, and so do +x+x and x-x. Four of the six terms disappear:

    x3+1x^3+1

  4. Recognise why the cancellation was guaranteed. This is the sum-of-cubes identity read backwards:

    a3+b3=(a+b)(a2ab+b2)a^3+b^3=(a+b)\left(a^2-ab+b^2\right)

    With a=xa=x and b=1b=1 the second factor is x2x1+12=x2x+1x^2-x\cdot 1+1^2=x^2-x+1, exactly what was given. The alternating signs in a2ab+b2a^2-ab+b^2 are precisely what makes the cross terms cancel — the factor is not (x2+x+1)(x^2+x+1), which would instead pair with (x1)(x-1) to give x31x^3-1.

  5. Verify with a value. At x=2x=2: the original is (3)(42+1)=33=9(3)(4-2+1)=3\cdot 3=9, and x3+1=8+1=9x^3+1=8+1=9. ✓ At x=1x=-1 both sides give 00, consistent with x=1x=-1 being the only real root of x3+1x^3+1.

Answer

(x+1)(x2x+1)=x3+1(x+1)\left(x^{2}-x+1\right)=x^{3}+1

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