Algebraic expressions and substitution

Algebraic expressions and substitution

IB MYP Maths Standard: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A variable is a letter for an unknown number; an expression has no equals sign, a formula links quantities and an equation can be solved.
  • In 4x+74x+7 the terms are 4x4x and 77, the coefficient is 44 and the constant is 77.
  • Substitute with negatives in brackets and follow the order of operations.
  • Collect only like terms; expand a bracket by multiplying every term inside.
  • Double brackets give four products: (x+3)(x+5)=x2+8x+15(x+3)(x+5)=x^2+8x+15.

Letters, terms and expressions

A variable stands for a number; an expression has terms with coefficients and constants.

A variable is a letter standing for a number we do not know or that can change. 3a3a means 3×a3\times a, and a2a^2 means a×aa\times a.

An expression such as 4x+74x+7 has no equals sign. A formula such as C=50+30dC=50+30d links quantities, and an equation such as 4x+7=194x+7=19 can be solved.

1234567891050100150200250300350dC(0, 50)(5, 200)C = 50 + 30d
The formula C = 50 + 30d links two variables: each extra day d adds 30 to the cost C, on top of a fixed 50

Name

xx:
variable
44:
coefficient
4x4x and 77:
terms
77:
constant

Meaning

xx:
a letter for a number
44:
the number in front of a letter
4x4x and 77:
parts joined by + or −
77:
a number on its own
The parts of 4x + 7

Which of these is an equation?

Substitution

Replace each letter by its value, put negatives in brackets and follow the order of operations.

Substitution means replacing each letter by its value. For a=3a=3 and b=−2b=-2: a2+b=9+(−2)=7a^2+b=9+(-2)=7 and 3b2=3×(−2)2=3×4=123b^2=3\times(-2)^2=3\times4=12.

For a formula such as C=50+30dC=50+30d with d=6d=6: C=50+30×6=230C=50+30\times6=230. To find dd from a known CC, work backwards: 50+30d=41050+30d=410, so 30d=36030d=360 and d=12d=12.

  1. 1

    Brackets

    put negative values in brackets

  2. 2

    Powers

    square or cube next

  3. 3

    Multiply and divide

    then × and ÷

  4. 4

    Add and subtract

    finally + and −

Order of operations

Worked example

Find 3b23b^2 when b=−2b=-2, and find dd when C=50+30dC=50+30d and C=410C=410.

Find 2x2−x2x^2-x when x=−3x=-3.

Collecting like terms

Add or subtract terms with exactly the same letters and powers, keeping each sign with its term.

Like terms have exactly the same letters and powers, so they can be added or subtracted: 5x+3y−2x+4y=3x+7y5x+3y-2x+4y=3x+7y. Terms such as xx, x2x^2 and xyxy are unlike and cannot be combined.

Keep the sign in front of each term with it: 4a−3b−a+5b=3a+2b4a-3b-a+5b=3a+2b. Also 3x×2x=6x23x\times2x=6x^2 and a×b=aba\times b=ab.

−3−2−1123−6−4−224681012xy5x + 3 − 2x3x + 3
Collecting like terms does not change the value: 5x + 3 − 2x and 3x + 3 are the same line

Like terms (can combine)

  • 5x5x and 2x2x
  • 3y3y and 4y4y

Unlike terms (cannot combine)

  • xx and x2x^2
  • xx and xyxy
  • 3x3x and 2y2y

Worked example

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

Simplify 6p+2q−4p−5q6p+2q-4p-5q.

Expanding single brackets

Multiply every term inside by the term outside.

To expand a bracket, multiply every term inside 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: 2(x+3)+4(x−1)=2x+6+4x−4=6x+22(x+3)+4(x-1)=2x+6+4x-4=6x+2.

123456−15−10−55101520xy(2.5, 0)3(2x − 5)6x − 15
Expanding keeps the value: 3(2x − 5) and 6x − 15 are the same line, crossing zero at x = 2.5
  • Expanda(b+c)=ab+aca(b+c)=ab+ac

Worked example

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

Expand −3(x−5)-3(x-5).

Expanding double brackets

Multiply every term in the first bracket by every term in the second, then collect like terms.

With two brackets there are 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.

With negatives: (x−4)(2x+3)=2x2+3x−8x−12=2x2−5x−12(x-4)(2x+3)=2x^2+3x-8x-12=2x^2-5x-12. A square of a bracket is two brackets: (x+4)2=(x+4)(x+4)=x2+8x+16(x+4)^2=(x+4)(x+4)=x^2+8x+16. The special case (x−3)(x+3)=x2−9(x-3)(x+3)=x^2-9 has no xx term.

x53xABCDEFGH
Area model for (x + 3)(x + 5), drawn with x = 2: the four pieces are x², 5x, 3x and 15

Worked example

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

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

Try an exam question

(a) Expand and simplify (x+4)(x−2)(x+4)(x-2). (b) Find the value of 3a2−b3a^2-b when a=−2a=-2 and b=5b=5.

[4 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