Intermediate level

Algebraic expressions

An algebraic expression is a piece of notation where letters stand beside numbers. Learn the variable, the term and the coefficient, collect like terms, multiply brackets out — two binomials included — factor out the common term and evaluate an expression.

Before you start

This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:

Where this is used

Real situations where you count exactly the way this lesson teaches:

  • The electricity bill
    A bill is the expression 39.80 + 1.08u: a fixed charge plus 1.08 for every kilowatt-hour. At 210 kWh you pay 266.60, yet cutting usage to 105 kWh brings the bill down only to 153.20 — 57% of it, not half, because the 39.80 never moves.
  • Renovation budget
    You have put 3,000 aside, the crew charges 1,200 and the materials cost m. What is left is 3000 − (m + 1200), that is 1800 − m — the minus in front of the bracket takes away both items, the second one included. Spend 950 on materials and 850 stays in the envelope.
  • Extending a lawn
    A lawn is 8 m by 5 m and you move the fence out by x metres on every side. The new area is (8 + 2x)(5 + 2x) = 40 + 26x + 4x². Moving out by just 1 m gives 70 m² instead of 40 m² — 75% more grass to mow, because the 4x² term makes the work grow faster than the distance.
  • Print shop
    A job is quoted as 250 + 0.38n: file setup plus each leaflet printed. 5,000 leaflets cost 2,150, so 0.43 apiece, while 10,000 cost 4,050, so 0.405. The same formula in the pricing sheet explains where volume discounts come from.

All formulas

  • Collecting like terms

    ax+bx=(a+b)xax + bx = (a + b)x

    add the coefficients, the letter stays as it is

  • The distributive law

    a(b+c)=ab+aca(b + c) = ab + ac

    multiply every term inside the bracket

  • Distributing over a difference

    a(bc)=abaca(b - c) = ab - ac

    the same rule, with a minus sign

  • A minus in front of a bracket

    (b+c)=bc-(b + c) = -b - c

    flips the sign of every term inside

  • Multiplying two binomials

    (a+b)(c+d)=ac+ad+bc+bd(a + b)(c + d) = ac + ad + bc + bd

    every term of the first bracket by every term of the second

  • Factoring out the common term

    ab+ac=a(b+c)ab + ac = a(b + c)

    the distributive law read right to left

  • Adding vs. multiplying letters

    xx=x2,x+x=2xx \cdot x = x^2, \quad x + x = 2x

    two different operations — do not mix them up

An algebraic expression is notation where letters stand beside numbers: 3x+53x + 5, 2(ab)2(a - b), x21\frac{x}{2} - 1. A letter stands for a number — one we do not know yet, or one that is allowed to change. That way a single expression describes a whole family of situations instead of one case at a time.

A ticket costs 12 units and a seat reservation 5. The cost of buying xx tickets with one reservation is:

12x+512x + 5

This one line answers the question for any number of tickets — just substitute a number for xx.

Term, coefficient, variable

An expression is built from terms — the parts separated by plus and minus signs. In 12x+512x + 5 the terms are 12x12x and 55.

  • variable — the letter standing for a number (xx),
  • coefficient — the number in front of the variable (1212),
  • constant term — a term with no variable (55).

Writing 12x12x means multiplication: 12x12 \cdot x. The multiplication sign between a number and a letter is dropped, because nothing else could be meant.

Like terms and how to collect them

Like terms are terms with the same letter raised to the same power. 3x3x and 7x7x are like terms; 3x3x and 3x23x^2 are not, and neither are 3x3x and 3y3y.

Like terms can be merged into one — that is collecting like terms. Only the coefficients are added; the letter stays as it is:

ax+bx=(a+b)xax + bx = (a + b)x

This is not a new rule but the distributive law read right to left: 3x+2x=(3+2)x=5x3x + 2x = (3 + 2)x = 5x. Three apples and two apples make five apples — not "five apples squared".

Collect like terms: 5x + 8 + 3x − 2.

Collecting terms does not "work anything out". It writes the same object more briefly — and a shorter expression is easier to evaluate and harder to get wrong.

The distributive law

Multiplying a number by a sum means multiplying it by every term:

a(b+c)=ab+aca(b + c) = ab + ac

The area of a rectangle shows why: a rectangle with sides aa and b+cb + c can be cut into two rectangles of areas abab and acac. The same rule holds for subtraction: a(bc)=abaca(b - c) = ab - ac.

Expand: 3(2x + 4).

A minus in front of a bracket

A minus in front of a bracket is multiplication by 1-1, so every term inside flips its sign — including one that was already negative:

(b+c)=bc(x3)=x+3-(b + c) = -b - c \qquad -(x - 3) = -x + 3

This is where a sign gets lost most often. When a bracket is being subtracted, expand first and collect terms afterwards.

