We know that Heather can make batches of cupcakes and glasses of hot chocolate based on the amount of cocoa she has left.
Because there are \(4\) tablespoons of cocoa needed for a batch of cupcakes and \(1\) tablespoon of cocoa needed for a glass of hot chocolate, we can represent this situation with the equation:
Notice that this equation is in the form \(Ax+By=C\). This is another common form of an equation of a line.
This is an example where there really isn't a clear independent or dependent variable.
We could say:
- The number of batches of cupcakes depends on the number of glasses of hot chocolate.
However, we could also say:
- The number of glasses of hot chocolate depends on the number of batches of cupcakes.
Case 1
Let's consider a graph of \(4c+h=16\), where the number of batches of cupcakes depends on how many glasses of hot chocolate are made.
If we rearrange for \(c\) in terms of \(h\), we get:
\(\begin{align*} 4c+h&=16\\ 4c&=16-h\\ c&=\dfrac{16}{4}-\dfrac{h}{4}\\ c&=-\dfrac{1}{4}h+4 \end{align*}\)
This gives us an equation where we could say that the number of batches of cupcakes depends on the number of glasses of hot chocolate.
Graphing \(c=-\dfrac{1}{4}h+4\), we see:
- a \(c\)-intercept of \(4\), and
- an \(h\)-intercept of \(16\).
Take a moment to think about what the intercept values mean for the situation described in this question.
Case 2
Let's consider a graph of \(4c+h=16\), where the number of glasses of hot chocolate depends on how many batches of cupcakes are made.
If we rearrange for \(h\) in terms of \(c\), we get:
\(\begin{align*} 4c+h&=16\\ h&=16-4c\\ h&=-4c+16\\ \end{align*}\)
This gives us an equation where we could say that the number of glasses of hot chocolate depends on the number of batches of cupcakes.
Graphing \(h=-4c+16\), we see:
- an \(h\)-intercept of \(16\), and
- a \(c\)-intercept of \(4\).
Solution — Part C
The graph of \(4c+h=16\) can help to answer the question: "What are possible pairs of values for the number of batches of cupcakes and glasses of hot chocolate that Heather can make with her \(16\) tablespoons of cocoa?"
Every point along the line of \(4c+h=16\), represents a solution to the equation.
Although graphing \(h\) in terms of \(c\), and then \(c\) in terms of \(h\), gave two different looking lines, both arrangements of the equation provide the same pairs of solutions; they are simply written in a different order.
- \(c=-\dfrac{1}{4}h+4\) gives the ordered pairs \((h,c)\).
- \(h=-4c+16\) gives the ordered pairs \((c,h)\).
For example, the \(c\)-intercept for \(c=-\dfrac{1}{4}h+4\), is located at the point \((0,4)\). The \(c\)-intercept for \(h=-4c+16\), is located at \((4,0)\). In both cases, \(c=4\) and \(h=0\), meaning that if Heather makes \(4\) batches of cupcakes, then she can cannot make any glasses of hot chocolate.
Does every point along the line of \(4c+h=16\) represent a possible answer for the number of batches of cupcakes and glasses of hot chocolate Heather can make with \(16\) tablespoons of cocoa?
- Therefore, \(0\le c\le4\) and \(0 \le h \le 16\), where \(c\) and \(h\) are real numbers.
- Although real numbers are possible solutions (that is, we can have partial batches and glasses), integer solutions are more relevant in this situation and would include:
\(c=4\), \(h=0\)
\(c=3\), \(h=4\)
\(c=2\), \(h=8\)
\(c=1\), \(h=12\)
\(c=0\), \(h=16\)
Note that we can get these values by using the given equation and substituting in values for \(c\) and solving for \(h\) or vice versa. This would be similar to creating a table of values.
Benefits of \(Ax+By=C\)
Some benefits of the form \(Ax+By=C\) are:
- We can determine equations from scenarios where the context does not provide clear independent and dependent variables.
- We can usually graph the line quickly using \(x\)- and \(y\)-intercepts, especially if \(A\) and \(B\) are factors of \(C\).