I know that the following can be expressed as a product of two factors: $x^2 + x - y^2 + y$ but I don't know where to start with factorising it.
Usually I am able to match up the terms to the formula for quadratics, like $ax^2 + bx + c$, for example with $4a^2 - 8ab + 3b^2$ it's clear that it will factor to $(2a - b)(2a - 3b)$.
How does one go about solving these kind of problems? Before I could do the "matching up" method to see what would occupy the second term in each set of parentheses, but I've been hinted that $x^2 + x - y^2 + y$ will have three terms in one parenthesis.
I don't understand how the $+ x+ y$ in the middle can arise. Starting off I can guess it'll factorise to something like $(x ... y)(x ... y)$ because that provides both the $x^2$ term and the $y^2$ term.
Please help me understand how to solve this kind of problem.
$$ x^2 + x - y^2 + y = (x^2 - y^2) + (x + y) = (x-y)(x+y) + (x+y) = (x-y+1) (x+y) $$