Algebra · real student question

Expand and factor (ax + by + ay)² + (bx − ay)(ax + by + ay) + (bx − ay)².

Question

Simplify and factor:

(ax+by+ay)2+(bxay)(ax+by+ay)+(bxay)2(ax+by+ay)^2+(bx-ay)(ax+by+ay)+(bx-ay)^2

Step-by-step solution

  1. Name the two repeated blocks so the shape becomes visible. Set

    A=ax+by+ay,B=bxayA=ax+by+ay,\qquad B=bx-ay

    Then the whole expression is just

    A2+AB+B2A^2+AB+B^2

    That form has no factorization in AA and BB alone, so the payoff has to come from what AA and BB are made of. Expand everything and collect.

  2. Expand A2A^2 term by term. With three summands you get three squares and three double products:

    A2=a2x2+b2y2+a2y2+2abxy+2a2xy+2aby2A^2=a^2x^2+b^2y^2+a^2y^2+2abxy+2a^2xy+2aby^2

    Note the 2a2xy2a^2xy — it comes from 2(ax)(ay)2(ax)(ay) and is the term most often dropped. Losing it changes the final answer.

  3. Expand the cross product ABAB and the square B2B^2.

    AB=(ax+by+ay)(bxay)=abx2a2xy+b2xyaby2+abxya2y2AB=(ax+by+ay)(bx-ay)=abx^2-a^2xy+b^2xy-aby^2+abxy-a^2y^2

    B2=(bxay)2=b2x22abxy+a2y2B^2=(bx-ay)^2=b^2x^2-2abxy+a^2y^2

  4. Collect the three monomial groups x2x^2, xyxy, y2y^2. Keeping the xyxy column honest is the whole exercise:

    x2:a2+ab+b2x^2:\quad a^2+ab+b^2

    xy:2ab+2a2A2 a2+b2+abAB 2abB2=a2+ab+b2xy:\quad \underbrace{2ab+2a^2}_{A^2}\ \underbrace{-a^2+b^2+ab}_{AB}\ \underbrace{-2ab}_{B^2}=a^2+ab+b^2

    y2:b2+a2+2abA2 aba2AB +a2B2=a2+ab+b2y^2:\quad \underbrace{b^2+a^2+2ab}_{A^2}\ \underbrace{-ab-a^2}_{AB}\ \underbrace{+a^2}_{B^2}=a^2+ab+b^2

    All three columns give the identical coefficient a2+ab+b2a^2+ab+b^2.

  5. Factor that common coefficient out. Since every group carries the same factor,

    A2+AB+B2=(a2+ab+b2)(x2+xy+y2)A^2+AB+B^2=(a^2+ab+b^2)\left(x^2+xy+y^2\right)

  6. Verify with numbers before trusting it. Take a=2a=2, b=3b=3, x=4x=4, y=5y=5. Then A=2(4)+3(5)+2(5)=33A=2(4)+3(5)+2(5)=33 and B=3(4)2(5)=2B=3(4)-2(5)=2, so

    A2+AB+B2=1089+66+4=1159A^2+AB+B^2=1089+66+4=1159

    and the factored form gives (4+6+9)(16+20+25)=1961=1159(4+6+9)(16+20+25)=19\cdot 61=1159. They agree, which also rules out the common slip of writing the xyxy coefficient as a2+ab+b2-a^2+ab+b^2.

Answer

(a2+ab+b2)(x2+xy+y2)\left(a^{2}+ab+b^{2}\right)\left(x^{2}+xy+y^{2}\right)

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