Algebra · real student question

Simplify 2(x²y + xy) − 3(x²y − xy) + 2xy.

Question

Simplify

2(x2y+xy)3(x2yxy)+2xy2\left(x^{2}y+xy\right)-3\left(x^{2}y-xy\right)+2xy

Step-by-step solution

  1. Remove the brackets one at a time, tracking the sign of each multiplier. The first bracket is multiplied by +2+2 and the second by 3-3. It is the 3-3 that causes trouble: it multiplies both terms inside, and 3×(xy)=+3xy-3\times(-xy)=+3xy, not 3xy-3xy.

  2. Expand the first bracket.

    2(x2y+xy)=2x2y+2xy2\left(x^{2}y+xy\right)=2x^{2}y+2xy

  3. Expand the second bracket.

    3(x2yxy)=3x2y+3xy-3\left(x^{2}y-xy\right)=-3x^{2}y+3xy

  4. Write out all the terms.

    2x2y+2xy3x2y+3xy+2xy2x^{2}y+2xy-3x^{2}y+3xy+2xy

  5. Collect the two families of like terms. x2yx^{2}y and xyxy are not like terms (different powers of xx), so they stay separate:

    (23)x2y+(2+3+2)xy=x2y+7xy(2-3)x^{2}y+(2+3+2)xy=-x^{2}y+7xy

    x2y+7xy\boxed{-x^{2}y+7xy}

  6. Check numerically, and note the common wrong answer. At x=2x=2, y=1y=1: the original is 2(4+2)3(42)+4=126+4=102(4+2)-3(4-2)+4=12-6+4=10, and the answer gives 4+14=10-4+14=10 ✓. A frequently seen incorrect result is x2yxy+2xy=x2y+xy-x^{2}y-xy+2xy=-x^{2}y+xy, which comes from writing 3xy-3xy instead of +3xy+3xy when distributing; it would give 4+2=2-4+2=-2 at the same test point, so the substitution check catches it immediately.

Answer

x2y+7xy-x^{2}y+7xy

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