After finding the critical points, we must also consider the function's values at the domain’s endpoints. For this problem, the endpoints are x=0 and x=5. Let’s evaluate the temperature function at these points:
- At x=0: \[ T(0) = 4(0) - (0)^2 = 0 \]
- At x=5: \[ T(5) = 4(5) - (5)^2 = 20 - 25 = -5 \]
Now we have three points to compare:
- x=0: Temperature is 0
- x=2: Temperature is 4 (this is from our critical point calculation)
- x=5: Temperature is -5
By comparing these temperatures, we know the hottest point on the bar is at x=2 with a temperature of 4, and the coldest point is at x=5 with a temperature of -5.
Critical points and endpoints both play a crucial role in identifying the maximum or minimum values of a function over a given interval.