The left diagram is one consumer choosing between goods x and y; the lower chart is the market for x made of 100 such consumers. Change income, tastes, supply or add a tax and watch the price adjust and the budget line rotate.
The science
A consumer maximises U = x^α · y^(1−α) subject to the budget P·x + p_y·y = M. The optimum lies where the indifference curve touches the budget line, giving the demand functions x* = αM/P and y* = (1−α)M/p_y. For 100 identical consumers the market demand is Q_d = NαM/P, with price elasticity exactly −1.
Supply is Q_s = s·P^ε. With a per-unit tax τ the buyer pays P_s + τ while the seller keeps P_s. Without tax the equilibrium is P* = (NαM/s)^(1/(1+ε)). The price moves by Δln P = κ·(Q_d − Q_s)/mean(Q), a tatonnement (groping) process that converges because the excess demand falls with price. For a small tax the buyers' share of the burden tends to ε_s/(ε_s + |ε_d|) = ε/(ε+1): the less elastic side bears more.
Three independent checks: golden-section search of utility along the budget line versus αM/P; the dynamic price versus bisection/closed form; the numerical tax share versus ε/(ε+1). Simplifications: identical consumers, partial equilibrium for one market, deadweight loss measured as the area between demand and supply curves (a Marshallian approximation), money units are abstract.