Piecewise Function Problem Clarification.

Click For Summary

Homework Help Overview

The discussion revolves around a piecewise function that models the total cost of staying at a hotel chain, where the cost structure varies based on the number of nights stayed. The problem specifically addresses finding expressions for the cost function based on the number of nights and evaluating the total cost for specific values.

Discussion Character

  • Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the expressions for the piecewise function, particularly focusing on the correct formulation of the cost for nights beyond the initial two. There is a specific inquiry into the reasoning behind the expression for the cost after the first two nights.

Discussion Status

Some participants have provided insights into the formulation of the piecewise function, particularly clarifying why certain expressions are incorrect. There is an ongoing exploration of how to derive the correct expression for the total cost based on the number of nights stayed, with some participants confirming their understanding of the calculations involved.

Contextual Notes

Participants are working within the constraints of a homework assignment, which includes specific requirements for expressing the cost function and evaluating it for given inputs. There is an emphasis on understanding the cost structure rather than simply calculating the total cost.

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 :)
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
30
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K