I want to estimate the inverse demand function of agricultural water using shadow price. For this purpose, I have written a profit maximization objective function and obtained shadow price and then plotted shadow prices against available water quantities, but the slope of the inverse demand function graph for water is not decreasing while the slope of the inverse demand curve should be decreasing.