Simplify: 7x − 2(x − 5).

Multiplying two binomials

A binomial is a sum of two terms, such as x+3x + 3. Multiplying two brackets together needs no new rule — it is the same distributive law, applied twice. First treat the second bracket as a single number:

(a+b)(c+d)=a(c+d)+b(c+d)=ac+ad+bc+bd(a + b)(c + d) = a(c + d) + b(c + d) = ac + ad + bc + bd

Four products are left: every term of the first bracket times every term of the second. The area of a rectangle shows it again — a rectangle with sides a+ba + b and c+dc + d cuts into four smaller ones of areas acac, adad, bcbc and bdbd, and together they make up the whole.

The number of products is always the product of the numbers of terms: a binomial times a binomial is four multiplications, a binomial times a trinomial is six. Fewer than that means one has been missed.

Expand: (x + 3)(x − 5).

Two of these products come up so often that they have been written down once and for all — (a+b)2(a + b)^2 and (ab)(a+b)(a - b)(a + b) are what the special products are about. The rule in this section, however, always applies, including when no formula fits.

Factoring out the common term

The distributive law can also be read right to left. A sum then turns into a product:

ab+ac=a(b+c)ab + ac = a(b + c)

This is the reverse of expanding a bracket and it is called factoring out the common term. Collecting like terms was a special case of it: ax+bx=(a+b)xax + bx = (a + b)x is the same move, with xx as the factor taken out.

The common factor has two parts:

  • the numeric part — the greatest common divisor of the coefficients,
  • the letter part — the lowest power of a letter that stands in every term.
Factor out the common term: 12x³ + 18x².

The factor has to be the greatest one available. Writing 3x2(4x+6)3x^2(4x + 6) is arithmetically correct but only half-factored: 44 and 66 are still both even. A finished factorization is recognized by the terms inside the bracket having nothing left in common.

Factoring is not an exercise for its own sake. A product says things about an expression that a sum does not — when it is zero, for one — which is why cancelling an algebraic fraction and solving an equation in factored form both start here.

The value of an expression

To evaluate an expression, substitute a number for the letter and carry out the operations in the usual order. For 8x+68x + 6 with x=4x = 4:

84+6=32+6=388 \cdot 4 + 6 = 32 + 6 = 38

Simplifying an expression never changes its value — 5x+8+3x25x + 8 + 3x - 2 with x=4x = 4 also gives 3838. That is the simplest way to check a rearrangement: substitute the same number into both forms and compare.

The exercises below ask for an expression. What counts is its value, not how you write it: 5x+105x + 10, 10+5x10 + 5x and 5x+105 \cdot x + 10 are one and the same answer. Copying the question back is not — the point is the simpler form. Where the task is to factor, simpler means a product: the answer is 6x2(2x+3)6x^2(2x + 3), not the sum expanded back out.

Practice

Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.

Exercise 1 of 8Score: 0
simplify 4x + 2x

Common mistakes

  • Adding unlike terms3x+43x + 4 is already the answer; there is no "7x7x" to be had.
  • Confusing adding with multiplying lettersx+x=2xx + x = 2x, but xx=x2x \cdot x = x^2.
  • Losing a sign after a minus in front of a bracket(x3)-(x - 3) is x+3-x + 3, not x3-x - 3.
  • Expanding only the first term — in 3(2x+4)3(2x + 4) the three multiplies both terms, so 6x+126x + 12, not 6x+46x + 4.
  • Multiplying brackets "straight across"(x+3)(x5)(x + 3)(x - 5) is four products, not x215x^2 - 15.
  • Taking out too small a factor12x3+18x212x^3 + 18x^2 gives 6x2(2x+3)6x^2(2x + 3), not 3x2(4x+6)3x^2(4x + 6).

Formula card

Topic: Algebraic expressions

  • Collecting like terms

    ax+bx=(a+b)xax + bx = (a + b)x

    add the coefficients, the letter stays as it is

  • The distributive law

    a(b+c)=ab+aca(b + c) = ab + ac

    multiply every term inside the bracket

  • Distributing over a difference

    a(bc)=abaca(b - c) = ab - ac

    the same rule, with a minus sign

  • A minus in front of a bracket

    (b+c)=bc-(b + c) = -b - c

    flips the sign of every term inside

  • Multiplying two binomials

    (a+b)(c+d)=ac+ad+bc+bd(a + b)(c + d) = ac + ad + bc + bd

    every term of the first bracket by every term of the second

  • Factoring out the common term

    ab+ac=a(b+c)ab + ac = a(b + c)

    the distributive law read right to left

  • Adding vs. multiplying letters

    xx=x2,x+x=2xx \cdot x = x^2, \quad x + x = 2x

    two different operations — do not mix them up

Frequently asked questions

Related articles