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 5050-dollar sign-up fee and 3535 dollars a month. Maya has 400400 dollars. How many months can she pay for?

Four steps turn that into mathematics and back.

  1. Name the unknown, with units. Let mm be the number of months.
  2. Write what the situation says. The fee plus the monthly charges equals the total: 50+35m=40050 + 35m = 400.
  3. Solve. 35m=35035m = 350, so m=10m = 10.
  4. Answer the question asked, in words. Maya can pay for 1010 months.

Step 1 carries more weight than it looks. “Let mm 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.

SituationEquationKind
a garden 33 feet longer than wide, area 8888 square feetw(w+3)=88w(w + 3) = 88quadratic
two pipes fill a pool in 66 and 33 hours alone16+13=1t\tfrac{1}{6} + \tfrac{1}{3} = \tfrac{1}{t}rational
2,0002{,}000 dollars growing 5%5\% a year, until it reaches 3,0003{,}0002000(1.05)t=30002000(1.05)^t = 3000exponential

Why an equation’s solution may not be an answer

Solve the garden equation.

w(w+3)=88⇒w2+3w−88=0⇒(w+11)(w−8)=0w(w + 3) = 88 \quad\Rightarrow\quad w^2 + 3w - 88 = 0 \quad\Rightarrow\quad (w + 11)(w - 8) = 0

The equation has two solutions, w=8w = 8 and w=−11w = -11. 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 33 larger is 8888. It knows nothing about gardens, and −11-11 times −8-8 really is 8888.

The situation adds a condition the equation never saw: a width cannot be negative. So w=−11w = -11 is not viable, and the garden is 88 feet by 1111 feet.

Every model carries unwritten conditions like this one:

SituationUnwritten condition
lengths, times, agesnot negative
people, buses, ticketswhole numbers
a budgetat most the budget
a recipe or a requirementat 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.

WordsSymbol
at most, no more than, up to≤\le
at least, no less than, a minimum of≥\ge

Two adult tickets cost 1212 dollars each and student tickets cost 88. With at most 9696 dollars, how many student tickets ss can be bought?

2(12)+8s≤96⇒8s≤72⇒s≤92(12) + 8s \le 96 \quad\Rightarrow\quad 8s \le 72 \quad\Rightarrow\quad s \le 9

Tickets come whole, so the viable answers are 00 through 99.

Several constraints at once

A snack mix uses peanuts and raisins. Peanuts have 77 grams of protein an ounce and cost 3030 cents an ounce. Raisins have 11 gram an ounce and cost 2020 cents an ounce. The mix needs at least 1414 grams of protein and must cost at most 120120 cents.

Let pp be ounces of peanuts and rr ounces of raisins. Each sentence becomes an inequality:

