Ask your own question, for FREE!
Mathematics 4 Online
OpenStudy (ineedhelp10):

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

OpenStudy (ineedhelp10):

@jim_thompson5910 help please

jimthompson5910 (jim_thompson5910):

what do you have so far?

OpenStudy (ineedhelp10):

@jim_thompson5910 not much sir, i'm confused actually

jimthompson5910 (jim_thompson5910):

`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?

OpenStudy (ineedhelp10):

how many gallons does Erin buy though?

jimthompson5910 (jim_thompson5910):

ok let's say she buys 5 gallons how much does she spend?

OpenStudy (ineedhelp10):

it'll be $13.75 then

jimthompson5910 (jim_thompson5910):

how did you compute that

OpenStudy (ineedhelp10):

by multiplying the number of gallons Erin was going to buy with the price that each gallon costs

jimthompson5910 (jim_thompson5910):

so in general, we can say `2.75*g` or just `2.75g`

jimthompson5910 (jim_thompson5910):

g is it the unknown number of gallons bought

OpenStudy (ineedhelp10):

okay yeah i understand that

jimthompson5910 (jim_thompson5910):

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

jimthompson5910 (jim_thompson5910):

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

OpenStudy (ineedhelp10):

so it wouldn't be just greater than? it's greater than or equal to right

OpenStudy (ineedhelp10):

so that'll be the rule for letter a?

jimthompson5910 (jim_thompson5910):

not the full rule

OpenStudy (ineedhelp10):

oh okay so then what else do we need?

jimthompson5910 (jim_thompson5910):

`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?

OpenStudy (ineedhelp10):

i seriously dont know D:

jimthompson5910 (jim_thompson5910):

same as before total cost = (price per gallon)*(number of gallons) keep the number of gallons as g the price will change

OpenStudy (ineedhelp10):

C(g)=2.50g

jimthompson5910 (jim_thompson5910):

what are the restrictions on g?

jimthompson5910 (jim_thompson5910):

do you pay $2.50 per gallon if you bought say, 8 gallons?

OpenStudy (ineedhelp10):

no, it's when you buy more than 10 gallons so wouldn't it be \[0\le g \le 10\]

jimthompson5910 (jim_thompson5910):

more like g > 10 if g > 10, then the cost function is C(g) = 2.50g

jimthompson5910 (jim_thompson5910):

now let's form the piecewise function

jimthompson5910 (jim_thompson5910):

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.

jimthompson5910 (jim_thompson5910):

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

OpenStudy (ineedhelp10):

ah okay i see what you did there, so basically what's in blue is the rule for the total cost correct?

OpenStudy (ineedhelp10):

and then what's in red is basically the rule for the total cost but more "like what textbooks would use" right

jimthompson5910 (jim_thompson5910):

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

jimthompson5910 (jim_thompson5910):

correct, it's the formal mathematical way

OpenStudy (ineedhelp10):

ah okay this is making so much more sense now, okay im done taking notes now

jimthompson5910 (jim_thompson5910):

once you get to the red stuff, you are done with part a)

jimthompson5910 (jim_thompson5910):

ready for part b)?

OpenStudy (ineedhelp10):

yeah

jimthompson5910 (jim_thompson5910):

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?

OpenStudy (ineedhelp10):

tbh no i dont how will you start it?

jimthompson5910 (jim_thompson5910):

think of it as y = 2.75x

jimthompson5910 (jim_thompson5910):

what kind of equation is that?

jimthompson5910 (jim_thompson5910):

hint: y = mx+b

OpenStudy (ineedhelp10):

it's slope intercept form right?

jimthompson5910 (jim_thompson5910):

yeah we have slope m = 2.75 and y intercept b = 0 do you see how I'm getting that?

OpenStudy (ineedhelp10):

yeah i see how plus i just graphed it on my calculator and it gave me the coordinates to graph.

jimthompson5910 (jim_thompson5910):

what two points are on this graph

OpenStudy (ineedhelp10):

two points are (1,2.75) and (2,5.5)

jimthompson5910 (jim_thompson5910):

good

OpenStudy (ineedhelp10):

and then the second one will be y=2.50x ?

jimthompson5910 (jim_thompson5910):

so normally, when you graph y = 2.75x, you draw a straight line through those two points

jimthompson5910 (jim_thompson5910):

however, there's a restriction on x in this case, \(\Large 0 \le x \le 10\) is the restriction

OpenStudy (ineedhelp10):

so does that mean stop graphing when the x coordinate is at 10?

jimthompson5910 (jim_thompson5910):

so what that means is that you only graph the portion between x = 0 and x = 10 you erase everything else

jimthompson5910 (jim_thompson5910):

|dw:1442368336119:dw|

jimthompson5910 (jim_thompson5910):

|dw:1442368346952:dw|

jimthompson5910 (jim_thompson5910):

|dw:1442368378189:dw|

jimthompson5910 (jim_thompson5910):

make sense?

OpenStudy (ineedhelp10):

yeah it makes sense

OpenStudy (ineedhelp10):

and how will that be different for c(g)=2.50g

jimthompson5910 (jim_thompson5910):

now we plot closed circles at the endpoints because we are including the endpoints |dw:1442368517079:dw|

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!