Piecewise Function Problem Clarification.

AI Thread Summary
The hotel chain's pricing structure defines a piecewise function for total cost T based on the number of nights x. For the first two nights, the cost is expressed as a = 95x, while for additional nights, the correct expression is b = 55(x - 2) + 190, simplifying to b = 55x + 80. The confusion arose from miscalculating the additional charges after the initial two nights. For calculating total costs, T(2) equals $190, T(3) equals $245, and T(5) can be similarly computed. Understanding the piecewise function is crucial for accurately determining costs based on the number of nights stayed.
ReddbullJesus
Messages
2
Reaction score
0

Homework Statement


A hotel chain charges $95 each night for the first two nights and $55 for each additional nights stay. The total cost T is a function of the number of nights x that a guest stays.

(a) Find the expressions for a and b in the piecewise function

(b) Find T(2), T(3), and T(5)

Homework Equations



T(x)={a if 0 <_ x <_ 2
b if x > 2

The Attempt at a Solution



I figured the expression for a is a = 95x. Now, webassign.com says b = 55x + 80. I originally had 55x + 190, but now I understand why that is wrong. However I don't understand why its 80? How did it arrive there?

For the second part I know to just plug in 2 into equation a and 3 and 5 into equation b for x.

Thanks in advance for the help
 
Physics news on Phys.org
ReddbullJesus said:
I figured the expression for a is a = 95x. Now, webassign.com says b = 55x + 80. I originally had 55x + 190, but now I understand why that is wrong. However I don't understand why its 80? How did it arrive there?

The reason 55x + 190 is wrong is because you're forgetting that the $55 charge is applied after the first two nights.

For 3 nights, it's $190 plus $55 times 1 additional night.

For 4 nights, it's $190 plus $55 times 2 additional nights.

So for x nights, it's 190 plus 55 times (x -2) additional nights, or 55(x - 2) + 190. Hopefully you can get the correct expression for b.
 
ReddbullJesus said:

Homework Statement


A hotel chain charges $95 each night for the first two nights and $55 for each additional nights stay. The total cost T is a function of the number of nights x that a guest stays.

(a) Find the expressions for a and b in the piecewise function

(b) Find T(2), T(3), and T(5)


Homework Equations



T(x)={a if 0 <_ x <_ 2
b if x > 2

The Attempt at a Solution



I figured the expression for a is a = 95x. Now, webassign.com says b = 55x + 80. I originally had 55x + 190, but now I understand why that is wrong. However I don't understand why its 80? How did it arrive there?
.
"55x+ 190" would be correct if x were the number of nights past 2. But x is the total number of nights. He pays 95 dollars for each of the first two nights, for a total of $190, then pays $55 for each of the x- 2 nights after the first 2. The total for x nights would be 190+ 55(x- 2)= 190+ 55x- 110= 55x+ 80.

For the second part I know to just plug in 2 into equation a and 3 and 5 into equation b for x.
Yes, that is correct. For 2 nights, the cost is 2(95)= $110. For 3 nights you can use either:
1) 55(3)+ 80= 165+ 80= $245 or
2) 190 for the first 2 nights and then 55 for the third night = 190+ 55= $245.

and do the same for 5 nights.

Thanks in advance for the help
 
Thanks for the help. I got it right :)
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...

Similar threads

Back
Top