{7p+r≥14protein30p+20r≤120costp≥0,  r≥0amounts\begin{cases} 7p + r \ge 14 & \text{protein} \\[2pt] 30p + 20r \le 120 & \text{cost} \\[2pt] p \ge 0, \; r \ge 0 & \text{amounts} \end{cases}

An option is viable only when every inequality is true.

Option (p,r)(p, r)ProteinCostViable?
(2,1)(2, 1)1515 ✓8080 ✓yes
(4,0)(4, 0)2828 ✓120120 ✓yes, right at the budget
(1,3)(1, 3)1010 ✗9090 ✓no: too little protein
(3,2)(3, 2)2323 ✓130130 ✗no: over budget

Graphing the system shows every viable mix at once. The shaded triangle is where both constraints hold, with pp across and rr up.

Snack mixes that meet both constraints A shaded triangle with corners near (1.45, 3.82), (2, 0) and (4, 0). A steep line forms its left edge, marking the protein minimum, and a gentler line forms its top edge, marking the budget. The points (2, 1) and (4, 0) lie in the triangle; (1, 3) lies left of it and (3, 2) above it. 123452468xy (2, 1) (4, 0) (1, 3) (3, 2)
  • protein: 7p + r = 14
  • cost: 30p + 20r = 120
Snack mixes that meet both constraints

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: (1,3)(1, 3) is on the low-protein side of the steep line, and (3,2)(3, 2) is above the budget line.

Worked examples

Common mistakes

Practice problems

  1. A plumber charges 6565 dollars plus 4040 dollars an hour. A bill came to 305305 dollars. How many hours did the job take?

    Answer

    66 hours

    Full solution

    65+40h=30565 + 40h = 305 gives 40h=24040h = 240, so h=6h = 6.

  2. A rectangle is 55 meters longer than it is wide, with area 8484 square meters. Write the equation and give both of its solutions.

    Answer

    w(w+5)=84w(w + 5) = 84, with solutions w=7w = 7 and w=−12w = -12.

    Full solution

    w2+5w−84=0w^2 + 5w - 84 = 0 factors as (w+12)(w−7)=0(w + 12)(w - 7) = 0.

  3. Which solution in problem 2 is not viable, and why?

    Answer

    w=−12w = -12, because a width cannot be negative.

    Full solution

    The equation only says a number times a number 55 larger is 8484, and −12×−7=84-12 \times -7 = 84 satisfies that. A rectangle’s width is a length, and lengths are not negative.

  4. One pipe fills a tank in 44 hours and another in 1212 hours. How long do they take together?

    Answer

    33 hours

    Full solution

    14+112=312+112=412=13\tfrac{1}{4} + \tfrac{1}{12} = \tfrac{3}{12} + \tfrac{1}{12} = \tfrac{4}{12} = \tfrac{1}{3}, so together they fill 13\tfrac{1}{3} of the tank an hour and take 33 hours.

  5. With 9696 dollars and two 1212-dollar adult tickets already bought, how many 88-dollar student tickets can be bought?

    Answer

    Up to 99.

    Full solution

    24+8s≤9624 + 8s \le 96 gives s≤9s \le 9. Tickets are whole, so any number from 00 to 99 works.

  6. 1,0001{,}000 dollars grows 6%6\% a year. After how many whole years does it first exceed 1,5001{,}500 dollars?

    Hint

    Try 66 and 77 years.

    Answer

    After 77 years.

    Full solution

    1000(1.06)6≈1,418.521000(1.06)^6 \approx 1{,}418.52, still below 1,5001{,}500.

    1000(1.06)7≈1,503.631000(1.06)^7 \approx 1{,}503.63, now above it.

  7. Is 11 ounce of peanuts with 55 ounces of raisins a viable snack mix?

    Answer

    No. It fails both constraints.

    Full solution

    Protein: 7(1)+5=127(1) + 5 = 12, below the 1414 required.

    Cost: 30(1)+20(5)=13030(1) + 20(5) = 130, above the 120120-cent budget.

  8. A club rents xx buses with 2020 seats at 150150 dollars each and yy vans with 88 seats at 6060 dollars each. It needs seats for at least 100100 people and has at most 900900 dollars. Write the constraints.

    Answer

    20x+8y≥10020x + 8y \ge 100, 150x+60y≤900150x + 60y \le 900, and xx, yy whole numbers at least 00.

    Full solution

    Seats: each bus gives 2020 and each van 88, and the total must be at least 100100.

    Cost: each bus costs 150150 and each van 6060, and the total must be at most 900900.

    Vehicles come whole and cannot be negative.

  9. Using the constraints from problem 8, decide whether 44 buses and 33 vans is viable, and whether 66 buses and 11 van is.

    Answer

    44 buses and 33 vans is viable. 66 buses and 11 van is not.

    Full solution

    (4,3)(4, 3): seats 80+24=104≥10080 + 24 = 104 \ge 100 ✓ and cost 600+180=780≤900600 + 180 = 780 \le 900 ✓

    (6,1)(6, 1): seats 120+8=128≥100120 + 8 = 128 \ge 100 ✓ but cost 900+60=960>900900 + 60 = 960 > 900 ✗

  10. For the snack mix, Ava writes the protein constraint as 7p+r≤147p + r \le 14. Find her error, and name an option her version wrongly accepts.

    Hint

    What does “at least 1414 grams” require?

    Answer

    “At least” means ≥\ge. Her version accepts an empty bag, (0,0)(0, 0).

    Full solution

    The mix needs at least 1414 grams, so the protein must be 1414 or more: 7p+r≥147p + r \ge 14.

    Ava’s ≤\le turns the minimum into a maximum. Under her version, (0,0)(0, 0) passes: 0≤140 \le 14 and 0≤1200 \le 120. 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.