C2.1, C2.5; E2.1, E2.5 - Letters and substitution

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 3×2+4=103\times2+4=10. Put 5 in and its output is 3×5+4=193\times5+4=19. Instead of writing a new calculation for every input, call the input nn: the output is 3n+43n+4.

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, 3n+43n+4 is an expression. It has a numerical value once a value of nn is chosen.

Algebra usually leaves out the multiplication sign between a number and a letter: 3n3n means 3×n3\times n. Similarly, abab means a×ba\times b, x2x^2 means x×xx\times x, and x5\frac{x}{5} means x÷5x\div5. However, 3+n3+n means addition and cannot be shortened to 3n3n.

An equals sign makes a statement about two expressions.

Equation and formula

An equation states that two expressions are equal, for example 3n+4=193n+4=19. A formula is an equation giving a relationship between quantities, for example P=4sP=4s, relating the perimeter PP of a square to its side length ss.

A formula is a kind of equation. The distinction is its use: P=4sP=4s describes many squares, while 3n+4=193n+4=19 asks which input makes a particular output. The expression 3n+43n+4 alone does not ask you to find nn.

WritingMeaning
n+2n+2An expression: two more than a number
n+2=9n+2=9An equation: that expression is equal to 9
C=2pC=2pA formula: total cost CC of two items costing pp 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. 5x5x, x+5x+5 and x5x^5 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.

WordsExpression
6 less than xxx−6x-6
6 divided by xx6x\frac6x, with x≠0x\ne0
Twice the sum of xx and 62(x+6)2(x+6)
Half the difference between xx and 6x−62\frac{x-6}{2}

Order matters for subtraction and division: “6 less than xx” takes 6 away from xx, not the other way round.

Worked example 1: expressing a changing cost

Question. A taxi fare has a fixed charge of 3andachargeof3 and a charge of 2 for each kilometre. Write an expression for the fare for dd kilometres, then a formula using FF for the fare in dollars.

Plan. Find the distance charge first, then add the fixed charge once.

distance charge=2d2 dollars for each kilometretotal fare=2d+3add the fixed charge\begin{aligned} \text{distance charge}&=2d &&\text{2 dollars for each kilometre}\\ \text{total fare}&=2d+3 &&\text{add the fixed charge} \end{aligned}

Answer. The expression is 2d+32d+3; the formula is F=2d+3F=2d+3.

Check. A 4 km journey costs 4×2+3=114\times2+3=11 dollars. The expression gives 2×4+3=112\times4+3=11. At d=0d=0, 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 17.Writeanequationforitsdistance17. Write an equation for its distance d$ kilometres.

Plan. Set the fare expression equal to the given total.

fare expression=2d+32d+3=17the total is 17 dollars\begin{aligned} \text{fare expression}&=2d+3\\ 2d+3&=17 &&\text{the total is 17 dollars} \end{aligned}

Answer. 2d+3=172d+3=17.

Check. The 3fixedchargeisincludedonceandtheremainingchargedependsondistance.Forexample,a7kmjourneygives3 fixed charge is included once and the remaining charge depends on distance. For example, a 7 km journey gives 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 xx and 4” is 3(x+4)3(x+4). Writing 3x+43x+4 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 x=−2x=-2, then x2=(−2)2=4x^2=(-2)^2=4, while −x2=−(−2)2=−4-x^2=-(-2)^2=-4. 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 2x2−3x+12x^2-3x+1 when x=3x=3.

Plan. Replace both copies of xx, evaluate the square and products, then combine.

2x2−3x+1=2(3)2−3(3)+1replace each x=2(9)−9+1square first=18−9+1=10\begin{aligned} 2x^2-3x+1&=2(3)^2-3(3)+1 &&\text{replace each }x\\ &=2(9)-9+1 &&\text{square first}\\ &=18-9+1\\ &=10 \end{aligned}

Answer. 1010.

Check. Reverse the last operations: 10−1+3×3=1810-1+3\times3=18, which equals 2×322\times3^2. 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 2x2−3x+12x^2-3x+1 when x=−3x=-3.

Plan. Substitute (−3)(-3) everywhere, then handle the square and signs separately.

2x2−3x+1=2(−3)2−3(−3)+1=2(9)−(−9)+1square positive, product negative=18+9+1subtract a negative=28\begin{aligned} 2x^2-3x+1&=2(-3)^2-3(-3)+1\\ &=2(9)-(-9)+1 &&\text{square positive, product negative}\\ &=18+9+1 &&\text{subtract a negative}\\ &=28 \end{aligned}

Answer. 2828.

Check. Changing 3 to −3-3 leaves 2x22x^2 unchanged. The term −3x-3x changes from −9-9 to +9+9, increasing the previous result by 18: 10+18=2810+18=28.

The same replacement works in a formula with several letters. If T=a+bcT=\frac{a+b}{c}, insert all the given values in their places and calculate the whole numerator before dividing. The formula is undefined when c=0c=0: division by zero has no value.

Watch out

With x=−3x=-3, writing 2×−322\times-3^2 loses the intended brackets. Write 2(−3)2=182(-3)^2=18. 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 3n+43n+4, or the formula y=3n+4y=3n+4 if yy names the output.