Algebra · real student question

Simplify the expression (a^2 b + a b^2)(a^2 - ab + b^2) - a b^4.

Question

Simplify the expression

(a2b+ab2)(a2ab+b2)ab4(a^2b+ab^2)(a^2-ab+b^2)-ab^4

Step-by-step solution

  1. Look for a factoring pattern instead of expanding blindly. Multiplying out directly produces six terms before any cancellation. The second bracket a2ab+b2a^2-ab+b^2 is the unmistakable signature of the sum-of-cubes identity (a+b)(a2ab+b2)=a3+b3(a+b)(a^2-ab+b^2)=a^3+b^3, so the goal is to make the first bracket look like a+ba+b times something.

  2. Factor abab out of the first bracket.

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

    so the expression becomes

    ab(a+b)(a2ab+b2)ab4ab(a+b)(a^2-ab+b^2)-ab^4

  3. Apply the sum of cubes. Since (a+b)(a2ab+b2)=a3+b3(a+b)(a^2-ab+b^2)=a^3+b^3,

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

    What would have been a six-term expansion is now a two-term product.

  4. Distribute and cancel.

    aba3+abb3ab4=a4b+ab4ab4=a4bab\cdot a^3+ab\cdot b^3-ab^4=a^4b+ab^4-ab^4=a^4b

    The subtracted term was engineered to cancel exactly one of the two products — that is why the problem collapses to a single monomial.

  5. Check numerically at two points. At a=2,b=3a=2,b=3: first bracket =12+18=30=12+18=30, second =46+9=7=4-6+9=7, product =210=210, minus ab4=281=162ab^4=2\cdot81=162, giving 4848; and a4b=163=48a^4b=16\cdot3=48 ✓. At a=1,b=4a=-1,b=4: (416)(1+4+16)(1)(256)=(12)(21)+256=252+256=4(4-16)(1+4+16)-(-1)(256)=(-12)(21)+256=-252+256=4, and a4b=14=4a^4b=1\cdot4=4 ✓.

Answer

a4ba^4b

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