a) Ta có: \({x^2} - 2{\rm{x}}y + {y^2} + x - y = \left( {{x^2} - 2{\rm{x}}y + {y^2}} \right) + \left( {x - y} \right) = {\left( {x - y} \right)^2} + \left( {x - y} \right) = \left( {x - y} \right)\left( {x - y} \right) + \left( {x - y} \right)\)
b) \({x^2} - 2{\rm{x}}y + {y^2} + x - y = \left( {{x^2} - 2{\rm{x}}y + {y^2}} \right) + \left( {x - y} \right) = {\left( {x - y} \right)^2} + \left( {x - y} \right) = \left( {x - y} \right)\left( {x - y} \right) + \left( {x - y} \right) = \left( {x - y} \right)\left( {x - y + 1} \right)\)