every dollar you raise, the fewer customers you get. the point is that you should want to raise the price whenever the relative drop in customers is less than the relative increase in price to maximise profits (where marginal cost is marginal benefit :) )
you can model the tax on the supply or the demand. in most simple models the outcome is the same