Algebraic expressions and substitution

Algebraic expressions and substitution

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • An expression has no equals sign; a formula links quantities; an equation can be solved.
  • Substitute by replacing letters with values; put negative values in brackets.
  • Like terms have exactly the same letters and powers, so they can be added or subtracted.
  • To expand a bracket, multiply every term inside by the term outside.
  • For double brackets multiply every term by every term: (x+4)2=x2+8x+16(x+4)^2=x^2+8x+16.

Letters, terms and expressions

A variable is a letter standing for a number; an expression has no equals sign.

3a3a means 3×a3\times a, and a2a^2 means a×aa\times a.

In 4x+74x+7 the terms are 4x4x and 77. The number in front of a letter is its coefficient (4 here); the number on its own is the constant.

−2−11234565101520253035xyx = 3: 194x + 7
The expression 4x + 7 gives a different value for each x you substitute: x = 3 gives 19.

Expression

  • 4x+74x+7
  • No equals sign

Formula

  • C=50+30dC=50+30d
  • Links quantities

Equation

  • 4x+7=194x+7=19
  • Can be solved

Which of these is an expression?

Substituting into expressions and formulae

Replace each letter by its value, using brackets for negatives and the order of operations.

Substitution replaces each letter by its value. For a=3a=3 and b=−2b=-2:

  • a2+b=9+(−2)=7a^2+b=9+(-2)=7
  • 3b2=3×(−2)2=123b^2=3\times(-2)^2=12

For C=50+30dC=50+30d with d=6d=6: C=50+30×6=230C=50+30\times6=230.

2468101214100200300400500dC(6, 230)(12, 410)C = 50 + 30d
C = 50 + 30d: the cost after d days

Worked example

In C=50+30dC=50+30d, find dd when C=410C=410.

Find a2+ba^2+b when a=3a=3 and b=−2b=-2.

Collecting like terms

Add or subtract like terms only, keeping the sign in front of each term.

Like terms have exactly the same letters and powers: 5x+3y−2x+4y=3x+7y5x+3y-2x+4y=3x+7y.

xx, x2x^2 and xyxy are unlike and cannot be combined. Also 3x×2x=6x23x\times2x=6x^2.

2x + 1x + 2
Perimeter = 2(x + 2) + 2(2x + 1) = 6x + 6 after collecting like terms (drawn for x = 2).

Like terms

  • 5x5x and 2x2x
  • 3ab3ab and abab

Unlike terms

  • xx and x2x^2
  • xx and xyxy

Worked example

Simplify 4a−3b−a+5b4a-3b-a+5b.

Simplify 5x+3y−2x+4y5x+3y-2x+4y.

Expanding single brackets

Multiply every term inside the bracket by the term outside.

3(2x−5)=6x−153(2x-5)=6x-15. A negative outside changes every sign inside: −2(x−4)=−2x+8-2(x-4)=-2x+8.

To expand and simplify, expand each bracket and then collect like terms.

x23
Area model: 3(x + 2) = 3x + 6. The whole rectangle is 3 tall and x + 2 wide (drawn for x = 4).
  • Expand3(2x−5)=6x−153(2x-5)=6x-15
  • Negative outside−2(x−4)=−2x+8-2(x-4)=-2x+8

Worked example

Expand and simplify 2(x+3)+4(x−1)2(x+3)+4(x-1).

Expand −2(x−4)-2(x-4).

Expanding double brackets

Multiply every term in the first bracket by every term in the second, giving four products.

(x+3)(x+5)=x2+5x+3x+15=x2+8x+15(x+3)(x+5)=x^2+5x+3x+15=x^2+8x+15.

A squared bracket is two brackets: (x+4)2=x2+8x+16(x+4)^2=x^2+8x+16. The special case (x−3)(x+3)=x2−9(x-3)(x+3)=x^2-9 has no xx term.

x53x
The four areas of (x + 3)(x + 5): x², 5x, 3x and 15 (drawn with x = 2)

Worked example

Expand (x−4)(2x+3)(x-4)(2x+3).

Expand (x+4)2(x+4)^2.

Try an exam question

Expand and simplify (x−4)(2x+3)(x-4)(2x+3).

[3 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the cost of a journey of 6 km.

1 mark, marked against the mark scheme

Revision notes