Algebra · real student question

Factor x^2 - 2xy + y^2 - 9.

Question

Factor

x22xy+y29x^2-2xy+y^2-9

Step-by-step solution

  1. Look for a grouping that produces a square. With four terms, the instinct is to split them 2+22+2 — but here the first three belong together, because x22xy+y2x^2-2xy+y^2 has the classic perfect-square pattern: two squares and a middle term equal to 2-2 times the product of their roots.

  2. Collapse the first three terms.

    x22xy+y2=(xy)2x^2-2xy+y^2=(x-y)^2

    so the expression becomes

    (xy)29(x-y)^2-9

    What looked like a two-variable problem is now a one-variable one in the single quantity xyx-y.

  3. Recognise the difference of squares. Since 9=329=3^2, this is A2B2A^2-B^2 with A=xyA=x-y and B=3B=3, and

    A2B2=(AB)(A+B)A^2-B^2=(A-B)(A+B)

  4. Substitute and write the factors.

    (xy)232=((xy)3)((xy)+3)=(xy3)(xy+3)(x-y)^2-3^2=\bigl((x-y)-3\bigr)\bigl((x-y)+3\bigr)=(x-y-3)(x-y+3)

  5. Confirm the factoring is complete. Both factors are linear in xx and yy, so nothing splits further. Note that the expression vanishes exactly on the two parallel lines xy=3x-y=3 and xy=3x-y=-3 — a geometric reading of the answer.

  6. Verify numerically. Comparing the original expression with the product at 6060 random pairs (x,y)(x,y) drawn from [6,6][-6,6] gives agreement to machine precision at every point ✓. Spot check at x=5,y=1x=5,y=1: original =2510+19=7=25-10+1-9=7, and (513)(51+3)=(1)(7)=7(5-1-3)(5-1+3)=(1)(7)=7 ✓.

Answer

x22xy+y29=(xy3)(xy+3)x^2-2xy+y^2-9=(x-y-3)(x-y+3)

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