You have the following function that determines the cost in dollars for an Uber ride in x miles:
In order to determine the rate of change of the costs, with respect to the number of miles, you take into account that the given function can be written as an equation of a line. In fact, the given function can be written as follow:
The last equation is the same equation for a line, where the coeffcient in the term with the variable x is the slope of the line, that in this case is 2.31. The slope of the function is precisely the rate of change.
Thus, the rate of hange is 2.31 dollars per mile.