Algebra · real student question

Simplify (a^2*b + a*b^2)(a^2 - a*b + b^2) - a*b^4.

Question

Simplify

(a2b+ab2)(a2ab+b2)ab4\left(a^{2}b+ab^{2}\right)\left(a^{2}-ab+b^{2}\right)-ab^{4}

Step-by-step solution

  1. Look for a familiar identity before multiplying anything out. The second bracket a2ab+b2a^{2}-ab+b^{2} is the tell-tale companion of the sum-of-cubes identity

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

    so the goal is to make an (a+b)(a+b) appear in the first bracket.

  2. Factor the first bracket. Both terms share abab:

    a2b+ab2=ab(a+b)a^{2}b+ab^{2}=ab(a+b)

    The expression becomes

    ab(a+b)(a2ab+b2)ab4ab(a+b)\left(a^{2}-ab+b^{2}\right)-ab^{4}

  3. Apply the identity. Replacing (a+b)(a2ab+b2)(a+b)\left(a^{2}-ab+b^{2}\right) by a3+b3a^{3}+b^{3} turns a degree-5 expansion into one line:

    ab(a3+b3)ab4ab\left(a^{3}+b^{3}\right)-ab^{4}

  4. Factor out abab from both remaining terms. Since ab4=abb3ab^{4}=ab\cdot b^{3},

    ab(a3+b3)abb3=ab(a3+b3b3)=aba3ab\left(a^{3}+b^{3}\right)-ab\cdot b^{3}=ab\left(a^{3}+b^{3}-b^{3}\right)=ab\cdot a^{3}

    The b3b^{3} terms cancel exactly — that cancellation is the whole reason the problem is posed with ab4-ab^{4}.

  5. Combine the powers of aa.

    aba3=a4bab\cdot a^{3}=a^{4}b

  6. Check with a numerical substitution. Take a=2a=2, b=3b=3: the original is (12+18)(46+9)281=307162=210162=48\left(12+18\right)\left(4-6+9\right)-2\cdot 81=30\cdot 7-162=210-162=48, and a4b=163=48 a^{4}b=16\cdot 3=48\ \checkmark

Answer

a4ba^{4}b

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