Sub topic 13
Two unknowns: Setting Up and Solving Systems
Assume you can solve one-variable linear equations and translate common word phrases into algebraic expressions. A system of equations is a set of equations that use the same unknowns. In a word problem, the unknowns usually represent two related quantities.
A solution to a system must make every equation true. This requirement helps us model the problem and check the result.
Define two variables
Read the problem and identify the quantities you need. Define each variable with its meaning and units.
For example:
- Let \(a\) = number of adult tickets.
- Let \(c\) = number of child tickets.
Avoid defining a variable without saying what it represents. Clear definitions make the equations easier to write and interpret.
Translate each relationship
Suppose a theater sells 10 tickets. Adult tickets cost $8, child tickets cost $5, and the total revenue is $62.
The total number of tickets gives one equation:
\[ a+c=10 \]
The total cost gives a second equation:
\[ 8a+5c=62 \]
Together, these equations form the system:
\[ \begin{cases} a+c=10\\ 8a+5c=62 \end{cases} \]
Each equation represents a different fact from the problem.
Solve by substitution
Substitution means replacing one variable with an equivalent expression.
From \(a+c=10\), solve for \(c\):
\[ c=10-a \]
Substitute this expression into the cost equation:
\[ 8a+5(10-a)=62 \]
Now solve:
\[ 8a+50-5a=62 \]
\[ 3a+50=62 \]
\[ 3a=12 \]
\[ a=4 \]
Substitute \(a=4\) into \(c=10-a\):
\[ c=10-4=6 \]
The solution is 4 adult tickets and 6 child tickets.
Solve by elimination
Elimination removes one variable by adding or subtracting equations. It works best when coefficients can be made opposites.
Consider:
\[ \begin{cases} 2x+3y=13\\ 4x-3y=11 \end{cases} \]
Add the equations:
\[ 6x=24 \]
Therefore, \(x=4\). Substitute into the first equation:
\[ 2(4)+3y=13 \]
\[ 3y=5 \]
\[ y=\frac{5}{3} \]
The solution is \((4,\frac{5}{3})\). A fractional answer can be correct unless the context requires whole objects.
| Method | Best use | Main action |
|---|---|---|
| Substitution | One equation easily gives a variable | Replace that variable |
| Elimination | Coefficients are equal or opposites | Add or subtract equations |
from fractions import Fraction
# a = adult tickets and c = child tickets
a = Fraction(62 - 5 * 10, 8 - 5)
c = 10 - a
print(a, c)
print(a + c == 10)
print(8 * a + 5 * c == 62)Check and interpret
Check both original equations, not only the equation used during solving:
\[ 4+6=10 \]
\[ 8(4)+5(6)=62 \]
Both statements are true. Since tickets are counted, the nonnegative whole-number answer is reasonable.
Exercise
A farm has chickens and cows. There are 18 animals and 50 legs. How many chickens and cows are there?
Show answer
Let c be chickens and w be cows. Then c + w = 18 and 2c + 4w = 50. Substitution gives c = 18 - w, so 2(18 - w) + 4w = 50. Thus w = 7 and c = 11. The farm has 11 chickens and 7 cows.