Erin buys gas at a self service station for $2.75 a gallon. The gas station has a promotion going on that anyone who buys more than 10 gallons of gas, only has to pay $2.50 per gallon. Erin's tank will hold 12 gallons of gas. a) Write a rule for the total cost, C(g), as a function of g gallons of gas. b)Graph the piecewise function c)What is the domain and range of the function in part a
@jim_thompson5910 help please
what do you have so far?
@jim_thompson5910 not much sir, i'm confused actually
`Erin buys gas at a self service station for $2.75 a gallon` if Erin buys g gallons of gas, then how much does she spend?
how many gallons does Erin buy though?
ok let's say she buys 5 gallons how much does she spend?
it'll be $13.75 then
how did you compute that
by multiplying the number of gallons Erin was going to buy with the price that each gallon costs
so in general, we can say `2.75*g` or just `2.75g`
g is it the unknown number of gallons bought
okay yeah i understand that
If the promotion wasn't there, then C(g) = 2.75g and that would be it. There wouldn't be a need for a piecewise function
however, the promotion changes things C(g) = 2.75g is only true if \(\Large 0 \le g \le 10\) anything larger than 10 will have a different price structure
so it wouldn't be just greater than? it's greater than or equal to right
so that'll be the rule for letter a?
not the full rule
oh okay so then what else do we need?
`The gas station has a promotion going on that anyone who buys more than 10 gallons of gas, only has to pay $2.50 per gallon.` what is the cost function if you buy more than 10 gallons of gas?
i seriously dont know D:
same as before total cost = (price per gallon)*(number of gallons) keep the number of gallons as g the price will change
C(g)=2.50g
what are the restrictions on g?
do you pay $2.50 per gallon if you bought say, 8 gallons?
no, it's when you buy more than 10 gallons so wouldn't it be \[0\le g \le 10\]
more like g > 10 if g > 10, then the cost function is C(g) = 2.50g
now let's form the piecewise function
Everything in blue \[\Large \color{blue}{ \Large C(g) = 2.75g \text{ if } 0 \le g \le 10 \\ \Large \text{OR}\\ \Large C(g) = 2.50g \text{ if } g > 10 \\ }\] condenses to this piecewise function notation you see in red \[\Large \color{red}{C(g)=\begin{cases}2.75g \text{ if } 0 \le g \le 10 \\ 2.50g \text{ if } g > 10 \end{cases}}\] The stuff in red is what most math books will use as piecewise function notation. The stuff in blue is more intuitive (at least to me), so it's good to know both forms.
take a few moments to write down notes and process all this. I want to make sure you understand all this before we move on
ah okay i see what you did there, so basically what's in blue is the rule for the total cost correct?
and then what's in red is basically the rule for the total cost but more "like what textbooks would use" right
yeah the cost function is either one or the other (pick one) and it's based on what g is if g is between 0 and 10, you pick the first one if g is greater than 10, you pick the second one
correct, it's the formal mathematical way
ah okay this is making so much more sense now, okay im done taking notes now
once you get to the red stuff, you are done with part a)
ready for part b)?
yeah
to graph a piecewise function, we simply graph each piece on the same xy axis so focus on just the first piece C(g) = 2.75g do you know how to graph that?
tbh no i dont how will you start it?
think of it as y = 2.75x
what kind of equation is that?
hint: y = mx+b
it's slope intercept form right?
yeah we have slope m = 2.75 and y intercept b = 0 do you see how I'm getting that?
yeah i see how plus i just graphed it on my calculator and it gave me the coordinates to graph.
what two points are on this graph
two points are (1,2.75) and (2,5.5)
good
and then the second one will be y=2.50x ?
so normally, when you graph y = 2.75x, you draw a straight line through those two points
however, there's a restriction on x in this case, \(\Large 0 \le x \le 10\) is the restriction
so does that mean stop graphing when the x coordinate is at 10?
so what that means is that you only graph the portion between x = 0 and x = 10 you erase everything else
|dw:1442368336119:dw|
|dw:1442368346952:dw|
|dw:1442368378189:dw|
make sense?
yeah it makes sense
and how will that be different for c(g)=2.50g
now we plot closed circles at the endpoints because we are including the endpoints |dw:1442368517079:dw|
Join our real-time social learning platform and learn together with your friends!