A bike rental shop charges a flat fee of 15 dollars plus 4 dollars for every hour you ride. For 1 hour you pay 19 dollars, for 2 hours 23 dollars, for 3 hours 27 dollars. You could keep listing prices forever, or you could write one short rule that works for any number of hours: if stands for the number of hours, the cost in dollars is . That rule is an algebraic expression. It packs a whole table of values into a few symbols, and you can use it for numbers nobody wrote down, like 2.5 hours or 11 hours. This lesson is about writing rules like that: from a pattern of tiles, from a sentence of words, and from a real situation.
The parts of an expression
A variable is a letter that stands for a number that can change or that you don't know yet, like for hours or for a stage number. A term is a number, a variable, or numbers and variables multiplied together; terms are separated by and signs. The number multiplying a variable is its coefficient: in the coefficient is . A term with no variable, like , is a constant, because its value never changes. An expression is a combination of terms, such as . It has no equals sign. Once you write , you have an equation: a statement that two things are equal, which you can solve (that is the job of a later lesson). Two hidden coefficients trip people up: means , so its coefficient is , and means , so its coefficient is .
| Term in 5x − 3y + 7 | Type | Coefficient |
|---|---|---|
| variable term | ||
| variable term | (the sign belongs to the term) | |
| constant term | no variable, so no coefficient |
From a growing pattern to an expression
Look at the tile pattern below. Stage 1 uses 5 tiles, stage 2 uses 8 and stage 3 uses 11. Instead of drawing stage 50, look at how each stage is built. Every stage has 2 tiles that never change, plus 3 rows of tiles whose length matches the stage number. So stage has 3 rows of tiles, which is tiles, plus the 2 fixed ones: tiles in total. The coefficient is the number of tiles added each stage, and the constant is the part that stays the same.
| Stage n | Tiles | Using 3n + 2 |
|---|---|---|
| 1 | 5 | |
| 2 | 8 | |
| 3 | 11 | |
| 10 | ? | |
| 50 | ? |
When you can't see the structure in a picture, a table still works. Step 1: find how much the count changes from one stage to the next. If the change is the same every time, that change is the coefficient of . Step 2: work backward one stage to find "stage 0": subtract the change from the stage 1 value. That number is the constant. For 5, 8, 11 the change is 3, and stage 0 would be , giving . Step 3: test the expression on a stage you already know. This method works only when the change is constant (a linear pattern). The square numbers 1, 4, 9, 16 grow by 3, then 5, then 7, so no expression of the form "coefficient times plus constant" fits them; they need .
Translating words into algebra
| Words | Expression |
|---|---|
| 5 more than a number | |
| 5 less than a number | |
| a number decreased by 5 | |
| twice a number | |
| the product of 4 and a number | |
| a number divided by 3 | |
| the square of a number | |
| 3 less than twice a number | |
| triple the sum of a number and 6 |
Where algebra came from
People solved problems about unknown amounts long before anyone wrote . Clay tablets from Babylon (in present-day Iraq), nearly 4000 years old, contain problems we would now solve with equations, written entirely in words. Around 820 CE (sources give dates between about 813 and 833), the Persian scholar Muhammad ibn Musa al-Khwarizmi, working at the House of Wisdom in Baghdad, wrote a book often called The Compendious Book on Calculation by Completion and Balancing. Its Arabic title contains the word al-jabr, "restoring" or "completion": moving a subtracted quantity to the other side of an equation so that it becomes added. It also contains al-muqabala, "balancing": cancelling equal amounts from both sides. When the book was translated into Latin, al-jabr became our word algebra, and his own name, written in Latin as Algoritmi, gave us the word algorithm. He still wrote everything in words. One of his best-known problems, paraphrased in modern English, says that a square together with ten of its roots (a "root" meant the unknown number itself) makes thirty-nine. Today we write it as .
- About 1800 BCE, Babylon: word problems about unknown quantities on clay tablets, solved with step-by-step recipes.
- Probably the 3rd century CE, Alexandria: Diophantus uses short abbreviations for an unknown in his work Arithmetica (his exact dates are uncertain).
- Around 820 CE, Baghdad: al-Khwarizmi describes completion and balancing as general methods, the start of algebra as its own subject.
- 1557, Wales and England: Robert Recorde introduces the equals sign, two parallel lines of the same length.
- Late 1500s to 1637, France: François Viète uses letters for both known and unknown quantities, and René Descartes popularizes , and for unknowns.
