6.02a - Building expressions from situations

6.02a - Building expressions from situations

How can one rule describe many different purchases or shapes? Choose variables with clear meanings, translate operations in the right order, and build expressions and formulae from fixed amounts, changing amounts and geometric measurements.

Choosing variables

Three envelopes initially contain nn tickets each. You add two tickets to every envelope. Is the new total 3n+23n+2 or 3(n+2)3(n+2)? Compare this with adding just two tickets altogether.

Keep nn as the initial number of tickets in one envelope. Adding two tickets altogether gives 3n+23n+2. Adding two to every envelope gives 3(n+2)3(n+2): three copies of the new count in one envelope. A clear definition prevents the letter from changing meaning halfway through the calculation.

A variable with a meaning

A variable represents a numerical quantity. State what it measures or counts, and its units where needed. For example, “nn is the number of bags” means nn is a non-negative whole number; “mm is the mass in kilograms” may allow fractional values.

Build the expression in the order described. “Three times a number, then add two” is 3n+23n+2. “Add two to a number, then multiply the result by three” is 3(n+2)3(n+2). Brackets keep a whole quantity together.

Worked example 1: multiplying before adding

Question. A bag contains nn counters. Write an expression for the number of counters in three such bags with two extra counters added altogether.

Plan. Count three complete bags, then add the two loose counters.

three bags=n+n+n=3nthree equal groupstotal=3n+2add two once\begin{aligned} \text{three bags}&=n+n+n=3n &&\text{three equal groups}\\ \text{total}&=3n+2 &&\text{add two once} \end{aligned}

Answer. 3n+23n+2 counters.

Check. If each bag has five counters, the count is 5+5+5+2=175+5+5+2=17. Substitution gives 3×5+2=173\times5+2=17.

Change only where the two extra counters are added: now each bag receives two. The bracket records this change in grouping.

Worked example 2: adding before multiplying

Question. A bag initially contains nn counters. Two counters are added to each of three such bags. Write an expression for the total number of counters.

Plan. Work out the new count in one bag, then take three copies.

one filled bag=n+2add two per bagtotal=3(n+2)multiply the whole count\begin{aligned} \text{one filled bag}&=n+2 &&\text{add two per bag}\\ \text{total}&=3(n+2) &&\text{multiply the whole count} \end{aligned}

Answer. 3(n+2)3(n+2) counters.

Check. At n=5n=5, there are three bags of seven: twenty-one counters. The expression gives 3(5+2)=213(5+2)=21.

Changing a few words changed the total by four counters, for every possible original bag size: the second situation adds six loose counters rather than two. Algebra records the structure of the situation, not just its numbers.

Watch out

“Five less than nn” means n−5n-5, not 5−n5-n. Try n=12n=12: five less is seven. Checking a sensible value can reveal a reversed operation.

Keep the whole new bag count inside your bracket.

Fixed and changing amounts

A delivery fee is paid once; a price per item is paid repeatedly. Separating those contributions is the key to many cost formulae.

If the fixed charge is £6 and each item costs £4, the total for nn items is 6+4n6+4n pounds. The number six does not grow with nn. A formula names the output too: C=6+4nC=6+4n, where CC is the total cost in pounds.

Problem-solving

List each contribution before combining them. “Per item” means multiply by the number of items; “once” means add once. Convert money into a single unit before adding.

Some situations have more than one changing quantity. Give each its own variable and avoid adding pounds directly to pence.

Worked example 3: two changing contributions

Question. A van costs £24 per day to hire plus 20p per mile. Write a formula for the total cost CC in pounds for dd days and mm miles. There are no other charges.

Plan. Convert the mileage rate to pounds, then add the two costs.

20p=£0.20use pounds throughoutday cost=24drate times daysmileage cost=0.20mrate times milesC=24d+0.20madd contributions\begin{aligned} 20\text{p}&=£0.20 &&\text{use pounds throughout}\\ \text{day cost}&=24d &&\text{rate times days}\\ \text{mileage cost}&=0.20m &&\text{rate times miles}\\ C&=24d+0.20m &&\text{add contributions} \end{aligned}

Answer. C=24d+0.20mC=24d+0.20m, with CC measured in pounds.

Check. One day and ten miles cost £24+£2=£26£24+£2=£26. The formula gives 24(1)+0.20(10)=2624(1)+0.20(10)=26.

Change only one feature: add a fixed booking fee. It appears once, even for a hire lasting several days.

Worked example 4: adding a fixed contribution

Question. The same van hire has an additional £7 booking fee per hire. Write a formula for CC in pounds for dd days and mm miles.

Plan. Keep both changing contributions and add the booking fee once.

