Algebra 1 · Grade 9
Writing Equations and Constraints from Situations
Quick answer
Modeling starts before any algebra: name the unknown with its units, write what the situation says as an equation or inequality, solve, then answer the question that was asked. The equation knows only numbers, so its solutions still have to be checked against the situation. When several limits apply at once, a system of inequalities describes every option that meets them all.
What you'll learn
- Write and solve an equation or inequality from a described situation
- Decide whether a solution is viable in context
- Represent several constraints as a system of inequalities
From words to an equation
A gym charges a -dollar sign-up fee and dollars a month. Maya has dollars. How many months can she pay for?
Four steps turn that into mathematics and back.
- Name the unknown, with units. Let be the number of months.
- Write what the situation says. The fee plus the monthly charges equals the total: .
- Solve. , so .
- Answer the question asked, in words. Maya can pay for months.
Step 1 carries more weight than it looks. “Let be the months” makes every later expression mean something, and the units say what the answer will be measured in.
The same steps handle other kinds of equations.
| Situation | Equation | Kind |
|---|---|---|
| a garden feet longer than wide, area square feet | quadratic | |
| two pipes fill a pool in and hours alone | rational | |
| dollars growing a year, until it reaches | exponential |
Why an equation’s solution may not be an answer
Solve the garden equation.
The equation has two solutions, and . The garden has one width.
The equation is not wrong. It records only what the words said about the numbers: one number times a number larger is . It knows nothing about gardens, and times really is .
The situation adds a condition the equation never saw: a width cannot be negative. So is not viable, and the garden is feet by feet.
Every model carries unwritten conditions like this one:
| Situation | Unwritten condition |
|---|---|
| lengths, times, ages | not negative |
| people, buses, tickets | whole numbers |
| a budget | at most the budget |
| a recipe or a requirement | at least the minimum |
Checking each solution against them is the last step of every modeling problem, not an optional one.
Inequalities: at most and at least
Many situations set a limit rather than an exact amount.
| Words | Symbol |
|---|---|
| at most, no more than, up to | |
| at least, no less than, a minimum of |
Two adult tickets cost dollars each and student tickets cost . With at most dollars, how many student tickets can be bought?
Tickets come whole, so the viable answers are through .
Several constraints at once
A snack mix uses peanuts and raisins. Peanuts have grams of protein an ounce and cost cents an ounce. Raisins have gram an ounce and cost cents an ounce. The mix needs at least grams of protein and must cost at most cents.
Let be ounces of peanuts and ounces of raisins. Each sentence becomes an inequality:
An option is viable only when every inequality is true.
| Option | Protein | Cost | Viable? |
|---|---|---|---|
| ✓ | ✓ | yes | |
| ✓ | ✓ | yes, right at the budget | |
| ✗ | ✓ | no: too little protein | |
| ✓ | ✗ | no: over budget |
Graphing the system shows every viable mix at once. The shaded triangle is where both constraints hold, with across and up.
- protein: 7p + r = 14
- cost: 30p + 20r = 120
Points inside or on the edge of the triangle are viable. The two points outside it each break exactly one constraint, and the graph shows which: is on the low-protein side of the steep line, and is above the budget line.
Worked examples
Common mistakes
Practice problems
-
A plumber charges dollars plus dollars an hour. A bill came to dollars. How many hours did the job take?
Answer
hours
Full solution
gives , so .
-
A rectangle is meters longer than it is wide, with area square meters. Write the equation and give both of its solutions.
Answer
, with solutions and .
Full solution
factors as .
-
Which solution in problem 2 is not viable, and why?
Answer
, because a width cannot be negative.
Full solution
The equation only says a number times a number larger is , and satisfies that. A rectangle’s width is a length, and lengths are not negative.
-
One pipe fills a tank in hours and another in hours. How long do they take together?
Answer
hours
Full solution
, so together they fill of the tank an hour and take hours.
-
With dollars and two -dollar adult tickets already bought, how many -dollar student tickets can be bought?
Answer
Up to .
Full solution
gives . Tickets are whole, so any number from to works.
-
dollars grows a year. After how many whole years does it first exceed dollars?
Hint
Try and years.
Answer
After years.
Full solution
, still below .
, now above it.
-
Is ounce of peanuts with ounces of raisins a viable snack mix?
Answer
No. It fails both constraints.
Full solution
Protein: , below the required.
Cost: , above the -cent budget.
-
A club rents buses with seats at dollars each and vans with seats at dollars each. It needs seats for at least people and has at most dollars. Write the constraints.
Answer
, , and , whole numbers at least .
Full solution
Seats: each bus gives and each van , and the total must be at least .
Cost: each bus costs and each van , and the total must be at most .
Vehicles come whole and cannot be negative.
-
Using the constraints from problem 8, decide whether buses and vans is viable, and whether buses and van is.
Answer
buses and vans is viable. buses and van is not.
Full solution
: seats ✓ and cost ✓
: seats ✓ but cost ✗
-
For the snack mix, Ava writes the protein constraint as . Find her error, and name an option her version wrongly accepts.
Hint
What does “at least grams” require?
Answer
“At least” means . Her version accepts an empty bag, .
Full solution
The mix needs at least grams, so the protein must be or more: .
Ava’s turns the minimum into a maximum. Under her version, passes: and . A bag with nothing in it would count as a viable snack, which is how the reversed sign shows itself.
Frequently asked questions
How do I write an equation from a word problem?
Name the unknown and its units, find the sentence that says two amounts are equal, and write both amounts in terms of the unknown.
What is a constraint?
A limit the situation imposes, such as a budget, a minimum amount, or a quantity that cannot be negative. Constraints are written as equations or inequalities.
What makes a solution non-viable?
It solves the equation but breaks the situation — a negative width, half a bus, or an option that goes over budget.
How do I check whether an option meets several constraints?
Substitute it into every inequality. It is viable only if all of them are true.
Do I always need to graph a system of constraints?
No. Checking a few options needs only substitution. A graph shows every viable option at once, which helps when choosing among them.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSA.CED.A.1Creating EquationsCreate equations and inequalities in one variable and use them to solve problems. Include equations arising from linear and quadratic functions, and simple rational and exponential functions.
- CCSS.MATH.CONTENT.HSA.CED.A.3Creating EquationsRepresent constraints by equations or inequalities, and by systems of equations and/or inequalities, and interpret solutions as viable or nonviable options in a modeling context.