Algebra · real student question

Factor (x^2 + xy + y^2)^2 - 4xy(x^2 + y^2) completely.

Question

Factor

(x2+xy+y2)24xy(x2+y2)\left(x^{2}+xy+y^{2}\right)^{2}-4xy\left(x^{2}+y^{2}\right)

completely.

Step-by-step solution

  1. Expand the square carefully. Using (a+b+c)2=a2+b2+c2+2ab+2ac+2bc(a+b+c)^{2}=a^{2}+b^{2}+c^{2}+2ab+2ac+2bc with a=x2a=x^{2}, b=xyb=xy, c=y2c=y^{2}:

    (x2+xy+y2)2=x4+x2y2+y4+2x3y+2x2y2+2xy3=x4+2x3y+3x2y2+2xy3+y4.\left(x^{2}+xy+y^{2}\right)^{2}=x^{4}+x^{2}y^{2}+y^{4}+2x^{3}y+2x^{2}y^{2}+2xy^{3}=x^{4}+2x^{3}y+3x^{2}y^{2}+2xy^{3}+y^{4}.

    Note 2ac=2x2y22ac=2x^{2}y^{2} combines with b2=x2y2b^{2}=x^{2}y^{2} to give the coefficient 33.

  2. Subtract the second piece. Since 4xy(x2+y2)=4x3y+4xy34xy\left(x^{2}+y^{2}\right)=4x^{3}y+4xy^{3},

    x4+2x3y+3x2y2+2xy3+y44x3y4xy3=x42x3y+3x2y22xy3+y4.x^{4}+2x^{3}y+3x^{2}y^{2}+2xy^{3}+y^{4}-4x^{3}y-4xy^{3}=x^{4}-2x^{3}y+3x^{2}y^{2}-2xy^{3}+y^{4}.

    Only the two odd-degree cross terms change sign; the result is still symmetric in xx and yy and palindromic in its coefficients 1,2,3,2,11,-2,3,-2,1.

  3. Exploit the palindromic structure. A symmetric quartic with equal outer coefficients is a natural candidate for

    (x2+axy+y2)(x2+bxy+y2)=x4+(a+b)x3y+(ab+2)x2y2+(a+b)xy3+y4.\left(x^{2}+axy+y^{2}\right)\left(x^{2}+bxy+y^{2}\right)=x^{4}+(a+b)x^{3}y+(ab+2)x^{2}y^{2}+(a+b)xy^{3}+y^{4}.

    The x3yx^{3}y and xy3xy^{3} coefficients coming out equal is exactly what the target has, so this ansatz is the right shape.

  4. Match coefficients and solve. Comparing with 1,2,3,2,11,-2,3,-2,1:

    a+b=2,ab+2=3  ab=1.a+b=-2,\qquad ab+2=3\ \Rightarrow\ ab=1.

    The pair with sum 2-2 and product 11 is a=b=1a=b=-1 (the discriminant 44=04-4=0 means they coincide), so both factors are the same:

    x42x3y+3x2y22xy3+y4=(x2xy+y2)2.x^{4}-2x^{3}y+3x^{2}y^{2}-2xy^{3}+y^{4}=\left(x^{2}-xy+y^{2}\right)^{2}.

  5. State the identity and check. Therefore

    (x2+xy+y2)24xy(x2+y2)=(x2xy+y2)2.\left(x^{2}+xy+y^{2}\right)^{2}-4xy\left(x^{2}+y^{2}\right)=\left(x^{2}-xy+y^{2}\right)^{2}.

    The factor x2xy+y2x^{2}-xy+y^{2} is positive for all real (x,y)(0,0)(x,y)\ne(0,0), so the whole expression is a perfect square and never negative. Numerical check at (x,y)=(2.4,1.1)(x,y)=(2.4,1.1): both sides give 18.748918.7489 ✓, and three further random pairs agree to nine digits.

Answer

(x2+xy+y2)24xy(x2+y2)=(x2xy+y2)2\left(x^{2}+xy+y^{2}\right)^{2}-4xy\left(x^{2}+y^{2}\right)=\left(x^{2}-xy+y^{2}\right)^{2}

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