how to find the rate of change of the inputs