Expansion in more than one variable

Expansion in more than one variable

Secondary 2

An expression can contain more than one variable, such as \(x\) and \(y\). Terms are like terms only when they have the same letters with the same powers: \(3xy\) and \(-5yx\) are like terms, but \(x^2y\) and \(xy^2\) are not.

Why: multiplication can be done in any order, so \(yx=xy\) and \(2x\times3xy=2\times3\times x\times x\times y=6x^2y\). Multiply the numbers, then collect each letter, adding the powers of the same letter.

ProductWorkingResult
\(4x\times(-3y)\)\(4\times(-3)\times x\times y\)\(-12xy\)
\(2xy^2\times5x^2y\)\(2\times5\times x\times x^2\times y^2\times y\)\(10x^3y^3\)
\(-a\times(-ab)\)\((-1)\times(-1)\times a\times a\times b\)\(a^2b\)

Method

  1. Multiply the term outside each bracket by every term inside, keeping the signs.
  2. In each product, multiply the numbers and add the powers of each letter.
  3. Write the letters of each term in alphabetical order, so \(yx\) becomes \(xy\) and like terms are easy to see.
  4. Collect like terms.

Example

Expand and simplify \(2a(3a-4b)-5b(a-2b)\).

\(\begin{aligned} 2a(3a-4b)-5b(a-2b) &= 6a^2-8ab-5ab+10b^2 \\ &= 6a^2-13ab+10b^2 \end{aligned}\)

Check: with \(a=b=1\), the question gives \(2(-1)-5(-1)=3\) and the answer gives \(6-13+10=3\). Common errors: \(x^2y\) and \(xy^2\) are unlike terms and cannot be added, and \(3x\times4x=12x^2\), not \(12x\).

Need help? Join our E-Maths tuition for O-Level success.

Learn more