To represent the cost of renting a boat as a function of the number of hours it is rented, we can define the function \( f(x) \) where \( x \) represents the number of hours the boat is rented. The cost is $150 per hour, so the function is given by:
\[ f(x) = 150x \]
In this function:
- \( f(x) \) is the total cost of renting the boat for \( x \) hours.
- \( 150 \) is the cost per hour.
- \( x \) is the number of hours the boat is rented.