Algebra · real student question

Factorise x^2 - 4x - y^2 - 6y - 5.

Question

Factorise

x24xy26y5x^{2}-4x-y^{2}-6y-5

Step-by-step solution

  1. Group the x terms and the y terms separately. The mixed term xyxy is absent, which is the clue that the expression can be turned into a difference of two perfect squares:

    (x24x)(y2+6y)5\left(x^{2}-4x\right)-\left(y^{2}+6y\right)-5

    Note the minus sign in front of the yy group changes the sign of both y2y^2 and 6y6y.

  2. Complete the square in x. x24x=(x2)24x^2-4x=(x-2)^2-4.

  3. Complete the square in y. y2+6y=(y+3)29y^2+6y=(y+3)^2-9, so (y2+6y)=(y+3)2+9-\left(y^{2}+6y\right)=-(y+3)^{2}+9.

  4. Recombine the constants.

    (x2)24(y+3)2+95=(x2)2(y+3)2(x-2)^{2}-4-(y+3)^{2}+9-5=(x-2)^{2}-(y+3)^{2}

    The three loose constants 4+95-4+9-5 cancel exactly, which is the sign that the grouping was the intended one.

  5. Apply the difference of squares. With A=x2A=x-2 and B=y+3B=y+3:

    A2B2=(AB)(A+B)=[(x2)(y+3)][(x2)+(y+3)]=(xy5)(x+y+1)A^{2}-B^{2}=(A-B)(A+B)=\big[(x-2)-(y+3)\big]\big[(x-2)+(y+3)\big]=(x-y-5)(x+y+1)

    (xy5)(x+y+1)\boxed{(x-y-5)(x+y+1)}

  6. Verify by expanding. (xy5)(x+y+1)=x2+xy+xxyy2y5x5y5=x24xy26y5(x-y-5)(x+y+1)=x^2+xy+x-xy-y^2-y-5x-5y-5=x^2-4x-y^2-6y-5. ✓

Answer

(xy5)(x+y+1)(x-y-5)(x+y+1)

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