Algebra · real student question

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

Question

Factor completely

x2y4xy+4yx^2y-4xy+4y

Step-by-step solution

  1. Look for a common factor across all three terms first. Each term contains exactly one yy and no common power of xx (the last term has none):

    x2y=yx2,4xy=y(4x),4y=y4x^2y=y\cdot x^2,\qquad -4xy=y\cdot(-4x),\qquad 4y=y\cdot 4

    So the greatest common factor is yy.

  2. Factor out the GCF.

    x2y4xy+4y=y(x24x+4)x^2y-4xy+4y=y\left(x^2-4x+4\right)

    Always doing this first is what makes the second stage easy: the bracket is now monic.

  3. Recognise the bracket as a perfect square. x2=(x)2x^2=(x)^2, 4=224=2^2, and the middle term satisfies 2x2=4x2\cdot x\cdot 2=4x with the required minus sign:

    x24x+4=(x2)2x^2-4x+4=(x-2)^2

  4. Combine both stages.

    x2y4xy+4y=y(x2)2x^2y-4xy+4y=y(x-2)^2

    The word completely in the instruction means neither stage may be skipped — y(x24x+4)y(x^2-4x+4) is not yet a complete factorisation.

  5. Check with a substitution. At x=5x=5, y=3y=3: the original is 7560+12=2775-60+12=27, and y(x2)2=39=27y(x-2)^2=3\cdot 9=27 \checkmark.

Answer

x2y4xy+4y=y(x2)2x^2y-4xy+4y=y(x-2)^2

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