C2.1, C2.5; E2.1, E2.5 - Letters and substitution
A machine triples any number you put in, then adds 4. How can you describe every possible output in one line? C2.1 and E2.1 introduce letters and substitution; C2.5 and E2.5 use them to build expressions, equations and formulas from words.
Letters as numbers
Put 2 into the opening machine and its output is . Put 5 in and its output is . Instead of writing a new calculation for every input, call the input : the output is .
The letter represents a number. It is not a label meaning “number” or the name of an object. In one calculation, repeated copies of the same letter have the same value.
Algebraic expression
An algebraic expression combines numbers, letters and operations without an equals sign. For example, is an expression. It has a numerical value once a value of is chosen.
Algebra usually leaves out the multiplication sign between a number and a letter: means . Similarly, means , means , and means . However, means addition and cannot be shortened to .
An equals sign makes a statement about two expressions.
Equation and formula
An equation states that two expressions are equal, for example . A formula is an equation giving a relationship between quantities, for example , relating the perimeter of a square to its side length .
A formula is a kind of equation. The distinction is its use: describes many squares, while asks which input makes a particular output. The expression alone does not ask you to find .
| Writing | Meaning |
|---|---|
| An expression: two more than a number | |
| An equation: that expression is equal to 9 | |
| A formula: total cost of two items costing each |
The power of a letter is that one expression can cover every allowed input. If the situation counts people, the allowed values are whole numbers; if it measures a temperature, negative values may be appropriate.
Key idea
Read the operations, not just the letters. , and describe three different calculations.
Decide what the notation actually says.
Writing expressions
Translate the order of a calculation into operations. Start by choosing a letter and stating what it represents. If a whole sum is multiplied or divided, brackets or a fraction bar keep that sum together.
| Words | Expression |
|---|---|
| 6 less than | |
| 6 divided by | , with |
| Twice the sum of and 6 | |
| Half the difference between and 6 |
Order matters for subtraction and division: “6 less than ” takes 6 away from , not the other way round.
Worked example 1: expressing a changing cost
Question. A taxi fare has a fixed charge of 2 for each kilometre. Write an expression for the fare for kilometres, then a formula using for the fare in dollars.
Plan. Find the distance charge first, then add the fixed charge once.
Answer. The expression is ; the formula is .
Check. A 4 km journey costs dollars. The expression gives . At , it still includes the fixed charge of $3.
Now the total fare is known. This adds an equals sign and turns the cost expression into an equation for the distance.
Worked example 2: expressing a known total
Question. For the same tariff, a journey costs d$ kilometres.
Plan. Set the fare expression equal to the given total.
Answer. .
Check. The 2\times7+3=17$, consistent with the equation.
Constructing an equation and solving it are different tasks. Here the equation is the required answer; later lessons develop systematic ways to solve it.
Watch out
“Three times the sum of and 4” is . Writing adds 4 after multiplying, so it describes a different calculation.
Write a complete equality for the next known total.
Substitution
Substitution replaces each letter with its stated number. Use brackets around a negative replacement, then follow the normal order of operations: powers before multiplication, then addition and subtraction.
Substitution
To substitute a value into an expression or formula is to replace every occurrence of its letter with that value and evaluate the resulting calculation.
For example, if , then , while . The minus sign before the square is an extra operation; it is not part of the squared letter.
Worked example 3: a positive input
Question. Find the value of when .
Plan. Replace both copies of , evaluate the square and products, then combine.
Answer. .
Check. Reverse the last operations: , which equals . This recovers the squared contribution from the proposed answer.
Only the sign of the input changes next. Brackets keep a negative number together and reveal the subtraction of a negative product.
Worked example 4: a negative input
Question. Find the value of when .
Plan. Substitute everywhere, then handle the square and signs separately.
Answer. .
Check. Changing 3 to leaves unchanged. The term changes from to , increasing the previous result by 18: .
The same replacement works in a formula with several letters. If , insert all the given values in their places and calculate the whole numerator before dividing. The formula is undefined when : division by zero has no value.
Watch out
With , writing loses the intended brackets. Write . Also replace every occurrence of the letter, not just the first.
Use the signed values in this formula.
Quick Recap
- Letters represent numbers; the same letter has the same value within a calculation.
- An expression has no equals sign. An equation states equality; a formula relates quantities.
- Translate the order of operations carefully, using brackets for a whole sum.
- Substitute into every occurrence and bracket negative values before calculating.
The opening machine has output , or the formula if names the output.