(i) The demand function. (ii) The total revenue function.
This question has multiple parts. Therefore each part has been answered as a separate question on Clay6.com