changing cost=24d+0.20mdays and milesC=24d+0.20m+7one fee per hire\begin{aligned} \text{changing cost}&=24d+0.20m &&\text{days and miles}\\ C&=24d+0.20m+7 &&\text{one fee per hire} \end{aligned}

Answer. C=24d+0.20m+7C=24d+0.20m+7.

Check. For two days and ten miles, the cost is £48+£2+£7=£57£48+£2+£7=£57. The formula gives 24(2)+0.20(10)+7=5724(2)+0.20(10)+7=57; the fee is seven pounds, not fourteen.

Use the values allowed by the situation. The number of whole days charged may be an integer, while mileage can be fractional. A formula does not by itself promise that a hire of zero days is available.

Watch out

For a single £7 booking fee, 24d+0.20m+7d24d+0.20m+7d is wrong: it charges the fee every day. A fixed contribution is not multiplied by a changing quantity.

Write a complete formula with every cost in pounds.

Building geometric formulae

A rectangle's perimeter is the total distance around its four sides. Opposite sides have equal lengths. If one side is described using a variable, you can express every side before adding.

[DIAGRAM: asset_name: Rectangles with related side lengths; asset_slug: related-rectangles; caption: Add all four sides, keeping each length expression together.; description: Two rectangles drawn without a numerical scale. Both have width w centimetres. The first has length w plus three centimetres and the second has length w minus three centimetres. Opposite sides carry matching labels. The second rectangle requires w greater than three.]
Add all four sides, keeping each length expression together.

Keep length units consistent. A length must be positive for a genuine rectangle, so w−3w-3 requires w>3w>3. A value that makes a side zero describes a collapsed shape, not a rectangle with positive area.

Worked example 5: a length greater than the width

Question. A rectangle has width w cmw\,\mathrm{cm} and length (w+3) cm(w+3)\,\mathrm{cm}. Write a simplified formula for its perimeter PP in centimetres.

Plan. Add the four sides and collect like terms.

P=w+(w+3)+w+(w+3)include every side=w+w+w+w+3+3group additions=4w+6collect like terms\begin{aligned} P&=w+(w+3)+w+(w+3) &&\text{include every side}\\ &=w+w+w+w+3+3 &&\text{group additions}\\ &=4w+6 &&\text{collect like terms} \end{aligned}

Answer. P=4w+6P=4w+6, for w>0w>0.

Check. If w=5w=5, the sides are five and eight centimetres. Their perimeter is 5+8+5+8=26 cm5+8+5+8=26\,\mathrm{cm}, matching 4(5)+6=264(5)+6=26.

Change only the plus sign in the length to a minus sign. The labelled length can now be the shorter side; the algebra still adds all four boundary lengths.

Worked example 6: a length less than the width

Question. A rectangle has width w cmw\,\mathrm{cm} and length (w−3) cm(w-3)\,\mathrm{cm}. Write a simplified formula for its perimeter PP in centimetres, and state the restriction on ww.

Plan. Add the four sides, then require both dimensions to be positive.

P=w+(w−3)+w+(w−3)add the boundary lengths=4w−6collect signed termsw−3>0⇒w>3positive side length\begin{aligned} P&=w+(w-3)+w+(w-3) &&\text{add the boundary lengths}\\ &=4w-6 &&\text{collect signed terms}\\ w-3&>0\quad\Rightarrow\quad w>3 &&\text{positive side length} \end{aligned}

Answer. P=4w−6P=4w-6, with w>3w>3.

Check. At w=5w=5, the sides are five and two centimetres. Their perimeter is 5+2+5+2=14 cm5+2+5+2=14\,\mathrm{cm}, matching 20−6=1420-6=14.

For an area formula, multiply perpendicular side lengths rather than adding them. The first rectangle has A=w(w+3)A=w(w+3), where AA is in square centimetres. This product is already a valid formula; a formula does not need every bracket removed. Later you will learn to expand such products.

Watch out

w+(w+3)w+(w+3) counts only two sides. A rectangle has two of each side length, so its perimeter is w+(w+3)+w+(w+3)w+(w+3)+w+(w+3). Area uses multiplication and has square units.

Build the perimeter from the actual side lengths before simplifying.

Quick Recap

  • Define what every variable measures or counts, including its units.
  • Translate the order of operations; brackets keep a whole quantity together.
  • Add fixed charges once and multiply rates by the quantities they apply to.
  • Build perimeter by adding boundary lengths, and area by multiplying the appropriate lengths.
  • Keep the values allowed by the context, such as positive side lengths.

The opening envelopes contain 3(n+2)3(n+2) tickets after two are added to every envelope. Adding two tickets altogether would give 3n+23n+2. The brackets record which quantity is repeated.